UpdateModelParametersFromFile.AllowTemporaryVariables Property
- Mise à jour2023-02-21
- Temps de lecture : 3 minute(s)
Gets or sets a value indicating whether to allow temporary variables in the source file specified by FilePath.
Namespace:
NationalInstruments.VeriStand.StimulusProfileDefinitionApiAssembly: NationalInstruments.VeriStand.RealTimeSequenceDefinitionApi (in NationalInstruments.VeriStand.RealTimeSequenceDefinitionApi.dll) Version: 2013.0.0.0 (2013.0.0.0)
| Visual Basic (Declaration) |
|---|
Public Property AllowTemporaryVariables As Boolean |
| C# |
|---|
public bool AllowTemporaryVariables { get; set; } |
| Visual C++ |
|---|
public: property bool AllowTemporaryVariables { bool get (); void set (bool value); } |
Property Value
true (True in Visual Basic) to allow temporary variables in the source file. The default value is false (False in Visual Basic).
Remarks
For example, the following snippet defines a temporary variable, tempX, and then uses tempX in an expression that defines a model parameter value:
tempX 0.5
{parameter} 10 * tempX
If you enable this property, this step assumes any keys in the source file specified by FilePath that do not exactly match a model parameter name or an alias defined in the AliasFile are temporary variables. If true (True in Visual Basic), you will not receive error messages for variables that do not map to model parameters. Instead, the step simply discards the corresponding value when updating model parameters. If true (True in Visual Basic), this property also makes model parameter names and alias names case-sensitive. |