set_sweep
Configure sweep points, sweep time, sweep type, trigger source, and video trigger level for UNI-T UTS spectrum analyzers, with automatic coupling and warning reports for clamped values.
Instructions
Set sweep points, sweep time, sweep type, trigger source and video trigger level. Points, type and rule are applied before the sweep time so a manual time is not overridden by the auto coupling. Changing sweep_points changes the trace length. Out-of-range values are clamped silently by the instrument; settings are re-read afterwards and any change 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_sweep"
}
}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 | |
| sweep_type | No | Sweep type (turns automatic type off) | |
| sweep_points | No | Sweep points, integer 11..40001. Changes the trace length (trace data has this many values) | |
| sweep_time_s | No | Sweep time in seconds (1 ms..4000 s, clamped; zero span allows less). Turns sweep time auto off | |
| trigger_source | No | Trigger source: immediate (free run) or video. External is rejected by the UTS3036B | |
| sweep_time_auto | No | Automatic sweep time; not with sweep_time_s | |
| sweep_time_rule | No | Automatic sweep time rule | |
| sweep_type_auto | No | Automatic sweep type; not with sweep_type | |
| trigger_video_level_dbm | No | Video trigger level in dBm (clamped to -170..30) |