Power Supply · SCPI command comparison

Keysight N5767A vs TDK-Lambda G30-56: SCPI commands and remote control compared

In TestFlow's instrument library, the Keysight N5767A takes 75 SCPI commands, 39 of them queries, and the TDK-Lambda G30-56 takes 22 SCPI commands, 9 of them queries. That is 53 more on the N5767A. Counting distinct command headers (the command path without its arguments), 12 are accepted by both, 53 exist only on the N5767A, and 6 only on the G30-56. 18% of the N5767A's command headers also exist on the G30-56.

Both libraries have commands under OUTPut, SYSTem, and MEASure. Only the N5767A has VOLTage, STATus, CURRent, INITiate, TRIGger, and ABORt. Only the G30-56 has SOURce.

Both libraries synchronise with *OPC?. Both libraries read errors with SYSTem:ERRor?.

TestFlow's library gives the G30-90, G300-11.5, G300-17, G300-3.5, G300-5.6, G300-9, G40-125, G40-25, G40-42, G40-68, G40-85, G400-13, G50-100, G500-10, G60-17, G60-28, G60-45, G60-56, G60-85, G600-1.7, G600-2.8, G600-4.5, G600-5.6, G600-8.5, G80-12.5, G80-21, G80-34, and G80-42 the same command set as the G30-56, so the G30-56 column applies to them too.

N5767A commands
75
G30-56 commands
22
Shared headers
12
Unique headers
59

Run this on your bench

Describe the test; TestFlow's agent uses these command sets to drive your Keysight N5767A or TDK-Lambda G30-56 and writes the report from the measured results.

Get started

N5767A vs G30-56 at a glance

Counts come from TestFlow's instrument library, the command sets its AI agent uses to drive each instrument. A distinct command header is the command path without its arguments, so :OUTPut ON and :OUTPut OFF count once.

Keysight N5767ATDK-Lambda G30-56
Commands in TestFlow's library7522
Queries (read a value or state)399
Settings and actions3613
Subsystems108
Distinct command headers6518
Headers the other lacks536
Command languageSCPISCPI
Operation complete*OPC?*OPC?
Error queueSYSTem:ERRor?SYSTem:ERRor?
Models on this command setN5767AG30-56, G30-90, G300-11.5, G300-17, G300-3.5, G300-5.6, G300-9, G40-125, G40-25, G40-42, G40-68, G40-85, G400-13, G50-100, G500-10, G60-17, G60-28, G60-45, G60-56, G60-85, G600-1.7, G600-2.8, G600-4.5, G600-5.6, G600-8.5, G80-12.5, G80-21, G80-34, G80-42

Commands both accept

12 command headers are in both libraries. Where the G30-56 library writes the command differently, its form is shown under the N5767A's.

CommandWhat it does
OUTPut:STATe <state>G30-56: OUTPut:STATe ONSet Output Enable. Enables or disables the power supply output.
SYSTem:ERRor?Query Error. Returns the next error number and message from the error queue.
MEAS:VOLT?G30-56: MEASure:VOLTage?Measure Voltage. Returns the measured output voltage.
*IDN?Identify Instrument. Returns manufacturer, model, serial number and firmware revision.
OUTPut:STATe?Query Output Enable. Returns 1 if the output is on, 0 if off.
MEAS:CURR?G30-56: MEASure:CURRent?Measure Current. Returns the measured output current.
*RSTReset Instrument. Resets the power supply to its factory-defined state.
*CLSClear Status. Clears event registers, status byte and error queue.
*OPC?Operation Complete Query. Returns 1 when all pending operations are complete.
*WAIWait To Continue. Holds off further commands until all pending operations complete.
*RCL <state>G30-56: *RCL <Slot>Recall Instrument State. Restores a previously saved instrument state from memory location.
*SAV <state>G30-56: *SAV <Slot>Save Instrument State. Stores the present instrument state to memory location.

Only on the Keysight N5767A

53 command headers in the N5767A library have no match in the G30-56 library. Below are 22 of them from the 6 largest subsystems; the full list is in the Keysight N5767A command reference.

STATus (11 only on the N5767A)

CommandWhat it does
STATus:OPERation:EVENt?Read Operation Event Register. Returns the operation event register, which clears on read (CC, CV, WTG bits).
STATus:OPERation:CONDition?Read Operation Condition Register. Returns the live operation condition register (CC, CV, WTG bits).
STATus:OPERation:ENABle <value>Set Operation Enable Mask. Sets the operation enable mask for the operation summary bit.
STATus:OPERation:ENABle?Query Operation Enable Mask. Returns the operation enable mask.

VOLTage (10 only on the N5767A)

CommandWhat it does
VOLTage:LEVel <value>Set Voltage. Sets the immediate output voltage level in volts.
VOLTage:LEVel?Query Voltage Setting. Returns the programmed output voltage level in volts.
VOLTage:LEVel:TRIGgered <value>Set Triggered Voltage. Sets the triggered output voltage level transferred on trigger.
VOLTage:LEVel:TRIGgered?Query Triggered Voltage. Returns the triggered output voltage level in volts.

IEEE 488.2 common (*) (9 only on the N5767A)

CommandWhat it does
*TRGGenerate Trigger. Generates a bus trigger when the trigger source is BUS.
*ESR?Read Standard Event Register. Returns the standard event status register and clears it.
*ESE <value>Set Standard Event Enable. Sets the standard event status enable register mask.
*ESE?Query Standard Event Enable. Returns the standard event status enable register mask.

CURRent (8 only on the N5767A)

CommandWhat it does
CURRent:LEVel <value>Set Current. Sets the immediate output current level in amperes.
CURRent:LEVel?Query Current Setting. Returns the programmed output current level in amperes.
CURRent:LEVel:TRIGgered <value>Set Triggered Current. Sets the triggered output current level transferred on trigger.
CURRent:LEVel:TRIGgered?Query Triggered Current. Returns the triggered output current level in amperes.

INITiate (3 only on the N5767A)

CommandWhat it does
INITiateInitiate Trigger System. Initiates the trigger system so the next trigger changes the output.
INITiate:CONTinuous <state>Set Continuous Trigger Initiation. Enables or disables continuous initiation of output triggers.
INITiate:CONTinuous?Query Continuous Trigger Initiation. Returns the continuous trigger initiation state.

OUTPut (3 only on the N5767A)

CommandWhat it does
OUTPut:PON:STATe <mode>Set Power-On State. Selects reset state or last-off state at power-on.
OUTPut:PON:STATe?Query Power-On State. Returns the power-on state mode.
OUTPut:PROTection:CLEarClear Output Protection. Clears latched protection signals that disabled the output.

Only on the TDK-Lambda G30-56

6 command headers in the G30-56 library have no match in the N5767A library. Below are 5 of them from the 2 largest subsystems; the full list is in the TDK-Lambda G30-56 command reference.

SOURce (5 only on the G30-56)

CommandWhat it does
SOURce:VOLTage <Volt>Set Voltage. Sets the output voltage of the selected channel in volts.
SOURce:VOLTage?Read Voltage Setting. Reads the set output voltage of the selected channel.
SOURce:CURRent <Amp>Set Current. Sets the output current limit of the selected channel in amps.
SOURce:CURRent?Read Current Setting. Reads the set output current limit of the selected channel.

IEEE 488.2 common (*) (1 only on the G30-56)

CommandWhat it does
*TST?Self Test. Runs the self-test and returns 0 for pass or 1 for failure.

Control both from Python

With PyVISA and any VISA backend, this opens both instruments, identifies them, sends one setting, and reads one value from each. For the setting, both libraries hold OUTPut:STATe (set output enable); the G30-56 library writes it as OUTPut:STATe ON. For the reading, both libraries hold MEAS:VOLT? (measure voltage); the G30-56 library writes it as MEASure:VOLTage?. For the basics, see the PyVISA tutorial.

import pyvisa

rm = pyvisa.ResourceManager()
print(rm.list_resources())  # find both VISA addresses

a = rm.open_resource("PASTE_N5767A_ADDRESS")  # Keysight N5767A
b = rm.open_resource("PASTE_G30_56_ADDRESS")  # TDK-Lambda G30-56
for inst in (a, b):
    inst.timeout = 5000  # ms
    print(inst.query("*IDN?"))

# The same setting on both: Set Output Enable
a.write("OUTPut:STATe ON | OFF")
b.write("OUTPut:STATe ON")

# The same reading on both: Measure Voltage
print(a.query("MEAS:VOLT?"))
print(b.query("MEASure:VOLTage?"))

a.close()
b.close()

Run this on your bench

Describe the test; TestFlow's agent uses these command sets to drive your Keysight N5767A or TDK-Lambda G30-56 and writes the report from the measured results.

Get started

Frequently asked questions

What is the difference between the Keysight N5767A and the TDK-Lambda G30-56 for remote control?

In TestFlow's library the N5767A has 75 SCPI commands and the G30-56 has 22 SCPI commands. 12 command headers are common to both, 53 are only on the N5767A (mostly STATus and VOLTage), and 6 are only on the G30-56 (mostly SOURce and IEEE 488.2 common (*)).

Can I use the same SCPI code for the Keysight N5767A and the TDK-Lambda G30-56?

Partly. 12 command headers are accepted by both, including OUTPut:STATe, SYSTem:ERRor?, and MEAS:VOLT?. 59 are not, for example STATus:OPERation:EVENt? on the N5767A and SOURce:VOLTage on the G30-56, so a script that uses those needs a separate branch for each instrument.

Which has more remote commands, the N5767A or the G30-56?

The N5767A: 75 commands for the N5767A against 22 for the G30-56 in TestFlow's library. Of those, 39 on the N5767A and 9 on the G30-56 are queries that read a value or state, and the library splits them into 10 and 8 subsystems.

How do the N5767A and G30-56 signal operation complete and report errors?

Both libraries synchronise with *OPC?. Both libraries read errors with SYSTem:ERRor?. Each command named here is listed in the tables on this page and on each instrument's command reference.

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.