LCR Meter · SCPI command reference

Keysight E4980A, E4980AH, and E4980AL SCPI commands

The Keysight E4980A, E4980AH, and E4980AL LCR meter is controlled remotely with SCPI commands. TestFlow's instrument library holds 25 commands for it, 11 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 E4980A on a real bench.

Commands
25
Queries
11
Subsystems
10
Models covered
3

Run this on your bench

Describe the test; TestFlow's agent uses this command set to drive your Keysight E4980A, E4980AH, or E4980AL and writes the report from the measured results.

Get started

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

# Paste the address of your Keysight E4980A (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(":FUNCtion:IMPedance:TYPE CPD")  # Set Function Type
print(inst.query(":FREQuency:CW?"))  # Read Frequency

inst.close()

Run this on your bench

Describe the test; TestFlow's agent uses this command set to drive your Keysight E4980A, E4980AH, or E4980AL and writes the report from the measured results.

Get started

Run a E4980A test without writing code

Describe the test in a sentence, for example “set function type on the E4980A, then read frequency 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

25 commands in 10 groups. A ? marks a query that returns a value. Placeholders in angle brackets take the listed values. The E4980A, E4980AH, and E4980AL share this command set in TestFlow's library.

Function (FUNCtion) (6)

CommandWhat it doesArguments
:FUNCtion:IMPedance:TYPE <Type>Set Function Type. Sets the impedance measurement function type.Text: CPD,CPQ,CPG,CPRP,CSD,CSQ,CSRS,LPD,LPQ,LPG,LPRP,LPRD,LSD,LSQ,LSRS,LSRD,RX,ZTD,ZTR,GB,YTD,YTR,VDID
:FUNCtion:IMPedance:TYPE?Read Function Type. Queries the selected impedance measurement function type.None
:FUNCtion:IMPedance:RANGe:VALue <numeric>Set Impedance Range. Sets the impedance measurement range.Number: 100m,1,10,100,300,1k,3k,10k,30k,100k
:FUNCtion:IMPedance:RANGe:VALue?Read Impedance Range. Queries the current impedance measurement range.None
:FUNCtion:IMPedance:RANGe:AUTO <State>Set Impedance AutoRange. Enables or disables automatic impedance range selection.Text: ON,OFF,1,0
:FUNCtion:IMPedance:RANGe:AUTO?Read Impedance AutoRange. Queries the impedance auto range state.None

Trigger (TRIGger) (5)

CommandWhat it doesArguments
:TRIGger:SOURce <Mode>Set Trigger Source. Sets the trigger source mode.Text: INTernal,HOLD,EXTernal,BUS
:TRIGger:SOURce?Read Trigger Source. Queries the current trigger source.None
:TRIGger:IMMediateTrigger Immediate. Generates an immediate trigger event.None
:TRIGger:DELay <numeric>Set Trigger Delay. Sets the trigger delay time.Number
:TRIGger:DELay?Read Trigger Delay. Queries the current trigger delay time.None

Frequency (FREQuency) (2)

CommandWhat it doesArguments
:FREQuency:CW <numeric>Set Frequency. Sets the continuous wave (CW) frequency.Number
:FREQuency:CW?Read Frequency. Queries the current CW frequency.None

Voltage (VOLTage) (2)

CommandWhat it doesArguments
:VOLTage:LEVel <numeric>Set Voltage Level. Sets the output voltage level.Number
:VOLTage:LEVel?Read Voltage Level. Queries the current output voltage level.None

Current (CURRent) (2)

CommandWhat it doesArguments
:CURRent:LEVel <numeric>Set Current Level. Sets the output current level.Number
:CURRent:LEVel?Read Current Level. Queries the current output current level.None

Fetch (FETCh) (2)

CommandWhat it doesArguments
:FETCh:IMPedance:FORMatted?Fetch Formatted. Returns the formatted impedance measurement results.None
:FETCh:IMPedance:CORRected?Fetch Corrected. Returns the corrected impedance measurement results.None

Source (SOURce) (2)

CommandWhat it doesArguments
:SOURce:DCSource:VOLTage:LEVel <numeric>Set DCSource Voltage. Sets the DC source voltage level.Number
:SOURce:DCSource:VOLTage:LEVel?Read DCSource Voltage. Queries the current DC source voltage level.None

Other subsystem (2)

CommandWhat it doesArguments
<SCPI>SCPI. Sends a custom SCPI command with optional parameters.Text
<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 mearurment 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 E4980A, E4980AH, and E4980AL 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 November 17, 2026.

Frequently asked questions

Does the Keysight E4980A support SCPI remote control?

Yes. The Keysight E4980A accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 25 SCPI commands for it: 11 queries that read values or state, and 14 settings and actions.

How do I control the Keysight E4980A 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?, :FUNCtion:IMPedance:TYPE CPD and :FREQuency:CW?.

Which command reads a value from the Keysight E4980A?

:FREQuency:CW? (read frequency). Queries the current CW frequency. The full list of queries is in the command reference on this page, grouped by subsystem.

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