Using The Scan Subprogram; Using Instrument Commands - HP 82479A Owner's Manual

Data acquisition pac
Table of Contents

Advertisement

Getting Started
2.10.2 Using the SCAN Subprogram
The binary subprogram =H may be used to specify a series of measurements in the HP 3421A and load
the results into an array.
As an example, use =HAH to make a two wire ohms reading on channels 3
through 9 and store the results in the vector F © 1 beginning in the first element of F!. The readings will
be made with autorange on, autozero on, and four digits of resolution.
1d DFTION BHISE 1
28 DIM ROF
28 USE=a21
48 CALL SCAMC"EALTEZIF2H4LS2-93 TE" Rod, 1. Va ES
28 IF E THEM DISF "EEEOR: "IE
Section 3, "Keywords", contains a detailed description of the syntax for =H. Appendix B, "HP 3421A
Command Reference", contains a quick reference to the commands that control the HP 3421A.
2.10.3 Using Instrument Commands
The keywords CMII=42 1, GETZ421, and ZEMIE421 are used to send and receive low level commands
and messages to and from the HP 3421 A. CMD=<:=1 is a function which expects a single number back
from the instrument while EMO =3:21 does not return a result. The combination of SEMHO=Z421 and
GETZ: is equivalent to LIMID=e1.
The following examples suggest the various uses of these
keywords:
H=CMDEaz 1c TE
Do a software single trigger and
read the result into H.
SEHDE421
"TLE
Unconditionally close channel 18.
SEMDEAEL
"TOTS
Begin counting events on channel 4.
WAIT
18
Wait 10 seconds.
C=GETad4:21
Read the subtotal into L.
Appendix B contains a quick reference for the commands that control the HP 3421A.

Advertisement

Table of Contents
loading

Table of Contents