Sure. What I did was use the File I/O -> Configuration File VIs to
create a configuration file which contained the current values of
certain parameters. That way, if the system was taken down and then
brought back up, this file was read, and the parameters returned to
their last values.
To do this, use the configuration files to open a configuration file,
and then write the appropriate types into the file. The file consists
of sections and keys, similar to a windows .ini file. The file will
look like this:
[Initialization] <- section
Start = True <- keys
Done = False
Rate = 1000
Filename = myfile
You can group several keys in the same section. At the start of your
VI, you need to read these values out of the file to initialize your
controls
and/or indicators to these values. The VIs to do this are in
the same location, just read instead of write.
Mark
In article <39a16fbe.175475@news.amc.uva.nl>,
e.huigen@student.tudelft.nl (erwin) wrote:
> Is it possible to save the settings of front panel conrols to a file,
> in order to create several 'presets'
>
> An option is to save the vi under different names with different
> default values, but is there a more elegant way.
>
> Thanks,
>
> Erwin.
>
Sent via Deja.com http://www.deja.com/
Before you buy.