Bind variable to control element
Now that you have made several process variables from a communication channel known in the project, you can focus on the actual display task. For example, you can place a control element of type NumericVarOut on a view and bind a variable to the control element in order to display the variable value in an output field in the application.
How to bind a process variable to a control element:
-
Open a page in the Designer, e.g. "MachinePage.html".
-
Place a control of type NumericVarOut on the page.
The control element is created on the page and appears as marked.
-
In the VariableName property, define the variable whose values are to be displayed by the control element:
-
Expand the "Variable" property category in the Properties window.
This category contains the VariableName property.
-
Click on the
button next to the VariableName property.The Select variable dialogue appears.
-
Navigate through the tree to the desired variable, select it and confirm your selection by clicking OK.
-
Confirm with OK.
-