The persistent System Register are used to store profile global
variables.
One usage is to store the product name when changing toolbox -
see Toolbox Switch example.
There is a total of 48 registers available of three types:
- Text registers - T0,T1,,,,T15
- Scalar registers - S0,S1,,,S15
- Logic / boolean registers - B0,B1,,,B15
The text register is available from the tag browser.
Note: The system register is always available and does not
require a tool declaration to be available - like the Data tools.
Example 1: Read Text Register T2
text = GetStringValue('Register.T2')
Example 2: Set Boolean Register B1
SetBoolValue('Register.B1',1)
|