LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

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?
0 Kudos
Message 1 of 8
(2,739 Views)
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?
>
>
0 Kudos
Message 2 of 8
(2,739 Views)
The first two steps I understand, but how do I create the invokeNode Rei....?
0 Kudos
Message 3 of 8
(2,739 Views)
> 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
0 Kudos
Message 4 of 8
(2,739 Views)
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....?
>
>
0 Kudos
Message 5 of 8
(2,739 Views)
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.
0 Kudos
Message 6 of 8
(2,739 Views)
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.
0 Kudos
Message 7 of 8
(2,739 Views)
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
0 Kudos
Message 8 of 8
(2,739 Views)