Appendix C
Sample Programs
© National Instruments Corporation
C-3
GPIB-1014P User Manual
| ISR1 Bits
DI
=
001 (octal)
| Data in
DO
=
002
| Data out
ERR
=
004
| Error
ENDRX
=
020
| END received
| ISR2 Bits
CO
=
010
| Command out
| ADR Bits
DT1
=
0100
| Disable Talker
DL1
=
0-40
| Disable Listener
| ADSR Bits
NATN
=
0100
| Not ATN
| ADMR Bits
MODE1 =
001
| Address Mode 1
TRM
=
060
| GPIB-1014P functions for T/R2 and T/R3
| AUXMR Hidden Registers
ICR
=
040
| Internal Counter Register
PPR
=
0140
| Parallel Poll Register
AUXRA
=
0200
| Auxiliary Register A
AUXRB
=
0240
| Auxiliary Register B
AUXRE
=
0300
| Auxiliary Register E
| AUXMR Commands
IEPON
=
000
| Immediate execute power on
FH
=
003
| Finish (release) handshake
SEOI
=
006
| Send END
GTS
=
020
| Go to standby
TCA
=
021
| Take control asynchronously
TCS
=
022
| Take control synchronously
TCSE
=
032
| Take control synchronously on END
LTN
=
023
| Listen
LTNC
=
033
| Listen continuously
LUN
=
034
| Unlisten
SIFC
=
036
| Set IFC
CIFC
=
026
| Clear IFC
SREN
=
037
| Set REN
CREN
=
027
| Clear REN
GPIB Commands
TCT
= 011
| Take control
UNL
= 077
| Universal unlisten
UNT
= 0137
| Universal untalk
| User Specified Constants
SEL0
=
0
| Select ADR0
SEL1
=
0200
| Select ADR1
M A
=
0
| GPIB address of GPIB-1014P
SC
=
011
| System Controller (set to 0 if not System Controller)