cancelar
Mostrando resultados para 
Pesquisar então 
Você quer dizer: 

How to reset LED after pushing stop button?

Resolvido!
Ir para a solução

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
Mensagem 1 de 21
9.837Exibições
Could you attach a picture of the relevant code surrounding your boolean indicator please.


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

Mensagem 2 de 21
9.831Exibições
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
Mensagem 3 de 21
9.830Exibições
Solução
Aceita por xombox@seznam.cz

Hope this helps:

 

 

 

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
Mensagem 4 de 21
9.816Exibições

Thanks Harold,

 

that is what I was asking for.

 

Martin

0 Kudos
Mensagem 5 de 21
9.790Exibições

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
Mensagem 6 de 21
9.771Exibições

no problem happy to help

 

 

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
Mensagem 7 de 21
9.770Exibições

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
Mensagem 8 de 21
9.756Exibições

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

 

 

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
Mensagem 9 de 21
9.756Exibições

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
Mensagem 10 de 21
9.717Exibições