Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Using rising edge in labview to make a switch

Hey, I'm trying to control two sets of LED's by switching between them based off of a trigger signal (single squarewave pulse) to switch between two channels on my daq, but I've run into the limit of my knowlege, and the tutorials aren't completely helpful.

 

How do you use an external trigger to switch between digital outs? Specifically, turning one line on, and turning off the other and vice versa?

 

Thanks to anyone who can help.

0 Kudos
Message 1 of 2
(4,290 Views)

So this is most likely going to have been done in software.  You can readin your trigger line in DAQmx and then based off of that being true you can enter a case structure that would flip the output going to the lines.  Just to illustrate the concept it would be something like this-and the false case of the structure would just pass the array straight through.

 

 forumflip.png

Doug Farrell
Solutions Marketing - Automotive
National Instruments

National Instruments Automotive Solutions
0 Kudos
Message 2 of 2
(4,260 Views)