06-27-2007 03:59 PM
06-27-2007 04:07 PM
06-28-2007 07:22 AM
06-28-2007 09:07 AM
06-29-2007 07:59 AM
06-29-2007 08:07 AM
Just a thought i have never used it but it may be worth a look is the "Make current values default" Invoke node. Open a VI reference to the panel where the controls / variables are, and then use an Invoke node to set the present values to default before closing the VI down. The only thing is that you will have to save before you exit etc etc.
As i say, i have never used them personally but may be worth a look.
Craig
06-29-2007 08:28 AM
06-29-2007 09:35 AM
06-29-2007 12:35 PM
@craigc wrote:
Just a thought i have never used it but it may be worth a look is the "Make current values default" Invoke node. Open a VI reference to the panel where the controls / variables are, and then use an Invoke node to set the present values to default before closing the VI down. The only thing is that you will have to save before you exit etc etc.
As i say, i have never used them personally but may be worth a look.
This doesn't work well for runtime defaults. "Make current values default" is an edit only operation, that means the VI you want to invoke this method on can't be running nor reserved for running. So you would have to have another independant VI that takes over, waits until the original application has stopped executing, then invokes that method in the VIs inside the original application, and also then invokes the safe method for those VIs too, but the safe method is not operational in the runtime engine. So all in all a very complicated exercise that does not even work in an executable.
Go for INI files! Registry is a possibility but you should really know what you do when doing something with the registry and it is also a Windows only feature so why limit yourself here if it is not necessary.
Rolf Kalbermatter
07-01-2007 05:49 AM