Procedures

A procedure is a predefined multi-step measurement workflow. Instead of resolving one command at a time, a procedure encapsulates the full sequence of operations required for a complete task, for example, configuring a network analyzer for an S-parameter sweep, or calibrating a port using the SOLT method.

The engineer describes the measurement in natural language. Keysight MCP Server for Instrument Control matches the intent to the appropriate procedure, fills in the parameters, and builds the complete command sequence. That sequence is then reviewed and approved before execution.

Built-in Procedures

Six procedures are built into the server and available without any additional configuration:

Procedure Instrument Class Description
na_s_param_sweep Network Analyzer Configures and runs a linear S-parameter frequency sweep.
na_calibration_solt Network Analyzer Performs a 1-port SOLT calibration with guided user action steps.
sa_peak_search Signal Analyzer Sets frequency and span, triggers a sweep, and reads the peak marker.
sg_cw_output Signal Generator Sets a CW frequency and power level and enables the RF output.
ps_set_output Power Supply Sets output voltage and current limit and enables the output channel.
dmm_dc_voltage Multimeter Configures the DMM for DC voltage, triggers a reading, and returns the result.

Example: S-Parameter Sweep

For example, the built-in S-Parameter Sweep procedure configures and runs a linear frequency sweep on a network analyzer. It takes start frequency, stop frequency, IF bandwidth, power level, and number of points as parameters, each with a default value.

The engineer can invoke it directly in natural language: "Do an S-parameter sweep from 1 GHz to 6 GHz." Keysight MCP Server for Instrument Control matches this request to the procedure, fills in the start and stop frequency from the request, and applies default values for any parameters not specified, such as IF bandwidth. The procedure then expands into the full ordered command sequence needed to set port count, sweep type, start and stop frequency, IF bandwidth, power level, and point count, before triggering the sweep. Like any other command sequence, this expanded set of commands is reviewed and approved by the engineer before execution.

If the intent cannot be matched to a known procedure, the AI calls search_instrument_capabilities without a keyword to show the engineer which procedures are available for that instrument type.