LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reinitialize all to default

Hi,

I have a vi with many objects: multicolumn listbox, check boxes, numerical controls, combobox, etc...

When I run my vi, first I have an invoke node to that vi with the property reinitialize all to default. All objects in my front panel reinitizalize to his default value but my numercial control doesn't take his default value (disabled and grayed) and my multicolumn listbox isn't empty and by default his value must be empty. Why it happens?

All the controls reinitialize to his default values and that ones not....


Thanks,

ToNi.
0 Kudos
Message 1 of 3
(2,895 Views)

ToNi,

The reason the reinitialize all to default doesn't affect these attributes is that they are not values.  The attributes you describe (the enabled state of a control and the items in a listbox) are properties, not values.  There is no default for the properties of a control.  Your best bet is probably to set the properties that you want in an initialization step at the beginning of your program.  You could also call the Revert VI method, however this requires that the VI be in edit mode, and therefore it must be called from a separate VI while the main VI is not running.  At one point OpenG had some Configuration File utilities which had routines for setting default values, I don't remember if they also had an option for saving and reloading properties.  Unfortunately, I can't seem to find them right now, but you could look around.  OpenG.org would probably be the best place to start.

 

Regards,

Ryan K.

0 Kudos
Message 2 of 3
(2,874 Views)
If you want to save properties, you can try having a look at property saver.

Message Edited by tst on 08-05-2005 02:05 PM


___________________
Try to take over the world!
Message 3 of 3
(2,866 Views)