LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LED in flat sequence event

Solved!
Go to solution

Hello,

I have 2 flat sequence event with 1 LED in each event. How do I turn on the LED when the event start and OFF when the event complete before it move to next event.

 

Please help.

 

Thanks,

0 Kudos
Message 1 of 3
(4,774 Views)
Solution
Accepted by topic author CP_AT

Those are not events in the sequence. Those are individual frames. Events in LabVIEW are something completely different. Based on your question it seems you are not completely understanding dataflow. A function/VI will execute when all data on the wires connected to it is present. Dataflow can be used to enforce execution order, but sequence frames can also be used.

 

In your first frame if you wire a True constant to the Boolean you cannot control when the Boolean is updated since there is no data dependenct between the numeric calculations and the writing of the LED. Thus, if you want to turn on the LED before the first frame then you need to add a frame before the first one where you set the LED, and the same thing at the end.

Message 2 of 3
(4,760 Views)

Thanks, Smercurio_fc.

 

Your suggestion is exactly what I want. I can use Boolean local variable after the execute fame to turn off the LED.

 

Sorry to use the incorrect term. I should say structure instead event.

 

0 Kudos
Message 3 of 3
(4,754 Views)