User Variables

Jump to: navigation , search

User Variables

The User Variables Panel is used to create, edit, and delete user generated variables.

Full screen point uservariables.png

Benefit

Variables can be used for several purposes, one of the more common is counters and flags to control the flow of logic in a task. Use the Set To node to set variables, and use the Do If and Wait Until nodes to make decisions based on the value of the variables.

Inside the Panel

At the creation of a task the User Variables Panel will be empty.

User vari blank.PNG


Once a variable has been added it will show in the Panel along with its current value or state. It is possible to set the value of the variable from the User Variable Panel by clicking on Set Value and setting the desired value.

Succes Bad Count.PNG

Adding a User Variable

Click +Variable to create the first user defined variable.

User vari edit.PNG
  • Name - User defined name
  • Data Type - Integer, Float, Boolean, String, Length, Mass, Time, Linear Force, Torque, Translational Speed, Rotational Speed
  • Data Source - Source of the default value. Reference Another Item will take the value of the other signal or variable selected. The two must be of the same data type.
  • Default Value - If "Value" was selected as the Data Source, this is the initial value for the variable unless otherwise assigned.
  • Referenced Item - If "Reference Another Item" was selected as the Data Source, select the variable or signal to be used as the default value.


Once all fields are specified, save can be selected. The saved User Variable will appear along with its current value. Immediately after creation this value will be the Default Value that the user set when adding the variable. A User Variable can be edited by clicking on the variable name.


Succes Count Var.PNG


Any subsequent variables can be added by clicking on the + at the top right corner of the panel and following the same instructions as above.