Logic Analyzer · SCPI command reference

Keysight 16600A, 16601A, 16602A, 16603A, 16700A, 16700B, 16702A, and 16702B SCPI commands

The Keysight 16600A, 16601A, 16602A, 16603A, 16700A, 16700B, 16702A, and 16702B logic analyzer is controlled remotely with SCPI commands. TestFlow's instrument library holds 167 commands for it, 62 of them queries that read values or state, grouped below by subsystem with their arguments. It is the same library TestFlow's AI agent uses to drive the 16600A on a real bench.

Commands
167
Queries
62
Subsystems
22
Models covered
8

Run this on your bench

Describe the test; TestFlow's agent uses this command set to drive your Keysight 16600A, 16601A, 16602A, 16603A, 16700A, 16700B, 16702A, or 16702B and writes the report from the measured results.

Get started

Control the Keysight 16600A from Python

With PyVISA, any VISA backend, and the instrument on USB, LAN or GPIB, this opens a session, identifies the instrument, sends one setting, and reads one value. Every command in it comes from the reference below. For a full walkthrough, see the PyVISA tutorial and the SCPI command cheat sheet.

import pyvisa

rm = pyvisa.ResourceManager()
print(rm.list_resources())  # find the Keysight 16600A's VISA address

# Paste the address of your Keysight 16600A (USB, LAN or GPIB).
inst = rm.open_resource("PASTE_VISA_ADDRESS_HERE")
inst.timeout = 5000  # ms

print(inst.query("*IDN?"))  # identify the instrument
inst.write("scope -autoscale")  # Scope Autoscale
print(inst.query("ctl_port ?"))  # Read Control Port

inst.close()

Run this on your bench

Describe the test; TestFlow's agent uses this command set to drive your Keysight 16600A, 16601A, 16602A, 16603A, 16700A, 16700B, 16702A, or 16702B and writes the report from the measured results.

Get started

Run a 16600A test without writing code

Describe the test in a sentence, for example “scope autoscale on the 16600A, then read control port and log it against a limit”. TestFlow's agent builds the steps from this command library, runs them on your bench through the TestFlow desktop app, and writes the report from the measured values. See AI test automation for lab instruments for how that works and where it stops.

Get started

SCPI command reference

167 commands in 22 groups. A ? marks a query that returns a value. Placeholders in angle brackets take the listed values. The 16600A, 16601A, 16602A, 16603A, 16700A, 16700B, 16702A, and 16702B share this command set in TestFlow's library.

ANALYZER subsystem (39)

CommandWhat it doesArguments
analyzer -mode <Mode>Analyzer Set Mode. Sets the acquisition mode of the active analyzer (stnorm=state normal, stfast=turbostate, tmfull/tmhalf=timing full/half channel, tmtrans=transitional timing).Text: stnorm,stfast,tmfull,tmhalf,tmtrans
analyzer -n <Analyzer_Name> -mode <Mode>Analyzer Set Mode By Name. Sets focus to the named analyzer and sets its acquisition mode.Text; Text: stnorm,stfast,tmfull,tmhalf,tmtrans
analyzer -slot <Slot_ID> -mode <Mode>Analyzer Set Mode By Slot. Sets focus to the analyzer in the given slot and sets its acquisition mode.Text: A,B,C,D,E,F,G,H,I,J,1,2,3,4; Text: stnorm,stfast,tmfull,tmhalf,tmtrans
analyzer -mode ?Analyzer Read Mode. Queries the acquisition mode of the active analyzer.None
analyzer -depth <Depth_kSamples>Analyzer Set Depth. Sets the acquisition depth in thousands of samples (e.g. 8 = 8000 samples).Number
analyzer -depth minAnalyzer Set Depth Min. Sets the acquisition depth to minimum.None
analyzer -depth maxAnalyzer Set Depth Max. Sets the acquisition depth to maximum.None
analyzer -depth ?Analyzer Read Depth. Queries the acquisition depth of the active analyzer.None
analyzer -assign <Pod_List>Analyzer Assign Pods. Assigns pods (slot letter + pod number e.g. A1) to the active analyzer; pods are assigned in pairs.Text
analyzer -assign noneAnalyzer Unassign Pods. Removes all pod assignments from the active analyzer.None
analyzer -assign ?Analyzer Read Pods. Queries which pods are assigned to the active analyzer (e.g. A1,A2,C1,C2).None
analyzer -label ?Analyzer Read Labels. Queries the label structure of the active analyzer.None
analyzer -label <Label_Name> ?Analyzer Read Label. Queries the definition of the named label.Text
analyzer -label <Label_Name> <Polarity> <Channels>Analyzer Set Label. Defines a label with positive or negative polarity and its channels as pod#[bits] (e.g. A1[15:0]).Text; Text: pos,neg; Text
analyzer -label <Label_Name>,"<Channels>"Analyzer Set Label Channels. Defines a label and its channels as pod#[bits] (e.g. address with A1[15:0];A2[15:0]).Text; Text
analyzer -label -d <Label_List>Analyzer Delete Labels. Deletes the specified comma-separated label names.Text
analyzer -label -d allAnalyzer Delete All Labels. Deletes all label names.None
analyzer -label -f <Label_File>Analyzer Load Label File. Loads a file of label assignments into the active analyzer.Text
analyzer -iAnalyzer Read Data Info. Queries information on the last data captured (Run ID, state and time ranges, labels).None
analyzer -n <Analyzer_Name> -iAnalyzer Read Data Info By Name. Sets focus to the named analyzer and queries information on its last data captured.Text
analyzer -slot <Slot_ID> -iAnalyzer Read Data Info By Slot. Sets focus to the analyzer in the given slot and queries information on its last data captured.Text: A,B,C,D,E,F,G,H,I,J,1,2,3,4
analyzer -d -l all -r allAnalyzer Upload All Data. Uploads binary data for all labels at all states from the active analyzer.None
analyzer -n <Analyzer_Name> -d -l all -r allAnalyzer Upload All Data By Name. Uploads binary data for all labels at all states from the named analyzer.Text
analyzer -d -l <Label_List> -r <Start_State>..<End_State>Analyzer Upload Data Range. Uploads binary data for the listed labels (or all) over a state number range (trigger = state 0).Text; Number; Number
analyzer -d -l <Label_List> -t <Start_Time>..<End_Time>Analyzer Upload Data Time. Uploads binary data for the listed labels (or all) over a time range in seconds (trigger = 0.0).Text; Number; Number
analyzer -trig anythingAnalyzer Trigger Anything. Sets the trigger to trigger on anything and store everything.None
analyzer -trig recall <Buffer_Number>Analyzer Trigger Recall Buffer. Loads a prestored trigger setup from the recall buffer number.Number
analyzer -trig recall "<Macro_Name>"Analyzer Trigger Recall Name. Recalls a stored trigger setup by its name.Text
analyzer -trig <Condition>Analyzer Trigger Condition. Traces for a condition (pattern/range/edge e.g. addr=#h12e4c and ctl=#h00).Text
analyzer -n <Analyzer_Name> -trig <Condition>Analyzer Trigger Condition By Name. Sets focus to the named analyzer and traces for a condition.Text; Text
analyzer -trig <Condition> store <Store_Condition>Analyzer Trigger Condition Store. Traces for a condition with a storage qualification condition.Text; Text
analyzer -trig <Condition1> followedby <Condition2>Analyzer Trigger Sequence. Traces for condition 1 followed by condition 2 (two-level sequence).Text; Text
analyzer -trig <Condition1> store <Store_Condition> followedby <Condition2>Analyzer Trigger Sequence Store. Traces for condition 1 with a storage qualifier followed by condition 2.Text; Text; Text
analyzer -trig duration <Condition> <Comparator> <Time>Analyzer Trigger Duration. Traces when a value occurs for less or more than the given time (e.g. 30 ns); occurrence counts not allowed.Text; Text: <,>; Text
analyzer -trig <Condition> occurs <Count>Analyzer Trigger Occurs. Traces for a condition that occurs the given number of times.Text; Number
analyzer -trig <Condition> occurs <Count> store <Store_Condition>Analyzer Trigger Occurs Store. Traces for a condition that occurs the given number of times with a storage qualifier.Text; Number; Text
analyzer -trig <Condition1> followedby <Condition2> occurs <Count>Analyzer Trigger Sequence Occurs. Traces for condition 1 followed by condition 2 occurring the given number of times.Text; Text; Number
analyzer -trig position <Percent>Analyzer Set Trigger Position. Sets the trigger position as the percent of data captured before trigger (0 = end of trace; 50 = center; 100 = start).Number: 0,100
analyzer -trig position ?Analyzer Read Trigger Position. Queries the trigger position percent of the active analyzer.None

SCOPE subsystem (31)

CommandWhat it doesArguments
scope -iScope Read Data Info. Queries information on the last data captured by the active scope (Run ID, ranges, channel scale factors).None
scope -n <Scope_Name> -iScope Read Data Info By Name. Sets focus to the named scope and queries information on its last data captured.Text
scope -slot <Slot_ID> -iScope Read Data Info By Slot. Sets focus to the scope in the given slot and queries information on its last data captured.Text: A,B,C,D,E,F,G,H,I,J
scope -cScope Read Channels. Queries the names and scale factors of the available scope channels.None
scope -d -l all -t allScope Upload All Data. Uploads binary data for all channels over the full time range.None
scope -d -l <Channel_List> -r <Start_State>..<End_State>Scope Upload Data Range. Uploads binary data for the listed channels over a state range.Text; Number; Number
scope -d -l <Channel_List> -t <Start_Time>..<End_Time>Scope Upload Data Time. Uploads binary data for the listed channels over a time range in seconds.Text; Number; Number
scope -autoscaleScope Autoscale. Autoscales the scope.None
scope -c <Channel> -meas <Meas_Type>Scope Measure. Returns the automatic measurement result for the channel (voltage = yorigin + yincrement*value for raw data).Number; Text: all,falltime,risetime,frequency,preshoot,overshoot,period,pwidth,nwidth,vamp,vavg,vbase,vmax,vmin,vpp,vtop,vdcrms,vacrms
scope -c <Channel> -meas allScope Measure All. Returns all automatic measurement results for the channel.Number
scope -n <Scope_Name> -c <Channel> -meas <Meas_Type>Scope Measure By Name. Returns the automatic measurement result for a channel of the named scope.Text; Number; Text: all,falltime,risetime,frequency,preshoot,overshoot,period,pwidth,nwidth,vamp,vavg,vbase,vmax,vmin,vpp,vtop,vdcrms,vacrms
scope -c <Channel> -range <Range>Scope Set Range. Sets the channel vertical range.Number; Number
scope -c <Channel> -range ?Scope Read Range. Queries the channel vertical range.Number
scope -c <Channel> -offset <Offset>Scope Set Offset. Sets the channel offset.Number; Number
scope -c <Channel> -offset ?Scope Read Offset. Queries the channel offset.Number
scope -trange <Time_Range>Scope Set Time Range. Sets the horizontal display range in seconds (e.g. 0.001).Number
scope -trange ?Scope Read Time Range. Queries the horizontal display range.None
scope -delay <Delay>Scope Set Delay. Sets the display (timebase) delay.Number
scope -delay ?Scope Read Delay. Queries the display (timebase) delay.None
scope -sweep triggeredScope Set Sweep Triggered. Sets the sweep to triggered.None
scope -sweep autoScope Set Sweep Auto. Sets the sweep to auto.None
scope -sweep ?Scope Read Sweep. Queries the sweep mode (triggered or auto).None
scope -c <Channel> -tglevel <Level>Scope Set Trigger Level. Sets the channel trigger level.Number; Number
scope -c <Channel> -tglevel ?Scope Read Trigger Level. Queries the channel trigger level.Number
scope -tgsource <Source>Scope Set Trigger Source. Sets the trigger source to a channel number or ext.Text
scope -tgsource ?Scope Read Trigger Source. Queries the trigger source.None
scope -tgslope risingScope Set Trigger Slope Rising. Sets the trigger slope to rising.None
scope -tgslope fallingScope Set Trigger Slope Falling. Sets the trigger slope to falling.None
scope -tgslope ?Scope Read Trigger Slope. Queries the trigger slope.None
scope -tgmode <Trigger_Mode>Scope Set Trigger Mode. Sets the trigger mode.Text: edge,pattern,immediate
scope -tgmode ?Scope Read Trigger Mode. Queries the trigger mode.None

PATTGEN subsystem (13)

CommandWhat it doesArguments
pattgen -f <Vector_File>Pattgen Load Vector File. Loads an ASCII stimulus file into the active pattern generator.Text
pattgen -n <Pattgen_Name> -f <Vector_File>Pattgen Load Vector File By Name. Sets focus to the named pattern generator and loads an ASCII stimulus file.Text; Text
pattgen -slot <Slot_ID> -f <Vector_File>Pattgen Load Vector File By Slot. Selects the pattern generator in the given slot and loads an ASCII stimulus file.Text: A,B,C,D,E,F,G,H,I,J; Text
pattgen -v <Vector_Num>Pattgen Read Vector. Queries the label values of the given vector number (label=value lines).Number
pattgen -n <Pattgen_Name> -v <Vector_Num>Pattgen Read Vector By Name. Sets focus to the named pattern generator and queries the given vector.Text; Number
pattgen -v <Vector_Num> <Label_Values>Pattgen Modify Vector. Modifies a single vector with new label values (e.g. chip_sel=1).Number; Text
pattgen -v -i <Vector_Num> <Label_Values>Pattgen Insert Vector. Inserts a new vector with the given label values at the given position.Number; Text
pattgen -v -d <Vector_Num>Pattgen Delete Vector. Deletes the given vector.Number
pattgen -clock <Frequency_MHz>Pattgen Set Clock Frequency. Sets the internal clock frequency in MHz (1 to 180 MHz or 300 MHz in half channel mode).Number
pattgen -clock extPattgen Set Clock External. Sets the pattern generator clock source to external.None
pattgen -clock ?Pattgen Read Clock. Queries the internal clock frequency in MHz.None
pattgen -delay <Delay>Pattgen Set Delay. Sets the clock output delay setting (integer 1 to 14).Number: 1,14
pattgen -delay ?Pattgen Read Delay. Queries the clock output delay setting.None

EMULATOR subsystem (12)

CommandWhat it doesArguments
emulator -resetEmulator Reset. Resets the processor on the target system via the active emulation module.None
emulator -n <Emulator_Name> -resetEmulator Reset By Name. Resets the processor on the target system via the named emulation module.Text
emulator -slot <Slot_ID> -resetEmulator Reset By Slot. Resets the processor on the target system via the emulation module in the given slot (1-4).Text: 1,2,3,4
emulator -breakEmulator Break. Breaks the target processor into the monitor via the active emulation module.None
emulator -n <Emulator_Name> -breakEmulator Break By Name. Breaks the target processor into the monitor via the named emulation module.Text
emulator -slot <Slot_ID> -breakEmulator Break By Slot. Breaks the target processor into the monitor via the emulation module in the given slot (1-4).Text: 1,2,3,4
emulator -runEmulator Run. Runs the target processor via the active emulation module.None
emulator -n <Emulator_Name> -runEmulator Run By Name. Runs the target processor via the named emulation module.Text
emulator -slot <Slot_ID> -runEmulator Run By Slot. Runs the target processor via the emulation module in the given slot (1-4).Text: 1,2,3,4
emulator -stepEmulator Step. Steps the target processor via the active emulation module.None
emulator -n <Emulator_Name> -stepEmulator Step By Name. Steps the target processor via the named emulation module.Text
emulator -slot <Slot_ID> -stepEmulator Step By Slot. Steps the target processor via the emulation module in the given slot (1-4).Text: 1,2,3,4

WAIT subsystem (10)

CommandWhat it doesArguments
wait <Seconds>RPI Wait. Pauses the RPI for the given number of seconds.Number
wait -completeRPI Wait Complete. Waits until the entire instrument is stopped (hangs if the measurement never completes).None
wait <Seconds> -completeRPI Wait Complete Timeout. Waits until the measurement completes but no longer than the given number of seconds.Number
wait -n <Module_Name> -completeRPI Wait Module Complete. Waits until the named module completes.Text
wait <Seconds> -n <Module_Name> -completeRPI Wait Module Complete Timeout. Waits until the named module completes but no longer than the given number of seconds.Number; Text
wait -slot <Slot_ID> -completeRPI Wait Slot Complete. Waits until the module in the given slot completes.Text: A,B,C,D,E,F,G,H,I,J,1,2,3,4
wait <Seconds> -slot <Slot_ID> -completeRPI Wait Slot Complete Timeout. Waits until the module in the given slot completes but no longer than the given number of seconds.Number; Text: A,B,C,D,E,F,G,H,I,J,1,2,3,4
wait -g -completeRPI Wait Group Complete. Waits until the group run completes.None
wait <Seconds> -g -completeRPI Wait Group Complete Timeout. Waits until the group run completes but no longer than the given number of seconds.Number
wait(<ms>)Wait. Waits for number of millisecondsNumber

COMPARE subsystem (10)

CommandWhat it doesArguments
compare -iCompare Read Differences. Returns the number of differences found by the last compare (-1 if not executed).None
compare -n <Compare_Name> -iCompare Read Differences By Name. Sets focus to the named compare tool and returns the number of differences found.Text
compare -lCompare Read Label Pairs. Lists the current label pairs and their masks.None
compare -m <Label>=<Mask>Compare Set Mask. Sets the compare mask for a label (e.g. #hffff0000; 1 = significant bit).Text; Text
compare -m <Label1>,<Label2>=<Mask>Compare Set Pair Mask. Sets the compare mask for a label pair using both primary and secondary labels.Text; Text; Text
compare -xCompare Execute. Executes the compare.None
compare -x -d <Count>Compare Execute Stop After. Executes the compare and stops after the given number of differences.Number
compare -x -r <Start_State>..<End_State>Compare Execute Range. Executes the compare over the given state range.Number; Number
compare -x -d <Count> -r <Start_State>..<End_State>Compare Execute Stop After Range. Executes the compare over a state range or until the given number of differences is found.Number; Number; Number
compare -sCompare Read Results. Returns the differences found (state#,label=value,label_ref=value...; max 30000 per call).None

STATUS subsystem (9)

CommandWhat it doesArguments
statusRead Status. Returns the frame status: running or stopped.None
status -n <Module_Name>Read Status By Name. Returns the status of the active module with the given name.Text
status -slot <Slot_ID>Read Status By Slot. Returns the status of the module in the given slot.Text: A,B,C,D,E,F,G,H,I,J,1,2,3,4
status -gRead Group Status. Returns the status of all modules in the group run list.None
status -vRead Status Verbose. Returns verbose status for all active modules instead of running/stopped.None
status -n <Module_Name> -vRead Status By Name Verbose. Returns verbose status for the named module.Text
status -g -vRead Group Status Verbose. Returns verbose status for all modules in the group run list.None
status -textRead Status Text. Returns the text messages from the Run Status display.None
status -clearClear Status Text. Clears the text messages in the Run Status display.None

START subsystem (8)

CommandWhat it doesArguments
startRun All. Starts all active modules running.None
start -n <Module_Name>Run Module By Name. Starts the active module with the given name running (e.g. Analyzer<B>).Text
start -slot <Slot_ID>Run Module By Slot. Starts the module in the given slot running.Text: A,B,C,D,E,F,G,H,I,J,1,2,3,4
start -gRun Group. Starts all modules in the group run list running.None
start -repRun All Repetitive. Starts all active analyzer/scope/pattern generator modules running in repetitive mode.None
start -n <Module_Name> -repRun Module By Name Repetitive. Starts the named module running in repetitive mode.Text
start -slot <Slot_ID> -repRun Module By Slot Repetitive. Starts the module in the given slot running in repetitive mode.Text: A,B,C,D,E,F,G,H,I,J,1,2,3,4
start -g -repRun Group Repetitive. Starts all modules in the group run list running repetitively.None

LISTING subsystem (5)

CommandWhat it doesArguments
listing -iListing Read Data Info. Queries information on the last data in the active listing (Run ID, ranges, label formats).None
listing -n <Listing_Name> -iListing Read Data Info By Name. Sets focus to the named listing and queries information on its last data.Text
listing -d -l all -r allListing Upload All Data. Uploads ASCII data for all labels at all states from the listing (max 30000 states).None
listing -n <Listing_Name> -d -l all -r allListing Upload All Data By Name. Sets focus to the named listing and uploads ASCII data for all labels at all states.Text
listing -d -l <Label_List> -r <Start_State>..<End_State>Listing Upload Data Range. Uploads ASCII data for the listed labels over a state range (max 30000 states).Text; Number; Number

FILEOUT subsystem (5)

CommandWhat it doesArguments
fileout -f <File_Name>Fileout Set File. Defines the file name the active fileout tool saves to.Text
fileout -n <Fileout_Name> -f <File_Name>Fileout Set File By Name. Sets focus to the named fileout tool and defines its save file name.Text; Text
fileout -sFileout Save. Saves data to the file previously defined with -f.None
fileout -r <Start_State>..<End_State>Fileout Export Range. Selects a state range to export (Fast Binary output format only).Number; Number
fileout -r allFileout Export All. Selects all states to export.None

MODULES subsystem (4)

CommandWhat it doesArguments
modulesRead Modules. Returns all active and available HW modules with Type, Slot, State, Name, Model and Description.None
modules -aRead Active Modules. Returns only the active HW modules with Type, Slot, State, Name, Model and Description.None
modules -slot <Slot_ID>Read Module In Slot. Returns information on the HW module in the specified slot.Text: A,B,C,D,E,F,G,H,I,J,1,2,3,4
modules -expandersRead Module Expanders. Lists how many and which expander cards each slot has.None

Run control (4)

CommandWhat it doesArguments
stopStop All. Stops all actively running modules.None
stop -n <Module_Name>Stop Module By Name. Stops the running module with the given name.Text
stop -slot <Slot_ID>Stop Module By Slot. Stops the running module in the given slot.Text: A,B,C,D,E,F,G,H,I,J,1,2,3,4
stop -gStop Group. Stops all running modules in the group run list.None

CONFIG subsystem (3)

CommandWhat it doesArguments
config -l <Config_File>Load Config. Loads a previously saved instrument configuration file and restores the instrument setup.Text
config -s <Config_File>Save Config. Saves the current workspace configuration and data to a file (errors if the file exists).Text
config -s -f <Config_File>Save Config Overwrite. Saves the current workspace configuration and data to a file and forces overwrite if it exists.Text

SESSION subsystem (3)

CommandWhat it doesArguments
session_mgr ?Read Session Status. Returns the session status: Running or Stopped.None
session_mgr -startStart Session. Starts a new measurement session (the RPI connection is closed and must be re-opened).None
session_mgr -stopStop Session. Stops the running measurement session (the RPI connection is closed and must be re-opened).None

CTL subsystem (2)

CommandWhat it doesArguments
ctl_port ?Read Control Port. Reads the target control port and returns its 8-bit value (e.g. #he).None
ctl_port <Port_Value>Set Control Port. Sets the target control port to an 8-bit value using #h/#b/#q notation with x don't-care digits (e.g. #hfx).Text

LOCK subsystem (2)

CommandWhat it doesArguments
lockLock. Locks out other users and shows the default in-use message on the instrument display.None
lock "<Message>"Lock With Message. Locks out other users and shows a custom message on the instrument display.Text

VERSION subsystem (2)

CommandWhat it doesArguments
versionRead Version. Returns the system software version number.None
version <Product>Read Product Version. Returns the software version of the named product package (e.g. MCORE).Text

CLEAR subsystem (1)

CommandWhat it doesArguments
clearClear Workspace. Clears the workspace of all modules and tools (does not affect LAN or printer settings).None

UNLOCK subsystem (1)

CommandWhat it doesArguments
unlockUnlock. Unlocks the instrument to allow other users.None

TOOLS subsystem (1)

CommandWhat it doesArguments
toolsRead Tools. Returns the active software tools in the workspace (Name: type).None

Other subsystem (1)

CommandWhat it doesArguments
<Output Variable>=<Equation>Math. Variable equals an equation like (${Var_name}= ${Var_name}/2)Number; Text

SAVE subsystem (1)

CommandWhat it doesArguments
save2var <Variable_name>Save2Variable. Saves last measurement to a variableText

Where these commands come from

This reference is generated from TestFlow's instrument library, which is drafted from Keysight's programming documentation for the 16600A, 16601A, 16602A, 16603A, 16700A, 16700B, 16702A, and 16702B and checked when the agent runs it. Ranges, timing, and option-dependent commands are defined by Keysight's programming manual: check it before you rely on an edge case. Last updated September 28, 2026.

Frequently asked questions

Does the Keysight 16600A support SCPI remote control?

Yes. The Keysight 16600A accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 167 SCPI commands for it: 62 queries that read values or state, and 105 settings and actions.

How do I control the Keysight 16600A from Python?

Install PyVISA and a VISA backend, find the instrument's address with ResourceManager().list_resources(), open it, then send commands with write() and read values with query(). The example on this page sends *IDN?, scope -autoscale and ctl_port ?.

Which command reads a value from the Keysight 16600A?

ctl_port ? (read control port). Reads the target control port and returns its 8-bit value (e.g. #he). The full list of queries is in the command reference on this page, grouped by subsystem.

Can I automate the Keysight 16600A without writing code?

Yes. TestFlow is an AI agent for electronics testing: you describe the test, and it builds the automation from this command library, runs it on the Keysight 16600A through the TestFlow desktop app, and writes the report from the measured results.

Your next test, automated today

Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.