LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

giving two different output on 2 different channels via a case structure

Hello Everyone

 

I have an array of data, which I'm using to calculate, lets say the energy of the signal. Once I do that, I need to compare the calculated value to a constant (threshold value). In case, the calculated energy is greater than the threshold, I want to output that array of data to one of the output channels.
In case, the calculated energy is less than the threshold, I want to introduce some gain and then output it to a different channel through the DAQ.

 

I'm using a case structure to implement the above task. My query is can I define two different output channels (through 2 DAQ assistant express VIs; one each in TRUE and FALSE case of the case structure). Only one of the two channels would be used at a time, depending upon the comparison with the threshold value.

Hope I sound clear enough in explaining things here.

P.S: Can I define more than 2 output channels in a similar way as above, for different amplitude levels of data.

Hoping for a early response.

Thanks in advance! 🙂

0 Kudos
Message 1 of 2
(2,668 Views)

I think you will be able to do this because in the DAQ Assistant you are generating and clearing the task each time it is being called.

 

What I know for certain will work is to create a task where you are writing to both channels at the same time.  You can use your case structure to determine which output you need to write to and to the other you can just write 0's if you don't want any output.

Matt J | National Instruments | CLA
0 Kudos
Message 2 of 2
(2,650 Views)