LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to reset LED after pushing stop button?

Solved!
Go to solution

Hello,

 

I`m using green LED vi for indicating whether the data were properly loaded. However, if I run the same labview program more times in row, then the green LED is still on because the "value that data were loaded properly" hangs there from previous session. Is it possible to reset all LED VIs after pushing STOP button (stopping labview program).

 

Thank you for answers.

 

0 Kudos
Message 1 of 21
(7,759 Views)
Could you attach a picture of the relevant code surrounding your boolean indicator please.


Never say "Oops." Always say "Ah, interesting!"

Message 2 of 21
(7,753 Views)
Yes, you can have a shutdown routine after the stop button is pressed that updates the values of front panel controls/indicators. If I have not understood the question correctly, post back and be sure to attach example code.
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 3 of 21
(7,752 Views)
Solution
Accepted by topic author xombox@seznam.cz

Hope this helps:

 

 

 

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
Message 4 of 21
(7,738 Views)

Thanks Harold,

 

that is what I was asking for.

 

Martin

0 Kudos
Message 5 of 21
(7,712 Views)

Hi Martin,

 

maybe you should think about re-designing your vi! Usually you initialize values (controls,indicators) at startup of the program, not at stopping it...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 21
(7,693 Views)

no problem happy to help

 

 

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
Message 7 of 21
(7,692 Views)

Harold Timmis wrote:

Hope this helps:


You should really try using local variables instead of value property nodes. Sometimes none of those are needed, see attached.

 

I agree with Gerd that it would make much more sense to reset at program start. In the above example the LED don't reset if the VI is aborted, for example.

0 Kudos
Message 8 of 21
(7,678 Views)

you could in the front panel initialze the LED to a false as default

 

 

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
Message 9 of 21
(7,678 Views)

OK,

 

based on your suggestions I set the default value by using property node. Don`t know how else I could this accomplish. Is that OK?

 

0 Kudos
Message 10 of 21
(7,639 Views)