Section Four A BASICA/QuickBASIC GPIB-PC Function Calls©National Instruments Corp. 4A-93 GPIB-PC User ManualBASICA/QuickBASIC BASICA/QuickBASICIBWRTF IBWRTFPurpose: Write data from fileFormat: CALL IBWRTF (BD%,FLNAME$)Remarks: BD% specifies a device or an interface board. FLNAME$indicates the filename from which the data is written to theGPIB. FLNAME$ may be up to 50 characters long,including a drive and path designation.IBWRTF automatically opens the file. On exit, IBWRTFcloses the file.An EFSO error results if it is not possible to open, seek,read, or close the file.Device IBWRTF Function:When BD% specifies a device, the device IBWRT function is called towrite to the device.When the device IBWRTF function returns, IBSTA% holds the latestdevice status; IBCNT% is the actual number of data bytes written to thedevice, modulo 65,536; and IBERR% is the first error detected, if theERR bit in IBSTA% is set.Board IBWRTF Function:When BD% specifies an interface board, the board IBWRT function iscalled, which attempts to write to a GPIB device that is assumed to bealready properly initialized and addressed.An EADR error results if the board is CIC but has not been addressed totalk with the IBCMD function. An EABO error results if the board is notthe CIC and is not addressed to talk within the time limit. An EABOerror also results if the operation does not complete for whatever reasonwithin the time limit. An ENOL error occurs if there are no listeners onthe bus when the data bytes are sent.