::pulse::SetVariableValue

Sets the value of the specified variable.

Syntax
::pulse::SetVariableValue {variableName variableValue}
Type
Pulse Python API command.
Description
Sets the value of the specified variable. The listed variables must be defined in the process prior to running this command.
Inputs
variableName: The name of the variable.
variableValue: The value to be assigned to the variable.
Version History
2022.1

Example

#Load Pulse API
set api_dir $::env(ALTAIR_PULSE_API)
set tcl_dir [file join $api_dir "tcl"]
lappend ::auto_path $tcl_dir
package require pulse

::pulse::SetVariableValue vel 5.0