Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5374

about time delay in labwindows

$
0
0

Hi all,

  In labview, operations in the same frame will be executed at the same time.

 

Untitled_1d.png

 

Example was shown in the above image. The delay operation in the first frame will be started at the same time when hte channel being written. But in Labwindows, everything is running in sequence. So above operations in CVI might look like

 

    DAQmxWriteDigitalLines(taskHandle2, 1, 1, 10.0, DAQmx_Val_GroupByChannel, &value, NULL, NULL); 

    DAQmxWriteAnalogScalarF64(taskID,  1, 10.0, voltage,NULL);

    Sleep(1);

 

So the timing behavior changed a lot in labwindows, I have two questions

 

1) how long estimated will the DAQ output tasks take? I know it machine dependent butin modern computer, what's the average time does it take? will it done in millisecond?

 

2) In the labview code, I expect all operations done in 1ms. But in the labwindows code, it seems that it take more than 1ms. Is that any way in labwindows to have all those operations start at the same time?


Viewing all articles
Browse latest Browse all 5374

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>