Se rial poll This com mand will clear any SRQ's and read the status byte of the de vice.
Typi cal de vice li brary calls are 488.1 'ibrsp' and 488.2 'Rea dSt atu sByte'.
6-7 USING 488.2 GPIB The IEEE 488.1 GPIB stan dard was up dated in 1987 to 488.2 to bet ter en force
stan dardi za tion of GPIB com mu ni ca tion. This sec tion ex plains the fun da men -
tals of 488.2 GPIB op era tion and how it is im ple mented in the ML2400A Se -
ries Power Me ter. Re fer to the full IEEE 488.2 stan dard for more de tailed
in for ma tion.
488.2 Com mand
For mat
All com mands should fol low the ba sic for mat:
<MNE MONIC><white space><comma sepa rated mes sage pa rame ters><ter mi na tor>
<white space> = Nor mally a space char ac ter, but can be any of the
white space characters listed in the 488.2 man ual.
<ter mi na tor> = A line feed char ac ter (for example, \n in āCā or VBLF
in Vis ual Ba sic). An EOI ( End Of trans mis sion In ter rupt ) can be used
as the last char ac ter instead of the line feed.
Ex am ple: AVG A,MOV,64
A number of com mands can be put into one pro gram mes sage by sepa rat ing
the com mands with semi co lons. Ex am ple:
CHCFG 1,A;CHCFG 2,B-A;CHUNIT 1,W;CHUNIT 2,DBM;OPMD DIGIT
Status Byte The 488.2 stan dard added two ex tra pre de fined bits to the status byte, these
bits are the Event Status Bit (ESB) and the Mes sage AVail able bit (MAV).
Event Status
Bit (ESB)
In 488.2 there is an event status reg is ter (ESR) that al lows the
state of the GPIB in ter face to be moni tored. All the bits in this
reg is ter are de fined. These bits are:
Event Status Reg is ter (ESR)
PON
Power On bit. This bit is set on power up of the de vice only.
URQ
Not used in the ML2400A Series
CMD
Com mand er ror. Re ceived an il le gal com mand.
EXE
Exe cu tion er ror. Could not exe cute a com mand. For ex am ple, a pa rame ter is out
of the al low able range, or re quest ing graph data while in read out mode.
DDE
De vice De pendent Er ror. The spe cific er ror can be found by us ing the ERRLST
com mand.
QYE
Query Er ror.
ML2400A OM 6-7
GPIB OPERATION USING 488.2 GPIB