LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there any way to software trig on 4-8 channels, if possible with different threshold on each channel?

I am working with a modified version of the example "Acquire N - Multi-Analog Software Trig.vi" in Labview. The example retrieves data from 6 input channels each time an analog trigger occures. Is there any way to software trig (if possible with different treshold on each channel) on all channels in a logical OR-function?
0 Kudos
Message 1 of 2
(2,508 Views)
Unfortunately you can only configure a trigger for a single channel. You could, in software, create a multiple-channel software trigger, but it will not be nearly as efficient.

Here is what you could do. You could call the the AI Start VI and AI Read VI in a while loop like the "Acquire-N-Multi-Analog Software Trig VI" but you would not be able to use the conditional retrieval part of the code. Initially, you could read only a few values from each channel and be comparing those values to each individual threshold within the loop. When all of the values have reached the thresholds, you could change (increase) the amount of values being read by AI Read.

This method would always be reading from the channels, but would not be returning a lot of data until all of
the channels have reached their threshold. Just a suggestion. I hope this helps.

Regards,

Todd D.
Applications Engineering
National Instruments
0 Kudos
Message 2 of 2
(2,508 Views)