LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Flashing LEDs

I have two switches and three LEDs. I want just one to flash based on the switch settings. I have attached the file. This is just a test file for a larger project, but I am not sure why this is not working. Can someone "enlighten" me? Thanks.
0 Kudos
Message 1 of 5
(2,999 Views)
It looks like your problem is that your property nodes and are inside of the case, rather than being outside of the case, fed by values from within the case.
When Boolean 2 goes False, Boolean 3 is set to True and Blinking. When Boolean 2 goes True, the Property node for Boolean 3 never sees it, because that case isn't executed. So Boolean 3 stays blinking.
When Boolean 2 is True, the values and Blinking properties for Booleans 4 and 5 are based on Boolean. When Boolean 2 goes False, Boolean 4 and 5 values and properties remain at their last settings when Boolean 2 was True.
You need to move the property nodes outside of the case but feed them through the case. If you want it to operate in a loop, you'll need to add shift registers.
0 Kudos
Message 2 of 5
(2,998 Views)
Do it this way.
0 Kudos
Message 3 of 5
(2,998 Views)
Or do you want Boolean 3 to always respond to Boolean 2? Then just move Boolean 3 and its property node outside of the case, and wire them directly from an inverter from Boolean 2, not inside of the case. The False case will then be empty.
Look at the attached LV6.1 example.
0 Kudos
Message 4 of 5
(2,999 Views)
Thanks for the help. I wasn't seeing it that way, and I still had to disable the two LEDs in the false statement, and disable their blinking, but it works. Thanks.
0 Kudos
Message 5 of 5
(2,999 Views)