Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

an error with Hardware Timed single point timing



I use the DAQmx assistant to config a task. The
task is a Hardware Timed single point timing. A new
task is generated bye generate code with
configuration and example from the task by
assistant. But it dosen't work well even the rate
is very low. The Vi is attached.
When runs, it reports:
Error -209802 occurred at DAQmx Wait For Next
Sample Clock.vi
Possible reason(s):
DAQmx Wait for Next Sample Clock detected one or
more missed sample clocks since the last call to
Wait for Next Sample Clock which indicates that
your program is not keeping up with the sample
clock.
To remove this error, slow down the sample clock,
or else change your application so that it can keep
up with the sample clock. Alternatively, consider
setting the Convert Errors to Warnings property to
true and then handling the warning case
appropriately.
 
can you help me?
thanks first
 

 
0 Kudos
Message 1 of 2
(3,378 Views)

I tried this out on my system and had no problems.  Keep in mind some things.  This function is completely computer dependent.  It will depend on how much Ram you have, how fast your processor is, and how much "other stuff" is going on in your computer.  It was designed for a Real-Time system, but will work on Windows.  I am going to assume you are running this on Windows.  So things you can do to help get the rate faster.

#1.  Don't have anything else running in Windows

#2.  Remove the indicator from inside the loop...that will slow it down.

#3.  You can set the thread of the VI to time critical.  Be warned though this will make other things in your system unresponsive.

#4.  Of course depending on loop rates and stability you could by a dedicated PXI RT controller.

As a comparison.  With absolutely no changes ot your example on my 3.2GHz with 1Gb of Ram and nothing else running I was able to only go 2.5kHz.  On an RT system our maximum sustainable rate is more like 40k

 

StuartG

0 Kudos
Message 2 of 2
(3,371 Views)