DMM4040 And DMM4050 Digital Multimeter Programmer Tektronix Programming Manual

User Manual:

Open the PDF directly: View PDF PDF.
Page Count: 131

DownloadDMM4040 And DMM4050 Digital Multimeter Programmer Tektronix Programming Manual
Open PDF In BrowserView PDF
DMM4040 and DMM4050

Digital Multimeter

Programmer Manual

077-0363-00

Copyright © Tektronix. All rights reserved. Licensed software products are owned by Tektronix
or its subsidiaries or suppliers, and are protected by national copyright laws and international
treaty provisions.
Tektronix products are covered by U.S. and foreign patents, issued and pending. Information in
this publication supersedes that in all previously published material. Specifications and price
change privileges reserved.
TEKTRONIX and TEK are registered trademarks of Tektronix, Inc.
Contacting Tektronix, Inc.
Tektronix, Inc.
14200 SW Karl Braun Drive
P.O. Box 500
Beaverton, OR 97077
USA
For product information, sales, service, and technical support:
- In North America, call 1-800-833-9200.
- Worldwide, visit www.tektronix.com to find contacts in your area.

Table of Contents

Title
Introduction .......................................................................................................
Safety Information.............................................................................................
Symbols and Terms.......................................................................................
Safety and Electrical Symbols ......................................................................
Local and Remote Operation ........................................................................
Computer Interfaces......................................................................................
Optimizing System Speed for I/O Operation ....................................................
Selecting the Remote Interface Port..................................................................
Configuring the IEEE-488 Port.........................................................................
IEEE-488 Operating Limitations ..................................................................
Setting the IEEE-488 (GPIB) Port Address..................................................
Capability Commands...................................................................................
Interconnections............................................................................................
Configuring the RS-232 Port.............................................................................
Setting RS-232 Baud Rate ............................................................................
Setting RS-232 Parity and Data Bits.............................................................
Setting RS-232 Stop Bits ..............................................................................
Setting RS-232 Flow Control........................................................................
Setting RS-232 End-Of-Line Character........................................................
Enabling and Disabling Fluke 45 Emulation Echo.......................................
RS-232 Modes of Operation .........................................................................
Interconnections............................................................................................
Configuring the Ethernet (LAN) Port ...............................................................
Setting the IP Address...................................................................................
Setting the LAN Subnet Mask ......................................................................
Reading the Domain Name ...........................................................................
Configuring the Host Name ..........................................................................
Reading the MAC Address ...........................................................................
Configuring the LAN Default Gateway........................................................
Configuring the General Network Socket Port .............................................
Establishing an Ethernet Connection ................................................................
Terminating an Ethernet Connection ................................................................
Selecting the Programming Language ..............................................................
Getting Started With an Installation Test ..........................................................
Installation Test for RS-232 Connections.....................................................
Installation Test for IEEE-488 Connections .................................................
i

Page
4
4
5
5
5
6
6
8
8
8
8
9
9
10
10
11
11
11
11
11
12
14
16
16
17
18
18
18
18
19
19
21
21
21
21
22

DMM4040 and DMM4050
Programmer Manual

If the Test Fails .............................................................................................
How the Meter Processes Input.........................................................................
Input Strings..................................................................................................
Input Terminators..........................................................................................
Typical IEEE-488 Input Strings....................................................................
Sending Numeric Values to the Meter..........................................................
Sending Command Strings to the Meter .......................................................
How the Meter Processes Output ......................................................................
Triggering Input ................................................................................................
Internal Triggering ........................................................................................
External Triggering.......................................................................................
Service Requests (IEEE-488 Only) and Status Registers..................................
Standard Event Status and Standard Event Status Enable Registers ............
Questionable Data Event Register and Questionable Data Enable Register.
Status Byte Register......................................................................................
Reading the Status Byte Register..................................................................
Service Request Enable Register ..................................................................
Supported SCPI Commands..............................................................................
SCPI Command Summary............................................................................
SCPI Command Details ................................................................................
Using the MEASure? Command ..................................................................
Using the CONFigure Command..................................................................
Using the READ? Command........................................................................
Using the INITiate Command.......................................................................
Using the FETCh? Command.......................................................................
Using the SENSe Subsystem to Configure the Meter...................................
Programming for Math Operations ...............................................................
Programming the Trigger System .................................................................
Using System-Related Commands................................................................
Using Status Reporting Commands ..............................................................
Calibration Commands .................................................................................
Using RS-232/Ethernet Interface Commands...............................................
Command Terminators .................................................................................
Alternate Programming Language Compatibility.........................................
FLUKE 45 Command Emulation Summary .....................................................
Computer Interface Command Set................................................................
IEEE-488 Capabilities and Common Commands.........................................
Triggering Output .........................................................................................
Using NI SignalExpress, Tektronix Edition......................................................
FLUKE 8842A Emulation Mode ......................................................................
Example Notes..............................................................................................
Device-Dependent Command Set.................................................................
Input Syntax ..................................................................................................
Output Data...................................................................................................
Service Requests ...........................................................................................
Introduction .......................................................................................................
Introduction .......................................................................................................
Incompatible Fluke 45 Commands....................................................................
Dual Functions ..............................................................................................
Reading Rates ...............................................................................................
Ranges...........................................................................................................
Introduction .......................................................................................................
Your Meter and Your Network Administrator..................................................
Network Primer .................................................................................................
Physical Layer Wiring Schemes Supported by the Meter ............................
ii

22
23
23
23
24
24
24
25
26
26
27
27
28
29
30
30
31
31
32
41
42
43
46
46
46
47
55
59
63
66
68
70
71
72
73
73
73
80
81
81
81
84
92
94
96
99
107
107
107
108
108
109
109
110
110

Contents (continued)

Network Interconnection Devices.................................................................
Basic Network Packet and Frame Contents..................................................
IP Addresses and Segmented Networks........................................................
TCP/IP Protocol Stack ..................................................................................
Introduction .......................................................................................................
Device Dependent Command Set......................................................................
Calibration Commands......................................................................................
Dn (Display Commands)...................................................................................
Gn (Get Commands) .........................................................................................
Tn (Trigger Mode Commands) .........................................................................
Wn (Terminator Commands) ............................................................................
Numeric Entry Command .................................................................................
Talk-Only Mode................................................................................................
Ranging in 8842A Emulation Mode .................................................................
Operational Differences ....................................................................................

111
111
112
114
117
117
117
118
118
118
118
118
118
118
119

Index
Appendices
A
B
C
D

Error Codes................................................................................................
Fluke 45 Emulation Limitations .................................................................
Network Consideration...............................................................................
Fluke 8842A Emulation Limitations ..........................................................

iii

95
103
105
113

DMM4040 and DMM4050
Programmer Manual

iv

List of Tables

Table
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.

Title
IEEE-488 Compatibility Codes .............................................................................
Factory Settings of RS-232 Communications Parameters.....................................
Status Register Summary.......................................................................................
Description of Bits in ESR and ESE......................................................................
Description of Bits in the Questionable Data Register ..........................................
Description of Bits in the Status Byte Register .....................................................
CALibration Command Summary.........................................................................
CONFigure Command Summary ..........................................................................
IEEE-488.2 Common Command Summary ..........................................................
Math Command Summary.....................................................................................
MEASure Command Summary.............................................................................
Measurement configuration command summary ..................................................
RS-232 Interface Command Summary..................................................................
Status Reporting Command Summary ..................................................................
System-Related Command Summary....................................................................
Triggering Command Summary ............................................................................
Preset Conditions for the MEASure? and CONFigure Commands.......................
Allowed Math/Measurement Function Combinations...........................................
IEEE-488.2 Common Commands .........................................................................
Fluke 45 Function Commands and Queries...........................................................
Function Modifier Commands and Queries ..........................................................
Range and Measurement Rate Commands and Querie .........................................
Measurement Queries ............................................................................................
Compare Commands and Queries .........................................................................
Trigger Configuration Commands.........................................................................
Miscellaneous Commands and Queries.................................................................
RS-232 Remote/Local Configuration Commands.................................................
Trigger Types ........................................................................................................
8842A Get Commands ..........................................................................................
Serial Poll Register ................................................................................................
Serial Poll Register Description.............................................................................
Execution Error Codes and Descriptions...............................................................
Ethernet/ IEEE-488 Configuration Errors .............................................................
Calibration Errors ..................................................................................................
Non-compatible Fluke 45 Remote Commands......................................................
v

Page
9
10
27
28
29
30
32
32
33
33
34
35
38
39
40
41
45
55
73
75
76
77
78
79
79
80
80
81
86
97
97
99
104
104
107

DMM4040 and DMM4050
Programmer Manual

36.
37.
38.
39.
40.

Fluke 45 Dual Function Compatibility Matrix ......................................................
IP Address Assignments........................................................................................
8842A Device Dependent Commands Not Supported ..........................................
DMM4040/4050 Commands the Fluke 8842A Doesn't Support...........................
Fluke 8842A Virtual Range Mapping ...................................................................

vi

108
112
117
117
119

List of Figures

Figure
1.
2.
3.
4.
5.
6.
7.

Title
RS-232 Pin-out and Cable Interconnect ................................................................
Typical IEEE-488 Input String..............................................................................
Overview of Status Data Structure (DMM4040/4050 and Fluke 45)....................
DMM4040/4050 Triggering System .....................................................................
Typical Command String for Fluke 8842A Emulation .........................................
Fluke 8842A Emulation Device-Dependent Command Set ..................................
Fluke 8842A Emulation Data Output Format........................................................

vii

Page
15
25
28
60
82
83
85

DMM4040 and DMM4050
Programmer Manual

viii

Remote Operation

Introduction ..........................................................................................................0-4
Safety Information................................................................................................0-4
Symbols and Terms ..........................................................................................0-5
Safety and Electrical Symbols .........................................................................0-5
Local and Remote Operation................................................................................0-5
Computer Interfaces .............................................................................................0-6
Optimizing System Speed for I/O Operation .......................................................0-6
Selecting the Remote Interface Port.....................................................................0-8
Configuring the IEEE-488 Port............................................................................0-8
IEEE-488 Operating Limitations..........................................................................0-8
Setting the IEEE-488 (GPIB) Port Address .........................................................0-8
Capability Commands ..........................................................................................0-9
Interconnections ...................................................................................................0-9
Configuring the RS-232 Port................................................................................0-10
Setting RS-232 Baud Rate....................................................................................0-10
Setting RS-232 Parity and Data Bits ....................................................................0-11
Setting RS-232 Stop Bits......................................................................................0-11
Setting RS-232 Flow Control ...............................................................................0-11
Setting RS-232 End-Of-Line Character ...............................................................0-11
Enabling and Disabling Fluke 45 Emulation Echo ..............................................0-11
RS-232 Modes of Operation ................................................................................0-12
DMM4040/4050 Mode ........................................................................................0-12
Selecting Between Computer and Terminal Mode ..............................................0-12
Fluke 45 Mode .....................................................................................................0-12
Interconnections ...................................................................................................0-14
Fluke 8842A Emulation Mode.............................................................................0-14
1

DMM4040/4050
Programmer Manual

Configuring the Ethernet (LAN) Port
Error! Bookmark not defined.-Error! Bookmark not defined.
Setting the IP Address ..........................................................................................0-16
Selecting Dynamic Host Configuration Protocol (DHCP)...................................0-16
Setting a Static Internet Address ..........................................................................0-17
Setting the LAN Subnet Mask..............................................................................0-17
Reading the Domain Name ..................................................................................0-18
Configuring the Host Name .................................................................................0-18
Reading the MAC Address ..................................................................................0-18
Configuring the LAN Default Gateway ...............................................................0-18
Configuring the General Network Socket Port ....................................................0-19
Establishing an Ethernet Connection ...................................................................0-19
Terminating an Ethernet Connection ...................................................................0-21
Selecting the Programming Language .................................................................0-21
Getting Started With an Installation Test .............................................................0-21
Installation Test for RS-232 Connections ............................................................0-21
Installation Test for IEEE-488 Connections ........................................................0-22
If the Test Fails.....................................................................................................0-22
How the Meter Processes Input............................................................................0-23
Input Strings .........................................................................................................0-23
Input Terminators.................................................................................................0-23
Typical IEEE-488 Input Strings ...........................................................................0-24
Sending Numeric Values to the Meter .................................................................0-24
Sending Command Strings to the Meter ..............................................................0-24
How the Meter Processes Output .........................................................................0-25
Triggering Input ...................................................................................................0-26
Internal Triggering ...............................................................................................0-26
External Triggering ..............................................................................................0-27
Service Requests (IEEE-488 Only) and Status Registers.....................................0-27
Standard Event Status and Standard Event Status Enable Registers....................0-28
Questionable Data Event Register and Questionable Data Enable Register ........0-29
Status Byte Register .............................................................................................0-30
Reading the Status Byte Register .........................................................................0-30
Service Request Enable Register..........................................................................0-31
Supported SCPI Commands.................................................................................0-31
SCPI Command Summary ...................................................................................0-32
SCPI Command Details .......................................................................................0-41
Using the MEASure? Command..........................................................................0-42
Using the CONFigure Command .........................................................................0-43
Setting Range and Resolution Parameters............................................................0-46
Using the READ? Command ...............................................................................0-46
Using the INITiate Command ..............................................................................0-46
Using the FETCh? Command ..............................................................................0-46
Using the SENSe Subsystem to Configure the Meter ..........................................0-47
Programming for Math Operations ......................................................................0-55
Programming the Trigger System ........................................................................0-59
Using the Triggering Commands .........................................................................0-60
Using System-Related Commands.......................................................................0-63
Using Status Reporting Commands .....................................................................0-66
Calibration Commands.........................................................................................0-68
Using RS-232/Ethernet Interface Commands ......................................................0-70
Command Terminators.........................................................................................0-71
SCPI Parameter Types .........................................................................................0-71
Numeric Parameters .............................................................................................0-71
Discrete Parameters..............................................................................................0-72
2

Digital Multimeter
Introduction

Boolean Parameters..............................................................................................0-72
String Parameters .................................................................................................0-72
Alternate Programming Language Compatibility ................................................0-72
FLUKE 45 Command Emulation Summary ........................................................0-73
Computer Interface Command Set .......................................................................0-73
IEEE-488 Capabilities and Common Commands ................................................0-73
Function Commands and Queries ........................................................................0-75
Function Modifier Commands and Queries .........................................................0-76
Range and Measurement Rate Commands and Queries.......................................0-77
Measurement Queries...........................................................................................0-78
Compare Commands and Queries........................................................................0-79
Trigger Configuration Commands .......................................................................0-79
Miscellaneous Commands and Queries ...............................................................0-80
RS-232 Remote/Local Configurations .................................................................0-80
Triggering Output.................................................................................................0-80
Setting the Trigger Type Configuration ...............................................................0-80
External Triggering ..............................................................................................0-81
Using NI SignalExpress, Tektronix Edition.........................................................0-81
FLUKE 8842A Emulation Mode .........................................................................0-81
Example Notes .....................................................................................................0-81
Device-Dependent Command Set ........................................................................0-84
Bn (Offset Commands) ........................................................................................0-84
Dn (Display Commands)......................................................................................0-84
Fn (Function Commands).....................................................................................0-84
Get Commands.....................................................................................................0-84
G0 (Get Instrument Configuration)......................................................................0-86
G1 (Get SRQ Mask).............................................................................................0-87
G3 (Get User-Defined Message)..........................................................................0-87
G4 (Get Calibration Status)..................................................................................0-87
G5 (Get IAB Status).............................................................................................0-87
G6 (Get YW Status) .............................................................................................0-88
G7 (Get Error Status) ...........................................................................................0-88
G8 (Get Instrument Identification).......................................................................0-88
N (Numeric Entry Command)..............................................................................0-89
Put Commands .....................................................................................................0-89
P0 (Put Instrument Configuration) .......................................................................0-89
P1 (Put SRQ Mask) ..............................................................................................0-90
Rn (Range Commands) ........................................................................................0-90
Sn (Reading Rate Commands) .............................................................................0-90
Tn (Trigger Mode Commands) ............................................................................0-90
Wn (Terminator Commands) ...............................................................................0-91
X0 (Clear Error Register Command) ...................................................................0-91
Yn (Suffix Commands) ........................................................................................0-91
Z0 (Self-Test Command) .....................................................................................0-91
Device Clear Command .......................................................................................0-91
? (Single-Trigger Command) ...............................................................................0-92
Input Syntax .........................................................................................................0-92
Definitions 0-92
Input Processing ...................................................................................................0-92
Syntax Rules 0-93
Output Data ..........................................................................................................0-94
Loading Output Data............................................................................................0-94
Types of Output Data ...........................................................................................0-95
Numeric Data and Error Messages.......................................................................0-95
Overrange Indication............................................................................................0-95
3

DMM4040/4050
Programmer Manual

Error Messages.....................................................................................................0-95
Status Data 0-96
Output Priority......................................................................................................0-96
Service Requests ..................................................................................................0-96
The SRQ Mask.....................................................................................................0-98
Introduction ..........................................................................................................A-99
Introduction ..........................................................................................................B-107
Incompatible Fluke 45 Commands.......................................................................B-107
Dual Functions .....................................................................................................2-107
Reading Rates.......................................................................................................2-108
Ranges 2-108
Introduction ..........................................................................................................C-109
Your Meter and Your Network Administrator.....................................................C-109
Network Primer ....................................................................................................C-110
Physical Layer Wiring Schemes Supported by the Meter....................................C-110
Network Interconnection Devices ........................................................................C-111
Basic Network Packet and Frame Contents .........................................................C-111
IP Addresses and Segmented Networks...............................................................C-112
TCP/IP Protocol Stack .........................................................................................3-114
Introduction ..........................................................................................................D-117
Device Dependent Command Set.........................................................................D-117
Calibration Commands.........................................................................................4-117
Dn (Display Commands)......................................................................................4-118
Gn (Get Commands) ............................................................................................4-118
Tn (Trigger Mode Commands) ............................................................................4-118
Wn (Terminator Commands) ...............................................................................4-118
Numeric Entry Command ....................................................................................4-118
Talk-Only Mode...................................................................................................4-118
Ranging in 8842A Emulation Mode ....................................................................4-118
Operational Differences .......................................................................................4-119

Introduction
Remote operation of the DMM4040 or 4050 Digital Multimeter (hereafter “the Meter”)
from a host, that is, a terminal, controller, PC, or computer, is accomplished by sending
commands to it through one of its remote interfaces. This manual describes how to setup,
configure, and operate the Meter through each of the remote interfaces.
The Meter is controlled remotely using either Standard Commands for Programmable
Instruments (SCPI), Fluke 45 or Fluke 8842A (8840A and 8842A) commands. Detailed
information on the SCPI command set, and how the Meter processes those commands is
included in this manual. Fluke 45 command limitations are covered in Appendix B and
Fluke 8842A command limitations are covered in Appendix D in this manual.
Note
For more information regarding the SCPI programming language, visit
http://www.scpiconsortium.org. A free copy of the SCPI standard can be
found at http://www.scpiconsortium.org/SCPI-99.pdf.
The level of detail in this chapter is based on the assumption that the reader is familiar
with the basics of data communication interface, and the IEEE-488 bus.

Safety Information
This section addresses safety considerations and describes symbols that may appear on
the Meter or in the manual.
4

Digital Multimeter
Safety Information

Symbols and Terms
The following terms and safety and electrical symbols may appear in the manual or on
the product:
A XW Warning statement identifies conditions or practices that could result in injury
or death.
A W Caution statement identifies conditions or practices that could result in damage to
the Meter or equipment to which it is connected.
XW Warning
To avoid electric shock, personal injury, or death, carefully read
the information in the DMM4040 and DMM4050 User Manual
under “General Safety Summary” before attempting to install,
use, or service the Meter.
Safety and Electrical Symbols
Symbol

Description

Symbol

Description

W

Risk of danger. Important
information. See manual.

Π

Display ON / OFF and Meter reset.

X

Hazardous voltage. Voltage > 30 V
dc or ac peak might be present.

J

Earth ground

B
F
D

AC (Alternating Current)

E
G

Capacitance

I

Fuse

or

C

DC (Direct Current)
AC or DC (Alternating or Direct
Current)

Diode

R

Continuity test or continuity beeper
tone

Y

Potentially hazardous voltage

U

Maintenance or Service

T

Double insulated

h

Static awareness. Static discharge
can damage parts.

CAT II

Measurement Category II is for
measurements performed on
circuits directly connected to the
low voltage installation.

Ψ

CAT I

Digital signal

Measurement Category I is for
measurements not directly
connected to mains.

Local and Remote Operation
When the Meter is operated from a host, it is said to be operated remotely. When operated
from the front panel, it is said to be operated locally.
Most operations that can be performed locally can also be performed remotely over the
remote interface. Some operations, like setting communications parameters for the
5

DMM4040/4050
Programmer Manual

RS-232 interface, and addressing the Meter for IEEE-488 operations can only be set
through the front panel.

XW Warning
To avoid electric shock, turn off the signal source to the Meter
before touching the test leads. The front panel display may not
indicate the true input voltage while in remote mode. Always
assume lethal voltages exist on the front-panel inputs.
Computer Interfaces
Both the DMM4040 and 4050 Multimeters come equipped with an RS-232, Ethernet, and
IEEE-488 interface. Only one remote interface can be enabled at a time. Using any of the
interfaces turns the Meter into a fully programmable instrument that can be integrated
into an automated instrumentation system. For a PC with only USB ports, Tektronix
provides a cable (Tektronix PN 174-5813-00) that converts between USB and RS-232
ports.
Note
The remote interface port and settings can be changed only through the
Meter’s front-panel controls.
Enabling or selecting a port for remote operation is a separate process from setting the
various parameters associated with a remote interface. An interface does not have to be
selected to set its parameters; for example, the baud rate of the RS-232 port can be set
while the Meter has the LAN port enabled as the remote control port.

Optimizing System Speed for I/O Operation
Several factors affect the remote system speed of the DMM4040/4050. To make the
fastest measurements, it is best to store the measurements in internal memory before
transferring across the I/O bus. This is particularly true if you want to collect a large
number of samples per measurement. Set up all of the parameters (i.e. function, range,
filters, etc...) prior to taking the measurements. Use the internal trigger. Set the trigger
delay to zero. Turn off the display. If operating with RS-232, use the fastest baud rate
available.
One example of taking fast voltage readings is:

6

*cls

# This clears all error prior to initiating readings

conf:volt:dc 0.1

# Set the DC range to manual and 100 mV.

volt:dc:nplc 0.02

# Set the NPLC to faster reading rate 4 1/2 digits.

zero:auto 0

# Turn Autozero off.

trig:sour imm

# Set immediate trigger.

trig:del 0

# Set trigger delay to zero.

trig:coun 1

# Set trigger count to one or specify a larger number.

disp off

# Turn display off. This may slightly improve reading rate.

syst:rem
Ethernet

# Put the DMM4050 in remote. Only needed for RS-232 or
#(required for READ? or MEAS?)

samp:coun 100

# Set the sample count from 1 to 5000.

Digital Multimeter
Optimizing System Speed for I/O Operation

:INIT; *OPC?

# "*OPC?" returns 1 indicating that the measurements have been
taken and are ready to be transferred to the computer using the
FETCH? command.

:FETCH?
Note
For any sample count greater than 1, measurements are returned comma
separated.

7

DMM4040/4050
Programmer Manual

Selecting the Remote Interface Port
To enable or select a port for remote control of the Meter:
1. Press I.
2. Press PORT IF.
3. Press SELECT PORT.
4. Press the soft key labeled with the desired port: RS 232C, IEEE488, or LAN.
Port selection is non-volatile. Therefore, the selected port will remain active until another
port is selected through the front panel.

Configuring the IEEE-488 Port
The IEEE-488 interface is designed in compliance with supplemental standard IEEE488.2. Devices connected to the bus in a system are designated as talkers, listeners,
talker/listeners, or controllers. The connector for connecting the Meter to the IEEE-488
bus is located on the rear panel. Under control of an instrument controller, the Meter
operates exclusively as a talker/listener on the IEEE-488 bus.
The Meter conforms to the Standard Specification IEEE-488.1 – 1987: IEEE Standard
Digital Interface for Programmable Instrumentation, and to IEEE-488.2 - 2004: Codes,
Formats, Protocols, and Common Commands.
IEEE-488 Operating Limitations
The following limitations govern the IEEE-488 remote interface:
• A maximum of 15 instruments may be connected in a single IEEE-488 bus system.
• The maximum length of IEEE-488 cable used on a single IEEE-488 system must be the
lesser of 20 meters, or 2 meters times the number of devices in the system.
Setting the IEEE-488 (GPIB) Port Address
Before the Meter will accept commands through the IEEE-488 remote interface, IEEE488 must first be enabled or selected as the active interface port. This can only be done
through the Meter’s front panel.
A controller uses an address between 1 and 32 to identify a specific instrument on the
bus. The Meter is shipped from the factory with the IEEE-488 port address set to 1. To
change the IEEE-488 address:
1. Press I.
2. Press PORT IF.
3. Press IEEE488.
4. Use the soft keys to set the address as follows.
Select the address digit to adjust by pressing either <-- or -->.
With the desired digit selected, press the soft key labeled -- to decrement the digit
or ++ to increment the digit.
5. With the desired address set, press ENTER.

8

Digital Multimeter
Configuring the IEEE-488 Port

Capability Commands
To conform to the IEEE-488.1 standard specification, it is not essential for a device to
encompass the full range of bus capabilities. The IEEE-488.1 document describes and
codes the standard bus features, so that manufacturers may give brief coded descriptions
of their own interfaces’ overall capability.
The codes that apply to the Meter are given in Table 1 below, together with short
descriptions. These codes conform to IEEE-488.2 requirements.
Appendix C of the IEEE-488.1 document contains a complete description of each code.
Table 1. IEEE-488 Compatibility Codes
IEEE-488 Subset

Interface Functions

SH1

Source Handshake Capability

AH1

Acceptor Handshake Capability

T5

Talker (basic talker, serial poll, unaddressed to talk if addressed to listen)

L4

Listener (basic listener, unaddressed to listen if addressed to talk)

SR1

Service Request Capability

RL1

Remote/Local Capability (includes local lockout)

PP0

No Parallel Poll Capability

DC1

Device Clear Capability

DT1

Device Trigger – Supports group trigger (GET).

C0

No Controller Capability

E2

Open-Collector and Three-State Drivers

Interconnections
Instruments fitted with an IEEE-488 interface communicate with each other through a
standard set of interconnecting cables, as specified in the IEEE-488.1 Standard
document.
The IEEE-488 interface connector is located on the Meter’s rear panel.

9

DMM4040/4050
Programmer Manual

Configuring the RS-232 Port
The RS-232 Communication Interface allows ASCII, asynchronous, serial
communication between the Meter and a host or terminal. The following sections
describe the process of configuring the RS-232 port. To make the RS-232 port the active
port for remote operation, see the “Selecting the Remote Interface Port” section above.
Table 2 lists the RS-232 parameter settings when the Meter leaves the factory.
Table 2. Factory Settings of RS-232 Communications Parameters
Parameter

Factory Setting

Baud Rate

9600

Parity

None (Parity bit 0)

Number of Data Bits

8 (7 data bits plus 1 parity bit)

Number of Stop Bits

1

Flow Control

None

To access the RS-232 setup menu:
1. Press I.
2. Press the PORT IF soft key.
3. Press the RS 232C soft key.
At this point, all the RS-232 settings are made available.
Note
All RS-232 port parameter settings are non-volatile and remain set until
changed.
Setting RS-232 Baud Rate
To set the baud rate:
1. With the RS-232 set up menu displayed, press BAUD RATE.
There are eight pre-defined settings: 1200, 2400, 4800, 9600, 19200 38400, 57600,
115200, and 230400. These selections are displayed in two separate menus. When
first entering baud rate selection, baud rates 9600 to 1200 are displayed. To get to the
next five higher baud rates, press MORE. To get back to the lower baud rates, press
B.
2. With the desired baud rate displayed, press the soft key under the chosen baud rate.

10

Digital Multimeter
Configuring the RS-232 Port

Setting RS-232 Parity and Data Bits
To set the data bits:
1. With the RS-232 set up menu displayed, press PARITY DATA BIT.
2. Press the soft key under the desired parity, and data bit parameter.
NONE 8B DATA = No parity with 8 data bits
ODD 7B DATA = Odd parity with 7 data bits
EVEN 7B DATA = Even parity with 7 data bits
Setting RS-232 Stop Bits
To set the stop bits:
1. With the RS-232 set up menu displayed, press PARITY DATA BIT.
2. Press the soft key labeled 2 STOP BITS to toggle between 1 and 2 stop bits.
Note
When 2 STOP BITS is highlighted, the interface is configured to use 2 stop
bits.
Setting RS-232 Flow Control
To set flow control:
1. With the RS-232 set up menu displayed, press FLOW CONTROL.
2. Press the soft key under the desired flow control.
NONE = No flow control
XON = Software flow control Xon (hex 11) and Xoff (hex 13)
RTS = Hardware flow control, RTS/CTS
Setting RS-232 End-Of-Line Character
To set the End-Of-Line (EOL) character:
1. With the RS-232 set up menu displayed, press EOL.
2. Press the soft key labeled with the desired End-Of-Line character(s).
CR = Carriage return only
LF = Line Feed only
CR LF = Carriage Return and Line Feed
Note
Setting the EOL character(s) in RS-232 also sets the same EOL
character(s) for Ethernet operation.
Enabling and Disabling Fluke 45 Emulation Echo
Although you can turn echo on or off at anytime, the selection is only used or changed
when the Meter’s command mode is set to Fluke 45 emulation.
To enable or disable Echo for the RS-232 port:
1. With the RS-232 set up menu displayed, press COMP/TERM ECHO.
2. Press either the ECHO or NO ECHO soft key.
11

DMM4040/4050
Programmer Manual

RS-232 Modes of Operation
RS-232 communication is slightly different between the DMM4040/4050 and the Fluke
45 emulation modes. Switching between these two command languages is covered in the
“Selecting the Programming Language” section later in this manual. The following
sections explain the differences in communications protocol and how to set the Meter and
computer parameters for proper operation.
DMM4040/4050 Mode
There are two modes of RS-232 operation when the Meter has the DMM4040 or 4050
command set selected: TERMINAL and COMPUTER. The terminal mode is an
interactive mode where an operator inputs commands, with immediate returns for
requested information (queries) and interface messages. In terminal mode, characters sent
to the Meter are echoed on the host’s display screen and a command prompt (for example
3>) is returned after the CR/LF is entered by the terminal. If you send a character to the
Meter over the RS-232 interface, pressing the  or  key
deletes the previous character. A backspace is echoed to the host terminal.
Note
^C (CNTRL C) is the RS-232 equivalent of IEEE-488 DCI (device clear),
causing “1>” followed by a carriage return and line feed to be output.
The computer mode is used when the Meter is operated by computer program. In this
mode, requested information is returned by query, and interface messages are queued and
returned by command. Characters are not echoed on the host computer and command
prompts are suppressed. The  or  keys are ignored.
Selecting Between Computer and Terminal Mode
Although you can select between Computer and Terminal mode at any time, the selection
is only used or changed when the Meter’s command mode is set to DMM4040/4050.
To select computer or terminal mode from the front panel:
1. Press I and then PORT IF.
Note
If the RS-232 port is not already highlighted, press SELECT PORT and
then RS 232C.
2. Press either RS 232C, COMP/TERM ECHO and select either COMPUTER or
TERMINAL.
Fluke 45 Mode
In the Fluke 45 Command emulation mode, there are two modes of RS-232 operation:
ECHO or NO ECHO. In Echo mode, characters sent to the Meter are echoed on the
host’s display screen. In No Echo mode, characters sent are not echoed.
To set the echo parameter, refer to the "Enabling and Disabling RS-232 Echo" section
earlier in this manual. If you send a character to the Meter over the RS-232 interface,
pressing the  or  key deletes the previous character. A
backspace is echoed to the display screen if Echo On mode is set.
In either mode, when the host sends a command to the Meter over the RS-232 interface,
the Meter parses and executes the command, and returns a response if appropriate, and
sends one of three prompts:
12

Digital Multimeter
Configuring the RS-232 Port

=> No errors were detected and the command was successfully parsed and
executed.
?> A Command Error was detected. The command was not executed because it
was not understood. For instance, this prompt would be returned if the Meter
was sent an input string that contained a syntax error.
!>

An Execution Error was detected. The command was understood but not
executed (i.e., a device-dependent error). For instance, this prompt would be
returned if you attempted to use the decibels modifier (dB) on a frequency
measurement (FREQ).

Note
^C (CNTRL C) is the RS-232 equivalent of IEEE-488 DCI (device clear),
causing "=>" followed by a carriage return and line feed to be output.
Terminations for the end of line can be set to carriage return (CR), line feed (LF), or both
(CRLF). Terminations for the end of line can be set in the  selection.
To change the Meter to Fluke 45 Emulation Mode, setup the remote interface for RS-232
or IEEE-488 (Fluke 45 mode will not work over Ethernet):
For RS-232
1. Press I
2. Press PORT IF softkey.
3. Press the SELECT PORT softkey.
4. Press the RS 232C softkey.
Set the baud rate to 9600 as follows:
1. Press I
2. Press PORT IF softkey.
3. Press the RS 232C softkey.
4. Press the BAUD RATE softkey.
5. Press the 9600 softkey.
Set the RS-232 port to non-echo as follows:
1. Press I
2. Press PORT IF softkey.
3. Press the RS 232C softkey.
4. Press the COMP/TERM ECHO softkey.
5. Press the NO ECHO softkey.
For IEEE-488
1. Press I
2. Press PORT IF softkey.
3. Press the SELECT PORT softkey.
4. Press the IEEE488 softkey.
Set the IEEE-488 address to a system compatible value as follows:
13

DMM4040/4050
Programmer Manual

1. Press I
2. Press PORT IF softkey.
3. Press the IEEE488 softkey.
4. Use the soft keys to set the address as follows.
Select the address digit to adjust by pressing either <-- or -->.
With the desired digit selected, press the soft key labeled -- to decrement the digit
or ++ to increment the character.
5. With the desired address set, press ENTER.
To set the Meter to Fluke 45 emulation:
1. Press I
2. Press the COMMANDS softkey.
3. Press the FLUKE 45 softkey.
Interconnections
The Meter communicates with a host through a DB-9 interface connector on the rear
panel of the Meter. Connect the Meter to the host or terminal using a cable appropriate to
your application that is less than 50 feet (15 meters) long. Longer cables are permitted,
providing that the load capacitance measured at the interface point (including the signal
terminator) does not exceed 2500 picofarads.
Figure Error! Reference source not found. shows the pin-out of the Meter’s RS-232
port, and two possible cable connections for communicating with a PC.
Fluke 8842A Emulation Mode
The Fluke 8842A emulation mode is only available when the Meter has the IEEE-488
port selected. To change the Meter to Fluke 8842A Emulation Mode, setup the remote
interface for IEEE-488 (Fluke 8842A emulation mode will not work over RS-232 or
Ethernet):
1. Press I
2. Press PORT IF softkey.
3. Press the SELECT PORT softkey.
4. Press the IEEE488 softkey.
Set the IEEE-488 address to a system compatible value as follows:
1. Press I
2. Press PORT IF softkey.
3. Press the IEEE488 softkey.
4. Use the softkeys to set the address as follows.
Select the address digit to adjust by pressing either <-- or -->.
With the desired digit selected, press the soft key labeled -- to decrement the digit
or ++ to increment the character.
5. With the desired address set, press ENTER.
14

Digital Multimeter
Configuring the RS-232 Port

To set the Meter to Fluke 8842A emulation:
1. Press I.
2. Press the COMMANDS softkey.
3. Press the 8842 softkey.

4040/4050
Not Used
RxData
TxData
Not Used
GND
Not Used
RTS

Cable (Null Modem such as Fluke RS43)
1

No Connect
RxData

2

TxData

3

DTR

4

GND

5

DSR

6

RTS
7
8
9

Not Used
GND
Not Used
RTS

2

3

3

4

4

5

5

6

6

7

7

8

8

9

9

DCD
RxData
TxData
DTR
GND
DSR
RTS

1

No Connect
RxData

2

TxData

3

DTR

4

GND

5

1
2
3
4
5
6
7

CTS

DCD
RxData
TxData
DTR
GND
DSR
RTS
CTS

8
RI

RI
9

Cable (USB to RS-232 such as Tektronix 174-5813-00)

4040/4050

TxData

2

No Connect

Not Used

RxData

1

CTS

CTS

Not Used

1

PC

PC

1
2
3
USB
Adapter

4

USB
Interface

5

DSR
6

6
RTS

7

7
CTS

CTS
8

8
No Connect

Not Used
9

9

Keys
DCD
RxData
TxData
DTR
GND

-

Data Carrier Detect
Receive Data
Transmit Data
Data Terminal Ready
Circuit Ground

DSR
RTS
CTS
RI

-

Data Set Ready
Request to Send
Clear to Send
Ring Indicator

Figure 1. RS-232 Pin-out and Cable Interconnect

gdb058.eps

15

DMM4040/4050
Programmer Manual

Configuring the Ethernet (LAN) Port
The Meter can be remotely controlled through the LAN port on the Meter’s rear panel.
To select the LAN port as the remote control port, see the “Selecting the Remote
Interface” section above.
Configuring the LAN port is accomplished through the Instrument Setup function. The
selectable LAN port parameters are: DHCP (Dynamic Host Configuration Protocol), IP
Address, Net mask, Host Name, Mac Address, Gateway, Port number, and Domain.
When setting IP addresses, subnet masks, and default gateways on the Meter, keep in
mind they are stored as 32-bit binary numbers and expressed as four 3-digit segments in
dot-notation form. For example, xxx.xxx.xxx.xxx, where xxx is a byte value, is stored as
a 32-bit binary number.
To set the LAN port parameters:
1. Press I.
2. Press the PORT IF soft key.
3. Press the LAN soft key.
Note
When addressing some LAN addresses, computers will often interpret 0's in
the IP address as OCTAL values. As an example, if you configure your IP
address from the front panel as 129.196.017.023 and then attempt to
establish a connection to the meter, you should connect using the IP
address 129.196.17.23. Attempting to establish a connection to
129.196.017.023 may result in a connection request to 129.196.15.19.
Setting the IP Address
An internet (IP) address is required for all internet and TCP/IP communications. If DHCP
is enabled, the Meter will use the dynamic address supplied by the DHCP server.
However, if the DHCP server fails to supply the address, or DHCP is disabled, the
currently configured static IP address will be used.
Selecting Dynamic Host Configuration Protocol (DHCP)
Dynamic Host Configuration Protocol (DHCP) is a client-server protocol that eliminates
having to manually set permanent/static IP addresses. The DHCP server provides
configuration parameters (dynamic IP address, subnet mask, and default gateway IP
addresses) which are required for a client to participate in an IP network.
Using DHCP is the easiest way to configure the Meter for remote communication
through the LAN interface. DHCP is enabled when the Meter is shipped from the factory.
When connected to a network, and the LAN port is enabled, the Meter will try and
retrieve the parameters from a DHCP server necessary for communications. If the
parameters can’t be obtained, the Meter switches to the parameters that were manually
entered into the Meter.
To disable or enable DHCP on the Meter:
From the PORT IF menu, press LAN. If DHCP is already enabled, then DHCP will
be highlighted in the display. Pressing DHCP will toggle between enabled and disabled.

16

Digital Multimeter
Configuring the Ethernet (LAN) Port

Note
After changing any Ethernet setting (except the socket port), the Meter must
be powered off and on again, using the rear-panel power switch, to make
the change active.
Setting a Static Internet Address
The Meter comes from the factory with 000.000.000.000 in the static IP address register.
Note
If you are planning to use the Meter on a corporate LAN and do not wish to
use DHCP, contact your network administrator for a static IP address to be
used exclusively by your Meter. DHCP must be disabled to set a static IP
address.
To change the Meter’s static IP Address:
1. From the LAN Port setup menu, press the IP_ADDR soft key.
2. Use the soft keys to set the IP Address as follows:
To select the address character to adjust, press either <-- or -->.
With the desired digit selected, press the soft key labeled -- to decrement the digit
or ++ to increment the digit.
3. Press the ENTER soft key.
Note
The IP address is stored in non-volatile memory, and does not change when
power is removed and reapplied to the Meter or when the Meter receives an
*RST command.
Setting the LAN Subnet Mask
If communication between the host computer and the Meter passes through a router or
gateway, and DHCP is disabled, you must set the subnet mask and default gateway
address on both the host computer and the Meter. Get the correct subnet mask and
gateway address from your network administrator.
The LAN Subnet Mask is a 32-bit number. This number is represented as four 3-digit
segment numbers on the front-panel display. The default subnet mask set at the factory is
255.255.254.0.
To change the Meter’s subnet mask:
1. From the LAN Port setup menu, press the NETMASK soft key.
2. Use the soft keys to set the subnet mask as follows:
To select the mask character to adjust, press either <-- or -->.
With the desired digit selected, press the soft key labeled -- to decrement the digit
or ++ to increment the digit.
3. Press the ENTER soft key.
The new Subnet Mask will not take effect until the Meter has been powered down and
back up again using the rear-panel power switch.
17

DMM4040/4050
Programmer Manual

Reading the Domain Name
The Domain Name is supplied by the DHCP server and cannot be changed. To read the
domain name:
1. From the LAN Port setup menu, press MORE.
2. Press the DOMAIN soft key.
3. Press B to return to the LAN Port setup menu.
Configuring the Host Name
The Host Name is the host portion of the domain name, which is translated into an IP
address. The Meter’s default host name is “test1”.
To change the Host Name:
1. From the LAN Port setup menu, press the HOSTNAME soft key.
2. Use the soft keys to set the Host Name as follows:
To select the character to adjust, press either <-- or -->.
With the desired character selected, press the soft key labeled -- to decrement the
character or ++ to increment the character.
3. Press the ENTER soft key.
The new Host Name will not take effect until the Meter has been powered down and back
up again using the rear-panel power switch.
Reading the MAC Address
The MAC Address is set at the factory and cannot be changed. To read the MAC
Address:
1. From the LAN Port setup menu, press MORE.
2. Press the MAC_ADDR soft key.
3. Press B to return to the LAN Port setup menu.
Configuring the LAN Default Gateway
The default gateway IP address is the IP address of a gateway (router) attached to the
same network as the device. When the instrument detects that a host computer is not on
the same network (using the network number), the data is sent through the gateway to
reach the host computer.
The default for the Meter is “0” (no gateway, and subnetting is not being used).
To set the LAN Default Gateway address:
1. From the LAN Port setup menu, press MORE.
2. Press GATEWAY.
3. To select the digit to adjust, press either <-- or -->.
With the desired digit selected, press the soft key labeled -- to decrement the digit
or ++ to increment the digit.
4. Press the ENTER soft key.
18

Digital Multimeter
Establishing an Ethernet Connection

The new gateway address will not take effect until the Meter has been powered down and
back up again using the rear-panel power switch.
Configuring the General Network Socket Port
In order to communicate with each other, a host computer and the Meter must use the
same socket port number. The default port is 3490. Typically, the default port does not
need to be changed. If the socket port must be changed, enter the Socket Port number
supplied by your network administrator.
To change the Socket Port number:
1. From the LAN Port setup menu, press the MORE soft key.
2. Press the PORT # soft key.
3. To select the digit to adjust, press either <-- or -->.
With the desired digit selected, press the soft key labeled -- to decrement the digit
or ++ to increment the digit.
4. Press the ENTER soft key.
The new Network Socket Port becomes effective immediately.
Note
The Network Socket Port Number is stored in non-volatile memory.

Establishing an Ethernet Connection
The easiest method of establishing an Ethernet connection with the Meter is through the
commonly available program: Telnet. Telnet is a client-server protocol, based on TCP.
The Telnet Protocol provides a fairly general, bi-directional, eight-bit byte oriented
communications facility. Telnet is available on all UNIX servers and on most PCs.
Telnet clients typically connect to hosts on socket port 23. The LAN connection to the
Meter must be established using the specified Network Socket Port. See the “Configuring
the General Network Socket Port” section above. When the remote interface port is
changed to LAN from the Meter’s front panel, a LAN server is initiated in the Meter
which listens for client connections on the socket port at the specified IP address.
To establish a LAN connection to the Meter from a computer using either UNIX,
LINUX, or MS-DOS command prompts, perform the following procedure:
1. On the Meter’s front panel, change the remote interface port to LAN
2. At the command prompt on the client computer, enter:
telnet 



Alternatively, if you are using DHCP and would like to connect using the host name
rather than the IP address, from the computer command prompt enter:
telnet 



As an example, if you know the IP address is 129.196.136.131 and the Socket Port is set
to 3490, enter the following at a command prompt from any client computer:
telnet 129.196.136.131 3490
If you are using DHCP and the host name is test1 and the fully qualified domain name is
test1.na.tektronix.com and the Socket Port is set to 3490, enter the following at the
computer command prompt:
19

DMM4040/4050
Programmer Manual

telnet test1.na.tektronix.com 3490
Once the internal LAN server connects with the client computer, the LAN server will
reject any other connection attempts by other computers and will “tunnel” a channel to
the connected computer. This prevents multiple computers from trying to control the
Meter.

20

Digital Multimeter
Terminating an Ethernet Connection

Terminating an Ethernet Connection
When you wish to terminate the Ethernet connection, you may do so one of two ways:
1. Change the Meter’s remote interface port to something other than LAN
2. Terminate the Telnet session on the client computer
If you have established a LAN connection to the Meter using Telnet and change the
remote interface port using the Meter’s front panel, the LAN server in the Meter will
automatically terminate the Telnet session on the client computer.
On the other hand, you may wish to terminate the Telnet session on the client computer
but maintain the current LAN remote interface port configuration. Client Telnet session
termination can vary from computer to computer, but typically terminating the shell (or
command window in DOS) will terminate the telnet session. When the client terminates
the Telnet session, the LAN server in the Meter will go back into listen mode waiting for
a new client to make a LAN connection request.

Selecting the Programming Language
The Meter’s remote command set is switchable between DMM4040/4050, Fluke 8842A,
and Fluke 45 commands. The Meter’s standard remote command set (DMM4040/4050)
is compatible with Agilent’s 34401A SCPI command set. Although every effort was
made to make the Meter compatible with Fluke 45 commands and Fluke 8842A
commands, there are some commands that are not compatible. See Appendix B, “Fluke
45 Emulation Limitations” for details on Fluke 45 commands that are not compatible
with this Meter. See Appendix D, “Fluke 8842A Emulation Limitations” for details on
Fluke 8842A commands that are not compatible with this Meter.
To change the Meter’s remote command set:
1. Press I.
2. Press the COMMANDS soft key.
3. Press the soft key labeled with the desired command set.

Getting Started With an Installation Test
After the Meter has been cabled to a host, and prepared to communicate with it via the
RS-232 or IEEE-488 interface (as described above), test the system to verify that it is
operational.
Installation Test for RS-232 Connections
The procedure below illustrates how the Meter performs a computer interface command,
and at the same time, confirms that the Meter has been properly set up and connected for
RS-232 remote operation:
1. Press the POWER button to turn on the Meter.
2. Start up a computer terminal program.
3. Verify that the computer interface parameters (e.g., baud, parity) are set correctly.
4. Send the Meter the following command.
*IDN? 
5. Verify that the Meter sends the following response:

21

DMM4040/4050
Programmer Manual

In DMM4040 mode:
TEKTRONIX, DMM4040, nnnnnnnm, mm/dd/yy – tt:tt
In DMM4050 mode:
TEKTRONIX, DMM4050, nnnnnnnm, mm/dd/yy – tt:tt
In Fluke 45 mode:
FLUKE, 45, nnnnnnn, n.n Dn.n
In these results, nnnnnnn is your Meter's serial number; n.n identifies the main
software version; and Dn.n identifies the display software version.
Installation Test for IEEE-488 Connections
The procedure below illustrates how the Meter performs a computer interface command,
and at the same time, confirms that the Meter has been properly set up, and connected for
IEEE-488 operation:
1. Turn on the Meter.
2. Verify that the meter's IEEE-488 address is set correctly.
3. Turn on the host or controller.
4. Enter the following at the host:
Note
This is a BASIC program to give an idea of how the test could be done.
Syntax may vary with the host.
INIT PORT 0
CLEAR PORT 0
PRINT @
, "*IDN?" INPUT LINE @
, A$ PRINT A$ 5. Verify that the meter sends the following response In DMM4040 mode: TEKTRONIX, DMM4040, nnnnnnnm, mm/dd/yy – tt:tt In DMM4050 mode: TEKTRONIX, DMM4050, nnnnnnnm, mm/dd/yy – tt:tt In Fluke 45 mode: FLUKE, 45, nnnnnnn, n.n Dn.n In these results, nnnnnnn is your meter's serial number, n.n identifies the main software version, and Dn.n identifies the display software version. If the Test Fails If the Meter does not respond to the test procedure as indicated: 1. Check all cable connections. 2. Check to see the remote interface has been properly enabled and addressed. 22 Digital Multimeter How the Meter Processes Input How the Meter Processes Input The following paragraphs summarize how the Meter processes input that is received from a host or stand-alone terminal. Note In this manual, input means a string sent to the Meter from a host. Output means a string sent from the meter through the computer interface to the host. Input Strings The meter processes and executes valid input strings sent by the host. A valid input string is one or more syntactically correct commands followed by an input terminator. When the meter receives input, it stores it in a 350-byte input buffer. Note Input strings received over the RS-232 interface are not executed or checked for proper syntax until an input terminator is received or the input buffer becomes full. The Meter accepts alphabetic characters in either upper- or lower-case. If a command cannot be understood (i.e. the equivalent of an IEEE-488 Command Error), the remainder of the command line is ignored. Input Terminators An input terminator is a character or command (IEEE-488.1) sent by the host that identifies the end of a string. In RS-232 applications, when the Meter receives an input terminator, it executes all commands entered since the last terminator was received on a first-in, first-out basis. As input characters are processed and executed, space is made available in the input buffer for new characters. In RS-232 applications, if a communications error (e.g., parity, framing, over-run) is detected, a device-dependent error is generated, and the input string is discarded. If the Meter's input buffer becomes full when it is used with the RS-232 interface, a device-dependent error is generated (see "Event Status and Event Status Enable Register"), and the input string is discarded. If, on the other hand, the input buffer becomes full when the IEEE-488 interface is used, the Meter stops accepting characters until there is room in the buffer. Characters in the input buffer cannot be over-written with the IEEE-488 interface. Valid terminators for the RS-232 interface are: • LF (Line Feed) • CR (Carriage Return) • CR LF (Carriage Return/ Line Feed) Valid terminators for the IEEE-488 interface are: • EOI (End or Identity) on any character • LF (Line Feed) In some instances, a terminator is automatically transmitted at the end of the host's output string (i.e., the Meter's input string). For example, in Fluke BASIC, the PRINT statement finishes with a CR LF pair. 23 DMM4040/4050 Programmer Manual Typical IEEE-488 Input Strings Two typical strings that could be sent to the Meter over the IEEE-488 interface are shown in Figure Error! Reference source not found.. These strings are written in BASIC to be sent from an instrument controller or computer. Sending Numeric Values to the Meter Numeric values can be sent to the Meter as integers, real numbers, or real numbers with exponents, as shown in the following examples: EXAMPLE EXPLANATION +12345689 Sends the signed integer +12345689 -1.2345E2 Sends -1.2345 x 102 Sending Command Strings to the Meter Observe the following rules when you construct strings to be sent to the Meter over the computer interface: • RULE 1: READ METER'S OUTPUT BUFFER ONLY ONCE FOR EACH QUERY COMMAND. The Meter’s output buffer is cleared after it is read. This prevents previously read data from being read a second time by mistake. If you attempt to read the meter’s output buffer twice without an intervening query, the Meter will not respond to the second read. • RULE 2: READ QUERY RESPONSES BEFORE SENDING ANOTHER QUERY COMMAND STRING. Output data remains available in the output buffer until read by the host or until the next command string is received by the Meter. This means the Meter’s output buffer must be read by the host before, and not after, the next command string is sent to the Meter. • RULE 3: THE METER EXECUTES EACH COMMAND COMPLETELY, IN THE ORDER RECEIVED, BEFORE MOVING ON TO THE NEXT COMMAND. If an input string contains a trigger, enter the commands in the following order, that is, from left to right, as written: 1. Commands (if any) to configure the Meter. 2. The trigger command. 3. Commands to read the result of a triggered measurement (FETCh? or READ? for the DMM4040/4050 and VAL? for the Fluke 45 emulation), or to reconfigure the instrument (if any). 4. The terminator. Figure 2 gives two examples of a command string for the Meter. The first example is a command recognized by the Meter in the DMM4040 or 4050 command mode. The second example is for the Fluke 45 command mode. 24 Digital Multimeter How the Meter Processes Output In the following examples, between commands is for readability only. However a between a command and its argument is required. The PRINT command sends a terminator at the end of the string. EXAMPLE 1: The following string configures the Meter and triggers an ohms reading to be shown on the primary display when the Meter is in 4040 or 4050 command mode. PRINT @3, "*RST; CONF:RES 1; :RES:NPLC 1; :TRIG:SOUR BUS; :INIT; *TRG; FETCH?" IEEE-488 bus address Reset to power-up configuration Select function 1 ohm range Select 1 PLC measurement rate Select Bus triggering Wart-for-trigger state Trigger a reading Return reading shown on primary display EXAMPLE 2: The following string configures the Meter and triggers an ohms reading to be shown on the primary display when the Meter is in Fluke 45 emulation mode. PRINT @3, "*RST; OHMS; RANGE 1; RATE M; TRIGGER 2; *TRG; VAL1?" IEEE-488 bus address Reset to power-up configuration Select function Select 300 range Select medium reading rate Select external trigger (Rear panel trigger disabled, no trigger delay) Trigger a reading Return reading shown on primary display Figure 2. Typical IEEE-488 Input String gdb19f.eps How the Meter Processes Output The following paragraphs summarize how the Meter processes output. The Meter outputs an alphanumeric string in response to a query command from the host. Query commands 25 DMM4040/4050 Programmer Manual are easily identified because they all end with "?". An output string is terminated by a Carriage Return and Line Feed () for RS-232 or Ethernet applications, or a Line Feed with End or Identity () for IEEE-488. After sending the Meter a query command via the RS-232 interface, wait for the Meter to return a prompt before sending another query command. Although the Meter will accept and process all commands other than a query command, a device-dependent command error is generated; and the second command is discarded if it is a query command. If the Meter is part of an IEEE-488 bus system, the output data is not actually sent onto the bus until the host addresses the Meter as a talker. When the output buffer is loaded, the Message Available (MAV) bit in the Status Byte Register is set true. (For more information, see "Status Byte Register.”) Numeric output from the Meter is displayed as shown in the following examples: EXAMPLE EXPLANATION +1.2345E+0 Measured value of 1.2345 +1.2345E+6 Measured value of 1.2345 x 106 Triggering Input While under remote control, the Meter must be placed in a wait-for-trigger state before a measurement can be triggered. The INITiate and READ? commands set the Meter in to a wait-for-trigger state. The number of measurements (samples) and the number of triggers the Meter will accept after being put in a wait-for-trigger state are variables set using remote commands. The defaults for these variables are one sample per trigger and one trigger per wait-for-trigger state. See the Trigger and Sample remote commands to set these values. All available trigger methods fall into two basic categories: • Internal triggering uses the Meter’s internal trigger circuit for a continuous source of triggers. • External triggering comes from a source outside the Meter controlled by the user. Internal Triggering When the Meter’s trigger source is set to immediate, measurements are triggered by the Meter’s internal trigger circuit. As an example, with the sample count set to 5 and the trigger count set to 2, the Meter will collect 10 measurements after it receives an INITiate or READ? command and then stop taking measurements. The READ? command will return all 10 readings immediately while the INITiate command must be followed by a FETCh? command to retrieve the measurements. 26 Digital Multimeter Service Requests (IEEE-488 Only) and Status Registers External Triggering There are three methods of triggering the Meter externally: • A trigger signal applied to the external trigger jack on the Meter’s rear panel. When the Meter’s trigger source is set to external and the Meter is in a wait-fortrigger state, a negative-going signal on the external trigger jack will trigger a measurement cycle. • IEEE-488.1 GET command (IEEE-488 Interface only) • *TRG command When the Meter’s trigger source is set to BUS and the Meter is in a wait-for-trigger state, either a *TRG or bus GET command will trigger the Meter to take measurements. Service Requests (IEEE-488 Only) and Status Registers Service requests let an instrument on the IEEE-488 bus get the attention of the host. Service requests are sent over the service request (SRQ) bus line. If more than one instrument on the bus is capable of sending service requests, the host can determine which instrument made the request by taking a serial poll. Each instrument on the bus responds to the poll by sending the contents of its Status Byte Register. If an instrument on the bus has made a service request, the request service bit (RQS, bit 6) of its Status Byte Register will be set to 1, identifying it as an instrument that requested service. The contents of the Status Byte Register (STB) is determined by the Service Request Enable Register (SRE), Standard Event Status Register (ESR), Standard Event Status Enable Register (ESE), Questionable Data Event Register, Questionable Data Enable Register, and the output buffer. These status registers are discussed below, and summarized in Table 3. Figure 3 shows the relationship of these registers. Table 3. Status Register Summary Register Read Command Write Command Enable Register Status Byte Resister *STB? None SRE Status Byte Enable Register *SRE? *SRE None Standard Event Register *ESR? None ESE Standard Event Enable Register *ESE? *ESE None Questionable Data Event Register STAT:QUES:EVEN? None Questionable Data Enable Register Questionable Data Enable Register STAT:QUES:ENAB? STAT:QUES:ENAB None 27 DMM4040/4050 Programmer Manual Questionable Data Event Register Enable Register Binary Wieghts 0 0 Voltage Overload 2 = 21 = 1 Current Overload 22 = Not Used 3 2 = 2 = 256 2 29 = 512 4 8 210 = 1024 211 = 2048 2 = 16 25 = 32 6 2 = 64 27 = 128 2 = 4096 213 = 8192 214 = 16384 4 Not Used Not Used Not Used Not Used 8 1 12 15 2 = 32768 "OR" Not Used Not Used 9 Ohms Overload Status Byte Summary Register Enable Register Not Used 11 Limit Test Fail LO 12 Limit Test Fail HI 13 Remote Mode 0 Not Used Not Used 3 Not Used 15 STAT:QUES:EVEN? Not Used 4 STAT:QUES:ENAB STAT:QUES:ENAB? 5 6 Standard Event Event Register Enable Register 7 Not Used Message Available Standard Event Request Service Not Used Serial Poll (SPOLL) *STB? 0 Operation Complete "OR" Questionable Data *SRE *SRE? Not Used 2 Query Error 3 Device Error 4 Execution Error 5 Command Error 7 Power On "OR" Output Buffer Not Used *ESR? *ESE *ESE? Figure 3. Overview of Status Data Structure (DMM4040/4050 and Fluke 45) caw01f.eps Standard Event Status and Standard Event Status Enable Registers The Standard Event Status Register (ESR) assigns events to specific bits (see Figure 3 and Table 4). When a bit in the ESR is set (for example, 1), the event that corresponds to that bit has occurred since the register was last read or cleared. For example, if bit 3 (DDE) is set to 1, a device-dependent error has occurred. The Standard Event Status Enable Register (ESE) is a mask register that allows the host to enable or disable (mask) each bit in the ESR. When a bit in the ESE is 1, the corresponding bit in the ESR is enabled. When any enabled bit in the ESR changes from O to 1, the Standard Event bit in the Status Byte Register also goes to 1. When the ESR is read (using the *ESR? command) or cleared (using the *CLS command), the Standard Event bit in the Status Byte Register returns to 0. Table 4. Description of Bits in ESR and ESE Bit No. 28 Name True (Set to 1) Conditions 0 Operation Complete (OPC) All commands previous to receipt of an *OPC command have been executed. Interface is ready to accept another message. 1 Not used Always set to zero. Digital Multimeter Service Requests (IEEE-488 Only) and Status Registers 2 Query Error (QYE) Attempt has been made to read data from the Meter's output buffer when no output is present or pending. Possibly a new command line has been received before a previous query has been read or both input and output buffers are full. 3 Device-Dependent Error (DDE) Incorrect input during calibration, or RS-232 input buffer overflow. 4 Execution Error (EXE) Command was understood but could not be executed. Results from, for example, an inappropriate parameter. 5 Command Error (CME) Command not executed because it was not understood. This condition might occur when, for example, a command sent to the meter contained a syntax error. 6 Not used Always set to zero. 7 Power On (PON) Power has been cycled off and on since the last time the ESR was read or cleared. Questionable Data Event Register and Questionable Data Enable Register The Questionable Data Event Register provides information about the Meter’s measurements. Information such as overload conditions, high/low limits, and whether or not the Meter is in remote mode can be reported through the questionable data summary bit. Once a bit is set by the Meter, it remains set until it is read from the register or is cleared. The sixteen bits of the Questionable Data Event Register are described in Table 5. The Questionable Data Enable Register determines which of the bits in the Questionable Data Event Register will be used to the set the Questionable Data Summary bit in the Meter’s Status Byte. When a bit in the Questionable Data Enable Register is 1, the corresponding bit in the Questionable Data Event Register is enabled. When any enabled bit in the Questionable Data Event Register changes from 0 to 1, the Questionable Data bit in the Status Byte Register also goes to 1. When the Questionable Data Event Register is read (using the STAT:QUES:EVEN? command) or cleared (using the *CLS command), the Questionable Data bit in the Status Byte Register returns to 0. Table 5. Description of Bits in the Questionable Data Register Bit No. Name True (Set to 1) Condition 0 Voltage Overload Input voltage has exceeded the upper limit of the range. 1 Current Overload Input current has exceeded the upper limit of the range. 2–8 Not Used 9 Ohms Overload 10 Not Used 11 Limit Test Fail Lo The resistance measurement has exceeded the upper limit of the range. The measurement is below the low end of the test limit. 29 DMM4040/4050 Programmer Manual 12 Limit Test Fail Hi 13 Remote Mode 14 – 15 Not Used The measurement is above the high end of the test limit. The Meter is set in remote mode. Status Byte Register The Status Byte Register (STB) is a binary-encoded register that contains eight bits. Note that the Service Request Enable Register (SRE) uses bits 1 through 5, and bit 7 to set, the request service (RQS) bit 6, as enabled by the SRE. When the RQS bit is set true (l), the Meter sets the SRQ line true (1), which generates a service request. The eight bits of the Status Byte Register (as read by the *STB? command) are described in Table 6. Reading the Status Byte Register The host can read the Status Byte Register by performing a serial poll, or sending the Meter a *STB? query. The value of the status byte is not affected by the *STB? query. When the Status Byte Register is read, an integer is returned. This integer is the decimal equivalent of an 8-bit binary number. For example 48 is the decimal equivalent of the binary 00110000, and means that bit 4 (Message Available) and bit 5 (Standard Event) are set to “1”. If the status byte is read by serial poll, bit 6 is returned as a request service (RQS); if it is read with an *STB? query, bit 6 is returned as Master Summary Status (MSS). EXAMPLE *STB? EXPLANATION Reads the Status Byte Register. Assume that “32” is returned. Converting 32 to the binary 00100000 indicates that bit 5 (Standard Event) is set to 1. To determine the event status, you would have to read the Standard Event Register in the same manner, using the *ESR? command. Table 6. Description of Bits in the Status Byte Register Bit No. 30 Name True (Set to 1) Condition 0 Not used Always set to 0. 1 Not used Always set to 0. 2 Not used Always set to 0. 3 Questionable Data One or more of the enabled events in the Questionable Data Event Register have occurred. To determine which Questionable Data events have occurred, send the Meter STAT:QUES:EVEN? to read the Questionable Data Event Register. 4 Message Available (MAV) Data is available in the output buffer. Bit set to 1 when response to query placed in output buffer. Bit cleared (set to 0) when output terminator sent to host. 5 Standard Event Status (ESB) One or more of the enabled events in the Event Status Register have occurred. To determine which events have occurred, send the Meter *ESR? to read the Event Status Register. Digital Multimeter Supported SCPI Commands † 6 Master Summary Status (MSS) Set to 1 if any enabled bit in the STB (MSS) register is set to 1, otherwise set to 0. Status of MSS bit returned by *STB? query command. Request Service (RQS) Set to 1 if service requested from front panel, or MSS set to 1. Status of bit returned by serial poll, which clears RQS. 7 Not Used Always set to zero. † As read by *STB? command. If the Status Byte Register is read by a serial poll, bit 6 is returned as RQS. Service Request Enable Register The SRE Register is an 8-bit register that enables or disables (i.e., masks) corresponding summary messages in the Status Byte Register. The Meter may be programmed to make a service request on errors, questionable data, or when output is available. Conditions that trigger a service request are specified by writing a binary weighted value to the SRE Register, using the *SRE command. EXAMPLE *SRE 16 EXPLANATION Enables the generation of an SRQ when bit 4 (Measurement Available) in the Status Byte Register is set to 1. 16 is the decimal equivalent of 00010000 binary. This means that bit 4 in SRE Register (that corresponds to the Measurement Available bit in the Status Byte Register) is 1, and all other bits are 0. EXAMPLE *SRE 48 EXPLANATION Enables the generation of an SRQ when bits 4 or 5 (Measurement Available or Standard Event) in the Status Byte Register are set to 1. The binary equivalent of 48 is 00110000, indicating that bits 4 and 5 are set to 1. If any bit in the SRE is set to 1, the RQS bit (bit 6) in the Status Byte Register is enabled, meaning a service request can be generated when the appropriate bits in STB become 1. Use the *SRE? query (see Table 9) to read the SRE Register. The Meter returns a binaryweighted integer that represents the enabled bits in the register. (The value of bit 6 will always be zero.) Convert the returned value to binary to determine the status of register bits. EXAMPLE *SRE? EXPLANATION Reads the value of the SRE Register. Assume "32" is returned. Converting 32 to the binary 00100000 indicates that bit 5 in the SRE is set to 1. Supported SCPI Commands This section explains the SCPI (Standard Commands for Programmable Instruments) commands available to program the Meter. This section includes the following information: • • • • A list of the supported SCPI Commands A discussion of how to use the command set A detailed description of each command in the set Error handling for the DMM4040/4050 31 DMM4040/4050 Programmer Manual Note Throughout this document, the following conventions are used for SCPI command syntax. Square brackets ( [ ] ) indicate optional keywords or parameters. Braces ( { } ) enclose parameters within a command string. Triangle brackets ( < > ) indicate that you must substitute a value for the enclosed parameter. SCPI Command Summary Tables 7 through 16 summarize the SCPI commands implemented in the DMM4040 and DMM4050 Digital Multimeters. Table 7. CALibration Command Summary Command Description Perform a calibration Path to the calibration function Retrieves number of times Meter has been calibrated Records calibration values Path to calibration security function Change security code Unsecure / secure calibration mode Retrieves state of security mode Record calibration information Retrieves calibration information Set the calibration date Retrieve the calibration date Specify calibration signal value Retrieves calibration signal value Set the calibration step and reference Retrieve the calibration step CALibration? [{on|off}] CALibration :COUNt? :RECord :SECure :CODE :STATe {off|on}, :STATe? :STRing :STRing? :DATE :DATE? :VALue :VALue? :STEP [,Reference] :STEP? Table 8. CONFigure Command Summary Command CONFigure[:SCALar] [:VOLTage] [:DC [{range}[, {resolution}]]] :RATio :AC [{range}[, {resolution}]] :CURRent [:DC[ {range}][, {resolution}]]] :AC [{range}][, {resolution}]] :RESistance [{range}[, {resolution}]] :FRESistance [{range}[, {resolution}]] :FREQuency [{range}[, {resolution}]] :PERiod [{range}[, {resolution}]] :CAPacitance [{range}[, {resolution}]] :TEMPerature:FRTD [{}] :TEMPerature:RTD [{}] :CONTinuity :DIODe [{low current}][, {high voltage}]] CONFigure? 32 Description Subsystem to set Meter function Path to set voltage function Selects dc volts function Selects dc volts ratio function Selects ac volts function Path to set current function Selects dc current function Selects ac current function Selects resistance function Selects 4-wire resistance function Selects frequency function Selects period function Selects capacitance function Selects 4-wire temperature function Selects 2-wire temperature function Selects continuity function Selects diode function Retrieves present Meter configuration Digital Multimeter Supported SCPI Commands Table 9. IEEE-488.2 Common Command Summary Command Description *CLS Clear status byte summary, and all event registers *ESE *ESE? Enable bits in standard event register Retrieve standard event enable register *ESR? Retrieve standard event register *IDN? Retrieve meter’s identification string *OPC *OPC? Set ‘Operation Complete” bit in Standard event reg. Returns “1” in output buffer after command execution. *PSC {0|1} *PSC? Power-on status clear Retrieve power-on status clear setting *RST Reset Meter to its power-on state *SRE *SRE? Enable bits in status byte register Retrieve bits in status byte register *STB? Retrieve the status byte summary register *TST Perform self-test. Returns “0” if the test succeeds, “1” if the test fails. *TRG Trigger a measurement Table 10. Math Command Summary Command CALCulate :AVERage :MINimum? :MAXimum? :AVERage? :COUNt? :DB :REFerence {|MINimum|MAXimum} :REFerence? :DBM :REFerence {|MINimum|MAXimum} :REFerence? :FUNCtion {NULL|DB|DBM|AVERage|LIMIt} :FUNCtion? :KMATh :STATe { on|off} :MMFactor{} :MMFactor? :MBFactor{} Description Path to the math functions Path to MIN-MAX function Retrieves the recorded minimum value Retrieves the recorded maximum value Retrieves the recorded average value Retrieves the number of readings during MIN-MAX run Path to DB function Store relative value in relative register Retrieves the relative value from the relative register Path to DBM function Select dBm reference value Retrieves the present dBm reference value Sets the math function Retrieves the present math function Path to math functions Disables/enables mx+b calculations Sets the value of “m” for mx+b Reads the value of “m” for mx+b Sets the value of “b” for mx+b 33 DMM4040/4050 Programmer Manual :MBFactor? :MUNits{} :MUNits? :LIMit :LOWer{|MINimum|MAXimum} :LOWer? :UPPer{|MINimum|MAXimum} :UPPer? :NULL :OFFSet {|MINimum|MAXimum} :OFFSet? [MINimum|MAXimum] :STATe {ON|OFF} :STATe? DATA :FEED RDG_STORE, {“CALCulate”|” ”} :FEED? Reads the value of “b” for mx+b Sets the units name for mx+b Reads the units name for mx+b Path to limit testing function Set the lower limit for limit testing Retrieves the lower limit Set the upper limit for limit testing Retrieves the upper limit Path to null function Sets the offset value Retrieves set or maximum or minimum offset value. Disable/enable selected math function Retrieves the state of the math function Path to storing readings taken with INITiate command Enables/disables storing of INITiate readings Retrieves state of storing INITiate readings Table 11. MEASure Command Summary Command MEASure[:SCALar] :CAPacitance? [{|MIN|MAX|DEF}[{,|MIN|MAX|DEF}]] :CONTinuity? :CURRent :DC? [{|MIN|MAX|DEF}[, {|MIN|MAX|DEF}]] :AC? [{|MIN|MAX|DEF}[{,|MIN|MAX|DEF}]] :DIODe? [{low current}][, {high voltage}]] :FREQuency? :FRESistance? [{|MIN|MAX|DEF}[{,|MIN|MAX|DEF}]] :PERiod? [{|MIN|MAX|DEF}[{,|MIN|MAX|DEF}]] :RESistance? [{|MIN|MAX|DEF}[{,|MIN|MAX|DEF}]] :TEMPerature:FRTD? [{ Type>}] :VOLTage :AC? [{|MIN|MAX|DEF}[{,|MIN|MAX|DEF}]] [:DC]? [{|MIN|MAX|DEF}[{,|MIN|MAX|DEF}]] :RATio? 34 Description Path to measure control Preset and make capacitance measurement Make a continuity measurement Path to measure current Make a dc current measurement Make an ac current measurement Make a diode measurement Make a frequency measurement Make a 4-wire resistance measurement Make a period measurement Make a 2-wire measurement Make a 4-wire temperature measurement Make a 2-wire temperature measurement Path to voltage measurements Make an ac voltage measurement Make a dc voltage measurement Make a dc voltage ratio measurement Digital Multimeter Supported SCPI Commands Table 12. Measurement Configuration Command Summary Command [1] Description Path to Meter configuration [SENSe:] Select capacitance function FUNCtion[1/2] “CAPacitance” Select continuity function FUNCtion[1/2] “CONTinuity” Select ac current function FUNCtion[1/2] “CURRent:AC” Select dc current function FUNCtion[1/2] “CURRent:DC” Select diode function FUNCtion[1/2] “DIODe” Select 4-wire resistance function FUNCtion[1/2] “FRESistance” Select frequency function FUNCtion[1/2] “FREQuency” Select period function FUNCtion[1/2] “PERiod” Select 2-wire resistance function FUNCtion[1/2] “RESistance” Select 4-wire temperature function FUNCtion[1/2] “TEMPerature:FRTD” Select 2-wire temperature function FUNCtion[1/2] “TEMPerature:RTD” Select dc voltage function FUNCtion[1/2] “VOLTage:DC” Select ac voltage function FUNCtion[1/2] “VOLTage:AC” Select dc voltage ratio function FUNCtion[1] “VOLTage:RATio” Retrieve present measurement function FUNCtion[1/2] ? Turn off secondary display FUNCtion2 “None” Path to configure voltage measurement range VOLTage Path to ac voltage range :AC Select filter :BANDwidth {3|20|200|MINimum|MAXimum} Retrieve present filter setting :BANDwidth? Set ac voltage range :RANGe {|MINimum|MAXimum} Disable/Enable Autoranging :AUTO {OFF|ON} Retrieve present autorange setting :AUTO? Retrieve the present range setting :RANGe? [MINimum|MAXimum] Set resolution for ac voltage measurement :RESolution {|MINimum|MAXimum} Retrieve ac voltage measurement resolution :RESolution? [MINimum|MAXimum] [:DC] Path to dc voltage range 35 DMM4040/4050 Programmer Manual Table 12. Measurement Configuration Command Summary (cont.) Command [1] :FILTer [:STATe] {OFF|ON} [:STATe]? :DIGItal [:STATe]{OFF|ON} [:STATe]? :IMPedance :AUTO {OFF|ON} :AUTO? :NPLCycles {0.02|0.2|1|10|100| MINimum|MAXimum} :NPLCycles? [MINimum|MAXimum] :RANGe {|MINimum|MAXimum} :AUTO {OFF|ON} :AUTO? :RANGe? [MINimum|MAXimum] :RESolution {|MINimum|MAXimum} :RESolution? [MINimum|MAXimum] CURRent :AC :BANDwidth {3|20|200|MINimum|MAXimum} :BANDwidth? :RANGe {|MINimum|MAXimum} :AUTO {OFF|ON} :AUTO? :RANGe? [MINimum|MAXimum] :RESolution {|MINimum|MAXimum} :RESolution? [MINimum|MAXimum] [:DC] :FILTer [:STATe] {OFF|ON} [:STATe]? :DIGItal [:STATe]{OFF|ON} [:STATe]? :NPLCycles {0.02|0.2|1|10|100| MINimum|MAXimum} :NPLCycles? [MINimum|MAXimum] :RANGe {|MINimum|MAXimum} :AUTO {OFF|ON} :AUTO? :RANGe? [MINimum|MAXimum] :RESolution {|MINimum|MAXimum} :RESolution? [MINimum|MAXimum] RESistance :FILTer [:STATe] {OFF|ON} [:STATe]? :DIGItal [:STATe]{OFF|ON} [:STATe]? 36 Description Path to analog filter Activates or deactivates 3-pole analog filter Retrieve the present analog filter setting Path to digital filter Activates or deactivates digital filter Retrieve the present digital filter setting Path to input impedance selection Turn auto-impedance mode off or on Retrieve present setting of auto impedance Set integration time for selected function Retrieve integration time for selected function Set dc voltage range Disable/enable Autoranging Retrieve present autorange setting Retrieve the present range setting Set resolution for dc voltage measurement Retrieve dc voltage measurement resolution Path to configure current measurement range Path to ac current range Select filter Retrieve present filter setting Set ac current range Disable/enable Autoranging Retrieve present autorange setting Retrieve the present range setting Set resolution for ac current measurement Retrieve ac current measurement resolution Path to dc current range Path to analog filter Set analog filter off or on Retrieve the present analog filter setting Path to digital filter Activates or deactivates digital filter Retrieve the present digital filter setting Set integration time for selected function Retrieve integration time for selected function Set dc current range Disable/enable Autoranging Retrieve present autorange setting Retrieve the present range setting Set resolution for dc current measurement Retrieve dc current measurement resolution Path to 2–wire resistance measurement range Path to analog filter Set the analog filter off or on Retrieve the present analog filter setting Path to digital filter Activates or deactivates digital filter Retrieve the present digital filter setting Digital Multimeter Supported SCPI Commands Table 12. Measurement Configuration Command Summary (cont.) Command [1] :NPLCycles {0.02|0.2|1|10|100| MINimum|MAXimum} :NPLCycles? [MINimum|MAXimum] :RANGe {|MINimum|MAXimum} :AUTO {OFF|ON} :AUTO? :RANGe? [MINimum|MAXimum] :RESolution {|MINimum|MAXimum} :RESolution? [MINimum|MAXimum} FRESistance :FILTer :STATe {OFF|ON} :STATe? :DIGItal [:STATe]{OFF|ON} [:STATe]? :NPLCycles {0.02|0.2|1|10|100| MINimum|MAXimum} :NPLCycles? [MINimum|MAXimum] :RANGe {|MINimum|MAXimum} :AUTO {OFF|ON} :AUTO? :RANGe? [MINimum|MAXimum] :RESolution {|MINimum|MAXimum} :RESolution? [MINimum|MAXimum} FREQuency :APERture {0.01|0.1|1|MINimum|MAXimum} :APERture? [MINimum|MAXimum] :VOLTage :RANGe {|MINimum|MAXimum} :AUTO {OFF|ON} :AUTO? :RANGe? [MINimum|MAXimum] PERiod :APERture {0.01|0.1|1|MINimum|MAXimum} :APERture? [MINimum|MAXimum] :VOLTage :RANGe {|MINimum|MAXimum} :AUTO {OFF|ON} :AUTO? :RANGe? [MINimum|MAXimum] CAPacitance :RANGe {|MINimum|MAXimum} :AUTO {OFF|ON} :AUTO? :RANGe? [MINimum|MAXimum] :RESolution {|MINimum|MAXimum} :RESolution? [MINimum|MAXimum} TEMPerature :RTD :ALPHa Description Set integration time for selected function Retrieve integration time for selected function Set resistance measurement range Disable/enable Autoranging Retrieve present autorange setting Retrieve the present range setting Set resolution for resistance measurement Retrieve resistance measurement resolution Path to 4–wire resistance measurement range Path to analog filter Set analog filter off or on Retrieve the present analog filter setting Path to digital filter Activates or deactivates digital filter Retrieve the present digital filter setting Set integration time for selected function Retrieve integration time for selected function Set resistance measurement range Disable/enable Autoranging Retrieve present autorange setting Retrieve the present range setting Set resolution for resistance measurement Retrieve resistance measurement resolution Path to frequency measurement range Set aperture time for frequency function Retrieve aperture time for frequency function Path to frequency range configuration Set frequency measurement range Disable/enable Autoranging Retrieve present autorange setting Retrieve the present range setting Path to period measurement range Set aperture time for period function Retrieve aperture time for period function Path to period range configuration Set period measurement range Disable/enable Autoranging Retrieve present autorange setting Retrieve the present range setting Path to capacitance measurement range Set capacitance measurement range Disable/enable Autoranging Retrieve present autorange setting Retrieve the present range setting Set resolution for capacitance measurement Retrieve capacitance measurement resolution Path to temperature measurement Path to 2-wire temperature measurement Set RTD alpha parameter 37 DMM4040/4050 Programmer Manual Table 12. Measurement Configuration Command Summary (cont.) Command [1] :ALPHa? :NPLCycles {0.02|0.2|1|10|100| MINimum|MAXimum} :NPLCycles? [MINimum|MAXimum] :R0 :R0? :TYPe {PT100_385|PT100_392|CUST1} :TYPe? Description Retrieve the present RTD alpha parameter Set integration time for selected function Retrieve integration time for selected function Set resistance at 0 °C Retrieve present 0 °C resistance setting Set the type of RTD Retrieve the present RTD type (385|CUSTOM) :FRTD :ALPHa :ALPHa? :NPLCycles {0.02|0.2|1|10|100| MINimum|MAXimum} :NPLCycles? [MINimum|MAXimum] :R0 :R0? :TYPe {PT100_385|PT100_392|CUST1} :TYPe? Path to 4-wire temperature measurement Set RTD alpha parameter Retrieve the present RTD alpha parameter Set integration time for selected function FILTer [:DC] [:STATe] {OFF|ON} [:STATe]? :DIGital [:STATe]{OFF|ON} [:STATe]? Path to filter selection Path to analog filter Set analog filter off or on for dc functions Retrieve the present analog filter setting Path to digital filter Activates or deactivates digital filter Retrieve the present digital filter setting DETector :BANDwidth {3|20|200|MINimum|MAXimum} :BANDwidth? [MINimum|MAXimum] Path to ac filter selection Set the ac input signal filter Retrieve the present ac filter setting ZERO :AUTO {OFF|ONCE|ON} :AUTO? Path to configuring the autozero mode Set the autozero mode Retrieve the present autozero mode INPut :IMPedance :AUTO {OFF|ON} :AUTO? Path to input impedance Path to input impedance configuration Disable/enable auto input impedance select Retrieve auto input impedance mode ROUTe :TERMinals? Path to input terminal selection Retrieve input terminal selection (front or rear) Retrieve integration time for selected function Set resistance at 0 °C Retrieve present 0 °C resistance setting Set the type of RTD Retrieve the present RTD type (385|CUSTOM) [1] Default parameters are shown in bold Table 13. RS-232 Interface Command Summary Command SYSTem :LOCal :REMote :RWLock 38 Description Path to RS-232 Interface commands Set Meter to local mode Set Meter to remote mode for RS-232 operation Set Meter to remote mode (lock out front panel) Digital Multimeter Supported SCPI Commands Table 14. Status Reporting Command Summary Command Description *CLS Clear status byte summary and all event registers *ESE *ESE? Enable bits in standard event register Retrieve standard event enable register *ESR? Retrieve standard event register *OPC *OPC? Set Operation Complete bit in standard event register Returns “1” in output buffer after command exec. *PSC {0|1} *PSC? *SRE *SRE? Power-on status clear Retrieve power-on status clear setting Enable bits in status byte register Retrieve bits in status byte register *STB? Retrieve the status byte summary register SYSTem :ERRor? Path to meter’s error queue Retreive meter’s error queue STATus :PRESet :QUEStionable :ENABle :ENABle? :EVENt? Path to meter’s status system Clear questionable data enable register Path to questionable data register Enable bits in questionable data enable register Retrieve questionable data register Retrieve questionable data enable register 39 DMM4040/4050 Programmer Manual Table 15. System-Related Command Summary Command [1] Description FETCh[1|2|3]? Transfer stored readings to output buffer READ? Set trigger system to ‘wait-for-trigger’ DISPlay {OFF|ON} :TEXT :CLEar :TEXT? Turn display off or on Write message to display Clear message from display Retreive displayed message DISPlay? Retrieve display setting SYSTem :BEEPer :STATe {OFF|ON} Path to system controls Issue a single beep Disable/enable beeper for limit, and diode testing Retrieve state of beeper Sets the Meter’s date Retrieves the Meter’s date Retrieve meter’s error queue Enable/disable beeper for errors Retrieve beeper state for errors Sets the Meter’s time Retrieves the Meter’s time Retrieve meter’s SCPI version :STATe? :DATE :DATE? :ERRor? :ERRor:BEEPer {OFF|ON} :ERRor:BEEPer? :TIME :TIME? :VERSion? DATA :POINts? Path to meter’s memory Retrieve the number of stored readings *RST Reset Meter to its power-on state IDN [ON|OFF], [Quoted String] Enables or disables a secondary indentification defined by the quoted string. When disabled, *IDN? will return the indentification set by the Meter’s manufacturer. *IDN? Retrieve meter’s identification string L1 L2 L3 Set the command language to DMM4040/4050 Set the command language to Fluke 45 Set the command language to Fluke 8842A [1] Default parameters are shown in bold 40 Digital Multimeter Supported SCPI Commands Table 16. Triggering Command Summary [1] Command Description INITiate Set trigger system to wait-for-trigger DATA Path to storing readings taken with INITiate command Enables/disables storing of INITiate readings Retrieves state of storing INITiate readings :FEED RDG_STORE, {“CALCulate”|” ”} :FEED? READ? Set trigger system to wait-for-trigger SAMPle :COUNt {|MINimum|MAXimum} :COUNt? [MINimum|MAXimum] Path to sample count Set number of samples per trigger Retrieve sample count TRIGger :COUNt {|MINimum|MAXimum|INFinite} :COUNt? [MINimum|MAXimum] :DELay {|MINimum|MAXimum} :AUTO {OFF|ON} :AUTO? :DELay? [MINimum|MAXimum] [1] :SOURce {Bus|IMMediate|EXTernal} :SOURce? Path to trigger control Set the number of triggers Meter will accept Retrieve the number of tiggers Meter will accept Set the delay between trigger and measurement Disable/Enable automatic trigger delay Retrieve automatic trigger delay status Retreive present trigger delay value Set meter’s trigger source Retrieve the meter’s present trigger source [1] Bold type denotes default parameter. SCPI Command Details All SCPI commands recognized by the Meter are listed in the following sections along with description and syntax rules. 41 DMM4040/4050 Programmer Manual Using the MEASure? Command The MEASure? command provides the quickest and simplest program method for getting the Meter to make a single measurement through remote control. However, MEASure? does not provide control over all possible parameters associated with a measurement function. With the exception of function, range, and resolution, the MEASure? command does not allow changing settings before the measurement is taken. Instead, the Meter uses predefined settings for each function (See Table 17) and makes a measurement as soon as the command is received. The measurement is immediately sent to the output buffer. A MEASure? command is the same as using a CONFigure command followed by the READ? Command. MEASure[:SCALar][:]?[ or or [, or ]] Description Sets the Meter function with the preset parameters (See Table 17), and makes the measurement using the specified range and resolution. The reading is placed in the output buffer. For the temperature function, the range variable is replaced by the RTD type variable. Note The dc portion of the function keyword is optional, as is the VOLTage portion. For instance, MEAS:AC? will be interpreted by the Meter as meaning Volts ac function. Parameters 42 = CAPacitance CURRent:AC CURRent:DC VOLTage:AC VOLTage:DC VOLTage:DC:RATio RESistance FRESistance FREquency PERiod TEMPerature:RTD TEMPerature:FRTD DIODe CONTinuity Capacitance AC current[1] DC current AC voltage[1] DC voltage DC voltage ratio[7] 2-wire resistance 4-wire resistance Frequency[2] Period[3] 2-wire temperature[4] 4-wire temperature[4] Diode[5] Continuity[6] = a number between the upper and lower limits of the function. MIN Lowest range of the function MAX Highest range of the function DEF Autorange = ON or 1 OFF or 0 Sets diode current to 0.1 mA Sets diode current to 1 mA ON or 1 OFF or 0 Sets diode voltage to 10 V Sets diode voltage to 5 V. = a number in the same units, not in number of digits, as the measurement function,. MIN Smallest value acceptable MAX Largest value acceptable DEF 5½ digits Digital Multimeter Supported SCPI Commands Note Issuing a MEASure? command without specifying a function, puts the Meter into volts dc and triggers a measurement. You must specify a range to use a resolution parameter. Example Notes MEAS:volt:ac? 10 = Returns a measurement after configuring the Meter for volts ac and setting the range to the 10 volt range. MEAS:diod? ON = Sets diode function using low current and returns the diode measurement. 9.90000000E+37 is the value returned for an open diode. [1] For ac measurements, resolution is fixed at 6½ digits. The resolution parameter only affects the front panel display. [2] For frequency measurements, the multimeter uses one “range” for all inputs between 3 Hz, and 300 kHz. With no input signal applied, frequency measurements return zero. [3] For period measurements, the multimeter uses one “range” for all inputs between 0.33 seconds, and 3.3 μsec. With no input signal applied, period measurements return zero. [4] The range and resolution are fixed for temperature measurements. However, placing PT100_385 or PT100_392 into the range field will set the RTD type. Placing CUST1 into the range field will cause the Meter to use the values set into the R0 and Alpha parameters. [5] The range and resolution are fixed for diode test: 10 Vdc range and 5½ digits. When set to ON, the low current parameter sets the diode test current to 0.1 mA. When OFF, the current is 1 mA. When set to ON, the high voltage parameter sets the diode test voltage to 10 volts. When OFF, the voltage is 5 volts. To specify a diode test voltage, you must also include ON or OFF for the low current parameter. [6] The range and resolution are fixed for continuity tests: 1 kΩ range and 5½ digits. [7] DC measurement voltage divided by dc reference voltage. For dc ratio, connect the reference HI/LO to the HI/LO sense terminals of the Meter and the measurement voltage to the HI/LO input terminals of the Meter. Note the specified measurement range applies to the input terminals only. Note For best results in RATIO, the two input commons must be shorted at the Meter terminals. The analog filter (AFLTR) should be off. Using the CONFigure Command The CONFigure command allows more configuration control than the MEASure command. As with the MEASure command, the CONFigure command presets the Meter’s parameters for the desired configuration (See Table 17). However, a measurement does not start automatically, and therefore affords the opportunity to change measurement parameters prior to triggering a measurement. The CONFigure command is very useful when most of the parameters preset by CONFigure are what you want and you only need to change one or two parameters. The 43 DMM4040/4050 Programmer Manual SENSe:FUNCtion command provides a means of changing a function’s parameters. Other commands, such as INPut, SENSe, CALCulate, and TRIGger allow for more detailed control of the Meter’s parameters. The CONFigure command does not initiate a measurement and will need to be followed by READ? command, or the INITiate and FETCh? commands. CONFigure[:SCALar][:] [ or or ][, or ]] Description Sets the Meter function with the preset parameters (See Table 17) and configure the Meter using the specified range and resolution. This command must be followed by a READ? command, or the INITiate and FETCh? commands to cause the Meter to take a measurement. For the temperature function, the range variable is replaced by the RTD type variable. Note The dc portion of the function keyword is optional, as is the VOLTage portion. For instance, CONF:AC will be interpreted by the Meter as meaning Volts ac function. Parameters = CAPacitance CURRent:AC CURRent:DC VOLTage:AC VOLTage:DC VOLTage:DC:RATio RESistance FRESistance FREquency PERiod TEMPerature:RTD TEMPerature:FRTD DIODe CONTinuity Capacitance AC current[1] DC current AC voltage[1] DC voltage DC voltage ratio[7] 2-wire resistance 4-wire resistance Frequency[2] Period[3] 2-wire temperature[4] 4-wire temperature[4] Diode[5] Continuity[6] = a number between the upper and lower limits of the function. MIN Lowest range of the function MAX Highest range of the function DEF Autorange = ON or 1 OFF or 0 Sets diode current to 0.1 mA Sets diode current to 1 mA. = ON or 1 OFF or 0 Sets diode voltage to 5 volts Sets diode voltage to 10 volts. = a number in the same units, not in number of digits, as the measurement function,. MIN Smallest value acceptable MAX Largest value acceptable DEF 5½ digits Note You must specify a range whenever specifying a resolution parameter. 44 Digital Multimeter Supported SCPI Commands Notes [1] For ac measurements, resolution is fixed at 6½ digits. The resolution parameter only affects the front panel display. [2] For frequency measurements, the Meter uses one range for all inputs between 3 Hz, and 300 kHz. With no input signal applied, frequency measurements return zero. [3] For period measurements, the Meter uses one range for all inputs between 0.33 seconds, and 3.3 μsec. With no input signal applied, period measurements return zero. [4] The range and resolution are fixed for temperature measurements. However, placing PT100_385 or PT100_392 into the range field will set the RTD type. Placing CUST1 into the range field will cause the Meter to use the values set into the R0 and Alpha parameters. [5] The range and resolution are fixed for diode test: 10 Vdc range and 5½ digits. When set to ON, the low current parameter sets the diode test current to 0.1 mA. When OFF, the current is 1 mA. When set to ON, the high voltage parameter sets the diode test voltage to 10 volts. When OFF, the voltage is 5 volts. To specify a diode test voltage, you must also include ON or OFF for the low current parameter. [6] The range and resolution are fixed for continuity tests: 1 kΩ range and 5½ digits. [7] DC measurement voltage divided by dc reference voltage. For dc ratio, connect the reference HI/LO to the HI/LO sense terminals of the Meter and the measurement voltage to the HI/LO input terminals of the Meter. Note the specified measurement range applies to the input terminals only. Note For best results in RATIO, the two input commons must be shorted at the Meter terminals. The analog filter (AFLTR) should be off. Table 17. Preset Conditions for the MEASure? and CONFigure Commands Parameter Setting AC Filter (DET:BAND) 20 Hz Autozero (ZERO:AUTO) OFF if NPLC <1, ON if NPLC >=1 DC Digital Filter ON Input Impedance (INP:IMP:AUTO) OFF Samples per trigger (SAMP:COUN) 1 Trigger count (TRIG:COUN) 1 Trigger delay (TRIG:DEL) Automatic Trigger source (TRIG:SOUR) Internal (immediate) Math Function (CALCulate subsystem) OFF 45 DMM4040/4050 Programmer Manual Setting Range and Resolution Parameters The MEASure? and CONFigure commands incorporate parameters for setting the Meter’s function, its range, and its resolution. Placing the input signal’s expected amplitude into the range value causes the Meter to select a range appropriate for the supplied signal amplitude. Although the frequency and period functions use a single range for all inputs between 3 Hz and 300 kHz, it is necessary to specify a range whenever specifing a resolution setting for these functions. When specifying resolution, specify it in the units of the function instead of number of digits. For ac or dc volts, specify the resolution in volts. The resolution specification for frequency is in hertz. Note A range parameter is required when specifying the resolution parameter. Using the READ? Command READ? Description READ? causes the Meter to take a measurement the next time the trigger condition is met after the READ? command is received. After the measurement is taken, the reading is placed in the output buffer. The READ? command will not cause readings to be stored in the Meter’s internal memory. All measurements are sent to the output buffer until the buffer becomes full, at which point the Meter stops taking measurements. To keep the measurements running, measurements must be continually read out of the output buffer. Note Always process the reading(s) from the output buffer after each READ? command. Failure to do so may cause some of the data from the previous READ? command to appear in the response for the last READ? command. For those times the buffer cannot be read after a READ? command, send a device clear (DC1) before issuing another READ? command. Using the INITiate Command Once the Meter has been configured for a measurement, the INITiate command causes the Meter to take a measurement when the trigger conditions have been met. The measurement reading(s) are placed in the Meter’s internal memory (up to 5,000 readings) to be read at a later time using the FETCh? command. With one exception, the INITiate command stops the Meter from accepting any other remote commands until the Meter has completed both taking the measurement and storing the reading. The exception occurs when the trigger source is set to BUS with the TRIGger:SOURce command. Under this condition, the *TRG command or the IEEE-488 Group Execute Trigger will be processed to start the measurement. Using the FETCh? Command To process readings from the Meter’s internal memory to the output buffer, send the Meter a FETCh? command. With readings in the output buffer, a bus controller can then retrieve the readings over the bus. 46 Digital Multimeter Supported SCPI Commands Using the SENSe Subsystem to Configure the Meter Setting Meter functions and function parameters are controlled through the SENSe subsystem of commands. Both primary and secondary display functions are set using the FUNCtion commands. The parameters of each Meter function are also controlled through this subsystem of commands. [SENSe]:FUNCtion[1/2] "" Description Sets the Meter to the measurement function listed in the function parameter. The function must be enclosed in quotes in the command string (e.g. FUNC “VOLT:DC”). Parameters [1/2] [1] Examples = Use 1 for primary display, and 2 for secondary display = CAPacitance CURRent:AC CURRent:DC VOLTage:AC VOLTage:DC VOLTage:DC:RATio RESistance FRESistance FREQuency PERiod TEMPerature:RTD TEMPerature:FRTD DIODe CONTinuity NONe[2] FUNC “VOLT:DC” Capacitance AC current DC current AC voltage DC voltage DC voltage ratio[3] 2-wire resistance 4-wire resistance Frequency Period 2-wire temperature 4-wire temperature Diode Continuity Turn off secondary display Sets the Meter to volts dc FUNC1 “VOLT:DC”; FUNC2 “VOLT:AC” Dual function command Query FUNCtion[1/2]? Query measurement function Note FUNC2? will return the measurement mode selected for the secondary display (assuming its been enabled using the FUNC2 command). FUNC1? or FUNC? will return the measurement mode for the primary display. Notes [1] Using FUNC without a 1 or 2 will default to 1 for the primary display. [2] Valid only when used with FUNC2. [3] Valid only when used with FUNC or FUNC1. [SENSe:] The SENSe subsystem allows configuring the Meter’s functions. Parameters = CAPacitance CURRent:AC CURRent[:DC] VOLTage:AC VOLTage[:DC] RESistance FRESistance FREQuency Capacitance AC current DC current AC voltage DC voltage 2-wire resistance 4-wire resistance Frequency 47 DMM4040/4050 Programmer Manual PERiod TEMPerature:RTD TEMPerature:FRTD DIODe CONTinuity NONe[1] Notes Period 2-wire temperature 4-wire temperature Diode Continuity Turn off secondary display [1] Valid only when used with FUNC2. [SENSe:]:RANGe(?) Description Sets the range according to the value supplied for n, of the Meter function specified in the variable . Not having selectable ranges, an error is returned when using temperature, diode test, or continuity as the function with the RANGe command. This setting is stored in volatile memory. For the frequency and period functions, the range command value refers to the signal’s input voltage and not the range of the frequency or period measurement. Also, the word VOLTage must follow the function before the RANGe command. See examples below. Parameters = value of reading Expected reading in volts, amps or ohms MINimum Lowest range MAXimum Highest range Examples VOLT:RANG 10 CURR:AC:RANG 1e-3 RES:RANG 20e3 FREQ:VOLT:RANG 5 Sets the Meter’s dc volts to the 10 volt range. Sets the Meter’s ac amps to the 100 mA range. Sets the Meter’s ohms to the 100 kΩ range. Sets the voltage input range to the 10 volt range for frequency measurements. Query VOLT:RANG? VOLT:RANG? MIN Returns the set range for dc volts. Returns the minimum range of the dc volts function. (1.00000000E-01 or 100 mV) Returns the maximum range of the 2-wire resistance function. (1.00000000E+09 or 1 GΩ) RES:RANG? MAX [SENSe:]:RANGe:AUTO(?) {OFF|ON} Description Switches the Meter between autoranging and manual ranging. Not having selectable ranges, an error is returned when the temperature, diode test, or continuity function is used with the RANGe:AUTO function. This setting is stored in volatile memory. For the frequency and period functions, the RANGe:AUTO command refers to the signal’s input voltage and not the range of the frequency or period measurement. Also, the word VOLTage must follow the function before the RANGe command. See examples below. Note Autorange thresholds are set for down range with readings <11 % of range and up range with readings >120 % of range. Examples 48 VOLT:RANG:AUTO ON Sets the Meter’s dc volts to autorange. CURR:AC:AUTO OFF Sets the Meter’s ac amps to manual ranging. FREQ:VOLT:RANG ON Sets the Meter’s voltage input to autorange while making a frequency measurement. Digital Multimeter Supported SCPI Commands Query VOLT:RANG:AUTO? Returns the dc volts autorange state. A zero means off and a one means on. [SENSe:]:RESolution(?) Description Sets the resolution according to the value supplied for n, for the Meter function specified in the variable . Resolution is specified in the same units as the function. i.e., volts for the volts ac and dc functions. This setting is stored in volatile memory. For functions that do not have selectable ranges, an error is returned when using frequency, period, temperature, diode test, or continuity as the function in the RESolution command. Parameters = resolution value Desired resolution in volts, amps, ohms, or farads. MIN Highest resolution MAX Lowest resolution Examples VOLT:RES 1e-4 CURR:AC:RES 1e-8 Sets the dc volts resolution to 100 μV. Sets the ac amps resolution to 10 nA. Query VOLT:RES? VOLT:RES? MIN Returns the set resolution for dc volts. Returns the minimum resolution of the dc volts function. [SENSe:]:NPLCycles(?) Description Sets the Meter’s integration time for the function specified in , based on the number of power line cycles. This setting is stored in volatile memory. This command is only valid for dc voltage, dc current, temperature, and resistance (2-wire and 4-wire) functions. Parameters = 0.02 to 100 MIN MAX sets integration time to a preset value of a power line cycle (0.02, 0.2, 1, 10, and 100) 0.02 NPLC 100 NPLC Examples VOLT:DC:NPLC .2 Sets the dc volts integration time to 0.2 of a power line cycle. Query VOLT:NPLC? CURR:NPLC? MIN Returns the integration time for dc volts. Returns the minimum integration time for the dc current function. [SENSe:]TEMPerature:[TRANsducer:]:R0(?) Description Sets the resistance at zero degrees C specified by for the R0 parameter of the temperature function. This setting is stored in volatile memory. Parameters = = RTD 2-wire RTD FRTD 4-wire RTD 0 to 1010 Resistance at 0 °C Examples TEMP:RTD:R0 120 Sets the resistance at 0 °C to 120 ohms. Query TEMP:RTD:R0? Returns the set resistance at 0 °C. 49 DMM4040/4050 Programmer Manual [SENSe:]TEMPerature:[TRANsducer:]:TYPe(?) Description Sets the RTD type for the temperature function. This setting is stored in volatile memory. Parameters = = RTD 2-wire RTD FRTD 4-wire RTD PT100_385 PT100_392 CUST1 Sets the RTD type to PT100 385 (R0 to 100Ω and Alpha to 0.00385055) Sets the RTD type to PT100 392 (R0 to 100Ω and Alpha to 0.00391600 Sets the RTD type to be set by R0 and Alpha settings. Examples TEMP:RTD:TYP PT100_385 Sets the RTD type to PT100 385. Query TEMP:RTD:TYP? Returns 385 or CUSTOM. [SENSe:]TEMPerature:[TRANsducer:]:ALPHa(?) Description Sets the alpha variable for the temperature function. This setting is stored in volatile memory. Parameters = = RTD 2-wire RTD FRTD 4-wire RTD .00374 to .00393 Sets the alpha parameter. Examples TEMP:RTD:ALPH 0.00392 Sets the alpha parameter to 0.00392. Query TEMP:RTD:ALPH? Returns the alpha setting of the temperature function. [SENSe:]FREQuency:APERature(?) Description Sets the gate time for the frequency function to the value specified by . This setting is stored in volatile memory. Parameters = 0.01 0.1 (default) 1 MIN MAX Gate time of 10 ms (4½ digits) Gate time of 100 ms (5½ digits) Gate time of 1 second (6½ digits) Gate time of 10 ms (4½ digits) Gate time of 1 second (6½ digits) Examples FREQ:APER 0.1 Sets the frequency measurement gate time to 100 ms. Query FREQ:APER? Returns the gate time for the frequency function. [SENSe:]PERiod:APERature(?) Description Sets the gate time for the period function to the value specified by . This setting is stored in volatile memory. Parameters 50 = 0.01 0.1 (default) 1 MIN MAX Gate time of 10 ms (4½ digits) Gate time of 100 ms (5½ digits) Gate time of 1 second (6½ digits) Gate time of 10 ms (4½ digits) Gate time of 1 second (6½ digits) Digital Multimeter Supported SCPI Commands Examples PER:APER 0.1 Sets the period measurement gate time to 100 ms. Query PER:APER? Returns the gate time for the period function. [SENSe:]CURRent:AC:BANDwidth(?) Description Sets the appropriate filter for the frequency specified by . This setting is stored in volatile memory. Parameters = 3 20 (default) 200 MIN MAX Selects slow filter Selects medium filter Selects fast filter Selects slow filter Selects fast filter Examples CURR:AC:BAND 200 Sets the filter for ac current to fast. Query CURR:AC:BAND? Returns the filter selection. [SENSe:]VOLTage:AC:BANDwidth(?) Description Sets the appropriate filter for the frequency specified by . This setting is stored in volatile memory. Parameters = 3 20 (default) 200 MIN MAX Selects slow filter Selects medium filter Selects fast filter Selects slow filter Selects fast filter Examples VOLT:AC:BAND 20 Sets the filter for ac voltage to medium. Query VOLT:AC:BAND? Returns the filter selection. [SENSe:]DETector:BANDwidth(?) Description Sets the appropriate filter for the frequency specified by . This setting is stored in volatile memory and sets the filter for all functions that use an ac filter. Parameters = 3 20 200 MIN MAX Selects slow filter Selects medium filter Selects fast filter Selects slow filter Selects fast filter Examples DET:BAND 20 Sets the filter to medium. Query DET:BAND? DET:BAND? MAX Returns the filter selection. Returns +2.00000000E+02 to indicate the fast filter. [SENSe:]FILTer[:DC][:STATe](?) Description Activates or deactivates the 3-pole analog filter to improve noise immunity for dc functions. This setting is stored in volatile memory. Parameters = OFF or 0 ON or 1 Turns the analog dc filter off. Turns the analog dc filter on. 51 DMM4040/4050 Programmer Manual Examples FILT ON Turns the analog dc filter on. Query FILT? Returns the analog dc filter setting. Note Since the corner frequency of the analog filter is about 8 Hz, the filter does not add much rejection until frequencies are significantly higher than that. [SENSe:]FILTer[:DC]:DIGital[:STATe](?) Description Activates or deactivates the digital averaging filter to improve noise immunity for dc functions. This setting is stored in volatile memory. Parameters = OFF or 0 ON or 1 Turns the digital averaging filter off. Turns the digital averaging filter on. Examples FILT:DIG ON Turns the digital averaging filter on. Query FILT:DIG? Returns the digital averaging filter setting. (0 = OFF and 1 = ON) [SENSe:]VOLTage[:DC]:FILTer[:STATe](?) Description Activates or deactivates the 3-pole analog filter to improve noise immunity for dc voltage functions. This setting is stored in volatile memory. Parameters = OFF or 0 ON or 1 Turns the analog dc voltage filter off. Turns the analog dc voltage filter on. Examples VOLT:FILT ON Turns the analog dc voltage filter on. Query VOLT:FILT? Returns the analog dc voltage filter setting. [SENSe:]VOLTage[:DC]:FILTer:DIGital[:STATe](?) Description Activates or deactivates the digital averaging filter to improve noise immunity for dc voltage functions. This setting is stored in volatile memory. Parameters = OFF or 0 ON or 1 Turns the digital averaging filter off. Turns the digital averaging filter on. Examples VOLT:FILT:DIG ON Turns the digital averaging filter on. Query VOLT:FILT:DIG? Returns the digital averaging filter setting. (0 = OFF and 1 = ON) [SENSe:]CURRent[:DC]:FILTer[:STATe](?) Description Activates or deactivates the 3-pole analog filter to improve noise immunity for dc current functions. This setting is stored in volatile memory. Parameters 52 = OFF or 0 ON or 1 Turns the analog dc current filter off. Turns the analog dc current filter on. Examples CURR:FILT ON Turns the analog dc current filter on. Query CURR:FILT? Returns the analog dc current filter setting. (0 = OFF and 1 = ON) Digital Multimeter Supported SCPI Commands [SENSe:]CURRent[:DC]:FILTer:DIGital[:STATe](?) Description Activates or deactivates the digital averaging filter to improve noise immunity for dc current functions. This setting is stored in volatile memory. Parameters = OFF or 0 ON or 1 Turns the digital averaging filter off. Turns the digital averaging filter on. Examples CURR:FILT:DIG ON Turns the digital averaging filter on. Query CURR:FILT:DIG? Returns the digital averaging filter setting. (0 = OFF and 1 = ON) [SENSe:]RESistance[:DC]:FILTer[:STATe](?) Description Activates or deactivates the 3-pole analog filter to improve noise immunity for the 2-wire resistance function. This setting is stored in volatile memory. Parameters = OFF or 0 ON or 1 Turns the analog 2-wire resistance filter off. Turns the analog 2-wire resistance filter on. Examples RES:FILT ON Turns the analog 2-wire resistance filter on. Query RES:FILT? Returns the analog 2-wire resistance filter setting. (0 = OFF and 1 = ON) [SENSe:]RESistance[:DC]:FILTer:DIGital[:STATe](?) Description Activates or deactivates the digital averaging filter to improve noise immunity the 2-wire resistance dc function. This setting is stored in volatile memory. Parameters = OFF or 0 ON or 1 Turns the digital averaging filter off. Turns the digital averaging filter on. Examples RES:FILT:DIG ON Turns the digital averaging filter on. Query RES:FILT:DIG? Returns the digital averaging filter setting. (0 = OFF and 1 = ON) [SENSe:]FRESistance[:DC]:FILTer[:STATe](?) Description Activates or deactivates the 3-pole analog filter to improve noise immunity for the 4-wire resistance function. This setting is stored in volatile memory. Parameters = OFF or 0 ON or 1 Turns the analog 4-wire resistance filter off. Turns the analog 4-wire resistance filter on. Examples FRES:FILT ON Turns the analog 4-wire resistance filter on. Query FRES:FILT? Returns the analog 4-wire resistance filter setting. (0 = OFF and 1 = ON) 53 DMM4040/4050 Programmer Manual [SENSe:]FRESistance[:DC]:FILTer:DIGital[:STATe](?) Description Activates or deactivates the digital averaging filter to improve noise immunity for the 4-wire resistance function. This setting is stored in volatile memory. Parameters = OFF or 0 ON or 1 Turns the digital averaging filter off. Turns the digital averaging filter on. Examples FRES:FILT:DIG ON Turns the digital averaging filter on. Query FRES:FILT:DIG? Returns the digital averaging filter setting. (0 = OFF and 1 = ON) [SENSe:]UNIT:TEMPerature(?) Description Sets the temperature units for the temperature function. This setting is stored in volatile memory. Parameters = Cel Far Kel Sets temperature units to Celsius Sets temperature units to Fahrenheit Sets temperature units to Kelvin Examples UNIT:TEMP C Sets temperature units to Celsius. Query UNIT:TEMP? Returns the temperature units setting. (C = Celsius, F = Fahrenheit, and K = Kelvin) [SENSe:]ZERO:AUTO Description Activates (default) or deactivates the autozero mode. This setting is stored in volatile memory. Parameters = OFF ON ONCE Turns Autozero mode off. Turns autozero mode on. Initiates a zero measurement immediately. Examples ZERO:AUTO ON Turns autozero mode on. Query ZERO:AUTO? Returns the state of the autozero mode. (0 = OFF and 1 = ON) [SENSe:]VOLTage[:DC]:IMPedance:AUTO(?) Description Activates or deactivates (default) the automatic input impedance mode for dc voltage measurements. With AUTO OFF, the input impedance is fixed at 10 MΩ for all ranges. With AUTO ON, the input impedance is set to >10 GΩ for the 100 mV, 1 V, and 10 V ranges. This setting is stored in volatile memory. Parameters 54 = OFF or 0 ON or 1 Turns off automatic input impedance. Turns on automatic input impedance. Examples VOLT:IMP:AUTO ON Turns on automatic input impedance. Query VOLT:IMP:AUTO? Returns the state of the input impedance mode. (0 = OFF and 1 = ON) Digital Multimeter Supported SCPI Commands INPut:IMPedance:AUTO(?) Description Activates or deactivates (default) the automatic input impedance mode for dc voltage measurements. With AUTO OFF, the input impedance is fixed at 10 MΩ for all ranges. With AUTO ON, the input impedance is set to >10 GΩ for the 100 mV, 1 V, and 10 V ranges. This setting is stored in volatile memory. Parameters = OFF or 0 ON or 1 Turns off automatic input impedance. Turns on automatic input impedance. Examples IMP:AUTO ON Turns on automatic input impedance. Query IMP:AUTO? Returns the state of the input impedance mode. (0 = OFF and 1 = ON) ROUTe:TERMinals? Description A query that returns the state of the front or rear panel input terminals switch. Examples ROUT:TERM? Returns “FRON” or “REAR”. Programming for Math Operations Of the five possible Meter math functions, only one can be enabled at a time. Once a math function is selected, it stays selected until the Meter is powered down, or another math function is set. A reset command received through the remote interface will also disable the math function. Presetting some math registers are possible. Table 18 is a matrix indicating which math functions work with each Meter function. Selecting a math function that is not allowed with a Meter function causes math to be disabled. Selecting a math function that is not allowed after selecting an allowed math function will result in a “Setting Conflict” error. Note Math must be enabled before writing to the zero (null) or dB measurement registers. Table 18. Allowed Math/Measurement Function Combinations DCV Null ACV DCI ACI 2W 4W Freq Period Cont Diode Temp Cap Yes Yes Yes Yes Yes Yes Yes Yes No No Yes Yes Average Yes Yes Yes Yes Yes Yes Yes Yes No No Yes Yes dB No Yes No No No No No No No No No No dBm No Yes No No No No No No No No No No Limit Yes Yes Yes Yes Yes Yes Yes Yes No No Yes Yes 55 DMM4040/4050 Programmer Manual CALCulate:FUNCtion(?) {NULL|DB|DBM|AVERage|LIMit} Description Selects one of five math functions. This setting is stored in volatile memory. Selecting a math function disables any math function which may have been set previously. For the selected math function to take effect, the CALCulate:STATe must be ON. Parameters = NULL DB DBM AVERage LIMit Uses the present reading as an offset to zero the returned reading. Selects the DB mode. Selects the dBm mode. Selects the average mode Selects the Limit Testing mode. Examples CALC:FUNC DBM Selects the dBm mode. Query CALC:FUNC? Returns the selected math function. CALCulate:STATe(?) Description Activates or deactivates the math function selected with CALC:FUNC command. This setting is stored in volatile memory. Parameters = ON or 1 OFF or 0 Activates the math function set previously by CALC:FUNC command. Deactivates the math function. Examples CALC:STAT ON Turns on the math function. Query CALC:STAT? Returns the state of the math function. (0 = OFF and 1 = ON) CALCulate:AVERage:MINimum? Description Retrieves the minimum value measured during a statistics operation. This value is cleared whenever the Meter is powered off then back on, a statistics function is enabled, or the Meter receives a reset through the remote interface. This setting is stored in volatile memory. Query CALC:AVER:MIN? Returns the minimum value of the statistics operation. CALCulate:AVERage:MAXimum? Description Retrieves the maximum value measured during a statistics operation. This value is cleared whenever the Meter is powered off then back on, a statistics function is enabled, or the Meter receives a reset through the remote interface. This setting is stored in volatile memory. Query CALC:AVER:MAX? Returns the maximum value of the statistics operation. CALCulate:AVERage:AVERage? Description Retrieves the average value measured during a statistics operation. This value is cleared whenever the Meter is powered off then back on, a statistics function is enabled, or the Meter receives a reset through the remote interface. This setting is stored in volatile memory. Query CALC:AVER:AVER? Returns the average value of the statistics operation. 56 Digital Multimeter Supported SCPI Commands CALCulate:AVERage:COUNt? Description Retrieves the number of measurements taken during a statistics operation. This value is cleared whenever the Meter is powered off then back on, a statistics function is enabled, or the Meter receives a reset through the remote interface. This setting is stored in volatile memory. Query CALC:AVER:COUN? Returns the count value of the statistics operation. CALCulate:NULL:OFFSet(?) {|MINimum|MAXimum} Description Sets the offset value used for the zero function. Math operation must be enabled to write to the zero offset register. This setting is stored in volatile memory. Parameters = 0 to 120 % of highest range. MINimum Sets offset register to -120 % of highest range of selected function. MAXimum Sets offset register to 120 % of highest range of selected function. Examples CALC: NULL:OFFS 100 Sets zero offset register to 100. Query CALC:NULL:OFFS? Returns the zero offset register value. CALCulate:DB:REFerence(?) {|MINimum|MAXimum} Description Sets the relative value used for the dB function. Math operation must be enabled to write to the dB relative register. This setting is stored in volatile memory. Parameters = 0 to ±200 dBm. MINimum Sets dB relative register to -200 dBm. MAXimum Sets dB relative register to 200 dBm. Examples CALC:DB:REF 25 Sets dB relative register to 25 dBm. Query CALC:DB:REF? Retrieves the dB relative register value. CALCulate:DBM:REFerence(?) {|MINimum|MAXimum} Description Sets the reference impedance for the dBm function. Math operation must be enabled to write to the dBm reference impedance register. This setting is stored in volatile memory. Parameters = 2, 4, 6, 16, 50, 75, 90, 93, 100, 110, 124, 125, 135, 150, 250, 300, 500, 600 (default), 800, 900, 1000, 1200, or 8000 Ω. MINimum Sets dBm reference impedance register to 50 Ω. MAXimum Sets dBm reference impedance register to 8000 Ω. Examples Query CALC:DBM:REF 110 Sets dBm reference impedance register to 110 Ω. CALC:DBM:REF? Retrieves the present dBm reference impedance register value. CALC:DBM:REF? MIN Returns 50 CALC:DBM:REF? MAX Returns 8000 57 DMM4040/4050 Programmer Manual CALCulate:LIMit:LOWer(?) {|MINimum|MAXimum} Description Sets the lower limit value used for limit testing. This setting is stored in volatile memory. Parameters = 0 to 120 % of highest range. MINimum Sets lower limit register to -120 % of highest range of selected function. MAXimum Sets lower limit register to 120 % of highest range of selected function. Examples CALC:LIM:LOW 235 Sets lower limit register to 235. Query CALC: LIM:LOW? Retrieves the lower limit register value. CALC:LIM:LOW? MIN Returns -120 % of highest range of selected function. CALC:LIM:LOW? MAX Returns 120 % of highest range of selected function. CALCulate:LIMit:UPPer {|MINimum|MAXimum} Description Sets the upper limit value used for limit testing. This setting is stored in volatile memory. Parameters = 0 to 120 % of highest range. MINimum Sets upper limit register to -120 % of highest range of selected function. MAXimum Sets upper limit register to 120 % of highest range of selected function. Examples CALC:LIM:UPP -150 Query CALC:LIM:UPP? Retrieves the upper limit register value. CALC:LIM:UPP? MIN Returns -120 % of highest range of selected function. CALC:LIM:UPP? MAX Returns 120 % of highest range of selected function. Sets upper limit register to -150. DATA:FEED RDG_STORE, Description Enables (default) or disables storing measurements in the Meter’s internal memory when an INITiate command is executed. When enabled, 5,000 measurements are stored in the Meter’s internal memory when executing an INITiate command. Note The MEASure? and CONFigure commands automatically enable the storing of measurements. Disabling the storage of readings may be beneficial when performing statistics operations. Minimum, maximum, and average values can be calculated without storing each measurement. Note While readings are disabled, attempting to transfer readings to the output buffer with a FETCh? command will generate an error. 58 Digital Multimeter Supported SCPI Commands Parameters Example = “CALCulate” “” Enable the storing of measurements. Disable the storage of measurements. DATA:FEED RDG_STORE, “CALC”. DATA:FEED? Description Retrieves the state of the reading store setting. Query DATA:FEED? Returns CALC or “”. CALCulate:KMATh:MMFactor(?) Description Sets the value in the “m” register for the mx+b calculation. Parameters = 0 to ±999.999999 Examples CALC:KMAT:MMF 37 Sets “m” register to 37. Query CALC: KMAT:MMF? Retrieves the “m” register value. CALCulate:KMATh:MBFactor(?) Description Sets the value in the “b” register for the mx+b calculation. Parameters = 0 to ±999.999999 Examples CALC:KMAT:MBF 37 Sets “b” register to 37. Query CALC: KMAT:MBF? Retrieves the “b” register value. CALCulate:KMATh:MUNits(?) = 3 characters using ‘A’ through ‘Z’ Description Sets the units for the mx+b calculation. Parameters = A to ZZZ Up to three letters Examples CALC:KMAT:MUN VOL Sets units to “VOL”. Query CALC: KMAT:MUN? Retrieves the set units value. CALCulate:KMATh:STATe(?) Description Enables or disables the mx+b calculation. Parameters = ON or 1 OFF or 0 Enables mx+b calculations. Disable mx+b calculations Examples CALC:KMAT:STAT ON Enables mx+b calculations. Query CALC: KMAT:STAT? Retrieves the state of the mx+b calculation (0 = OFF, 1 = ON). Programming the Trigger System The Meter is designed to provide extensive control over the triggering of a single measurement or series of measurements. One trigger can cause the Meter to take a single measurement or multiple measurements; up to 50,000 per trigger. Operating the Meter remotely requires selecting one of three trigger methods: internal, external, or bus triggering. Once a source is selected, the Meter must be in a “wait-fortrigger” state before the trigger will start a measurement cycle. Figure 4 shows the multimeter’s triggering system. 59 DMM4040/4050 Programmer Manual Idle State Initiate Triggering MEASure? READ? INITiate Trigger Source TRIGger:SOURce IMMediate TRIGger:SOURce EXTernal TRIGger:SOURce BUS Front-panel "Single" key Triggering Delay TRIGger:DELay Wait-forTrigger State Delay Sample (*) Annuniator Measurement Sample Sample Count # 1 Trigger Count # 1 Figure 4. DMM4040/4050 Triggering System dae02.eps The Meter can be put into a wait-for-trigger state remotely by sending it a MEASure?, READ?, or INITiate command. Once received by the Meter, it takes approximately 20 ms to setup the Meter and put it in to the wait-for-trigger state. Any triggers received during this set-up time are ignored. Using the Triggering Commands INITiate Description Sets the Meter to the wait-for-trigger state in which the next trigger from the selected source triggers a measurement cycle. Up to 5,000 measurements are placed into the Meter’s internal memory, where they can be retrieved with the FETCh? command. Examples 60 INIT Sets the Meter to the wait-for-trigger state. Digital Multimeter Supported SCPI Commands READ? Description Sets the Meter in to the wait-for-trigger state where the next trigger from the selected source triggers a measurement cycle. Measurements are sent directly to the output buffer. Examples READ? Sets the Meter to the wait-for-trigger state. 61 DMM4040/4050 Programmer Manual TRIGger:SOURce(?) {BUS|IMMediate|EXTernal} Description Sets the source from which the Meter will expect a measurement trigger. Parameters = BUS IMMediate EXTernal Sets the Meter to expect a trigger through the IEEE-488 bus or upon execution of a *TRG command. Selects Meter’s internal triggering system. Sets the Meter to sense triggers through the trigger jack on the rear panel of the Meter. Examples TRIG:SOUR BUS Sets the Meter to expect a trigger through the IEEE-488 bus or upon execution of a *TRG command. Query TRIG:SOUR? Retrieves the trigger source for which the Meter has been set (BUS, IMM, or EXT). TRIGger:DELay Description Sets the delay between receiving a trigger and the beginning of measurement cycle. Parameters = 0 to 3600 MINimum MAXimum Delay specified in seconds. Delay set to 0 seconds. Delay set to 3600 seconds. Examples TRIG:DEL 14 Sets the trigger delay to 14 seconds. Query TRIG:DEL? Retrieves the amount of time set for a trigger delay. Returns 0 seconds Returns 3600 seconds TRIG:DEL? MIN TRIG:DEL? MAX TRIGger:DELay:AUTO Description Enables or disables automatic trigger delay. The amount of delay is set based on selected function, integration time, and filter setting. When a specific trigger delay is set using the TRIG:DELAY command, automatic trigger delay is disabled. This setting is stored in volatile memory. Parameters = ON or 1 OFF or 0 Automatic trigger delay is enabled. Automatic trigger delay is disabled. Examples TRIG:DEL:AUTO ON Enables automatic trigger delay Query TRIG:DEL:AUTO? Retrieves the state of the automatic trigger delay ( 0 = OFF, 1 = ON). SAMPle:COUNt {|MINimum|MAXimum} Description Sets the number of measurements the Meter takes per trigger. This setting is stored in volatile memory. Parameters Examples 62 = 0 to 50,000 MINimum MAXimum SAMP:COUN 2450 Number of measurements per trigger Number of measurements per trigger set to 1. Number of measurements per trigger set to 50,000. Number of measurements per trigger set to 2,450. Digital Multimeter Supported SCPI Commands Query SAMP:COUN? SAMP:COUN? MIN SAMP:COUN? MAX Retrieves the number of samples per trigger presently set in the Meter. Returns 1 to indicate the minimum number of samples the Meter will accept per trigger. Returns 50,000 to indicate the maximum number of measurements the Meter will accept per trigger. TRIGger:COUNt Description Sets the number of triggers the Meter will take before switching to an idle state. This setting is stored in volatile memory. Parameters = 0 to 50,000 MINimum MAXimum INFinite Number of triggers before Meter becomes idle. Number of triggers is set to 1. Number of triggers is set to 50,000. Continuously accepts triggers. A device clear is required to set the Meter to idle state after INFinite has been set. Examples TRIG:COUN 430 Number of triggers set to 430. Query TRIG:COUN? Retrieves the number of triggers presently set in the Meter. Returns 9.90000000E+37 if trigger count has been set to INFinite. Returns 1 to indicate the minimum number of triggers the Meter will accept per trigger. Returns 50,000 to indicate the maximum number of triggers the Meter will accept per trigger. TRIG:COUN? MIN TRIG:COUN? MAX Using System-Related Commands FETCh[1/2]? Description Moves measurements stored in the Meter’s internal memory to the output buffer. FETCh1? or FETCh? returns measurements from the primary display. FETCh2? Returns readings from the secondary display. Example FETCh2? Retrieves a single measurement from the Meter’s internal memory that was taken by the secondary display if the secondary measurements are enabled. FETCh3? Description Retrieves the last measurement from the Meter's primary display. Unlike the FETCh? or FETCh1? commands which require that the meter be first placed in the "wait for trigger" state using the INIT command to trigger a measurement or multiple measurements from the primary display, FETCh3? will return a single measurement from the primary display if there is one. If a measurement isn't available, the command is ignored. Examples FETCh3? Retrieves the last measurement from the primary display of the Meter. DISPlay Description Enables or disables the Meter’s display. This setting is stored in volatile memory. 63 DMM4040/4050 Programmer Manual Parameters = ON or 1 OFF or 0 Enables the display. Disables the display. Examples DISP ON Enables the Meter’s display. Query DISP? Retrieves the state of the display ( 0 = OFF and 1 = ON). DISPlay:TEXT(?) Description Displays a message on the Meter’s display. This setting is stored in volatile memory. Note The Meter must be remote before executing this command. Parameters = Examples DISP:TEXT “Hello” Query DISP:TEXT? Up to 12 characters. Additional characters are truncated. Hello is displayed in the Meter’s display. Retrieves the text sent to the Meter in a DISP:TEXT command. DISPlay:TEXT:CLEar Description Clears the displayed message on the Meter’s display. Examples DISP:TEXT:CLE Meter’s display message is cleared. SYSTem:BEEPer Description Causes the Meter to beep once. Examples SYST:BEEP Meter beeps. SYSTem:BEEPer:STATe? Description Enables or disables the Meter’s beeper. This setting is stored in volatile memory. Disabling the beeper causes the Meter to not beep for the following conditions: a new minimum or maximum is detected during statistics a limit is exceeded during a limits test a forward-biased diode is measured during a diode test Parameters = ON or 1 OFF or 0 Enables the Meter’s beeper. Disables the Meter’s beeper. Examples SYST:BEEP:STAT ON Enables the beeper. Query SYST:BEEP:STAT? Retrieves the state of the Meter’s beeper ( 0 = OFF and 1 = ON). SYSTem:DATE(?) Description Sets the system clock date. Parameters = MM/DD/YYYY or MM-DD-YYYY. MM between 1 and 12 DD between 1 and 31 YYYY between 1970 and 2038 64 Digital Multimeter Supported SCPI Commands Examples SYST:DATE 10/25/2007 Query SYST:DATE? Returns the Meter’s system clock date. SYSTem:TIME(?)

Source Exif Data:
File Type                       : PDF
File Type Extension             : pdf
MIME Type                       : application/pdf
PDF Version                     : 1.6
Linearized                      : Yes
Encryption                      : Standard V2.3 (128-bit)
User Access                     : Print, Copy, Annotate, Fill forms, Extract, Print high-res
Author                          : Tektronix
Create Date                     : 2009:08:23 13:10:25-07:00
Modify Date                     : 2018:06:09 12:15:08-04:00
XMP Toolkit                     : Adobe XMP Core 5.6-c015 84.159810, 2016/09/10-02:41:30
Producer                        : Acrobat Distiller 7.0.5 (Windows)
Metadata Date                   : 2018:06:09 12:15:08-04:00
Format                          : application/pdf
Title                           : DMM4040 and DMM4050 Digital Multimeter Programmer
Creator                         : Tektronix, Inc.
Document ID                     : uuid:247ff432-47f3-40f6-80b5-1e74d3dfc131
Instance ID                     : uuid:1cc996ab-ed02-4e9e-94c8-0f0b12eb5f81
Page Layout                     : SinglePage
Page Mode                       : UseOutlines
Page Count                      : 131
EXIF Metadata provided by EXIF.tools

Navigation menu