Ibstop – National Instruments GPIB-PC User Manual

Page 151

Advertising
background image

BASICA/QuickBASIC GPIB-PC Function Calls

Section Four A

GPIB-PC User Manual

4A-76

©National Instruments Corp.

BASICA/QuickBASIC

BASICA/QuickBASIC

IBSTOP

IBSTOP

Purpose:

Abort asynchronous operation

Format:

CALL IBSTOP (BD%)

Remarks:

BD%

specifies a device or an interface board.

IBSTOP

terminates any asynchronous read, write, or

command operation in progress.

Device

IBSTOP

Function:

If

BD%

specifies a device,

IBSTOP

attempts to terminate any unfinished

asynchronous I/O operation to that device that had been started with a
device function for that device.

If the operation is aborted before completion, the ERR bit in the status
word is set and an EABO error is returned. No error indication results if
the operation successfully completes before

IBSTOP

is called.

Board

IBSTOP

Function:

If

BD%

specifies a board,

IBSTOP

attempts to terminate any unfinished

asynchronous I/O operation that had been started with a board function
using that board.

If the operation is aborted before completion, the ERR bit in the status
word is set and an EABO error is returned. No error indication results if
the operation successfully completes before

IBSTOP

is called.

Device Example:

1.

Stop any asynchronous operations associated with the device

RDR%

.

100 CALL IBSTOP (RDR%)

Advertising