Ioaddress, Keepdevice, Lightpen – Measurement Computing Personal488 rev.3.0 For DOS & Windows 3.Xi User Manual
Page 344

III. COMMAND REFERENCES - 15. Command References
15B. Driver488/SUB, W31, W95, & WNT
Personal488 User’s Manual, Rev. 3.0
III-329
IOAddress
Driver488/SUB and Driver488/W31 only
SYNTAX
int pascal IOAddress(DevHandleT devHandle, uint ioaddr);
devHandle
refers to either an interface or an external device. If
devHandle
refers to an external device, then the
IOAddress
command acts on the
hardware interface to which the external device is attached.
ioaddr
is the I/O base address to set.
RETURNS
-1 if error
MODE
Any
BUS STATES
None
SEE ALSO
IntLevel, DmaChannel, TimeOut
EXAMPLE
errorcode = IOAddress(ieee,0x02E1);
The
IOAddress
command specifies the I/O port base address of the I/O adapter. The base address is
set by a 16-bit integer,
ioaddr
, that is usually given as a hexadecimal number. The default I/O port
base address for the IEEE 488 hardware interface is
0X02E1
for the first interface,
0X22E1
for the
second, and
0X42E1
and
0X62E1
for the third and fourth interfaces. The default I/O port base
addresses for the serial hardware interface is
0X03F8
. Other standard I/O port base addresses are
0X02F8
,
0X03E8
,
0X02E8
. The
IOAddress
value must match the hardware switch settings on the I/O
adapter.
KeepDevice
SYNTAX
int pascal KeepDevice(DevHandleT devHandle);
devHandle
refers to an external device.
RETURNS
-1 if error
MODE
Any
BUS STATES
None
SEE ALSO
MakeDevice, RemoveDevice, OpenName
EXAMPLE
errorcode = KeepDevice(scope);
The
KeepDevice
command changes the indicated temporary Driver488 device to a permanent device,
visible to all applications. Permanent Driver488 devices are not removed when Driver488 is closed.
Driver488 devices are created by
MakeDevice
and are initially temporary. Unless
KeepDevice
is
used, all temporary Driver488 devices are forgotten when Driver488 is closed. The only way to
remove the permanent device once it has been made permanent by the
KeepDevice
command, is to
use the
RemoveDevice
command.
LightPen
Driver488/SUB only
SYNTAX
int pascal LightPen(DevHandleT devHandle, bool flag);
devHandle
refers to either an IEEE 488 interface or an external device. If
devHandle
refers to an external device, then the
LightPen
command acts on
the hardware interface to which the external device is attached.
flag
may be either
ON
(
LightPen
enabled), or
OFF
(
LightPen
disabled).
RETURNS
-1 if error
MODE
Any
BUS STATES
None
SEE ALSO
OnEvent, Arm, Disarm
EXAMPLE
errorcode = LightPen(ieee,ON);