Model 2750 Multimeter/Switch System User’s Manual
Status Structure
11-9
Status byte and service request commands
The commands to program and read the Status Byte Register and Service Request Enable
Register are listed in
. For details on programming and reading registers, see
“Programming enable registers,” page 11-5
“Reading registers,” page 11-6
.
NOTE
To reset the bits of the Service Request Enable Register to 0, use 0 as the param-
eter value for the *SRE command (*SRE 0).
Programming example — set MSS (B6) when error occurs
The second command in the following sequence enables EAV (error available). When an
invalid command is sent (line 3), bits B2 (EAV) and B6 (MSS) of the Status Byte Register
set to 1. The last command reads the Status Byte Register. Keep in mind that you have to
address the Model 2750 to talk after sending a query command. To determine the exact
nature of the error, you will have to read the Error Queue (see
).
*CLS
' Clear Error Queue
*SRE 4
' Enable EAV.
*XYZ
' Generate error.
*STB?
' Read Status Byte Register.
Serial poll programming example
This example is written specifically for the KPCI-488.2 GPIB card and QuickBasic/
VisualBasic with the appropriate IEEE libraries. Other types of cards and/or languages
may have different function calls that are equivalent to the initialize(), transmit(), send(),
srq, and spoll() calls used below.
SRQ when buffer fills with 500, 1000, 1500, and 1750 readings
The following program will store 2000 readings in the buffer. When the buffer fills with
500 readings (quarter full), an SRQ will occur and a message will be displayed on the
computer to indicate that event. An SRQ and message will also occur when the 1000th
(half full), 1500th (three-quarter full), 1750th (buffer notify), and 2000th (full) reading is
stored.
Table 11-2
Status byte and service request enable register commands
Command
Description
*STB?
Read Status Byte Register.
*SRE <NRf>
Program the Service Request Enable Register
(0 to 255).
*SRE?
Read the Service Request Enable Register.
Note: *CLS and STATus:PRESet have no effect on the Service Request Enable Register.
2750-900-01.book Page 9 Wednesday, August 3, 2011 7:56 AM
Содержание 2750
Страница 3: ...2750 900 01 book Page 2 Wednesday August 3 2011 7 56 AM...
Страница 7: ...2750 900 01 book Page 4 Wednesday August 3 2011 7 56 AM...
Страница 17: ...2750 900 01 book Page 10 Wednesday August 3 2011 7 56 AM...
Страница 204: ...Model 2750 Multimeter Switch System User s Manual Buffer 6 15 2750 900 01 book Page 15 Wednesday August 3 2011 7 56 AM...
Страница 205: ...6 16 Buffer Model 2750 Multimeter Switch System User s Manual 2750 900 01 book Page 16 Wednesday August 3 2011 7 56 AM...
Страница 324: ...12 CommonCommands 2750 900 01 book Page 1 Wednesday August 3 2011 7 56 AM...
Страница 332: ...13 SCPISignalOriented MeasurementCommands 2750 900 01 book Page 1 Wednesday August 3 2011 7 56 AM...
Страница 348: ...15 SCPIReferenceTables 2750 900 01 book Page 1 Wednesday August 3 2011 7 56 AM...
Страница 374: ...B Model7700ConnectionGuide 2750 900 01 book Page 1 Wednesday August 3 2011 7 56 AM...
Страница 386: ...C StatusandErrorMessages 2750 900 01 book Page 1 Wednesday August 3 2011 7 56 AM...
Страница 394: ...D SignalProcessing SequenceandDataFlow 2750 900 01 book Page 1 Wednesday August 3 2011 7 56 AM...
Страница 408: ...E MeasurementConsiderations 2750 900 01 book Page 1 Wednesday August 3 2011 7 56 AM...
Страница 428: ...G IEEE 488BusOverview 2750 900 01 book Page 1 Wednesday August 3 2011 7 56 AM...