read_measurement
Retrieve active spectrum-analyzer measurement results, including channel power, OBW, ACPR, C/N, TOI, harmonics, or time power; run and wait or fetch the latest result.
Instructions
Read the result of the active measurement. READ (default) runs the measurement and waits for it; fetch=true returns the latest result at once. channel_power gives channel power (dBm) and density (dBm/Hz), time_power gives power (dBm), obw gives occupied bandwidth (Hz), frequency error (Hz), x dB bandwidth (Hz) and total power (dBm), acpr gives main, lower and upper channel power (dBm) and lower/upper relative power (dBc), cn gives carrier and noise power (dBm) and C/N (dB), toi gives the lower and upper third-order products and tones and the intercept, harmonics gives the fundamental, harmonics 2..n (dBc) and distortion (THD). Errors when that measurement is not active; it never changes the mode.
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": "read_measurement"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fetch | No | Return the latest result without starting a measurement | |
| 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 |