Spoll (Serial Poll) - Agilent Technologies 3458A User Manual

Hide thumbs Also See for 3458A:
Table of Contents

Advertisement

SPOLL (Serial Poll)

Examples

SPOLL (Serial Poll)

Syntax
Status Register Bits
Remarks
Examples
306
Appendix B GPIB Commands
REMOTE 7 !SETS GPIB REN LINE TRUE
The above line does not, by itself, place the multimeter in the remote state. The
multimeter will only go into the remote state when it receives its listen address
(e.g., sending OUTPUT 722;"BEEP").
REMOTE 722 !SETS REN LINE TRUE AND ADDRESSES DEVICE 22
The above line places the multimeter in the remote state.
The SPOLL command, like the STB? command (multimeter command set),
returns a number representing the set bits in the status register (status byte). The
returned number is the weighted sum of all set bits.
P=SPOLL (722)
The bits and their corresponding weights are:
Bit
Number
0
1
1
2
2
4
3
8
4
16
5
32
6
64
7
128
If the SRQ line is set true when you send SPOLL, all bits in the status register
are cleared provided the condition that set. the bit(s) is no longer present. If the
SRQ line is false when you send SPOLL, the status register's contents are not
changed.
The SPOLL command differs from the STB? command in that STB? interrupts
the multimeter's microprocessor. Thus, with STB? the multimeter always
appears to be busy (bit 4 clear). SPOLL simply extracts the status byte without
interrupting the microprocessor. Therefore, you can use SPOLL to monitor the
readiness of the multimeter for further instructions.
If data is in the output buffer when you send the SPOLL command, that data
remains intact. If data is in the output buffer when you send the STB? command,
however, the data is replaced by the status data.
10 P=SPOLL (722)
20 DISP P
30 END
Decimal
Weight
Description
Subprogram execution completed
Hi or lo limit exceeded
SRQ command executed
Power - on SRQ occurred
Ready for Instructions
Error (consult error register)
Service requested
Data available
!SENDS SERIAL POLL, PLACES RESPONSE INTO P
!DISPLAYS RESPONSE

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents