Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Running Daq mx analog input in parallel loops.

I have a program (attached) that I was just using as an experiment. Why can't I see the data in loop number 2 while loop 1 is running? I'm using a digital trigger negative edge to start the acquisition in loop 1. New to using daq mx and would appreciate the feedback. Thanks.
0 Kudos
Message 1 of 2
(2,688 Views)
It looks like the DAQ operations in the two loops are using the same resource (analog input on your hardware). Once one of the operations is started, other parts of your program can not use the same hardware resource. Because loop 1 is a continuous waveform acquisition once it is started outside of loop 1, you can not make single point AI measurements in other parts or your application until the waveform acquisition is finished or stopped. This is true even if the single point measurement is on a different channel than the waveform acquisition; this is because the hardware makes the measurements using the same circuitry on the card. (There may be exceptions to this rule depending on the specific hardware you are using, but it is generally true.)

Christian
L
NI Consulting Services
authored by
Christian L, CLA
Systems Engineering Manager - Automotive and Transportation
NI - Austin, TX


  
0 Kudos
Message 2 of 2
(2,688 Views)