Contents - Index


$SaveVarInfo

 

The $SaveVarInfo directive will write variable information (e.g, guess values, limits, units, etc.) after a successful calculation in a variable information file having a file name extension of .VAR. Guess values will be updated before the .VAR file is saved.These .VAR files can be loaded with the $INCLUDE directive, with the Load button in the Diagram window, or with the load variable info button in the Variable Information dialog.  This directive can only be used in the Professional license.  This directive then provides similar capability as the Save button in the Diagram window. It is particularly useful for automatically saving a default set of values to serve as the inputs to a Distributable program.

 

The $SaveVarInfo directive has two forms.  If there is no filename following on the same line, the file name for the variable information file will be the same as the EES file name, but with a .VAR file name extension.  Distributable programs will look for and automatically load a .VAR file having the same parent name as the EES program in the executable program.

 

Alternatively, a string constant or string variable containing the name of a .VAR file can be supplied as a parameter following the $SaveVarInfo directive, e.g.,

 

H$='C:\EES\mydata.var'

$SaveVarInfo H$ /A

 

In this case, the variable information will be saved in the specified location.  By default, only variable information in the main program is written to the file.  If an optional /A is provided, variable information will also be written for Functions, Procedures, Subprograms and Modules that are being used in the program.

 

See also:

 

 Saving and Loading Diagram Inputs

 EES file types

 Variable Information

 Variable Information Files