11-13-2009 03:31 PM
11-13-2009 04:11 PM
There is a property invoke node for the vi class 'make current values default'. This is only available in edit mode.
The professional way would be to store all data in a file and load it when running the vi. Check out on OpneG.org for some tools that help you saving the data into a config file.
Felix
11-13-2009 04:11 PM - edited 11-13-2009 04:14 PM
Yup, choose an invoke node, right click select class->viserver->vi
then left click and choose make current values default. Just put this at the end of your code before the program closes
Edit: I lost the race to the answer:)
Here is a link though to a nugget ben wrote about setting default values using the config file method metioned above. Some of it is a bit in depth but it gives you an idea of the way to do it if you are not running the VI in edit mode.
11-13-2009 04:40 PM
11-13-2009 04:53 PM
You have a similar methode for individual controls. Under 7.1 you get it via right click data->operations make current value default. There is a property node for this as well. Furthermore use the link from (for)iamstuck...
Felix
11-13-2009 05:03 PM - edited 11-13-2009 05:04 PM
I just opened up my LabVIEW 2009 environment and was surprised that the method for individual controls isn't there! (Someone correct me if I missed it somehow) I guess I haven't used that one in a while. I saw that there is a property, however, but you need the VI scripting license in order for it to be visible.
Edit: (Ignore that I called it a method when it's a property)
Kind of strange... it seems like a normal sort of thing to be adjusting, rather than the typically more advanced hidden stuff.
For what it's worth...
Jim
11-13-2009 05:15 PM
It is scripting/private in 7.1 as well
Felix