Logic Analyzer · SCPI command reference

Keysight 16500C SCPI commands

The Keysight 16500C logic analyzer is controlled remotely with SCPI commands. TestFlow's instrument library holds 268 commands for it, 107 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 16500C on a real bench.

Commands
268
Queries
107
Subsystems
18
Models covered
1

Run this on your bench

Describe the test; TestFlow's agent uses this command set to drive your Keysight 16500C and writes the report from the measured results.

Get started

Control the Keysight 16500C 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 16500C's VISA address

# Paste the address of your Keysight 16500C (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(":MMEMory:AUToload OFF")  # Autoload Off
print(inst.query(":SELect?"))  # Read Selected Module

inst.close()

Run this on your bench

Describe the test; TestFlow's agent uses this command set to drive your Keysight 16500C and writes the report from the measured results.

Get started

Run a 16500C test without writing code

Describe the test in a sentence, for example “autoload off on the 16500C, then read selected module 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

268 commands in 18 groups. A ? marks a query that returns a value. Placeholders in angle brackets take the listed values.

MACH subsystem (173)

CommandWhat it doesArguments
:MACHine<Machine>:TYPE <Type>Set Machine Type. Sets the analyzer type of machine 1 or 2 (or turns it off).Number: 1,2; Text: OFF,STATe,TIMing,COMPare,SPA
:MACHine<Machine>:TYPE?Read Machine Type. Returns the analyzer type of the machine.Number: 1,2
:MACHine<Machine>:NAME '<Name>'Set Machine Name. Assigns a name (up to 10 characters) to the machine.Number: 1,2; Text
:MACHine<Machine>:NAME?Read Machine Name. Returns the machine name.Number: 1,2
:MACHine<Machine>:ASSign <Pod_List>Assign Pods. Assigns pod pairs to the machine (comma list of pods 1-12, or NONE).Number: 1,2; Text
:MACHine<Machine>:ASSign?Read Assigned Pods. Returns the pods assigned to the machine.Number: 1,2
:MACHine<Machine>:ARM <Arm_Source>Set Machine Arm. Sets the arming source of the machine.Number: 1,2; Text: RUN,INTermodule,MACHine1,MACHine2
:MACHine<Machine>:ARM?Read Machine Arm. Returns the arming source of the machine.Number: 1,2
:MACHine<Machine>:LEVelarm <Level>Set Level Arm. Sets the sequence level (1-11) that receives arming from the intermodule bus or other machine.Number: 1,2; Number: 1,11
:MACHine<Machine>:LEVelarm?Read Level Arm. Returns the sequence level receiving the arm.Number: 1,2
:MACHine<Machine>:RESource <Res_List>Assign Resources. Assigns resource terms (A-G,I,H,J,RANGe1/2,TIMer1/2,EDGE1/2) to the machine.Number: 1,2; Text
:MACHine<Machine>:RESource?Read Resources. Returns the resource terms assigned to the machine.Number: 1,2
:MACHine<Machine>:SFORmat:LABel '<Name>',<Label_Spec>State Set Label. Creates/modifies a state label: Label_Spec = <polarity>,<clock_bits>,<upper_bits>,<lower_bits>[,...].Number: 1,2; Text; Text
:MACHine<Machine>:SFORmat:LABel? '<Name>'State Read Label. Returns polarity and channel assignment of the state label.Number: 1,2; Text
:MACHine<Machine>:SFORmat:REMove '<Name>'State Remove Label. Deletes the named state label.Number: 1,2; Text
:MACHine<Machine>:SFORmat:REMove ALLState Remove All Labels. Deletes all state labels for the machine.Number: 1,2
:MACHine<Machine>:SFORmat:CLOCk<Pod> <Mode>State Set Pod Clock Mode. Sets the clocking mode of pod N for the state analyzer.Number: 1,2; Number: 1,12; Text: MASTer,SLAVe,DEMultiplex
:MACHine<Machine>:SFORmat:CLOCk<Pod>?State Read Pod Clock Mode. Returns the clocking mode of pod N.Number: 1,2; Number: 1,12
:MACHine<Machine>:SFORmat:MASTer <Clock_Id>,<Clock_Spec>State Set Master Clock. Sets the master clock edge for clock J, K, L or M.Number: 1,2; Text: J,K,L,M; Text: OFF,RISing,FALLing,BOTH
:MACHine<Machine>:SFORmat:MASTer? <Clock_Id>State Read Master Clock. Returns the master clock specification for the given clock.Number: 1,2; Text: J,K,L,M
:MACHine<Machine>:SFORmat:SLAVe <Clock_Id>,<Clock_Spec>State Set Slave Clock. Sets the slave clock edge for clock J, K, L or M.Number: 1,2; Text: J,K,L,M; Text: OFF,RISing,FALLing,BOTH
:MACHine<Machine>:SFORmat:SLAVe? <Clock_Id>State Read Slave Clock. Returns the slave clock specification for the given clock.Number: 1,2; Text: J,K,L,M
:MACHine<Machine>:SFORmat:MQUal <Qual_Num>,<Qual_Spec>State Set Master Qualifier. Sets master clock qualifier 1-4; Qual_Spec = <clock_id J-M>,<OFF|LOW|HIGH>.Number: 1,2; Number: 1,2,3,4; Text
:MACHine<Machine>:SFORmat:MQUal? <Qual_Num>State Read Master Qualifier. Returns the master clock qualifier.Number: 1,2; Number: 1,2,3,4
:MACHine<Machine>:SFORmat:SQUal <Qual_Num>,<Qual_Spec>State Set Slave Qualifier. Sets slave clock qualifier 1-4; Qual_Spec = <clock_id J-M>,<OFF|LOW|HIGH>.Number: 1,2; Number: 1,2,3,4; Text
:MACHine<Machine>:SFORmat:SQUal? <Qual_Num>State Read Slave Qualifier. Returns the slave clock qualifier.Number: 1,2; Number: 1,2,3,4
:MACHine<Machine>:SFORmat:MODE <Mode>State Set Mode. Sets the 16555 state mode to 100 MHz (NORMal) or 110 MHz (FAST).Number: 1,2; Text: NORMal,FAST
:MACHine<Machine>:SFORmat:MODE?State Read Mode. Returns the state analyzer mode.Number: 1,2
:MACHine<Machine>:SFORmat:SETHold <Pod>,<Value>State Set Setup Hold. Sets the setup/hold specification (0-9 code) for pod N.Number: 1,2; Number: 1,12; Number: 0,9
:MACHine<Machine>:SFORmat:SETHold? <Pod>State Read Setup Hold. Returns the setup/hold setting for pod N.Number: 1,2; Number: 1,12
:MACHine<Machine>:SFORmat:THReshold<Pod> <Level>State Set Threshold. Sets pod N threshold to TTL, ECL or a voltage from -6.00 to +6.00 V.Number: 1,2; Number: 1,12; Text: TTL,ECL
:MACHine<Machine>:SFORmat:THReshold<Pod>?State Read Threshold. Returns the threshold of pod N.Number: 1,2; Number: 1,12
:MACHine<Machine>:STRigger:ACQuisition <Mode>State Trigger Acquisition. Sets the state trigger acquisition mode.Number: 1,2; Text: AUTOmatic,MANual
:MACHine<Machine>:STRigger:ACQuisition?State Read Trigger Acquisition. Returns the state acquisition mode.Number: 1,2
:MACHine<Machine>:STRigger:CLEar <Scope>State Trigger Clear. Clears all State Trigger settings, only sequence levels, or only resource patterns.Number: 1,2; Text: All,SEQuence,RESource
:MACHine<Machine>:STRigger:SEQuence <Levels>,<Trig_Level>State Set Sequence. Redefines the state trigger sequence with 2-12 levels and the trigger level.Number: 1,2; Number: 2,12; Number
:MACHine<Machine>:STRigger:SEQuence?State Read Sequence. Returns number of sequence levels and trigger level.Number: 1,2
:MACHine<Machine>:STRigger:FIND<Level> <Find_Spec>State Set Find. Sets the proceed qualifier of a level; Find_Spec = '<qualifier>',<occurrence 1-1048575> (e.g. 'ANYSTATE',1).Number: 1,2; Number; Text
:MACHine<Machine>:STRigger:FIND<Level>?State Read Find. Returns the proceed qualifier and occurrence for the level.Number: 1,2; Number
:MACHine<Machine>:STRigger:BRANch<Level> <Branch_Spec>State Set Branch. Sets the branch qualifier of a level; Branch_Spec = '<qualifier>',<to_level_number>.Number: 1,2; Number; Text
:MACHine<Machine>:STRigger:BRANch<Level>?State Read Branch. Returns the branch qualifier and destination level.Number: 1,2; Number
:MACHine<Machine>:STRigger:STORe<Level> '<Qualifier>'State Set Store. Sets the store qualifier for a sequence level (e.g. ANYSTATE, NOSTATE or expression).Number: 1,2; Number; Text
:MACHine<Machine>:STRigger:STORe<Level>?State Read Store. Returns the store qualifier for the level.Number: 1,2; Number
:MACHine<Machine>:STRigger:TERM <Term>,<Label_Pattern>State Set Term. Sets a pattern recognizer term; Label_Pattern = '<label>','<pattern>' (e.g. 'DATA','#HFF').Number: 1,2; Text: A,B,C,D,E,F,G,H,I,J; Text
:MACHine<Machine>:STRigger:TERM? <Term>,'<Label>'State Read Term. Returns the pattern of a term for the given label.Number: 1,2; Text: A,B,C,D,E,F,G,H,I,J; Text
:MACHine<Machine>:STRigger:RANGe<Range> <Range_Spec>State Set Range. Sets range term 1 or 2; Range_Spec = '<label>','<start_pattern>','<stop_pattern>'.Number: 1,2; Number: 1,2; Text
:MACHine<Machine>:STRigger:RANGe<Range>?State Read Range. Returns the range term label and end points.Number: 1,2; Number: 1,2
:MACHine<Machine>:STRigger:TIMER<Timer> <Time>State Set Timer. Sets timer 1 or 2 value (400 ns to 500 s).Number: 1,2; Number: 1,2; Number: 400E-9,500
:MACHine<Machine>:STRigger:TIMER<Timer>?State Read Timer. Returns the timer value.Number: 1,2; Number: 1,2
:MACHine<Machine>:STRigger:TCONtrol<Level> <Timer_Action>State Set Timer Control. Sets timer control for a level; Timer_Action = <timer 1|2>,<OFF|STARt|PAUSe|CONTinue>.Number: 1,2; Number; Text
:MACHine<Machine>:STRigger:TCONtrol<Level>? <Timer>State Read Timer Control. Returns the timer control setting of the level.Number: 1,2; Number; Number: 1,2
:MACHine<Machine>:STRigger:TAG <Tag>State Set Tag. Sets count tagging: OFF, TIME, or a quoted state tag qualifier.Number: 1,2; Text: OFF,TIME
:MACHine<Machine>:STRigger:TAG?State Read Tag. Returns the count tag specification.Number: 1,2
:MACHine<Machine>:STRigger:TAKenbranch <Store>State Set Taken Branch. Sets whether states causing a branch are stored.Number: 1,2; Text: STORe,NOSTore
:MACHine<Machine>:STRigger:TAKenbranch?State Read Taken Branch. Returns the taken-branch store setting.Number: 1,2
:MACHine<Machine>:STRigger:MLENgth <Length>State Set Memory Length. Sets the state memory depth.Number: 1,2; Number: 4096,8192,16384,32768,65536,131072,262144,516096,524288,1040384,1048576,2080768
:MACHine<Machine>:STRigger:MLENgth?State Read Memory Length. Returns the state memory depth.Number: 1,2
:MACHine<Machine>:STRigger:TPOSition <Position>State Set Trigger Position. Sets the trigger position in the trace.Number: 1,2; Text: STARt,CENTer,END
:MACHine<Machine>:STRigger:TPOSition POSTstore,<Percent>State Set Trigger Poststore. Sets the trigger position as a poststore percentage (0-100).Number: 1,2; Number: 0,100
:MACHine<Machine>:STRigger:TPOSition?State Read Trigger Position. Returns the trigger position setting.Number: 1,2
:MACHine<Machine>:SLISt:COLumn <Col>,<Label_Base>State List Column. Assigns a label and base to listing column 1-61; Label_Base = '<label>',<base> (e.g. 'ADDR',HEX).Number: 1,2; Number: 1,61; Text
:MACHine<Machine>:SLISt:COLumn? <Col>State Read List Column. Returns the column configuration.Number: 1,2; Number: 1,61
:MACHine<Machine>:SLISt:DATA? <Line>,'<Label>'State List Data. Returns the value of a label at the given listing line number (relative to trigger).Number: 1,2; Number; Text
:MACHine<Machine>:SLISt:LINE <Line>State List Line. Scrolls the state listing to center the specified line.Number: 1,2; Number
:MACHine<Machine>:SLISt:LINE?State Read List Line. Returns the line number at center screen.Number: 1,2
:MACHine<Machine>:SLISt:REMoveState List Remove. Removes all labels except the leftmost from the state listing.Number: 1,2
:MACHine<Machine>:SLISt:MMODe <Mode>State List Marker Mode. Sets the state listing marker mode.Number: 1,2; Text: OFF,PATTern,STATe,TIME,MSTats
:MACHine<Machine>:SLISt:MMODe?State Read List Marker Mode. Returns the state listing marker mode.Number: 1,2
:MACHine<Machine>:SLISt:XPATtern '<Label>','<Pattern>'State List X Pattern. Sets the X marker pattern for a label.Number: 1,2; Text; Text
:MACHine<Machine>:SLISt:OPATtern '<Label>','<Pattern>'State List O Pattern. Sets the O marker pattern for a label.Number: 1,2; Text; Text
:MACHine<Machine>:SLISt:XSEarch <Occurrence>,<Origin>State List X Search. Sets the X marker search occurrence and origin.Number: 1,2; Number; Text: TRIGger,STARt
:MACHine<Machine>:SLISt:OSEarch <Occurrence>,<Origin>State List O Search. Sets the O marker search occurrence and origin.Number: 1,2; Number; Text: TRIGger,STARt,XMARker
:MACHine<Machine>:SLISt:CLRPattern <Marker>State List Clear Pattern. Clears the X, O or all marker patterns.Number: 1,2; Text: X,O,ALL
:MACHine<Machine>:SLISt:XSTate?State Read X State. Returns the listing line of the X marker (2147483647 if invalid).Number: 1,2
:MACHine<Machine>:SLISt:OSTate?State Read O State. Returns the listing line of the O marker (2147483647 if invalid).Number: 1,2
:MACHine<Machine>:SLISt:XOTime?State Read XO Time. Returns time (or states) from X to O marker.Number: 1,2
:MACHine<Machine>:SLISt:TAVerage?State Read Time Average. Returns the average X-to-O time over valid runs.Number: 1,2
:MACHine<Machine>:SLISt:TMAXimum?State Read Time Maximum. Returns the maximum X-to-O time.Number: 1,2
:MACHine<Machine>:SLISt:TMINimum?State Read Time Minimum. Returns the minimum X-to-O time.Number: 1,2
:MACHine<Machine>:SLISt:VRUNs?State Read Valid Runs. Returns valid runs and total runs.Number: 1,2
:MACHine<Machine>:SLISt:RUNTil <Spec>State List Run Until. Sets the repetitive stop condition: OFF, LT,<v>, GT,<v>, INRange,<v>,<v> or OUTRange,<v>,<v>.Number: 1,2; Text
:MACHine<Machine>:SLISt:RUNTil?State Read List Run Until. Returns the run-until stop condition.Number: 1,2
:MACHine<Machine>:SWAVeform:INSert '<Label>',<Bit_Id>State Wave Insert. Adds a label waveform (bit 0-31, OVERlay or ALL) to the state waveform display.Number: 1,2; Text; Text
:MACHine<Machine>:SWAVeform:REMoveState Wave Remove. Clears the state waveform display.Number: 1,2
:MACHine<Machine>:SWAVeform:RANGe <Samples>State Wave Range. Sets the number of samples across the state waveform screen (10-5000).Number: 1,2; Number: 10,5000
:MACHine<Machine>:SWAVeform:DELay <Samples>State Wave Delay. Sets samples between trigger and screen center.Number: 1,2; Number
:MACHine<Machine>:SWAVeform:CENTer <Marker>State Wave Center. Centers the state waveform display on the markers or trigger.Number: 1,2; Text: X,O,XO,TRIGger
:MACHine<Machine>:SWAVeform:ACCumulate ONState Wave Accumulate On. Turns state waveform accumulate mode on.Number: 1,2
:MACHine<Machine>:SWAVeform:ACCumulate OFFState Wave Accumulate Off. Turns state waveform accumulate mode off.Number: 1,2
:MACHine<Machine>:COMPare:SETCompare Set Dont Care. Sets every state of the reference listing to don't care.Number: 1,2
:MACHine<Machine>:COMPare:CLEarCompare Clear. Clears all don't cares in the reference listing (replaces with zeros).Number: 1,2
:MACHine<Machine>:COMPare:CMASk '<Label>',<Care_Spec>Compare Channel Mask. Sets the channel compare mask for a label ('*' care, '.' don't care).Number: 1,2; Text; Text
:MACHine<Machine>:COMPare:DATA? '<Label>',<Line>Compare Read Data. Returns the reference listing value of a label at a line.Number: 1,2; Text; Number
:MACHine<Machine>:COMPare:FIND? <Occurrence>Compare Find Difference. Returns the line number of the Nth difference within the compare range.Number: 1,2; Number
:MACHine<Machine>:COMPare:LINE <Line>Compare Line. Centers the compare listing about the specified line.Number: 1,2; Number
:MACHine<Machine>:COMPare:MENU <Listing>Compare Menu. Displays the reference or difference listing.Number: 1,2; Text: REFerence,DIFFerence
:MACHine<Machine>:COMPare:RANGe FULLCompare Range Full. Compares over the full range.Number: 1,2
:MACHine<Machine>:COMPare:RANGe PARTial,<Start>,<Stop>Compare Range Partial. Compares over a partial range of lines.Number: 1,2; Number; Number
:MACHine<Machine>:COMPare:RUNTil <Spec>Compare Run Until. Sets repetitive stop condition: OFF, EQUal, NEQual, LT,<v>, GT,<v>, INRange,<v>,<v>, OUTRange,<v>,<v>.Number: 1,2; Text
:MACHine<Machine>:TFORmat:LABel '<Name>',<Label_Spec>Timing Set Label. Creates/modifies a timing label: Label_Spec = <polarity>,<clock_bits>,<upper_bits>,<lower_bits>[,...].Number: 1,2; Text; Text
:MACHine<Machine>:TFORmat:LABel? '<Name>'Timing Read Label. Returns polarity and channel assignment of the timing label.Number: 1,2; Text
:MACHine<Machine>:TFORmat:REMove '<Name>'Timing Remove Label. Deletes the named timing label.Number: 1,2; Text
:MACHine<Machine>:TFORmat:REMove ALLTiming Remove All Labels. Deletes all timing labels.Number: 1,2
:MACHine<Machine>:TFORmat:ACQMode <Mode>Timing Set Acq Mode. Sets timing acquisition mode: full-channel or half-channel (higher rate).Number: 1,2; Text: FULL,HALF
:MACHine<Machine>:TFORmat:ACQMode?Timing Read Acq Mode. Returns the timing acquisition mode.Number: 1,2
:MACHine<Machine>:TFORmat:THReshold<Pod> <Level>Timing Set Threshold. Sets pod N threshold to TTL, ECL or a voltage from -6.00 to +6.00 V.Number: 1,2; Number: 1,12; Text: TTL,ECL
:MACHine<Machine>:TFORmat:THReshold<Pod>?Timing Read Threshold. Returns the threshold of pod N.Number: 1,2; Number: 1,12
:MACHine<Machine>:TTRigger:ACQuisition <Mode>Timing Trigger Acquisition. Sets the timing trigger acquisition mode.Number: 1,2; Text: AUTOmatic,MANual
:MACHine<Machine>:TTRigger:ACQuisition?Timing Read Trigger Acquisition. Returns the timing acquisition mode.Number: 1,2
:MACHine<Machine>:TTRigger:CLEar <Scope>Timing Trigger Clear. Clears all Timing Trigger settings, sequence levels or resource patterns.Number: 1,2; Text: All,SEQuence,RESource
:MACHine<Machine>:TTRigger:SEQuence <Levels>Timing Set Sequence. Defines the timing trigger sequence with 1-10 levels (trigger is last level).Number: 1,2; Number: 1,10
:MACHine<Machine>:TTRigger:SEQuence?Timing Read Sequence. Returns the timing sequence specification.Number: 1,2
:MACHine<Machine>:TTRigger:FIND<Level> <Find_Spec>Timing Set Find. Sets the level qualifier; Find_Spec = '<qualifier>',{GT|LT},<duration> or '<qualifier>',OCCurrence,<n>.Number: 1,2; Number; Text
:MACHine<Machine>:TTRigger:FIND<Level>?Timing Read Find. Returns the qualifier and condition mode of the level.Number: 1,2; Number
:MACHine<Machine>:TTRigger:BRANch<Level> <Branch_Spec>Timing Set Branch. Sets the branch qualifier; Branch_Spec = '<qualifier>',<to_level_number>.Number: 1,2; Number; Text
:MACHine<Machine>:TTRigger:BRANch<Level>?Timing Read Branch. Returns the branch qualifier of the level.Number: 1,2; Number
:MACHine<Machine>:TTRigger:TERM <Term>,<Label_Pattern>Timing Set Term. Sets a timing pattern term; Label_Pattern = '<label>','<pattern>'.Number: 1,2; Text: A,B,C,D,E,F,G,I; Text
:MACHine<Machine>:TTRigger:TERM? <Term>,'<Label>'Timing Read Term. Returns the pattern of a term for a label.Number: 1,2; Text: A,B,C,D,E,F,G,I; Text
:MACHine<Machine>:TTRigger:EDGE<Edge> <Edge_Spec>Timing Set Edge. Defines edge term 1 or 2; Edge_Spec = '<label>','<per-bit string of R rising, F falling, E either, . don't care>'.Number: 1,2; Number: 1,2; Text
:MACHine<Machine>:TTRigger:RANGe<Range> <Range_Spec>Timing Set Range. Sets range term 1 or 2; Range_Spec = '<label>','<start_pattern>','<stop_pattern>'.Number: 1,2; Number: 1,2; Text
:MACHine<Machine>:TTRigger:RANGe<Range>?Timing Read Range. Returns the range term specification.Number: 1,2; Number: 1,2
:MACHine<Machine>:TTRigger:TIMER<Timer> <Time>Timing Set Timer. Sets timer 1 or 2 value (400 ns to 500 s).Number: 1,2; Number: 1,2; Number: 400E-9,500
:MACHine<Machine>:TTRigger:TIMER<Timer>?Timing Read Timer. Returns the timer value.Number: 1,2; Number: 1,2
:MACHine<Machine>:TTRigger:TCONtrol<Level> <Timer_Action>Timing Set Timer Control. Sets timer control for a level; Timer_Action = <timer 1|2>,<OFF|STARt|PAUSe|CONTinue>.Number: 1,2; Number; Text
:MACHine<Machine>:TTRigger:SPERiod <Period>Timing Set Sample Period. Sets the timing sample period (4 ns 16554A / 2 ns 16555A/D to 8 ms).Number: 1,2; Number: 2E-9,8E-3
:MACHine<Machine>:TTRigger:SPERiod?Timing Read Sample Period. Returns the timing sample period.Number: 1,2
:MACHine<Machine>:TTRigger:MLENgth <Length>Timing Set Memory Length. Sets the timing memory depth.Number: 1,2; Number: 4096,8192,16384,32768,65536,131072,262144,516096,524288,1040384,1048576,2080768,2088960,2097152,4177920
:MACHine<Machine>:TTRigger:MLENgth?Timing Read Memory Length. Returns the timing memory depth.Number: 1,2
:MACHine<Machine>:TTRigger:TPOSition <Position>Timing Set Trigger Position. Sets the timing trigger position.Number: 1,2; Text: STARt,CENTer,END
:MACHine<Machine>:TTRigger:TPOSition DELay,<Time>Timing Set Trigger Delay. Sets the trigger position as a delay time.Number: 1,2; Number
:MACHine<Machine>:TTRigger:TPOSition POSTstore,<Percent>Timing Set Trigger Poststore. Sets the trigger position as poststore percentage (0-100).Number: 1,2; Number: 0,100
:MACHine<Machine>:TTRigger:TPOSition?Timing Read Trigger Position. Returns the timing trigger position.Number: 1,2
:MACHine<Machine>:TWAVeform:INSert '<Label>',<Bit_Id>Timing Wave Insert. Inserts a label waveform (bit 0-31, OVERlay or ALL) in the timing waveform display.Number: 1,2; Text; Text
:MACHine<Machine>:TWAVeform:REMoveTiming Wave Remove. Deletes all waveforms from the timing display.Number: 1,2
:MACHine<Machine>:TWAVeform:RANGe <Time>Timing Wave Range. Sets full-screen time (10 ns to 10 ks).Number: 1,2; Number: 10E-9,10E3
:MACHine<Machine>:TWAVeform:RANGe?Timing Read Wave Range. Returns the full-screen time.Number: 1,2
:MACHine<Machine>:TWAVeform:DELay <Time>Timing Wave Delay. Sets delay from trigger to screen center (-2500 s to +2500 s).Number: 1,2; Number: -2500,2500
:MACHine<Machine>:TWAVeform:DELay?Timing Read Wave Delay. Returns the waveform delay.Number: 1,2
:MACHine<Machine>:TWAVeform:CENTer <Marker>Timing Wave Center. Centers the timing waveform display on markers or trigger.Number: 1,2; Text: X,O,XO,TRIGger
:MACHine<Machine>:TWAVeform:ACCumulate ONTiming Wave Accumulate On. Turns timing waveform accumulate mode on.Number: 1,2
:MACHine<Machine>:TWAVeform:ACCumulate OFFTiming Wave Accumulate Off. Turns timing waveform accumulate mode off.Number: 1,2
:MACHine<Machine>:TWAVeform:MMODe <Mode>Timing Wave Marker Mode. Sets the timing waveform marker mode.Number: 1,2; Text: OFF,PATTern,TIME,MSTats
:MACHine<Machine>:TWAVeform:MMODe?Timing Read Wave Marker Mode. Returns the timing waveform marker mode.Number: 1,2
:MACHine<Machine>:TWAVeform:XTIMe <Time>Timing Wave X Time. Positions the X marker in time (-2.5 ks to +2.5 ks).Number: 1,2; Number
:MACHine<Machine>:TWAVeform:OTIMe <Time>Timing Wave O Time. Positions the O marker in time (-2.5 ks to +2.5 ks).Number: 1,2; Number
:MACHine<Machine>:TWAVeform:XTIMe?Timing Read X Time. Returns the X marker time (9.9E37 if invalid).Number: 1,2
:MACHine<Machine>:TWAVeform:OTIMe?Timing Read O Time. Returns the O marker time (9.9E37 if invalid).Number: 1,2
:MACHine<Machine>:TWAVeform:XOTime?Timing Read XO Time. Returns the time from X to O marker (9.9E37 if invalid).Number: 1,2
:MACHine<Machine>:TWAVeform:XPATtern '<Label>','<Pattern>'Timing Wave X Pattern. Sets the X marker search pattern for a label.Number: 1,2; Text; Text
:MACHine<Machine>:TWAVeform:OPATtern '<Label>','<Pattern>'Timing Wave O Pattern. Sets the O marker search pattern for a label.Number: 1,2; Text; Text
:MACHine<Machine>:TWAVeform:XSEarch <Occurrence>,<Origin>Timing Wave X Search. Sets the X marker search occurrence and origin.Number: 1,2; Number; Text: TRIGger,STARt
:MACHine<Machine>:TWAVeform:OSEarch <Occurrence>,<Origin>Timing Wave O Search. Sets the O marker search occurrence and origin.Number: 1,2; Number; Text: STARt,TRIGger,XMARker
:MACHine<Machine>:TWAVeform:XCONdition <Condition>Timing Wave X Condition. Places the X marker on entry or exit of the X pattern.Number: 1,2; Text: ENTering,EXITing
:MACHine<Machine>:TWAVeform:OCONdition <Condition>Timing Wave O Condition. Places the O marker on entry or exit of the O pattern.Number: 1,2; Text: ENTering,EXITing
:MACHine<Machine>:TWAVeform:CLRPattern <Marker>Timing Wave Clear Pattern. Clears X, O or all marker patterns.Number: 1,2; Text: X,O,ALL
:MACHine<Machine>:TWAVeform:CLRStatTiming Wave Clear Stats. Clears the waveform marker statistics.Number: 1,2
:MACHine<Machine>:TWAVeform:TAVerage?Timing Read Time Average. Returns the average X-to-O time.Number: 1,2
:MACHine<Machine>:TWAVeform:TMAXimum?Timing Read Time Maximum. Returns the maximum X-to-O time.Number: 1,2
:MACHine<Machine>:TWAVeform:TMINimum?Timing Read Time Minimum. Returns the minimum X-to-O time.Number: 1,2
:MACHine<Machine>:TWAVeform:VRUNs?Timing Read Valid Runs. Returns valid runs and total runs.Number: 1,2
:MACHine<Machine>:TWAVeform:RUNTil <Spec>Timing Wave Run Until. Sets the repetitive stop condition: OFF, LT,<v>, GT,<v>, INRange,<v>,<v> or OUTRange,<v>,<v>.Number: 1,2; Text
:MACHine<Machine>:TLISt:COLumn <Col>,<Label_Base>Timing List Column. Assigns a label and base to timing listing column 1-61; Label_Base = '<label>',<base>.Number: 1,2; Number: 1,61; Text
:MACHine<Machine>:TLISt:DATA? <Line>,'<Label>'Timing List Data. Returns the value of a label at the given timing listing line.Number: 1,2; Number; Text
:MACHine<Machine>:TLISt:LINE <Line>Timing List Line. Scrolls the timing listing to center the specified line.Number: 1,2; Number
:MACHine<Machine>:TLISt:MMODe <Mode>Timing List Marker Mode. Sets the timing listing marker mode.Number: 1,2; Text: OFF,PATTern,TIME,MSTats
:MACHine<Machine>:TLISt:XSTate?Timing Read List X State. Returns the listing line of the X marker.Number: 1,2
:MACHine<Machine>:TLISt:OSTate?Timing Read List O State. Returns the listing line of the O marker.Number: 1,2
:MACHine<Machine>:TLISt:XOTime?Timing Read List XO Time. Returns time from X to O marker in the timing listing.Number: 1,2
:MACHine<Machine>:SYMBol:BASE '<Label>',<Base>Symbol Base. Sets the base for symbols of a label.Number: 1,2; Text; Text: BINary,HEXadecimal,OCTal,DECimal,ASCii
:MACHine<Machine>:SYMBol:PATTern '<Label>',<Symbol_Spec>Symbol Pattern. Creates a pattern symbol; Symbol_Spec = '<symbol_name>','<pattern>'.Number: 1,2; Text; Text
:MACHine<Machine>:SYMBol:RANGe '<Label>',<Symbol_Spec>Symbol Range. Creates a range symbol; Symbol_Spec = '<symbol_name>','<start>','<stop>'.Number: 1,2; Text; Text
:MACHine<Machine>:SYMBol:WIDTh '<Label>',<Width>Symbol Width. Sets symbol display width (1-16 characters) for a label.Number: 1,2; Text; Number: 1,16
:MACHine<Machine>:SYMBol:REMoveSymbol Remove. Deletes all symbols from the machine.Number: 1,2

INT subsystem (21)

CommandWhat it doesArguments
:INTermodule:INSert <Source>,<Destination>Intermodule Insert. Adds a module (1-10) or PORT OUT (OUT) to the intermodule tree, armed from GROUP or another module.Text; Text
:INTermodule:DELete <Target>Intermodule Delete. Removes a module, PORT OUT or the entire tree (ALL) from the Group Run.Text: ALL,OUT,1,2,3,4,5,6,7,8,9,10
:INTermodule:TREE <Tree_Spec>Set Intermodule Tree. Specifies the whole intermodule tree: comma list of arm values for modules A-E (or A-J) then PORT OUT (-1 not in tree, 0 group run, 1-10 armed by slot).Text
:INTermodule:TREE?Read Intermodule Tree. Returns the intermodule tree arm values for each module and PORT OUT.None
:INTermodule:TTIMe?Read Intermodule Trigger Times. Returns the absolute intermodule trigger time for each module slot.None
:INTermodule:HTIMe?Read Intermodule HW Skew. Returns the internal hardware skew of the intermodule configuration (9.9E37 if none).None
:INTermodule:SKEW<Module> <Setting>Set Intermodule Skew. Sets the user skew for module N in seconds (-1.0 to 1.0).Number: 1,2,3,4,5,6,7,8,9,10; Number: -1.0,1.0
:INTermodule:SKEW<Module>?Read Intermodule Skew. Returns the user-defined skew of module N.Number: 1,2,3,4,5,6,7,8,9,10
:INTermodule:INPort ONIntermodule Port In On. Turns arming of the intermodule Group Run from Port In on.None
:INTermodule:INPort OFFIntermodule Port In Off. Turns arming of the intermodule Group Run from Port In off.None
:INTermodule:INPort?Read Intermodule Port In. Returns the Port In Group Run setting (0 off, 1 on, 2 OR trigger).None
:INTermodule:PORTEDGE <Edge>Set Port In Edge. Sets the Port In BNC to respond to a rising (1) or falling (0) edge.Number: 0,1
:INTermodule:PORTEDGE?Read Port In Edge. Returns the Port In edge setting (1 rising, 0 falling).None
:INTermodule:PORTLEV <Level>Set Port In Level. Sets the Port In threshold: TTL, ECL or a user level from -4.0 V to +5.0 V.Text: TTL,ECL
:INTermodule:PORTLEV?Read Port In Level. Returns the Port In threshold setting.None
:INTermodule:OUTDrive <Drive>Set Port Out Drive. Sets the Port Out BNC to normal (TTL) or open-collector output.Text: NORMal,OPENcllctr
:INTermodule:OUTDrive?Read Port Out Drive. Returns the Port Out drive setting (0 normal, 1 open collector).None
:INTermodule:OUTPolar <Polarity>Set Port Out Polarity. Sets the Port Out BNC polarity.Text: HIGHtrue,LOWtrue
:INTermodule:OUTPolar?Read Port Out Polarity. Returns the Port Out polarity (0 high true, 1 low true).None
:INTermodule:OUTType <Type>Set Port Out Type. Sets the Port Out BNC signal type.Text: FEEDthru,LATChed,PULse
:INTermodule:OUTType?Read Port Out Type. Returns the Port Out signal type (0 feedthru, 1 latched, 2 pulse).None

Mass memory (MMEMory) (19)

CommandWhat it doesArguments
:MMEMory:MSI <Msus>Set Mass Storage. Selects the default mass storage device (INTernal0 = hard disk, INTernal1 = flexible disk).Text: INTernal0,INTernal1
:MMEMory:MSI?Read Mass Storage. Returns the current default mass storage device.None
:MMEMory:CATalog? <Option>,<Msus>Read Catalog. Returns the disk directory as block data (ALL or FULL format).Text: ALL,FULL; Text: INTernal0,INTernal1
:MMEMory:CD '<Directory>',<Msus>Change Directory. Changes the present working directory on the specified drive (DOS disks).Text; Text: INTernal0,INTernal1
:MMEMory:PWD? <Msus>Read Present Directory. Returns the present working directory for the specified drive.Text: INTernal0,INTernal1
:MMEMory:MKDir '<Directory>',<Msus>Make Directory. Creates a directory on the specified DOS disk.Text; Text: INTernal0,INTernal1
:MMEMory:LOAD:CONFig '<Name>',<Msus>,<Module>Load Config. Loads a configuration file from disk into the specified module (-2 to 10, 0 = system).Text; Text: INTernal0,INTernal1; Number: -2,-1,0,1,2,3,4,5,6,7,8,9,10
:MMEMory:LOAD:CONFig '<Name>',<Msus>Load Config All. Loads a configuration file from disk into all modules/system as saved in the file.Text; Text: INTernal0,INTernal1
:MMEMory:LOAD:IASSembler '<IA_Name>',<Msus>,<Machine>Load Inverse Assembler. Loads an inverse assembler file into machine 1 or 2 of the selected state module.Text; Text: INTernal0,INTernal1; Number: 1,2
:MMEMory:STORe:CONFig '<Name>',<Msus>,'<Description>'Store Config. Stores the current configuration to a disk file with a description (up to 32 characters).Text; Text: INTernal0,INTernal1; Text
:MMEMory:COPY '<Name>',<Msus>,'<New_Name>'Copy File. Copies a file to a new file name (wildcards supported).Text; Text: INTernal0,INTernal1; Text
:MMEMory:REName '<Name>',<Msus>,'<New_Name>'Rename File. Renames a file on the specified drive.Text; Text: INTernal0,INTernal1; Text
:MMEMory:PURGe '<Name>',<Msus>Purge File. Deletes a file (or empty directory) from the specified drive.Text; Text: INTernal0,INTernal1
:MMEMory:INITialize <Format>,<Msus>Initialize Disk. Formats the disk in DOS or LIF (LIF not allowed on hard disk).Text: DOS,LIF; Text: INTernal0,INTernal1
:MMEMory:AUToload '<Auto_File>',<Msus>Autoload File. Enables autoload of the specified configuration file at power-on.Text; Text: INTernal0,INTernal1
:MMEMory:AUToload OFFAutoload Off. Disables the autoload feature.None
:MMEMory:AUToload?Read Autoload. Returns 0 if autoload is disabled or the autoload file name and drive.None
:MMEMory:UPLoad? '<Name>',<Msus>Upload File. Uploads the specified file contents from disk as block data.Text; Text: INTernal0,INTernal1
:MMEMory:VOLume? <Msus>Read Disk Volume. Returns the disk volume type (DOS, LIF or ???).Text: INTernal0,INTernal1

System (SYSTem) (16)

CommandWhat it doesArguments
:SYSTem:ERRor? <Format>Read System Error. Returns the oldest error in the error queue as a number or as number plus string.Text: NUMeric,STRing
:SYSTem:DSP '<Message>'System Display Message. Writes a quoted string (up to 68 characters) to the instrument display.Text
:SYSTem:HEADer ONSystem Header On. Turns command headers in query responses on.None
:SYSTem:HEADer OFFSystem Header Off. Turns command headers in query responses off.None
:SYSTem:HEADer?Read System Header. Returns the header state (1 = on, 0 = off).None
:SYSTem:LONGform ONSystem Longform On. Turns long-form headers and arguments in query responses on.None
:SYSTem:LONGform OFFSystem Longform Off. Turns long-form headers and arguments in query responses off.None
:SYSTem:LONGform?Read System Longform. Returns the long-form state (1 = on, 0 = off).None
:SYSTem:PRINt SCReenPrint Screen. Prints the screen to the printer on the current printer interface.None
:SYSTem:PRINt SCReen,DISK,'<Pathname>',<Msus>,<Format>Print Screen To Disk. Prints the screen to a disk file in the chosen graphics format.Text; Text: INTernal0,INTernal1; Text: BTIF,CTIF,PCX,EPS
:SYSTem:PRINt ALLPrint All. Prints the entire listing buffer to the printer (menus with ASCII representation).None
:SYSTem:PRINt ALL,DISK,'<Pathname>',<Msus>Print All To Disk. Prints the entire listing to an ASCII file on disk.Text; Text: INTernal0,INTernal1
:SYSTem:PRINt PARTial,<Start>,<End>Print Partial. Prints a portion of the listing from the start state to the end state.Number; Number
:SYSTem:PRINt? <Target>Read Print Data. Sends the screen or listing buffer data to the controller (not in block mode, no header).Text: SCReen,ALL
:SYSTem:SETup?Read System Setup. Returns the selected module configuration as block data.None
:SYSTem:DATA?Read System Data. Returns the acquired data and configuration of the selected module as block data.None

BEEP subsystem (4)

CommandWhat it doesArguments
:BEEPerBeeper Sound. Sounds the beeper once without changing the beeper mode.None
:BEEPer ONBeeper On. Turns the beeper mode on.None
:BEEPer OFFBeeper Off. Turns the beeper mode off.None
:BEEPer?Read Beeper. Returns the beeper mode (1 = on, 0 = off).None

RMOD subsystem (3)

CommandWhat it doesArguments
:RMODe SINGleRun Mode Single. Sets the run mode of the selected module (or Intermodule) to single acquisition.None
:RMODe REPetitiveRun Mode Repetitive. Sets the run mode of the selected module (or Intermodule) to repetitive acquisition.None
:RMODe?Read Run Mode. Returns the current run mode (SINGle or REPetitive).None

LOCK subsystem (3)

CommandWhat it doesArguments
:LOCKout ONLockout On. Turns front-panel lockout on.None
:LOCKout OFFLockout Off. Turns front-panel lockout off.None
:LOCKout?Read Lockout. Returns the front-panel lockout state (1 = locked, 0 = unlocked).None

EOI subsystem (3)

CommandWhat it doesArguments
:EOI ONEOI On. Turns EOI assertion on the last byte of a reply on.None
:EOI OFFEOI Off. Turns EOI assertion on the last byte of a reply off.None
:EOI?Read EOI. Returns the EOI setting (1 = on, 0 = off).None

SEL subsystem (2)

CommandWhat it doesArguments
:SELect <Module>Select Module. Selects which module (or system) has parser control: 0 = System, 1-5 = modules A-E (1-10 with HP 16501A), -1/-2 = software options.Number: -2,-1,0,1,2,3,4,5,6,7,8,9,10
:SELect?Read Selected Module. Returns the currently selected module (0 = System, 1-10 = slots A-J).None

RTC subsystem (2)

CommandWhat it doesArguments
:RTC <Day>,<Month>,<Year_Time>Set Real Time Clock. Sets the real-time clock; Year_Time is <year>,<hour>,<minute>,<second> (year 1990-2089, 24-hour time).Number: 1,31; Number: 1,12; Text
:RTC?Read Real Time Clock. Returns the real-time clock as day,month,year,hour,minute,second.None

DBL subsystem (2)

CommandWhat it doesArguments
:DBLock <Format>Set Data Block Format. Selects the SYSTem:DATA block format (packed or unpacked).Text: PACKed,UNPacked
:DBLock?Read Data Block Format. Returns the SYSTem:DATA block format.None

STAR subsystem (1)

CommandWhat it doesArguments
:STARtStart Acquisition. Starts the selected module (or Intermodule group) running in the specified run mode (overlapped command).None

Run control (1)

CommandWhat it doesArguments
:STOPStop Acquisition. Stops the selected module (or Intermodule group) acquisition (overlapped command).None

CARD subsystem (1)

CommandWhat it doesArguments
:CARDcage?Read Cardcage. Returns card identification numbers and module assignments for each slot in the mainframe.None

Other subsystem (1)

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

WAIT subsystem (1)

CommandWhat it doesArguments
wait(<ms>)Wait. Waits for number of millisecondsNumber

SAVE subsystem (1)

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

IEEE 488.2 common commands (14)

CommandWhat it doesArguments
*IDN?Identify. Returns the identification string (HEWLETT-PACKARD,16500C,0,REV <rev>).None
*CLSClear Status. Clears all event status registers, queues and the error queue.None
*TST?Self Test. Returns the power-up self-test result (0 = pass, bit-mapped 0-511).None
*OPC?Operation Complete. Returns 1 when all pending operations are complete.None
*OPCSet Operation Complete. Sets the OPC bit in the Event Status Register when pending operations complete.None
*WAIWait To Continue. Waits until all overlapped commands (e.g. STARt/STOP) complete.None
*TRGTrigger Bus. Group Execute Trigger: same as STARt for the intermodule group run.None
*OPT?Read Options. Returns the installed software options/modules identification.None
*STB?Read Status Byte. Returns the Status Byte register value.None
*ESR?Read Event Status. Returns and clears the Standard Event Status Register (0-255).None
*ESE?Read Event Status Enable. Returns the Standard Event Status Enable mask.None
*SRE?Read Service Request Enable. Returns the Service Request Enable mask.None
*ESE <Mask>Set Event Status Enable. Sets the Standard Event Status Enable mask (0-255).Number: 0,255
*SRE <Mask>Set Service Request Enable. Sets the Service Request Enable mask (0-255).Number: 0,255

Where these commands come from

This reference is generated from TestFlow's instrument library, which is drafted from Keysight's programming documentation for the 16500C 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 16500C support SCPI remote control?

Yes. The Keysight 16500C accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 268 SCPI commands for it: 107 queries that read values or state, and 161 settings and actions.

How do I control the Keysight 16500C 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?, :MMEMory:AUToload OFF and :SELect?.

Which command reads a value from the Keysight 16500C?

:SELect? (read selected module). Returns the currently selected module (0 = System, 1-10 = slots A-J). The full list of queries is in the command reference on this page, grouped by subsystem.

Can I automate the Keysight 16500C 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 16500C 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.