LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Turning off and on an LED in a stacked sequence

I have all that figured out but now I need to set up the enum constants in the case structure that tells what case to execute right? and then that gets wired to the right side shift register
0 Kudos
Message 31 of 37
(1,067 Views)

Correct.

 

The easiest way is to work one case at a time.  Drop in a copy of the typedef'd constant near the tunnel.  Select it to be whatever item you need to match the old constant that is already there.  Delete the old constant, wire up the new.  Move on to the next case.

0 Kudos
Message 32 of 37
(1,062 Views)
so basically just copy and pasting??
0 Kudos
Message 33 of 37
(1,059 Views)
Correct. If you, on the diagram, copy the existing typedef enum (wired to the outside of the left shift register node) to each of the locations inside the cases and set them to the correct case for the next step in the state machine, that should do it. Don't use the original ones that were in the various cases as they won't be linked to the type def, will result in "coercion dots", and won't update automatically if you edit the typedef to add new cases.
Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 34 of 37
(1,059 Views)
Okay sweet I have it running now...Ill copy the program again of what I have. Some of my LEDS are working and some arent, did I do it right by placing false constants on the cases where the light should be off??? Console 2 turns on in Frames 5 and 7 like it should but none of the other LEDS are turning on at all...any ideas?
0 Kudos
Message 35 of 37
(1,056 Views)
sorry heres attachment
0 Kudos
Message 36 of 37
(1,053 Views)
wow...what a thread! haha
0 Kudos
Message 37 of 37
(1,032 Views)