8.8 Watch Table

The X2Cscope Watch Table lets you read and write individual variable values on demand. Unlike scope channels, the watch table fetches values only when requested, making it suitable for configuration parameters and slow-changing values.

Overview

The watch table displays a list of selected variables with their current values. This is similar to a debugger's watch window, but operates while the target continues running.

Variables added to the watch table cannot be selected as data sources for the time plot or the terminal.

Figure 8-4. X2Cscope Watch Table

Adding Variables

Select variables using the symbol browser as described in Browsing and Selecting Symbols.

Variables can be reordered by clicking and dragging the move handle in the leftmost column.

Reading and Writing Variables

The Watch Table reads and writes variables only on demand.

  • Under Actions, click to read the variable value from target. The Value will be displayed in the next column.
  • Under Value, double-click to edit value and then press Enter or click elsewhere to write the value to the target.

After a write operation, the cell will turn green to indicate success or red to indicate failure. In case of failure, check the Messages view for error details.

Batch Read or Write Multiple Variables

Batch operations allow reading or writing multiple variables in sequence, useful for configuring test scenarios or saving/restoring configurations. Multiple rows can be selected using checkboxes in the leftmost column. When batch write mode is enabled, edited cells turn yellow (pending), then green (success) or red (failure) after writing.

For detailed instructions on batch operations, see Section Read and Write Variables in Firmware in the DVRT Protocol documentation. The interface and procedures are identical for X2Cscope.

Automatic Updates (Live Polling)

X2Cscope supports automatic periodic updates for watch variables. Enable the Live checkbox for variables you want to monitor, configure the sample inter val and click the Live toolbar button to start periodic updates.

For detailed instructions on live updates, see Live Updates and Scaled Values in the DVRT Protocol documentation.

Scaled Values

The Watch table can calculate scaled values using custom Scale and Offset factors:
Scale Value = Raw Value * Scale + Offset
This is useful for converting raw values to engineering units (e.g. ADC counts to voltage) or applying calibration offsets.

For detailed instructions on scaled values and examples, see Live Updates and Scaled Values in the DVRT Protocol documentation.