set_trace
Configure a spectrum analyzer trace by selecting it, setting its type, live/hold and display state, plus global averaging; warnings report any settings the instrument rejected.
Instructions
Set trace configuration: select the current trace, and for one trace set its type (write, average, max_hold, min_hold), update state (live or view/hold) and display state, and set the global average count (1-999) and average type. Everything is re-read afterwards and anything the instrument did not take is reported in 'warnings'. Changing a trace type or the averaging restarts that trace's hold/average. To restart hold or averaging without changing settings use restart_trace.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "set_trace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Trace type of `trace`: write (clear/write, live), average, max_hold or min_hold | |
| trace | No | Trace (1-6) that type, update and display apply to | |
| update | No | Update state of `trace`: true = live, false = view/hold (frozen) | |
| display | No | Show (true) or hide (false) `trace` | |
| instrument | No | Which instrument to use (a name from list_instruments). Default: the `default` instrument, or the only one configured | |
| average_type | No | Average type (global): voltage, power or log | |
| average_count | No | Average count, integer 1-999. Global: shared by every trace of type average | |
| selected_trace | No | Make this trace (1-6) the current trace (:TRACe:SELect) |