Ibstop, Ibstop -46 – Measurement Computing GPIB-488 User Manual

Page 59

Advertising
background image

Chapter 3

GPIB 488.1 Library Reference

Programming Reference Manual

3-46

GPIB-488

IBSTOP

Terminate an asynchronous operation.

Syntax

C

ibstop (int boarddev)

Parameters

boarddev

is an integer containing the device or board handle.

Returns

ibsta

will contain a 16-bit status word as described in Appendix B,

IBSTA

. If an operation

is terminated, the

ERR

bit is set.

iberr

will contain an error code, if an error occurred. If an operation is terminated, an

EABO

error is returned.

Usage Notes

If a device is specified, all unfinished asynchronous operations (read, write, or command)
associated with that device is stopped. If a GPIB Interface Board is specified, all unfinished
asynchronous operations associated with that board is stopped. Once the operation(s) have
been terminated, the application is resynchronized with the driver.

Example

This example starts a background write command and then immediately stops it.

C

int dev;

dev = ibdev (0,2,0,13,1,0);

ibwrta(dev, "datafile");

ibstop (dev);

Advertising