setVariableValues

Sets the value of the specified variable.

Syntax
setVariableValues (variableNames, variableValues , variableType)
Type
Pulse Python API command.
Description
Sets the value of the specified variables. The listed variables must be defined in the process prior to running this command.
Inputs
variableNames: The names of the variable.
variableValues: The values to be assigned to the variable.
variableType: The type of the variable.
Version History
2022.1

Example

#Load Pulse API
apidir = os.environ['ALTAIR_PULSE_API']
path = os.path.join(apidir,"python")
sys.path.append(path)

import pulse

pulse.setVariableValues(["a", "b"], [5.0, 10])