B&K Precision instrument command references

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.

B&K Precision dynamic loads

B&K Precision function generators

B&K Precision multimeters

B&K Precision power supplies

Commands shared across B&K Precision instruments

These commands appear on more than one B&K Precision instrument in the library, so a script that uses them carries over between models.

CommandWhat it doesModels
*IDN?Returns manufacturer, model, serial number and firmware revision.11 of 11
*RSTResets 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
*CLSClears the event registers, status byte and error queue.7 of 11
*TRGGenerates 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
*RCLRecalls a state from a memory slot.5 of 11
*SAVStores the current state to a memory slot.5 of 11

Control a B&K Precision instrument from Python

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()

Related guides

Frequently asked questions

Which B&K Precision instruments have a command reference here?

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.

Do B&K Precision instruments use SCPI?

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.

How do I control a B&K Precision instrument from Python?

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.

Can I automate B&K Precision 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 B&K Precision 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.