03-06-2009 08:48 AM
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.
03-06-2009 08:51 AM - edited 03-06-2009 08:52 AM
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
03-06-2009 08:54 AM - edited 03-06-2009 08:54 AM
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 😞
03-06-2009 09:01 AM
03-06-2009 09:06 AM
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
03-06-2009 09:10 AM
03-06-2009 09:15 AM
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
03-06-2009 09:23 AM
03-06-2009 09:26 AM
Hi cmhand,
it has to do with the cases where the text is marked red.
Mike
03-06-2009 09:27 AM - edited 03-06-2009 09:27 AM
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!