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.
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.
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()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.
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.
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.
| Command | What it does | Arguments |
|---|---|---|
| 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 min | Analyzer Set Depth Min. Sets the acquisition depth to minimum. | None |
| analyzer -depth max | Analyzer 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 none | Analyzer 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 all | Analyzer 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 -i | Analyzer Read Data Info. Queries information on the last data captured (Run ID, state and time ranges, labels). | None |
| analyzer -n <Analyzer_Name> -i | Analyzer Read Data Info By Name. Sets focus to the named analyzer and queries information on its last data captured. | Text |
| analyzer -slot <Slot_ID> -i | Analyzer 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 all | Analyzer 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 all | Analyzer 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 anything | Analyzer 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 |
| Command | What it does | Arguments |
|---|---|---|
| scope -i | Scope 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> -i | Scope Read Data Info By Name. Sets focus to the named scope and queries information on its last data captured. | Text |
| scope -slot <Slot_ID> -i | Scope 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 -c | Scope Read Channels. Queries the names and scale factors of the available scope channels. | None |
| scope -d -l all -t all | Scope 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 -autoscale | Scope 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 all | Scope 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 triggered | Scope Set Sweep Triggered. Sets the sweep to triggered. | None |
| scope -sweep auto | Scope 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 rising | Scope Set Trigger Slope Rising. Sets the trigger slope to rising. | None |
| scope -tgslope falling | Scope 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 |
| Command | What it does | Arguments |
|---|---|---|
| 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 ext | Pattgen 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 |
| Command | What it does | Arguments |
|---|---|---|
| emulator -reset | Emulator Reset. Resets the processor on the target system via the active emulation module. | None |
| emulator -n <Emulator_Name> -reset | Emulator Reset By Name. Resets the processor on the target system via the named emulation module. | Text |
| emulator -slot <Slot_ID> -reset | Emulator 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 -break | Emulator Break. Breaks the target processor into the monitor via the active emulation module. | None |
| emulator -n <Emulator_Name> -break | Emulator Break By Name. Breaks the target processor into the monitor via the named emulation module. | Text |
| emulator -slot <Slot_ID> -break | Emulator 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 -run | Emulator Run. Runs the target processor via the active emulation module. | None |
| emulator -n <Emulator_Name> -run | Emulator Run By Name. Runs the target processor via the named emulation module. | Text |
| emulator -slot <Slot_ID> -run | Emulator Run By Slot. Runs the target processor via the emulation module in the given slot (1-4). | Text: 1,2,3,4 |
| emulator -step | Emulator Step. Steps the target processor via the active emulation module. | None |
| emulator -n <Emulator_Name> -step | Emulator Step By Name. Steps the target processor via the named emulation module. | Text |
| emulator -slot <Slot_ID> -step | Emulator Step By Slot. Steps the target processor via the emulation module in the given slot (1-4). | Text: 1,2,3,4 |
| Command | What it does | Arguments |
|---|---|---|
| wait <Seconds> | RPI Wait. Pauses the RPI for the given number of seconds. | Number |
| wait -complete | RPI Wait Complete. Waits until the entire instrument is stopped (hangs if the measurement never completes). | None |
| wait <Seconds> -complete | RPI Wait Complete Timeout. Waits until the measurement completes but no longer than the given number of seconds. | Number |
| wait -n <Module_Name> -complete | RPI Wait Module Complete. Waits until the named module completes. | Text |
| wait <Seconds> -n <Module_Name> -complete | RPI 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> -complete | RPI 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> -complete | RPI 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 -complete | RPI Wait Group Complete. Waits until the group run completes. | None |
| wait <Seconds> -g -complete | RPI 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 milliseconds | Number |
| Command | What it does | Arguments |
|---|---|---|
| compare -i | Compare Read Differences. Returns the number of differences found by the last compare (-1 if not executed). | None |
| compare -n <Compare_Name> -i | Compare Read Differences By Name. Sets focus to the named compare tool and returns the number of differences found. | Text |
| compare -l | Compare 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 -x | Compare 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 -s | Compare Read Results. Returns the differences found (state#,label=value,label_ref=value...; max 30000 per call). | None |
| Command | What it does | Arguments |
|---|---|---|
| status | Read 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 -g | Read Group Status. Returns the status of all modules in the group run list. | None |
| status -v | Read Status Verbose. Returns verbose status for all active modules instead of running/stopped. | None |
| status -n <Module_Name> -v | Read Status By Name Verbose. Returns verbose status for the named module. | Text |
| status -g -v | Read Group Status Verbose. Returns verbose status for all modules in the group run list. | None |
| status -text | Read Status Text. Returns the text messages from the Run Status display. | None |
| status -clear | Clear Status Text. Clears the text messages in the Run Status display. | None |
| Command | What it does | Arguments |
|---|---|---|
| start | Run 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 -g | Run Group. Starts all modules in the group run list running. | None |
| start -rep | Run All Repetitive. Starts all active analyzer/scope/pattern generator modules running in repetitive mode. | None |
| start -n <Module_Name> -rep | Run Module By Name Repetitive. Starts the named module running in repetitive mode. | Text |
| start -slot <Slot_ID> -rep | Run 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 -rep | Run Group Repetitive. Starts all modules in the group run list running repetitively. | None |
| Command | What it does | Arguments |
|---|---|---|
| listing -i | Listing Read Data Info. Queries information on the last data in the active listing (Run ID, ranges, label formats). | None |
| listing -n <Listing_Name> -i | Listing Read Data Info By Name. Sets focus to the named listing and queries information on its last data. | Text |
| listing -d -l all -r all | Listing 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 all | Listing 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 |
| Command | What it does | Arguments |
|---|---|---|
| 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 -s | Fileout 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 all | Fileout Export All. Selects all states to export. | None |
| Command | What it does | Arguments |
|---|---|---|
| modules | Read Modules. Returns all active and available HW modules with Type, Slot, State, Name, Model and Description. | None |
| modules -a | Read 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 -expanders | Read Module Expanders. Lists how many and which expander cards each slot has. | None |
| Command | What it does | Arguments |
|---|---|---|
| stop | Stop 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 -g | Stop Group. Stops all running modules in the group run list. | None |
| Command | What it does | Arguments |
|---|---|---|
| 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 |
| Command | What it does | Arguments |
|---|---|---|
| session_mgr ? | Read Session Status. Returns the session status: Running or Stopped. | None |
| session_mgr -start | Start Session. Starts a new measurement session (the RPI connection is closed and must be re-opened). | None |
| session_mgr -stop | Stop Session. Stops the running measurement session (the RPI connection is closed and must be re-opened). | None |
| Command | What it does | Arguments |
|---|---|---|
| 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 |
| Command | What it does | Arguments |
|---|---|---|
| lock | Lock. 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 |
| Command | What it does | Arguments |
|---|---|---|
| version | Read 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 |
| Command | What it does | Arguments |
|---|---|---|
| clear | Clear Workspace. Clears the workspace of all modules and tools (does not affect LAN or printer settings). | None |
| Command | What it does | Arguments |
|---|---|---|
| unlock | Unlock. Unlocks the instrument to allow other users. | None |
| Command | What it does | Arguments |
|---|---|---|
| tools | Read Tools. Returns the active software tools in the workspace (Name: type). | None |
| Command | What it does | Arguments |
|---|---|---|
| <Output Variable>=<Equation> | Math. Variable equals an equation like (${Var_name}= ${Var_name}/2) | Number; Text |
| Command | What it does | Arguments |
|---|---|---|
| save2var <Variable_name> | Save2Variable. Saves last measurement to a variable | Text |
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.
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.
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 ?.
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.
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.
Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.