Ariel wrote:
> Does Labview 7 have an easy way allow the user at runtime to change
> the default values of controls? So the user has to enter it once and
> labview 'remebers' it next time it's run?
>
> So far in 6.1 Labview makes you write some .ini file it writes to,
> then reads from. or have some nature of 'wrapper' .vi that can stop
> the main .vi and use the save current values as default option.
>
> Does Labview 7 have an easier solution?
Ariel,
On my web site, I have examples of two of the suggested methods for
dealing with this. The Save Front Panel Defaults program is a
convenient way of using VI server to save the front panel control
defaults after the program is over. All you need to do is insert one VI
at the end of your main pr
ogram.
There is also a set of Configuration File VIs that describe one way
to write .ini files that helps minimize maintenance issues. It still
takes a good bit of programming to implement, but once you have the main
structure, it is pretty easy to add more parameters.
Finally, as Jean-Pierre said, OpenG has some good tools for config
files that are even more automated than mine.
Regards,
Dave
-------------------------------------------------------------
David Thomson 303-499-1973 (voice and fax)
Original Code Consulting dthomson@originalcode.com
www.originalcode.com
National Instruments Alliance Program Member
Certified LabVIEW Developer
Certified Instrument Driver Developer
-------------------------------------------------------------
Research Scientist 303-497-3470 (voice)
NOAA Aeronomy Laboratory 303-497-5373 (fax)
Boulder, Colorado
dthomson@al.noaa.gov
-------------------------------------------------------------
There are 10 kinds of people: those who understand binary,
and those who don't.