Remote-control command sets for 20 B&K Precision instruments from TestFlow's instrument library, each with its arguments and a working PyVISA example.
The library covers 1 dynamic load, 8 function generators, 3 multimeters, 8 power supplies from B&K Precision: 518 commands in total, 145 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 B&K Precision hardware, so every entry is one that drives a real instrument.
81 SCPI commands, 44 queries
68 SCPI commands, 8 queries
68 SCPI commands, 7 queries
38 SCPI commands, 5 queries
38 SCPI commands, 5 queries
42 SCPI commands, 14 queries
52 SCPI commands, 16 queries
54 SCPI commands, 17 queries
27 SCPI commands, 10 queries
23 SCPI commands, 9 queries
27 SCPI commands, 10 queries
These commands appear on more than one B&K Precision instrument in the library, so a script that uses them carries over between models.
| Command | What it does | Models |
|---|---|---|
| *IDN? | Returns manufacturer, model, serial number and firmware revision. | 11 of 11 |
| *RST | Resets the load to its factory default state with the input off. | 11 of 11 |
| *OPC? | Places a 1 in the output queue when all pending operations are complete. | 9 of 11 |
| *CLS | Clears the event registers, status byte and error queue. | 7 of 11 |
| *TRG | Generates a bus trigger when BUS is the trigger source. | 6 of 11 |
| *TST? | Runs a self-test; returns 0 if passed, non-zero error code otherwise. | 6 of 11 |
| *RCL | Recalls a state from a memory slot. | 5 of 11 |
| *SAV | Stores the current state to a memory slot. | 5 of 11 |
The pattern is the same for every B&K Precision instrument here: open it through VISA, identify it, then write settings and query values. This example uses the B&K Precision MDL001; the full MDL001 reference has every command.
import pyvisa
rm = pyvisa.ResourceManager()
print(rm.list_resources()) # find the B&K Precision MDL001's VISA address
# Paste the address of your B&K Precision MDL001 (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("INP:PROT:CLE") # Clear Input Protection
print(inst.query("MEAS:VOLT?")) # Measure Voltage
inst.close()20 B&K Precision models (dynamic load, function generator, multimeter, power supply): MDL001, 4053B, 4054B, 4055B, 4063B, 4076B, 4077B, 4079B, 4080B, 5491B, 5492B, 5493C, 1670A, 1671A, 1672A, 9115, 9116, 9140, 9141, 9142. Each page lists every remote-control command TestFlow's agent uses for that instrument, with its arguments.
Yes. Every B&K Precision 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 B&K Precision 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 B&K Precision 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.