Supported Syntax in Model Parameter Files

Format text (.txt) files to the correct syntax before you apply them to a simulation model.

The text files must be in the following format.
parameter1 delimiter value1
parameter2 delimiter value2
...
Note Text files cannot contain any column headers.
The following table describes valid entries for the elements of a text file.
Note For examples of valid model parameter text files, refer to the text files in the <Common Data>\Examples\Stimulus Profile\Engine Demo\Stimulus Profiles\Update Model Parameters directory.
Element TypeProcessing NotesValid Entries
parameter

Valid parameters begin with a letter and contain only alphanumeric characters or underscores.

Enclose a parameter whose expression does not fit these conventions in curly braces ({ }).

For example, represent a block parameter that includes the model and block names separated by slashes in the following way: {model1/sine/parameter1}.

  • An expression of a model parameter, as displayed on the Model Parameter configuration page in System Explorer.
  • An alias to a model parameter path.
  • The command subscript to call another model parameter file.
  • The name of a temporary variable.
    Note You can use temporary variables elsewhere in the same parameter file, but they are local to that file.
delimiter
  • A Tab entry, by pressing Tab on your keyboard.
  • An equals sign (=).
  • A comma (,).
value

Regardless of localized setting, periods (.) in a value are processed as decimal separators and commas (,) are processed as a thousands separator.

In the VeriStand Editor, the localization setting is considered when displaying values. This may lead to situations where values that contain a period in the file will be displayed with commas.

  • A numeric constant (double).
  • A matrix in row-major form with the following element types.
    • Numeric constants (doubles).
    • Fractions of the form x/y, where x and y are doubles.
    • A temporary variable that represents a scalar value.
    Note For example, if a and b are declared variables, then [1 -2/3; a b] is a valid 2 x 2 matrix.
  • The constants Infinity and -Infinity.
  • An expression that follows the VeriStand expression syntax.
  • A path to another model parameter file.
    Note A path is only valid if the corresponding parameter entry is subscript.