Update User Variables

In Connect, the Update segment's user variable properties are set by the VariableAction and VariableVal attributes. The VariableAction attribute defines how the VariableVal attribute will be applied to the user variable.

Syntax

Astrogator <Satellite Object Path> SetValue <Attribute Path>.Update.UserVariables.<Variable>.VariableAction {Value}

Astrogator <Satellite Object Path> SetValue <Attribute Path>.Update.UserVariables.<Variable>.VariableVal <Value> [<Unit>]

Description

The following table describes the valid values for the VariableAction attribute:

Value Description
Add value Add the quantity entered for VariableVal to the current value for this variable.
Subtract value Subtract the quantity entered for VariableVal from the current value for this variable.
Set to new value Replace the current value for this variable with the quantity entered for VariableVal.
No change in value Leave the current value for this variable unchanged (ignoring any quantity that may be entered for VariableVal).

For the VariableVal attribute, enter a numerical value and unit, if appropriate.

Example

Astrogator */Satellite/Satellite1 SetValue SegmentList.Update.UserVariables.MyVar1.VariableAction Add value

Astrogator */Satellite/Satellite1 SetValue SegmentList.Update.UserVariables.MyVar1.VariableVal 5

STK Programming Interface 11.0.1