LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

if statement

hi all!... this may seem like a bit of a silly question, but i`ll ask anyway...

I have created a sequence which gives a boolean output at the end (sequence 1)(LED lights up.)... I hace also created a further 2 sequences (sequence 2 and sequence 3), however i don`t know how to use labview so that if the led is "on", it follows sequence 2 ( `goto` sequence2) or if the led is "off", it follows sequence 3 (`goto` sequence 3).

I imagine it would be fairly straight forward, however i am very new to labview and "graphical programming".

can you help?
0 Kudos
Message 1 of 3
(2,736 Views)
you should simply use the "case"-structure............
lokk into HELP ; search for "case"

regards
wha
0 Kudos
Message 2 of 3
(2,736 Views)
Instead of using sequences, use a state machine architecture. There are numerous examples in NI's Developer Zone and a shipping example like Queued Message Handler. You could do with with case statements inside of your sequence 2 and 3 but a state machine gives a lot more flexibility and is a very powerful tool.
Message 3 of 3
(2,736 Views)