As you found out, you can't save the default values in run mode, because
that's an edit operation.  You would be changing the way the VI is
stored on disk.

Even if it were possible, you might not want to store user values as
part of your source code.  Whether or not you are not using formal
source code control, it's useful to know when a VI has changed, so it's
better to store user data somewhere else.

There are some excellent (and free!) OpenG Tools for saving
configuration items like this.  http://openg.org

Jason Dunham
SF Industrial Software, Inc.

-----Original Message-----
From: Yang Yang [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 22, 2004 5:07 PM
To: [EMAIL PROTECTED]
Subject: Make current values defaults

Dear List,

How to use VI's "Make Current Values Defaults" method inside of program?


I just want to call and open a subVI, let the user modify some control
values, and when the subVI closes, set the control changes to default
values. I think the process is in run mode. "Make current values
defaults"
only works in edit mode? So how to do it?

Thanks

yang


Reply via email to