Measurement Computing GPIB-488.2 User Manual

Page 8

Advertising
background image

1-6 Introduction

978492

GPIB 488.2 Porting Guide

MCC

FindLstn:

FindLstn(int board, short addresslist[],

short resultlist[], int limit)


board is an integer which identifies the GPIB board to be used for this operation.
In most applications, this value is 0.
addresslist is an array of GPIB addresses, terminated by the value NOADDR.
limit is an integer which specifies how many address entries can be placed into the resultlist
array. Set to the size of the resultlist array.
resultlist will contain the addresses of all detected listeners.


Usage Notes

CheckListener, no longer to be used, checked for the existence of a device on the IEEE 488
bus at the specified address.

FindListn

finds all listeners on the GPIB. The addresses specified by addresslist are

tested to see if a listening device is present. If a listener is found at a primary address, its
address is placed in resultlist. If no listeners are detected at a primary address, then all
secondary addresses associated with that primary address are tested. If any listeners are
detected, their addresses are placed in resultlist. You can use this routine to determine
how many devices on the network are capable of listening. Once these devices are detected,
they can be identified by their response to identification request messages.
The following would be used to check for listening devices present at GPIB primary addresses
6 and 7, on Board 0.
Example:

short addresslist[3] = {6,7,NOADDR};
short resultlist[4];

FindLstn(0, addresslist, resultlist, 4);



Advertising