Combining I/O Operations Into A Single Subroutine Call - HP 9000 Series 300 Tutorials Manual

Device i/o and user interfacing hp-ux concepts and tutorials
Hide thumbs Also See for HP 9000 Series 300:
Table of Contents

Advertisement

Combining
1/0
Operations
into a Single Subroutine Call
hpib_io is a high-level DIL subroutine that provides a mechanism for
conveniently collecting a series of HP-IB I/O operations in a data structure
then using a simple subroutine call to hpib_io to handle interface and bus
management operations. This feature eliminates the need for using several long
tedious series of subroutine calls to io_lock, hpib_send_cmnd, read, write, and
i~_unlock
and makes these operations atomic on the Seris 300.
A call to hpib_io has the form:
#include <dvio.h>
rnain()
{
}
int eid;
struct
iodetail *iovec;
int iolen;
hpib_io(eid. iovec. iolen);
where eid is the entity identifier of an open interface file, iovec is a pointer to
an array of I/O operation structures, and iolen is the number of structures
in the array. The name of the template for the I/O operation structures is
iodetail and it is defined in the include file dvio.h.
3-72
Controlling the HP-IB Interface

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Hp 9000 series 800

Table of Contents