SetVariableValues
Sets the value of the specified variable.
- Syntax
SetVariableValues (variableNames, variableValues)
- 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.- Version History
- 2022.1
Example
--Load Pulse API
apidir = os.getenv(“ALTAIR_PULSE_API”)
mymodulepath = apidir..”/lua”
package.path = package.path..mymodulepath
package.path = package.path.."\\?.lua"
local pulse = require "pulse"
pulse.SetVariableValues(["a", "b"], [4.0, 12])