Digarmsetup – Measurement Computing Personal488 rev.3.0 User Manual
Page 79

Personal488 for Windows 95/98/Me/NT/2000
04-10-01
API Reference 6-11
DigArmSetup
AT488pnp and PCI488 Only !
Syntax
INT WINAPI DigArmSetup(DevHandleT devHandle, BYTE
byMatchValue);
devHandle
refers to an interface handle.
byMatchValue
refers to a value that is compared against the digital I/O inputs
Returns
-1
if error
Bus States
None
Example
DigArmSetup(devHandle, 0xA5);
Sets the match value to
0xA5
.
See Also
DigArm, DigSetup
The
DigArmSetup
command sets the match condition value. This value will be compared against the
digital I/O port inputs to detect when an event occurs. The event must be armed (via
DigArm
) for event
notification to take place.
The comparison operation depends on the current digital port configuration. If both nibbles are configured
for input, then the match value is compared to the entire byte value of the digital port. If only one of the
nibbles is configured for input, then the value is compared against just that nibble. If no nibbles are
configured for input, then the match value is ignored. The
DigArm
function will not allow event generation
to be armed unless at least one of the nibbles is configured for input.