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 byChristian L, CLA
Systems Engineering Manager - Automotive and Transportation
NI - Austin, TX

