Discussion:
Problem in synchronization between a Task and a timed loop
(too old to reply)
Principiant
2008-08-04 13:10:06 UTC
Permalink
This is the second time that I post this message because I realized my question landed on the wrong side of the forum and no one has answered.
So I try for a second last time:
 

Hi everybody,
 
As usual I need help. I have attached my .vi to let you understanding the source of my first problem.
Sorry for the German names of the Vis.
I have a PCI 6289 installed on a  PC Desktop real time target.
I want to have the smaller jitter possible between Input and output. Since for the moment I have a jitter of 0.1 ms at 40 KHz sampling rate I thought that the cause of this random delay could have been the asynchronization between the While timed loop clock and the Hardware timing clock.
So I tried to synchronize them with the use of a Timing source.
Unfortunately the result is not the expected one.
When I press the execution arrow  all is happening is a millisecond or less of execution and then the program stops automatically without any error message,
Why the Vi is not working? Someone has an Idea?
Many thanks.
 
Principiant


DAQ prova2.vi:
http://forums.ni.com/attachments/ni/170/346300/1/DAQ prova2.vi
Broken Arrow
2008-08-06 15:40:10 UTC
Permalink
My first thought would be... you want less than 1mS resolution on a PC target? ... Running Windows?To get a better feel for the error, monitor the error output of the timed loop itself.
Principiant
2008-08-08 08:40:06 UTC
Permalink
Hi thans for your answer,
The discussion and the problems are already advanced in another thread.
If you want to follow the discussion see here:
&nbsp;<a href="http://forums.ni.com/ni/board/message?board.id=170&amp;message.id=345956#M345956" target="_blank">http://forums.ni.com/ni/board/message?board.id=170&amp;message.id=345956#M345956</a>
Bye
Principiant

Continue reading on narkive:
Loading...