Programming Reference / Math / Get Variable


Get Variable allows you to select a user defined Variable from the Resources list of variables and assign it as the operand to an instruction. The following example will show you how to create the variable “Motor Speed” which is shown here.

Creating a Variable

When you click the word “Variable” in the entry field, the Variables dialog will be displayed for you to select from.
Once we click the “Create New” button, the Variable dialog appears. In this example we enter the name and select a data type and then click “Create”. This is where you may choose to allow this variable to be accessible to the API that is available to you. Choosing none will ensure it cannot be accessed later unless you return to this drop-down
Now that the variable has been created, check the check box to select the item then click the “Select “button to assign it to the operand.