set_amplitude
Configure spectrum analyzer amplitude settings such as reference level, attenuation, preamp, scale, units, and impedance; out-of-range values are clamped and changes reported in warnings.
Instructions
Set amplitude parameters. The power unit is applied first, so reference_level is interpreted in the new unit. Manual attenuation_db turns automatic attenuation off. Out-of-range values are clamped by the instrument; the settings are re-read afterwards and anything it changed 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_amplitude"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preamp | No | Preamplifier on/off | |
| instrument | No | Which instrument to use (a name from list_instruments). Default: the `default` instrument, or the only one configured | |
| power_unit | No | Power unit; set before the reference level | |
| scale_type | No | Y scale type | |
| attenuation_db | No | Manual input attenuation, integer dB 0 to 51; turns automatic attenuation off | |
| reference_level | No | Reference level in the power unit in effect after this call (power_unit if given, otherwise the current unit). In dBm the instrument accepts -100 to 30; other values are clamped | |
| attenuation_auto | No | Automatic attenuation on/off (not with attenuation_db) | |
| scale_per_div_db | No | Scale per division in dB (0.1 to 20) | |
| input_impedance_ohm | No | Input impedance in ohms (50 or 75; 75 is a correction for a 75 ohm source) | |
| reference_level_offset_db | No | Reference level offset in dB (clamped to +-327.6) |