LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI DAQMX Driver performance

Hello all,
 
I would like to build a SubVI to generate digital & analog output, but am concerned about possible performance issues.   In some extreme cases I will need to call this SubVI in rapid succession(50ms interval) hundreds of times.   It will contain the following 3 tasks to be executed in sequence:
 
Task #1 - Set two bits high
Task #2 - Analog Generation
               
 
2.  Sychronize two NI-DAQmx PCI cards via a RTSI cable at 40khz sampling rate.
3. Generate
Task #3 - Set two bits low
0 Kudos
Message 1 of 3
(2,714 Views)
This post and its prior duplicates should be disregarded.   My browser went crazy while I was drafting the real post here.
0 Kudos
Message 2 of 3
(2,698 Views)
The fact that you intend to call this subVI in 50 msec intervals implies that the 3 tasks are supposed to take place in less than 50 msec.

The important part is whether or not there's any sort of timing requirements between each task. For instance, must the analog generation occur within a certain amount of time after the 2 bits are set high, and must the 2 bits be set low within a certain amount of time after the analog generation is done? If so, you should not rely on software to perform this task. I would look into configuring triggering.

Of course, this ignores the question of whether or not you can call a VI in 50 msec intervals, regardless of what it's doing. Is it possible? Yes. Is it probable? Not likely since you are relying on software to do the timing. If you really have such critical timing requirements you should look into LabVIEW Real Time.

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