cancel
Showing results for 
Search instead for 
Did you mean: 

reset all controls by the program

Knappe
Member

reset all controls by the program

During my application I need to reset all the controls on my frontpanel.
I know I can do that with drop down menu in Labview.
But I need to do it in the program, without users action.
The second way, using nodes would be the solution. But because of the large number of controls it will take lots of time.
Does anyone knows a more elegant way?
7 REPLIES 7

Re: reset all controls by the program

CurrentVI'sPath + OpenVIReference + InvokeNode.ReinitializeAllToDefault

What you can't do is save the current values as default in the current
(running) vi. But reinitializing them is ok - oz

Knappe a écrit:

>During my application I need to reset all the controls on my
>frontpanel.
>I know I can do that with drop down menu in Labview.
>But I need to do it in the program, without users action.
>The second way, using nodes would be the solution. But because of the
>large number of controls it will take lots of time.
>Does anyone knows a more elegant way?
>
>
Highlighted
Knappe
Member

Re: reset all controls by the program

The first two steps I understand, but how do I create the invokeNode Rei....?
Greg_McKaskle2
Trusted Enthusiast

Re: reset all controls by the program

> CurrentVI'sPath + OpenVIReference + InvokeNode.ReinitializeAllToDefault
>
> What you can't do is save the current values as default in the current
> (running) vi. But reinitializing them is ok - oz
>

You can actually simplify this a bit more, if the invoke node is
unwired, then it automatically refers to the VI of the diagram it is on.
You can also set the defaults, but only in the edit version of LV, not
in an EXE, as this is an edit to the VIs and the change will not last
unless the VIs are saved.

Greg McKaskle

Re: reset all controls by the program

Find the "Invoke" Node in the "Application Control" palette of the
functions palette.
Put it on your diagram.
Right click on the yellow part of the node and choose "VI" in the
"Select VI server class" menu.
Left click on the white part of the node and select "Reinitialize all to
default".


oz

Knappe a écrit:

>The first two steps I understand, but how do I create the invokeNode
>Rei....?
>
>
Knappe
Member

Re: reset all controls by the program

Message contains an attachment
See attached is a screenshot of my settings.
Hope you can see it. Sorry for the german language.
My invoke node is not linked to anything, VI server class is "VI"
It`s not working at all. Wonder why. I am using labView 6.1.

Thanks for any help.
Dennis_Knutson
Knight of NI

Re: reset all controls by the program

It's not doing anything because you don't have an indicator wired to it and you are aren't reading the status. If you want to control setting to the defaults, right click on it and select "Change to Write". Then wire a true to the input.
Knappe
Member

Re: reset all controls by the program

That sound locical to me, but doesn`t work.
I think the "change to write" and the true to the input is OK. And needed.
But it still doesn`t work.
Hmh, maybe tomorrow I try it again. Its evening in germany allready.
Thanks for your help.

ALEX