QLIB-function: QAPIExtReadDI1


With the function QAPIExtReadDI1 the condition of a 1 Bit width digital channel could be read by a DI card.

ULONG QAPIExtReadDI1 ( ULONG cardhandle ULONG channel ULONG mode );


Parameter 1
cardhandle
Defines the handle from the opened card

Parameter 2:
channel
Defines the channel, from which the digital value should be read

Parameter 3:
mode
Defines a card dependent parameter (look also card specific parameter)

Return value
If the function was terminated successful, then is the Return value the same as the digital value If the function is not successful, then is the Return value always 0L.

Commands
Is the for the channel given value greater than the number of digital input channels, so is the Return value always 0.

Links
 QAPIExtReadDI8, QAPIExtReadDI16, QAPIExtReadDI32
 Back to the QLIB overview