wait_for_sweep_complete
Wait for an asynchronous spectrum-analyzer sweep to finish and confirm completion via *OPC?, so you can safely read results after starting a non-blocking sweep.
Instructions
Wait for a sweep started with start_sweep(wait=false) to finish: over the raw transport it stays silent for the remaining sweep time (the instrument ignores input while sweeping) and then polls *OPC? until it answers; over VXI-11 it makes one blocking *OPC? read that returns when the sweep ends.
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": "wait_for_sweep_complete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout_s | No | Give up after this many seconds (default: sweep time + 10 s) | |
| instrument | No | Which instrument to use (a name from list_instruments). Default: the `default` instrument, or the only one configured |