![National Instruments GPIB-PC Скачать руководство пользователя страница 163](http://html.mh-extra.com/html/national-instruments/gpib-pc/gpib-pc_user-manual_708984163.webp)
BASICA/QuickBASIC GPIB-PC Function Calls
Section Four A
GPIB-PC User Manual
4A-88
©National Instruments Corp.
If the access board is Active Controller, the board is first placed in
Standby Controller state with ATN off and remains there after the write
operation is completed. Otherwise, the write operation commences
immediately.
An EADR error results if the board is CIC but has not been addressed to
talk with the
IBCMD
function. An EABO error results if the board is not
the CIC and is not addressed to talk within the time limit. An EABO
error also results if the operation does not complete for whatever reason
within the time limit. An ENOL error occurs if there are no listeners on
the bus when the data bytes are sent.
Note that if you want to send an EOS character at the end of your data
string, you must place it there explicitly. See Device Example 2.
The board
IBWRT
operation terminates on any of the following events:
•
All bytes are transferred;
•
Error is detected;
•
Time limit is exceeded; or
•
Device Clear (DCL) or Selected Device Clear (SDC)
command is received from another device which is the CIC.
After termination,
IBCNT%
contains the number of bytes written. A
short count can occur on any event but the first.
Device Examples:
1.
Write 10 instruction bytes to the device
DVM%
.
100 WRT$ = "F3R1X5P2G0"
110 CALL IBWRT (DVM%,WRT$)
2.
Write 5 instruction bytes terminated by a carriage return and a
linefeed to the device
PTR%
. Linefeed is the device's EOS
character.
100 WRT$ = "IP2X5" + CHR$(&H0D) + CHR$(&H0A)
110 CALL IBWRT (PTR%,WRT$)