Multimeter · SCPI command reference

B&K Precision 5491B SCPI commands

The B&K Precision 5491B multimeter is controlled remotely with SCPI commands. TestFlow's instrument library holds 42 commands for it, 14 of them queries that read values or state, grouped below by subsystem with their arguments. It is the same library TestFlow's AI agent uses to drive the 5491B on a real bench.

Commands
42
Queries
14
Subsystems
13
Models covered
1

Run this on your bench

Describe the test; TestFlow's agent uses this command set to drive your B&K Precision 5491B and writes the report from the measured results.

Get started

Control the B&K Precision 5491B from Python

With PyVISA, any VISA backend, and the instrument on USB, LAN or GPIB, this opens a session, identifies the instrument, sends one setting, and reads one value. Every command in it comes from the reference below. For a full walkthrough, see the PyVISA tutorial and the SCPI command cheat sheet.

import pyvisa

rm = pyvisa.ResourceManager()
print(rm.list_resources())  # find the B&K Precision 5491B's VISA address

# Paste the address of your B&K Precision 5491B (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("FUNCtion \"VOLT:DC\"")  # Func DCV
print(inst.query("MEASure:VOLTage:DC?"))  # Measure DCV

inst.close()

Run this on your bench

Describe the test; TestFlow's agent uses this command set to drive your B&K Precision 5491B and writes the report from the measured results.

Get started

Run a 5491B test without writing code

Describe the test in a sentence, for example “func dcv on the 5491B, then measure dcv and log it against a limit”. TestFlow's agent builds the steps from this command library, runs them on your bench through the TestFlow desktop app, and writes the report from the measured values. See AI test automation for lab instruments for how that works and where it stops.

Get started

SCPI command reference

42 commands in 13 groups. A ? marks a query that returns a value. Placeholders in angle brackets take the listed values.

Function (FUNCtion) (10)

CommandWhat it doesArguments
FUNCtion "VOLT:DC"Func DCV. Selects DC voltage as the active measurement function.None
FUNCtion "VOLT:AC"Func ACV. Selects AC voltage as the active measurement function.None
FUNCtion "CURR:DC"Func DCI. Selects DC current as the active measurement function.None
FUNCtion "CURR:AC"Func ACI. Selects AC current as the active measurement function.None
FUNCtion "RES"Func 2W Resistance. Selects 2-wire resistance as the active measurement function.None
FUNCtion "FREQ"Func Frequency. Selects frequency as the active measurement function.None
FUNCtion "PER"Func Period. Selects period as the active measurement function.None
FUNCtion "CONT"Func Continuity. Selects continuity as the active measurement function.None
FUNCtion "DIOD"Func Diode. Selects diode test as the active measurement function.None
FUNCtion?Read Function. Queries the present measurement function.None

Measurement (MEASure) (9)

CommandWhat it doesArguments
MEASure:VOLTage:DC?Measure DCV. Configures DC voltage and returns one measured value in volts.None
MEASure:VOLTage:AC?Measure ACV. Configures AC voltage and returns one measured value in volts.None
MEASure:CURRent:DC?Measure DCI. Configures DC current and returns one measured value in amps.None
MEASure:CURRent:AC?Measure ACI. Configures AC current and returns one measured value in amps.None
MEASure:RESistance?Measure 2W Resistance. Configures 2-wire resistance and returns one measured value in ohms.None
MEASure:FRESistance?Measure 4W Resistance. Configures 4-wire resistance and returns one measured value in ohms.None
MEASure:FREQuency?Measure Frequency. Configures frequency and returns one measured value in Hz.None
MEASure:PERiod?Measure Period. Configures period and returns one measured value in seconds.None
MEASure:DIODe?Measure Diode. Configures diode test and returns the forward voltage in volts.None

Other subsystem (5)

CommandWhat it doesArguments
<Function>:NPLCycles <NPLC>Set Rate. Sets the measurement integration rate (reading speed).Text: VOLTage:DC,VOLTage:AC,CURRent:DC,CURRent:AC,RESistance; Number: 0.1,1,10
<Function>:REFerence:STATe ONRel On. Enables the relative (null) operation.Text: VOLTage:DC,VOLTage:AC,CURRent:DC,CURRent:AC,RESistance,FREQuency,PERiod
<Function>:REFerence:STATe OFFRel Off. Disables the relative (null) operation.Text: VOLTage:DC,VOLTage:AC,CURRent:DC,CURRent:AC,RESistance,FREQuency,PERiod
<Function>:REFerence <Offset>Set Rel Offset. Sets the reference value used by the relative (null) operation.Text: VOLTage:DC,VOLTage:AC,CURRent:DC,CURRent:AC,RESistance,FREQuency,PERiod; Number
<Output Variable>=<Equation>Math. Variable equals an equation like (${Var_name}= ${Var_name}/2)Number; Text

Voltage (VOLTage) (4)

CommandWhat it doesArguments
VOLTage:DC:RANGe:UPPer <Range>Set DCV Range. Sets the DC voltage measurement range in volts.Number: 0.2,2,20,200,1000
VOLTage:AC:RANGe:UPPer <Range>Set ACV Range. Sets the AC voltage measurement range in volts.Number: 0.2,2,20,200,750
VOLTage:DC:RANGe:AUTO ONDCV Autorange On. Enables autorange for DC voltage.None
VOLTage:DC:RANGe:AUTO OFFDCV Autorange Off. Disables autorange for DC voltage.None

RES subsystem (3)

CommandWhat it doesArguments
RESistance:RANGe:UPPer <Range>Set Resistance Range. Sets the 2-wire resistance measurement range in ohms.Number: 0-20e6
RESistance:RANGe:AUTO ONResistance Autorange On. Enables autorange for resistance.None
RESistance:RANGe:AUTO OFFResistance Autorange Off. Disables autorange for resistance.None

Current (CURRent) (2)

CommandWhat it doesArguments
CURRent:DC:RANGe:UPPer <Range>Set DCI Range. Sets the DC current measurement range in amps.Number: 0-20
CURRent:AC:RANGe:UPPer <Range>Set ACI Range. Sets the AC current measurement range in amps.Number: 0-20

Read (READ) (1)

CommandWhat it doesArguments
READ?Read Value. Triggers and returns one new measurement of the active function.None

Fetch (FETCh) (1)

CommandWhat it doesArguments
FETCh?Fetch Value. Returns the last measurement without re-triggering.None

Trigger (TRIGger) (1)

CommandWhat it doesArguments
:TRIGger:SOURce <Source>Set Trigger Source. Sets the trigger source.Text: IMMediate,EXTernal,BUS

System (SYSTem) (1)

CommandWhat it doesArguments
:SYSTem:ERRor?Read Error. Reads the first message from the error queue.None

WAIT subsystem (1)

CommandWhat it doesArguments
wait(<ms>)Wait. Waits for number of millisecondsNumber

SAVE subsystem (1)

CommandWhat it doesArguments
save2var <Variable_name>Save2Variable. Saves last measurement to a variableText

IEEE 488.2 common commands (3)

CommandWhat it doesArguments
*IDN?Identify. Returns the instrument identification string (manufacturer, model, serial, firmware).None
*RSTReset. Resets the instrument to its default state.None
*TRGTrigger Bus. Generates a bus trigger when the instrument is in wait-for-trigger state.None

Where these commands come from

This reference is generated from TestFlow's instrument library, which is drafted from B&K Precision's programming documentation for the 5491B and checked when the agent runs it. Ranges, timing, and option-dependent commands are defined by B&K Precision's programming manual: check it before you rely on an edge case. Last updated November 17, 2026.

Frequently asked questions

Does the B&K Precision 5491B support SCPI remote control?

Yes. The B&K Precision 5491B accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 42 SCPI commands for it: 14 queries that read values or state, and 28 settings and actions.

How do I control the B&K Precision 5491B from Python?

Install PyVISA and a VISA backend, find the instrument's address with ResourceManager().list_resources(), open it, then send commands with write() and read values with query(). The example on this page sends *IDN?, FUNCtion "VOLT:DC" and MEASure:VOLTage:DC?.

Which command reads a value from the B&K Precision 5491B?

MEASure:VOLTage:DC? (measure dcv). Configures DC voltage and returns one measured value in volts. The full list of queries is in the command reference on this page, grouped by subsystem.

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