11-14-2006 10:20 AM
11-14-2006 11:05 AM - edited 11-14-2006 11:05 AM
Message Edited by Will.D on 11-14-2006 12:05 PM
11-14-2006 11:51 AM
11-14-2006 12:31 PM
11-15-2006 04:40 AM
Hi,
absolutely correct - you cannot use the Make Current Values Default when the vi is reserved for running.
What you need to do is get a handle to the front panel, then get the controls[] array from that reference.
Then you can cycle through that array and convert the values to an xml format, or an .ini file as you require (or even the registry).
You'd therefore need a load up section to the vi to handle the re-instating of the values on the next run of the vi.
THis technique is mentioned here but no vi's are provided :
http://zone.ni.com/devzone/cda/tut/p/id/3964
The alternative is described here, where you effectively launch your vi from another one using vi server, that way you can get access ot the edit time version of the vi.
http://zone.ni.com/devzone/cda/epd/p/id/1173
Hope that helps
Sacha Emery
National Instruments (UK)
11-15-2006 04:58 AM
Thanks everyone for all the suggestions so far.
Sacha, do your methods work with a built application ?
Aaron
11-15-2006 07:49 AM
11-15-2006 08:03 AM
11-15-2006 10:27 AM