104
Chapter 7
Using GPIB Interface
Status queries and control
To create applications that control the generator using the GPIB port, it is sometimes
necessary to query the status of the generator and set or reset the status bits and bytes.
There are two sets of status registers: 1) the Event Status Register and Event Status
Enable Register and 2) the Status Byte Register and Service Request Enable Register.
These are described in the following paragraphs.
Status byte
The status byte used by the 802 is the same as that defined by the IEEE-488.2 standard
and does not use any other bits of the status byte. The status byte is one part of a
complete status reporting system shown in the figure on page 105. The status byte is read
by using the serial poll feature of your controller.
Requesting service
The GPIB provides a method for any device to interrupt the controller-in-charge and
request servicing of a condition. This service request function is handled with the status
byte. When the RQS bit of the status byte is true, the 802 is requesting service from the
controller. There are many conditions which may cause the 802 to request service. For
more information about these conditions, see the
*SRE
command description (page 212).
The table below lists the status commands and queries.
Status commands
and queries
Definition
*ESE
Sets the Event Status Enable register to the given mask value. When a bit
in the Event Status register goes high and the corresponding bit in the
Event Status Enable register is a 1, it is enabled and will cause the ESB bit
in the Status Byte register to go high.
*ESE
?
Returns the current value of the Event Status register. After this command
is executed, the Event Status register is cleared. This is the only way of
clearing any bit in the Event Status register except by the *CLS command.
*SRE
Sets the Service Request Enable register to the mask value given. When a
bit in the Status Byte register goes true and the corresponding bit in the Ser-
vice Request Enable register is also true, the 802 will request service using
the GPIB.
*SRE
?
Returns the current value of the Service Request Enable register.
*STB
?
Returns the current value of the Status Byte register. The value stored in
the Status Byte register is not affected by reading it.
*CLS
Clears the Event Status register, the Status Byte and the output buffer.
Содержание 802BT
Страница 1: ...802BT 802R Video Test Generator User Guide ...
Страница 52: ...42 Chapter 2 Testing Video Displays ...
Страница 62: ...52 Chapter 3 Administrative Tasks ...
Страница 87: ...802BT 802R Video Test Generator User Guide 77 IMGE end an editing session IMGA MyImage save image as MyImage ...
Страница 118: ...108 Chapter 7 Using GPIB Interface ...
Страница 194: ...184 Chapter 10 Testing EDID ...
Страница 204: ...194 Chapter 11 Testing HDCP ...
Страница 213: ...Video Test Generator User Guide 203 A Command Reference Topics in this appendix Commands by name ...
Страница 214: ...204 Appendix A Command Reference Commands by name ...
Страница 303: ...Video Test Generator User Guide 293 Example 7 Turn audio off DPTG 3 DPGU Example 8 Turn audio on DPTG 7 DPGU ...
Страница 595: ...Video Test Generator User Guide 585 ...
Страница 608: ...598 Appendix A Command Reference Related commands YMDO UNPK PKUP VTOF FLSH Example YMDI YMODEM BATCH upload ...
Страница 611: ...Video Test Generator User Guide 601 ...
Страница 612: ...602 Appendix A Command Reference ...
Страница 613: ...802BT 802R Video Test Generator User Guide 603 B Image Reference Topics in this appendix Standard image descriptions ...
Страница 716: ...706 Appendix B Image Reference ...
Страница 744: ...734 Appendix C Error Messages ...