Onion wrote:
>
> When I close a VI, I would like it retain its present value
> automatically such that I have them when I open it the next time. (It
> seems that they alway return to their default values when I open it
> and I don't want manually set them to default before I quit the VI).
> Thanks in advance.
I have an example on my web site that works in a way very similar to
the NI example previously suggested to you. One main difference is that
mine is designed as a sub-vi that can be quickly added to any existing
VI, whereas the NI example show you how to do it but requires that you
copy the relevant code into you VI. In any case, the results and the
mechanisms are virtually the same, but you are welcome to try mine out.
Go to www.originalcod
e.com, then select Example Code, Utilities, and
Program Downloads, then look for Save Front Panel Control Defaults.
Regards,
Dave
-------------------------------------------------------------
David Thomson 303-499-1973 (voice and fax)
Original Code Consulting dthomson@originalcode.com
www.originalcode.com
National Instruments Alliance Program Member
-------------------------------------------------------------
Research Scientist 303-497-3470 (voice)
NOAA Aeronomy Laboratory 303-497-5373 (fax)
Boulder, Colorado dthomson@al.noaa.gov
-------------------------------------------------------------