08-20-2012 09:50 AM
Hi,
I was wondering if someone could help me solve a small issue in a test bench software I am trying to develop. I have attached a section of my code in which the problem is visible. I have a case structure that is triggered by a 'Push Button'. I want the TEST RUNNING LED to stay ON until the end of the execution of the case structure (True condition) and turn off once it is completed. But the LED fails to turn off and remains ON. Is there anything I can do in the False condition to turn the LED off when the code isn't running. Please note that to run the program you will need to 'Run Continuously'. I want the LED to turn off once the 'Result' is obtained so that the operator of the software can know he is free to run the next test. But now when the 'Start Test 2' is executed after 'Start Test', the LED remains ON.
It might be a simple solution which I may be unfamiliar with, but forgive me, I'm a new Labview user and I couldn't find a solution to this online.
Thank you.
Regards,
DPac
Solved! Go to Solution.
08-20-2012 10:02 AM
08-20-2012 10:08 AM
I can't see your code, but from what you explained, Property Node sounds like solution to your problem. Just create a property node for LED and make the value property flase outside of the case stucture.
08-20-2012 10:21 AM
GerdW has the solution you want. But you really should not design VIs that have to use the Run Contiuously. While loop with an Event Structure would serve you much better.
08-21-2012 03:08 AM
Hi GerdW,
I'll try out what you have suggested and see if I can get it to work.
Cheers
DPac
08-21-2012 03:26 AM
Hi crossrulz,
Cheers for your suggestion mate, I'll change it to a while loop.
Regards,
DPac
08-21-2012 03:27 AM
Thanks GerdW, your solution worked!
03-26-2014 07:44 AM
hello can u send me the VI how to turn off the LED when it is in false case and turn on when it is in true case. thankyou. your help are much appreciated
03-26-2014 07:48 AM - edited 03-26-2014 07:50 AM
03-30-2014 03:33 PM
THANKS. youre awesome.