LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Make current values defalut while a vi is running in LabView.

So, is it possible to make the current values of a vi's controls default while running the vi? I have a pretty sophisticated vi, with custom menus and all, and I'm trying to set it up so it can remember which channels to use, since it varies from instrument to instrument. I wanted to just store this info in the default values of the controls, but LabView doesn't seem to like it. I was trying to avoid any config files, so is there a way to make the current values of a control default while the vi is running?

Mike
mje1@u.washington.edu
0 Kudos
Message 1 of 4
(2,716 Views)
Here is link to one example
http://zone.ni.com/devzone/devzoneweb.nsf/opendoc?openagent&2C14132F826F839F8625683A000B0B99&cat=DB5863CD70417B07862567930070A058

Attached is another version of doing same thing. Hope this helps.

A Rafiq
National Instruments
http://www.ni.com/ask
0 Kudos
Message 2 of 4
(2,716 Views)
Thanks, I managed a similar workaround by storing the flatened data in an ini file.

Mike
0 Kudos
Message 4 of 4
(2,716 Views)
One more time, make values default only works in DEVELOPMENT enviroment, VI server property won't work if you make an executable (*.exe) file. The reason is you can't edit a diagramless vi. If you are not going to make an executable from your vi, you can use this vi server capability.
Hope this helps
0 Kudos
Message 3 of 4
(2,716 Views)