TDK-Lambda instrument command references

Remote-control command sets for 3 TDK-Lambda instruments from TestFlow's instrument library, each with its arguments and a working PyVISA example.

The library covers 3 power supplies from TDK-Lambda: 63 commands in total, 26 of them queries that read a value or a setting back. These are the commands TestFlow's agent sends when it automates a test on TDK-Lambda hardware, so every entry is one that drives a real instrument.

TDK-Lambda power supplies

Commands shared across TDK-Lambda instruments

These commands appear on more than one TDK-Lambda instrument in the library, so a script that uses them carries over between models.

CommandWhat it doesModels
*CLSClears all event registers and the error queue.3 of 3
*IDN?Returns the instrument identification string (manufacturer, model, serial, firmware).3 of 3
*OPC?Returns 1 when all pending operations are complete.3 of 3
*RCLRecalls an instrument state from the specified storage slot.3 of 3
*RSTResets the instrument to its default state.3 of 3
*SAVSaves the current instrument state to the specified storage slot.3 of 3
MEASure:CURRent?Measures the output current of the selected channel in amps.3 of 3
MEASure:VOLTage?Measures the output voltage of the selected channel in volts.3 of 3

Control a TDK-Lambda instrument from Python

The pattern is the same for every TDK-Lambda instrument here: open it through VISA, identify it, then write settings and query values. This example uses the TDK-Lambda G30-56; the full G30-56 reference has every command.

import pyvisa

rm = pyvisa.ResourceManager()
print(rm.list_resources())  # find the TDK-Lambda G30-56's VISA address

# Paste the address of your TDK-Lambda G30-56 (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("OUTPut:STATe ON")  # Turn On CH1
print(inst.query("MEASure:VOLTage?"))  # Measure Voltage

inst.close()

Related guides

Frequently asked questions

Which TDK-Lambda instruments have a command reference here?

3 TDK-Lambda models (power supply): G30-56, GEN40-19, Z36-6. Each page lists every remote-control command TestFlow's agent uses for that instrument, with its arguments.

Do TDK-Lambda instruments use SCPI?

Yes. Every TDK-Lambda model in TestFlow's library is programmed with SCPI commands over its remote interfaces, including the IEEE 488.2 common commands such as *IDN? and *RST.

How do I control a TDK-Lambda instrument from Python?

Install PyVISA and a VISA backend, list the connected instruments with ResourceManager().list_resources(), open the TDK-Lambda instrument by its VISA address (USB, LAN or GPIB), then send commands with write() and read values with query(). Each model page has a working example.

Can I automate TDK-Lambda instruments 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 your TDK-Lambda instruments 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.