Bind a control to a variable

A control is bound to a variable by drag & drop: grab the variable in the Solution Explorer and drop it on a control on the workspace. Only variables assigned to a protocol can be bound (see Add a variable).

The sig01 variable bound to controlsThe sig01 variable bound to controls

The behavior depends on the control type:

  • Gauge, Single-Signal, and Matrix display one variable — dropping another variable replaces the original one.
  • Graph, XY Graph, and Watch Table display multiple variables — every drop adds another series or row.

Each control also accepts only compatible variable types — an incompatible variable cannot be dropped on it:

ControlAccepts
Graph, XY Graph, Gaugenumeric scalar variables
Single-Signal, Watch Tablescalar variables including strings
MatrixMatrix variables only

Bindings are saved with the project and restored automatically when it is opened.

Which control for what

Each control has its own chapter with a detailed description of its settings:

  • Graph — signal time course with multiple series and vertical axes,
  • XY Graph — one signal against another: hysteresis, Lissajous, characteristic curves,
  • Gauge — an instantaneous value as a radial or linear indicator with zones,
  • Single-Signal — a single value with a caption and unit, it can also write to the device,
  • Watch Table — a table of several variables, it can also write to the device per row,
  • Matrix — an array, curve, or map from a Matrix variable, including cell calibration.

All controls have a configurable refresh period (Refresh time, default 250 ms) so they do not overload the UI with fast data.

Next

Let's start with the time course — the Graph.