Chapter 6 Application Programs

RS-232 Operation Using QuickBASIC

RS-232 Operation Using QuickBASIC

The following example shows how to send command instructions and receive command responses over the RS-232interface using QuickBASIC.

RS-232 Operation Using QuickBASIC

CLS

LOCATE 1, 1

DIM cmd$(100), resp$(1000)

Set up serial port for 9600 baud, even parity, 7 bits;

Ignore Request to Send and Carrier Detect; Send line feed,

enable parity check, reserve 1000 bytes for input buffer

OPEN "com1:9600,e,7,2,rs,cd,lf,pe" FOR RANDOM AS #1 LEN = 1000

Put the multimeter into the remote operation mode

PRINT #1, ":SYST:REM"

Query the multimeter’s id string

PRINT #1, "*IDN?" LINE INPUT #1, resp$

PRINT "*IDN? returned: ", resp$

Ask what revision of SCPI the multimeter conforms to PRINT #1, ":SYST:VERS?"

LINE INPUT #1, resp$

PRINT ":SYST:VERS? returned: ", resp$

Send a message to the multimeter’s display, and generate a beep PRINT #1, ":SYST:BEEP;:DISP:TEXT ’34401A’"

Configure the multimeter for dc voltage readings,

10 V range, 0.1 V resolution, 4 readings

PRINT #1, ":CONF:VOLT:DC 10,0.1;:SAMP:COUN 4"

Trigger the readings, and fetch the results PRINT #1, ":READ?"

LINE INPUT #1, resp$

PRINT ":READ? returned: ", resp$

END

192

Page 198
Image 198
Agilent Technologies 34401A manual RS-232 Operation Using QuickBASIC

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.