beautypg.com

Busaddress – Measurement Computing Personal488 rev.3.0 User Manual

Page 72

background image

Personal488 for Windows 95/98/Me/NT/2000

04-10-01

API Reference 6-4

BusAddress

Syntax

INT WINAPI BusAddress (DevHandleT devHandle, BYTE primary,

BYTE secondary);

devHandle

refers to either an IEEE 488 hardware interface or an external device.

primary

is the IEEE 488 bus primary address of the specified device.

secondary

is the IEEE 488 bus secondary address of the specified device. If the specified

device is an IEEE 488 hardware interface, this value must be

-1

since there are no

secondary addresses for the IEEE 488 hardware interface. For no secondary address, a

-1

must be specified.

Returns

-1

if error

Bus States

None

Example

errorcode = BusAddress(dmm,14,0);

See Also

MakeDevice

The

BusAddress

command sets the IEEE 488 bus address of the IEEE 488 hardware interface or an

external device. Every IEEE 488 bus device has an address that must be unique within any single
IEEE 488 bus system. The default IEEE 488 bus address for Driver488 is

21

, but this may be changed if it

conflicts with some other device.

This manual is related to the following products: