beautypg.com

Example – Measurement Computing GPIB-488 User Manual

Page 39

background image

Chapter 3

GPIB 488.1 Library Reference

Programming Reference Manual

3-26

GPIB-488

IFC = Interface Clear

REN = Remote Enable

SRQ = Service Request

EOI = End or Identify

Usage Notes

In order for this call to function properly, all devices attached to the GPIB bus must adhere to
IEEE-488 specification.

Example

This example tests the state of the ATN line.

C

#define ATNLINE = 0x40

int lines;

iblines (board, &lines);

if (lines & ATNLINE == 0)

printf "ATN line can not be monitored by this

GPIB board";

else ( (lines >> 8) & ATNLINE ) == 0)

printf "ATN line is not asserted";