set_peak_criteria
Set peak search criteria on a spectrum analyzer by defining threshold and excursion values or switching either to automatic mode; changed values are returned in warnings.
Instructions
Set the peak search criteria. Giving threshold_dbm or excursion_db turns that criterion's automatic mode off (verified on the instrument); threshold_auto / excursion_auto true switches it back to automatic. Values the instrument changed are 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_peak_criteria"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instrument | No | Which instrument to use (a name from list_instruments). Default: the `default` instrument, or the only one configured | |
| excursion_db | No | Peak excursion in dB, 0 to 100; a peak must rise this far above the valleys beside it | |
| threshold_dbm | No | Peak threshold in dBm, -200 to 30; a peak must be above it | |
| excursion_auto | No | Automatic excursion on/off (not true together with excursion_db) | |
| threshold_auto | No | Automatic threshold on/off (not true together with threshold_dbm) |