SetScalarValue

Sets the values of the specified process variables.

Syntax
SetScalarValue(variable_names,variable_values)
Type
Pulse OML API command.
Description
Sets the values of the specified process variables. The listed variables must be defined in the process prior to running this command.
Inputs
variable_names
The string containing space-separated variable names.
variable_values
The new values of the specified variables are in the form of a single-column matrix. The values must be listed in the order corresponding to the order of names specified in the variable_names string.
Example
To set the value of variable Var1 to 5.0 and the value of variable Var2 to 10.0:
var_names = 'Var1 Var2'
var_values = [ 5.0; 10.0 ]
SetScalarValue(var_names,var_values)
Version History
2021.2