set_limit_line
Create or edit a limit line on a spectrum analyzer to test a trace against upper or lower limits, setting points, margins and display, and reporting any values the instrument rejected.
Instructions
Create or edit a limit line. Give any of: displayed, type (upper/lower), trace, margin_db and margin_enabled, and points (replaces the whole point list; 1 to 10 points in ascending frequency order, equal frequencies make a vertical step, each with frequency_hz, amplitude_dbm and optional connected). The line is re-read afterwards; anything the instrument did not take is reported in 'warnings'.
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_limit_line"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | No | Limit line number, 1 to 6 (the 1000-series models have 1 to 4) | |
| type | No | upper: the trace must stay below the line; lower: above | |
| trace | No | Trace number (1-6) to test against the line | |
| points | No | Replace the whole point list: 1 to 10 points in ascending frequency order (equal frequencies make a vertical step) | |
| displayed | No | Show the line on the display | |
| margin_db | No | Margin in dB, -40 to 40 | |
| instrument | No | Which instrument to use (a name from list_instruments). Default: the `default` instrument, or the only one configured | |
| margin_enabled | No | Margin on/off |