measure
Runs a one-shot spectrum-analyzer acquisition for channel power, OBW, ACPR, TOI, CN, harmonics, or time power, then restores prior settings and generator output even on errors.
Instructions
One-shot measurement that leaves the instrument as it found it: from spectrum analyzer mode it saves the frequency, bandwidth and sweep settings and the tracking generator output (entering a measurement switches it off), enters the measurement (channel_power, time_power, obw, acpr, toi, cn or harmonics) with the given parameters, READs the result, and ALWAYS (even on errors) exits to spectrum analyzer mode, restores the settings and the generator and verifies. With the requested measurement already active it only reads and puts any parameters you changed back. It refuses when the instrument is not in spectrum analyzer mode and the requested measurement is not the active one (use exit_measurement first). Takes the measurement's averaging time.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"measurement": "<measurement>"
},
"name": "measure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xdb | No | obw only: x dB level in dB, -100 to -0.1 | |
| preset | No | Preset the measurement's parameters when entering (default true) | |
| average | No | Measurement averaging on/off | |
| percent | No | obw only: occupied power fraction, above 0 up to 1 (0.99 = 99 %); the instrument clamps to 0.9999 | |
| offset_hz | No | acpr or cn: offset of the adjacent channel (acpr) or of the noise (cn) from the carrier, in Hz, 0 or more | |
| timeout_s | No | Seconds to wait for the result (default 30, 1-600); READ waits for the measurement, including its averages | |
| instrument | No | Which instrument to use (a name from list_instruments). Default: the `default` instrument, or the only one configured | |
| measurement | Yes | ||
| offset_side | No | acpr only: which adjacent channels to measure | |
| average_type | No | Average type | |
| left_limit_s | No | time_power only: left limit in s, 0-0.01 (10 ms) | |
| sweep_time_s | No | harmonics only: sweep time in s, 0.001-100 | |
| average_count | No | Averages, integer 1-999 (manual range) | |
| right_limit_s | No | time_power only: right limit in s, 0-0.01 (10 ms) | |
| fundamental_hz | No | harmonics only: fundamental frequency in Hz | |
| average_control | No | Average termination control | |
| harmonics_count | No | harmonics only: number of results including the fundamental, integer 2-10 (the preset is 2) | |
| noise_bandwidth_hz | No | cn only: noise bandwidth in Hz | |
| carrier_bandwidth_hz | No | acpr only: carrier (main channel) bandwidth in Hz | |
| integration_bandwidth_hz | No | channel_power, acpr or cn: integration bandwidth in Hz (channel_power: clamped by the instrument to 100 Hz..3.61 GHz) |