Contents - Index
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. 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 for 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.,
$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.
Saving and Loading Diagram Inputs
EES file types
Variable Information Files