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.
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.
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 N5767A | TDK-Lambda G30-56 | |
|---|---|---|
| Commands in TestFlow's library | 75 | 22 |
| Queries (read a value or state) | 39 | 9 |
| Settings and actions | 36 | 13 |
| Subsystems | 10 | 8 |
| Distinct command headers | 65 | 18 |
| Headers the other lacks | 53 | 6 |
| Command language | SCPI | SCPI |
| Operation complete | *OPC? | *OPC? |
| Error queue | SYSTem:ERRor? | SYSTem:ERRor? |
| Models on this command set | N5767A | G30-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 |
12 command headers are in both libraries. Where the G30-56 library writes the command differently, its form is shown under the N5767A's.
| Command | What it does |
|---|---|
| OUTPut:STATe <state>G30-56: OUTPut:STATe ON | Set 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. |
| *RST | Reset Instrument. Resets the power supply to its factory-defined state. |
| *CLS | Clear Status. Clears event registers, status byte and error queue. |
| *OPC? | Operation Complete Query. Returns 1 when all pending operations are complete. |
| *WAI | Wait 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. |
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.
| Command | What 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. |
| Command | What 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. |
| Command | What it does |
|---|---|
| *TRG | Generate 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. |
| Command | What 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. |
| Command | What it does |
|---|---|
| INITiate | Initiate 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. |
| Command | What 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:CLEar | Clear Output Protection. Clears latched protection signals that disabled the output. |
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.
| Command | What 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. |
| Command | What it does |
|---|---|
| *TST? | Self Test. Runs the self-test and returns 0 for pass or 1 for failure. |
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()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.
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 (*)).
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.
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.
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.
Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.