set_emi_limit_line
Create or edit an EMI limit line by setting its type, trace, margin, and up to 12 frequency/amplitude points; copy points from another line or build them from a trace.
Instructions
Create or edit an EMI limit line. EMI module must be active (select_instrument_module). Give any of: displayed, type (upper/lower), trace, margin_db and margin_enabled, points (replaces the whole point list; 1 to 12 points in ascending frequency order, equal frequencies make a vertical step, each with frequency_hz, amplitude_dbm and optional connected), copy_from (copy another line's points into this one) or build_from_trace (build points from a trace's current data). copy_from/build_from_trace are sent first, then the other settings. 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_emi_limit_line"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | No | Limit line number, 1 to 6 (EMI mode has only 3 traces to test against, see 'trace') | |
| type | No | upper: the trace must stay below the line; lower: above | |
| trace | No | Trace number to test against the line (EMI has only 3 traces; the manual documents 1-6) | |
| points | No | Replace the whole point list: 1 to 12 points in ascending frequency order (equal frequencies make a vertical step) | |
| copy_from | No | Copy another limit line's points into this one (sent before points/other settings) | |
| 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 | |
| build_from_trace | No | Build this line's points from a trace's current data (sent before points/other settings) |