Watch Table — a table of variables

The Watch Table shows several variables in a table — every variable dropped on the control adds another row. It accepts scalar variables including strings.

Watch Table controlWatch Table control

After the communication starts the Value and Time columns are empty and fill with the first values read from the device. The table always shows only values read from the device — a written value appears only after the next read.

Columns and settings

  • Name, Value, Unit, and Time (the time of the last change) — values are formatted by the variable's presentation,
  • Write — the row's write-mode checkbox and the Write button (writing to the device, see below),
  • Read — the Read button, only in rows whose variable is on an OnRequest event; pressing it reads the value from the device once (it turns red on failure).

The Columns context menu toggles the visibility of all six columns; column widths can be adjusted by dragging, their order by dragging the headers, and the headers offer filtering. The column layout (order, widths, and visibility) is saved with the project and restored after it is reopened.

  • Refresh ms — the display refresh period (default 250 ms).

Per-row writing to the device

Ticking the checkbox in the Write column switches the row into write mode: the Value cell turns into an edit box tinted orange. An edited value is pending (tinted yellow) and is sent by the row's Write button; with Write on Enter on it is sent right on Enter. An invalid value or a failed write tints the cell red.

The Sine 1 period row in write mode — pending value and the Write buttonThe Sine 1 period row in write mode — pending value and the Write button

A row in write mode does not overwrite its value with incoming data (the communication and the other rows keep running). Unticking it discards the pending edit and the row shows the last read value until the next read.

The checkbox is enabled only for numeric variables the protocol allows to be written, and writing works only while the communication is running — the conditions are described in Writing values to the device. Write mode is saved per row with the project.

Context menu

Watch Table context menuWatch Table context menu

  • Lock — locks the control's position and size,
  • Move up / Move down — moves the selected row by one place; the row order is saved with the project (enabled only for a selected row that can move that way),
  • Remove — removes the selected variable from the table,
  • Write on Enter — for the whole table: in write mode Enter sends the value at once (off by default, enabled only while some row is in write mode),
  • Columns — column visibility.

Next

Maps and calibration data are displayed by the Matrix control.