598226
107
Zoom out
Zoom in
Previous page
1/256
Next page
Serial poll and SRQ
Any enabled event summary bit that goes from 0 to 1 will set RQS and generate a service
request (SRQ). In your test program, you can periodically read the Status Byte Register to
check if a service request (SRQ) has occurred and what caused it. If an SRQ occurs, the
program can, for example, branch to an appropriate subroutine that will service the request.
Typically, service requests (SRQs) are managed by the serial poll sequence of the Model
2000. If an SRQ does not occur, bit B6 (RQS) of the Status Byte Register will remain cleared
and the program will simply proceed normally after the serial poll is performed. If an SRQ
does occur, bit B6 of the Status Byte Register will set and the program can branch to a ser
-
vice subroutine when the SRQ is detected by the serial poll.
The serial poll automatically resets RQS of the Status Byte Register. This allows subse-
quent serial polls to monitor bit B6 for an SRQ occurrence generated by other event types.
After a serial poll, the same event can cause another SRQ, even if the event register that
caused the first SRQ has not been cleared.
A serial poll clears RQS but does not clear MSS. The MSS bit stays set until all Status
Byte event summary bits are cleared.
The following QuickBASIC 4.5 program (using the KPC-488.2 interface and the CECHP
driver) demonstrates how serial poll can be used to detect an SRQ:
CLS
OPEN "ieee" FOR OUTPUT AS #1
OPEN "ieee" FOR INPUT AS #2
PRINT #1, "output 16; *cls" 'Clear Status Byte Register
PRINT #1, "output 16; *ese 32 'Unmask command errors
PRINT #1, "output 16; *sre 32 'Unmask event summary message
PRINT #1, "output 16; *ese" 'Error - missing parameter
SLEEP 1
PRINT #1, "SPOLL 02" 'Serial poll 2000
INPUT #2, S 'Read Status Byte Register
S=S OR 191 'OR register with a mask
IF S= 255 THEN
GOSUB srq 'Go to subroutine to acknowl-
edge SRQ
END IF
PRINT
END
srq:
PRINT "SRQ Has Occurred--RQS (bit B6) is set (1)"
RETURN
2000-900 (J - Aug 2010) BOOK.fm Page 28 Wednesday, October 12, 2011 12:29 PM
107


Need help? Post your question in this forum.

Forumrules


Report abuse

Libble takes abuse of its services very seriously. We're committed to dealing with such abuse according to the laws in your country of residence. When you submit a report, we'll investigate it and take the appropriate action. We'll get back to you only if we require additional details or have more information to share.

Product:

For example, Anti-Semitic content, racist content, or material that could result in a violent physical act.

For example, a credit card number, a personal identification number, or an unlisted home address. Note that email addresses and full names are not considered private information.

Forumrules

To achieve meaningful questions, we apply the following rules:

Register

Register getting emails for Keithley 2000 at:


You will receive an email to register for one or both of the options.


Get your user manual by e-mail

Enter your email address to receive the manual of Keithley 2000 in the language / languages: English as an attachment in your email.

The manual is 5,8 mb in size.

 

You will receive the manual in your email within minutes. If you have not received an email, then probably have entered the wrong email address or your mailbox is too full. In addition, it may be that your ISP may have a maximum size for emails to receive.

Others manual(s) of Keithley 2000

Keithley 2000 User Manual - German - 122 pages


The manual is sent by email. Check your email

If you have not received an email with the manual within fifteen minutes, it may be that you have a entered a wrong email address or that your ISP has set a maximum size to receive email that is smaller than the size of the manual.

The email address you have provided is not correct.

Please check the email address and correct it.

Your question is posted on this page

Would you like to receive an email when new answers and questions are posted? Please enter your email address.



Info