int MSXExxxx__SinCosRead ( xsd__unsignedLong  ulChannel,
xsd__unsignedLong  ulOption01,
xsd__unsignedLong  ulOption02,
xsd__unsignedLong  ulOption03,
xsd__unsignedLong  ulOption04,
struct MSXExxxx__SinCosReadResponse Response 
)

Read the measured value of the selected Sine/Cosine channel.

Parameters:
[in] ulChannel Channel selection (0 to MSXExxxx__SinCosGetNumberOfChannels - 1)
[in] ulOption01 Reserved. Set it to 0
[in] ulOption02 Reserved. Set it to 0
[in] ulOption03 Reserved. Set it to 0
[in] ulOption04 Reserved. Set it to 0
[out] Response Response of the system

  • sResponse
    • iReturnValue Function return code
      • 0: The remote function performed OK
      • -1: System error occurred
      • -2: The PLD is not working
      • -3: The ulChannel parameter is wrong
      • -4: The current status is not correct. The selected Sine/Cosine channel is not initialised
      • -100: Internal system error occurred. See value of syserrno
    • syserrno System error code (the value of the libc "errno" code)
  • dValue Measured value (Unit)
  • ulValue Measured value (Raw value)
  • ulMeasureError Status of the Sine/Cosine measurement. If the value is 1, then an error occurred. When an error occurred, the reference point is corrupted. To correct it, you must first reset the error flag using the function MSXExxxx__SinCosClearError, and then reset your reference point.
  • ulInfo01 Reserved
  • ulInfo02 Reserved
Return values:
0 SOAP_OK
Others See SOAP error