Personal488 for Windows 95/98/Me/NT/2000
04-10-01
API Reference 6-12
DigRead
AT488pnp and PCI488 Only !
Syntax
INT WINAPI DigRead(DevHandleT devHandle);
devHandle
refers to an interface handle.
Returns
-1
if no part of the port is configured for input, or other error
otherwise, integer between
0
and
255
if the entire digital I/O port is configured for input; or
integer between
0
and
15
if only one nibble (either low or high) is configured for input
Bus States
None
Example
int i = DigRead(devHandle);
Returns the current value of the digital I/O
port per the current configuration.
See Also
DigSetup, DigWrite
The
DigRead
command reads the current value of the digital IO port per the input/output configuration of
the port. If the entire port is configured for input, a value between
0
and
255
is returned. If either the
upper or lower nibble is configured for input, and the other for output, a value between
0
and
15
is
returned.
Note:
This function does not configure the digital I/O port for input. The caller must use
DigSetup
to configure the port for input before performing any reads. If neither nibble is configured for
input the function returns
-1
and sets the error code to
IOT_BAD_VALUE2
.
Summary of Contents for Personal488
Page 2: ...ii Personal488 User s Manual for Windows95 98 Me NT 2000...
Page 6: ...vi 04 10 01 Personal488 User s Manual for Windows95 98 Me NT 2000...
Page 12: ...3 2 Installation 04 10 01 Personal488 for Windows 95 98 Me NT 2000...
Page 18: ...Windows 95 3 8 Installation 04 10 01 Personal488 for Windows 95 98 Me NT 2000...
Page 24: ...Windows 98 3 14 Installation 04 10 01 Personal488 for Windows 95 98 Me NT 2000...
Page 30: ...Windows Me 3 20 Installation 04 10 01 Personal488 for Windows 95 98 Me NT 2000...
Page 38: ...Windows 2000 3 28 Installation 04 10 01 Personal488 for Windows 95 98 Me NT 2000...
Page 40: ...Windows 2000 3 30 Installation 04 10 01 Personal488 for Windows 95 98 Me NT 2000...
Page 42: ...4 2 Hardware Configuration Reference 04 09 01 Personal488 for Windows 95 98 Me NT 2000...
Page 46: ...4 6 Hardware Configuration Reference 04 09 01 Personal488 for Windows 95 98 Me NT 2000...
Page 50: ...4 10 Hardware Configuration Reference 04 09 01 Personal488 for Windows 95 98 Me NT 2000...
Page 54: ...4 14 Hardware Configuration Reference 04 09 01 Personal488 for Windows 95 98 Me NT 2000...
Page 68: ...5 14 Using IEEE 488 04 09 01 Personal488 for Windows 95 98 Me NT 2000...
Page 132: ...Personal488 for Windows 95 98 Me NT 2000 04 10 01 API Reference 6 64...
Page 138: ...B 2 IEEE488 ASCII Code Maps 03 16 01 Personal488 for Windows 95 98 Me NT 2000...