Makedevice, Makenewdevice – Measurement Computing Personal488 rev.3.0 For DOS & Windows 3.Xi User Manual

Page 346

Advertising
background image

III. COMMAND REFERENCES - 15. Command References

15B. Driver488/SUB, W31, W95, & WNT

Personal488 User’s Manual, Rev. 3.0

III-331

Lol

SYNTAX

int pascal Lol(DevHandleT devHandle);

devHandle

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

devHandle

refers to an external device, the

Lol

command acts on the

hardware interface to which the external device is attached.

RETURNS

-1 if error

MODE

CA

BUS STATES

ATN

LLO

SEE ALSO

Local, LocalList, Remote, RemoteList

EXAMPLES

errorcode = Lol(ieee);

The

Lol

command causes Driver488 to issue an IEEE 488 LocalLockout (

LLO

) bus command. Bus

devices that support this command are thereby inhibited from being controlled manually from their
front panels.

MakeDevice

SYNTAX

int pascal MakeDevice(DevHandleT devHandle, char *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

Device handle, or -1 if error

MODE

Any

BUS STATE

None

SEE ALSO

KeepDevice, RemoveDevice, OpenName, Close

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.

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

.

MakeNewDevice

Driver488/W95 only

SYNTAX

DevHandleT pascal MakeNewDevice(LPSTR iName, LPSTR aName,BYTE

primary,BYTE secondary,TermPT In,TermPT Out,DWORD tOut);

devHandle

refers to the new external device.

Name

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

configuration of the device based on the parameters specified.

primary

and

secondary

are the secondary and primary bus addresses to be

specified. For no secondary address, a

-1

must be specified.

In

and

Out

are pointers to terminator structures specified to set up the respective

input and output terminators of the device.

tOut

is the timeout parameter to be specified.

RETURNS

Device handle, or -1 if error

MODE

Any

BUS STATE

None

SEE ALSO

MakeDevice, KeepDevice, RemoveDevice, OpenName, Close

Advertising