EasyManuals Logo
Home>Agilent Technologies>Multimeter>34420A

Agilent Technologies 34420A User Manual

Agilent Technologies 34420A
294 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #223 background imageLoading...
Page #223 background image
RS-232 Operations with QuickBASIC
This program example uses QuickBASIC and the 82335B
HP-IB Interface Card and command library for IBM® PC compatibles.
CLS
LOCATE 1, 1
DIM cmd$(100), resp$(1000)
’ Set up serial port for 9600 baud, even parity, 7 bits;
’ Ignore Request to Send 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 meter into remote operation mode
PRINT #1, "SYST:REM"
’ Query the meter’s id string
’ PRINT #1, "*IDN?"
LINE INPUT #1, resp$
PRINT "*IDN? returned: ", resp$
’ Get the SCPI revision number
PRINT #1, "SYST:VERS?"
LINE INPUT #1, resp$
PRINT "SYST:VERS returned: ", resp$
’ Send a message to the meter’s display
PRINT #1, "DISP:TEXT ’HP 34420A’ "
’ Configure the meter for dc voltage measurements, 10 V range,
’ 0.1 V resolution, take 4 readings
PRINT #1, "CONF:VOLT:DC 10, 0.1, ;:SAMP:COUN 4"
’ Trigger the readings and get the results
PRINT #1, "READ?"
LINE INPUT #1, resp$
PRINT "READ? returned: ", resp$
END
6
Chapter 6 Application Programs
RS-232 Operations with QuickBASIC
223
GPIB

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Agilent Technologies 34420A and is the answer not in the manual?

Agilent Technologies 34420A Specifications

General IconGeneral
BrandAgilent Technologies
Model34420A
CategoryMultimeter
LanguageEnglish

Related product manuals