12-21-2009 05:03 PM
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,
Solved! Go to Solution.
12-21-2009 05:39 PM
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.
12-21-2009 05:50 PM
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.