![background image](http://html.mh-extra.com/html/national-instruments-corporation/gpib-1014p/gpib-1014p_user-manual_710257125.webp)
Appendix C
Sample Programs
© National Instruments Corporation
C-9
GPIB-1014P User Manual
|
| * * * * * * * * * * * * * * *
| * RECEIVE - RCV *
| * * * * * * * * * * * * * * *
|
| Summary:
|
- Called by READ to receive data if GPIB-1014P is
| Controller-In-Charge
| - Called directly from main program to receive data if
|
GPIB-1014P is Idle Controller
|
| Assumptions on entry:
| - GPIB-1014P is Standby or Idle Controller
|
- GPIB-1014P is or will be addressed to listen
| - The GPIB Talker has been or will be addressed
| - The Talker will send END with last byte if the number
|
of bytes sent is less than the byte count
| - The d0 register contains the byte count
| - The a0 register contains the address of the data
|
buffer
| - The user-specified variable cic is set properly
|
| Actions:
| - Release any holdoff in progress
|
- Set up handshake holdoffs as r = ired
|
by Controller status (cic)
|
- Wait for GPIB END message or byte count
|
- If END set d0 register to number of bytes received
|
- Holdoff handshake
|
| Status on return:
|
- a NRFD handshake holdoff is in effect
|
- The number of bytes transferred is in bx(bc)