Chapter 5
S Mode Functions — rsv
5-38
www.ni.com
rsv
Request Service/Set or Change Serial Poll Status Byte
Type
Serial poll function
Syntax
rsv [spbyte]
<CR>
Purpose
You can use
rsv
if the GPIB-232/485CT-A is not the GPIB Controller and you want to
request service from the Controller using the Service Request (SRQ*) signal. The
GPIB-232/485CT-A provides a user-defined status byte when the Controller serial polls it.
Remarks
The argument
spbyte
is a numeric string specifying the decimal value of the new
GPIB-232/485CT-A serial poll response byte.
The serial poll response byte is the status byte the GPIB-232/485CT-A provides when serial
polled by another device that is CIC. If bit 6 (hex 40 or RQS bit) is also set, the
GPIB-232/485CT-A requests service by asserting the SRQ* line.
If you call
rsv
without an argument, the GPIB-232/485CT-A returns a numeric string
containing the decimal value of its serial poll status byte.
The assignment made by
rsv
remains in effect until you call
rsv
again, call
onl
, or you turn
off the GPIB-232/485CT-A.
Example 1
PRINT #1,"rsv \x46"
'Request service with serial poll
'response = 6.
Example 2
PRINT #1,"rsv"
'What is the current serial poll status
'byte?
response: 70<CR><LF>
(The current status byte = decimal 70 or
hex 46)