04-21-2010 05:13 PM
I have a 1.7 second delay in the output of a digital signal from a CD&sim loop that is destroying a dynamic model. I have stripped everything down to the following vi to isolate where the delay is coming from. Is this a problem with the arrays or the hardware?
This is with a NI 6008 usb DAQ using labview 2009. I attached the simplified vi below. Any ideas on how to make this faster? Like less than .5 seconds?
04-23-2010 02:01 PM
Hello,
How exactly are you benchmarking your code? I know that you have isolated it to this particular VI, but have you broken it up further to determine where most of the time is spent? I would also recommend against using the DAQ Assistants in applications such at this because they introduce additional overhead in time sensitive applications. Here, you would want to use the DAQmx lower level API.
-Zach