LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Turning off and on an LED in a stacked sequence

I am running tests on circuit boards in a stacked sequence. I have some DAQ assistants that are checking voltage at different points on the board and lights up an LED from the data output through an index array. After sequences the LEDs stay on how do I make the LED turn off after it checks the voltage at a certain point.

0 Kudos
Message 1 of 37
(3,960 Views)

Hi cmhand,

you can use a local variable, a property node or you change your stacked sequence to a state machine, then you don't need a local variable or a property node.

I think you mean a Software LED. Is it correct?

 

Mike

Message Edited by MikeS81 on 03-06-2009 03:52 PM
0 Kudos
Message 2 of 37
(3,954 Views)

You can use an invoke node, link it to the boolean(LED) and reinitialize to default. You can use a local variable and wire a false constant to it. Or you can use a property node, link it to the LED boolean and set the value to false. Just place it in the correc tpart of your code so that it changes back after the voltage is read and not before. Invoke node is probably your best bet.

 

 

 

Mike beat me 😞

Message Edited by for(imstuck) on 03-06-2009 08:54 AM
0 Kudos
Message 3 of 37
(3,948 Views)
I actually have a state machine sequence version that i couldnt figure out either, ill post the state machine version and if you could help me figure out the LED situation with that it would be awesome. The current program I have set up doesnt work because it says "case structure: selector values have wrong type"...
0 Kudos
Message 4 of 37
(3,939 Views)

Hi cmhand,

place the LED indicator outside the case structure, then you can selected the status in every state. Do you read everytime from the same hardware. I think you can read some states at ones.

 

Mike

0 Kudos
Message 5 of 37
(3,934 Views)
I dont have all the case frames made yet but ideally I am going to be checking ignition cold,acc cold, and 12v machine several times throughout the test but the way I have it setup is a separate LED for every time it tests that so on my front panel Im going to end up with like 10 LEDS for ignition cold, acc cold, 12v machine, etc when ideally I want just one LED for each of those three that will turn on when its being checked and then turn off when its not and then turn back on when its being checked again...also do you know why my current program wont run?
0 Kudos
Message 6 of 37
(3,930 Views)

Hi cmhand,

your program doesn't run, because there are some wrong cases in your case strcuture. You also get this information if you press the broken arrow. If you only want to use three LEDs, then place them outside the case strcture and connect the correct value for each case.

 

Mike

0 Kudos
Message 7 of 37
(3,918 Views)
Hey I know its saying that error but I dont know how to fix it...does it have to do with my frame 8 and the dynamic data wire???
0 Kudos
Message 8 of 37
(3,913 Views)

Hi cmhand,

it has to do with the cases where the text is marked red.

 

Mike

0 Kudos
Message 9 of 37
(3,905 Views)

It looks to be an issue with your mixing of enum and numeric values in your case structure. Notice "apply throttle" is in red at the top of the case structure. You may just want to get rid of all the wiring to the case structure to change cases and reset your enum constants.

 

 

GOD MIKE!

Message Edited by for(imstuck) on 03-06-2009 09:27 AM
0 Kudos
Message 10 of 37
(3,901 Views)