Remote-control command sets for 2 Yokogawa instruments from TestFlow's instrument library, each with its arguments and a working PyVISA example.
The library covers 1 oscilloscope, 1 power analyzer from Yokogawa: 184 commands in total, 32 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 Yokogawa hardware, so every entry is one that drives a real instrument.
93 SCPI commands, 16 queries
91 SCPI commands, 16 queries
These commands appear on more than one Yokogawa instrument in the library, so a script that uses them carries over between models.
| Command | What it does | Models |
|---|---|---|
| *CAL? | Runs internal self-calibration and returns 0 on success or 1 on failure. | 2 of 2 |
| *CLS | Clears the standard event register, extended event register, and error queue. | 2 of 2 |
| *IDN? | Returns the instrument identification string (manufacturer, model, serial, firmware). | 2 of 2 |
| *OPC? | Returns 1 when all pending overlap commands are complete. | 2 of 2 |
| *RST | Resets the instrument to its default state. | 2 of 2 |
| *TST? | Runs the self-test and returns 0 for pass or 1 for failure. | 2 of 2 |
| *WAI | Holds execution of the next command until the pending overlap command completes. | 2 of 2 |
The pattern is the same for every Yokogawa instrument here: open it through VISA, identify it, then write settings and query values. This example uses the Yokogawa DL950; the full DL950 reference has every command.
import pyvisa
rm = pyvisa.ResourceManager()
print(rm.list_resources()) # find the Yokogawa DL950's VISA address
# Paste the address of your Yokogawa DL950 (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(":TIMebase:SOURce INTernal") # Timebase Source
print(inst.query(":CURSor:VERTical:DX:VALue?")) # Cursor V DX
inst.close()2 Yokogawa models (oscilloscope, power analyzer): DL950, WT1806E. Each page lists every remote-control command TestFlow's agent uses for that instrument, with its arguments.
Yes. Every Yokogawa 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.
Install PyVISA and a VISA backend, list the connected instruments with ResourceManager().list_resources(), open the Yokogawa 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.
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 Yokogawa instruments through the TestFlow desktop app, and writes the report from the measured results.
Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.