07-24-2009 08:36 AM
Hello,
I have a VI with changing values when I click on start the value start with the defauts values, but when I stop my VI and I want to restart it the values are the last values in memories before I stop the VI, to solve it's problem I close my VI and I open again the program... it's not fun...
I would know if it exist a method to do this automatically, like if I click on the edit menu on "put in defauts values"...
Bye.
Solved! Go to Solution.
07-24-2009 08:44 AM
Hi leo2b,
you can use the "Resettodefault" method at the end of your vi.
See the attached example.
Mike
07-24-2009 08:51 AM
Mike's suggestion is best.
If the 'start value' needs to change, you could use local variables to set the initial values. But, this is not the preferred method.
07-24-2009 08:56 AM
One way is Edit -> Renitialise values to default
Keyboard shortcut in 8.2 is Alt E Z
It can also be done programmatically;
From the Application Control pane, drop "Vi server reference" - it will show as This Vi,
Drop an invoke node from the same pane, and wire the server reference to the reference input, and set the method to Default values . reinitialise all to default.
Rod.
07-24-2009 09:14 AM - edited 07-24-2009 09:21 AM
Thank you for your responses I will try your methods.
bye