beautypg.com

Makedevice – Measurement Computing Personal488 rev.3.0 User Manual

Page 96

background image

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

04-10-01

API Reference 6-28

MakeDevice

Syntax

INT WINAPI MakeDevice(DevHandleT devHandle, LPSTR name);

devHandle

refers to an existing external device.

name

is the device name of the device that is to be made and takes the configuration of the

device given by

devHandle

.

Returns

-1

if error

otherwise, the

DevHandleT

of the new device. Note that the new device is an exact copy

(except for the name) of the specified device as it currently sets in memory and not in
the Registry.

Bus State

None

Example

dmm = MakeDevice(scope,"DMM");

BusAddress(dmm,16,-1);

Create a device named

DMM

, attached to

the same I/O adapter as

scope

and

set its IEEE 488 bus address to 16.

See Also

MakeNewDevice, KeepDevice, RemoveDevice, OpenName, Close

The

MakeDevice

command creates a new temporary Driver488 device that is an identical copy of an

already existing Driver488 external device. The new device is attached to the same I/O adapter of the
existing device and has the same bus address, terminators, timeouts, and other characteristics. The newly
created device is temporary and is removed when Driver488 is closed.

KeepDevice

may be used to make

the device permanent. To change the default values assigned to the device, it is necessary to call the
appropriate configuration functions such as

BusAddress

,

IOAddress

, and

TimeOut

.

This manual is related to the following products: