get_math_state
Retrieve current math trace settings from a RIGOL oscilloscope, including channel, display, operator, and sources for each trace. Read-only operation that returns detailed configuration without altering the display.
Instructions
Return the math trace settings (channel, display, operator, sources).
With channel given (1-4), that trace's settings are returned flat. With channel omitted, every math trace is returned under channels, keyed by the trace number as a string: {"channels": {"1": {...}, ..., "4": {...}}}.
Only the keys that mean something for the current operator are read: scale and offset_v for the arithmetic operators, lsource1 and lsource2 for the logic ones, an fft dict for the fft operator and a filter dict for the filter ones. With the fft operator and search_enabled true, the instrument's own peak table is returned in peaks, each entry having index, frequency_hz, amplitude and amplitude_unit (lines that could not be parsed are returned raw and noted in peak_warnings).
This is read-only and never changes the display. It costs a few queries per trace (about 20 for an fft trace).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel | No |