Chapter 6 Application Programs

Using the Status Registers

Using the Status Registers

The following example shows how you can use the multimeter’s status registers to determine when a command sequence is completed. For more information, see “The SCPI Status Model,” starting on page 134. The example is shown in BASIC and QuickBASIC (see page 190).

GPIB Operation Using BASIC

10REAL Aver,Min_rdg,Max_rdg

20INTEGER Val,Hpib,Mask,Task

30ASSIGN @Dmm TO 722

40

CLEAR 7

! Clear GPIB and dmm

50

OUTPUT @Dmm; "*RST"

! Reset dmm

60

OUTPUT @Dmm; "*CLS"

! Clear dmm status registers

70

OUTPUT @Dmm; "*ESE 1"

! Enable "operation complete" bit to set

 

 

! "standard event" bit in status byte

80OUTPUT @Dmm; "*SRE 32" ! Enable "standard event" bit in status byte

!to pull the IEEE-488 SRQ line

90OUTPUT @Dmm; "*OPC?" ! Assure synchronization

100ENTER @Dmm; Val

110!

120! Configure the multimeter to make measurements

130!

140OUTPUT @Dmm; "CONF:VOLT:DC 10" ! Set dmm to 10 volt dc range

150OUTPUT @Dmm; "VOLT:DC:NPLC 10" ! Set the integration time to 10 PLCs

160OUTPUT @Dmm; "TRIG:COUN 100" ! Dmm will accept 100 triggers

170OUTPUT @Dmm; "CALC:FUNC AVER;STAT ON" ! Select min-max and enable math

180OUTPUT @Dmm; "INIT" ! Place dmm in "wait-for-trigger" state

190

OUTPUT @Dmm; "*OPC"

! Set "operation complete" bit in standard event

 

 

! registers when measurement is complete

200

!

 

210

Hpib=7

 

220

ON INTR Hpib GOSUB Read_data

230

Mask=2

! Bit 1 is SRQ

240

ENABLE INTR Hpib;Mask

! Enable SRQ to interrupt the program

250

!

 

260! Execute other tasks while waiting for data

270!

Continued on next page >

188

Page 194
Image 194
Agilent Technologies 34401A manual Using the Status Registers, On next

34401A specifications

Agilent Technologies 34401A is a highly reputable digital multimeter (DMM), renowned for its accuracy, versatility, and performance in a wide range of measurement applications. First introduced in the early 1990s, the 34401A has become a staple in laboratories, manufacturing environments, and educational institutions due to its robust build and comprehensive features.

One of the standout characteristics of the 34401A is its impressive accuracy, boasting a basic DC voltage accuracy of 0.0035%, making it ideal for precise measurements in electronic testing. The multimeter offers a wide range of measurement capabilities, including voltage (DC and AC), current (DC and AC), resistance, frequency, and continuity test, making it a highly versatile tool for engineers and technicians.

The 34401A utilizes a 6½-digit resolution, enabling the user to measure small changes in electrical signals with remarkable precision. With a sampling rate of up to 1000 readings per second, it can handle dynamic test requirements, providing timely results without sacrificing measurement integrity.

In terms of connectivity, the Agilent 34401A includes a GPIB (General Purpose Interface Bus) for remote operation, allowing users to automate their testing processes and integrate the multimeter easily into larger measurement systems. This feature is particularly beneficial in automated test environments, where speed and accuracy are paramount.

Additionally, the DMM incorporates advanced measurement functions, such as statistical analysis, including mean, standard deviation, and minimum/maximum readings, which provide users with valuable insights into their data. The instrument's user-friendly interface, complete with a clear digital display and intuitive controls, enhances usability and ensures that users can easily navigate its various functions.

Robust software support further extends the capabilities of the Agilent 34401A. It is compatible with a range of software tools for data logging and analysis, enabling users to efficiently document and analyze their measurements over time.

In summary, Agilent Technologies 34401A stands out in the realm of digital multimeters due to its high accuracy, extensive measurement functionalities, and user-friendly features. Whether for research and development, quality control, or educational purposes, the 34401A remains a preferred choice for professionals demanding reliable and precise measurement solutions. Its enduring legacy in the industry speaks to its performance and reliability, making it an essential tool for anyone involved in electronic testing and measurement.