int MSXExxxx__DigitalIOReadChannel ( xsd__unsignedLong  ulChannel,
xsd__unsignedLong  ulOption1,
struct MSXExxxx__unsignedLongResponse Response 
)


Read the selected digital I/O channel.
If the selected channel is an output, then this function returns the current output state.

Parameters:
[in] ulChannel Selected digital I/O channel (0 to MSXExxxx__DigitalIOGetNumberOfChannels)
[in] ulOption1 Reserved. Set to 0
[out] Response 
sResponse.iReturnValue :

  • 0: The remote function performed OK
  • -1: System error occurred
  • -2: The ulChannel parameter is wrong
  • -100: Internal system error occurred. See value of syserrno

sResponse.syserrno system error code (the value of the libc "errno" code)
ulValue : Digital I/O channel state

  • 0: Digital I/O channel is low
  • 1: Digital I/O channel is high
Return values:
0 SOAP_OK
Others See SOAP error