int MSXExxxx__SinCosInitIndex ( xsd__unsignedLong  ulChannel,
xsd__unsignedLong  ulEdge,
xsd__unsignedLong  ulAction,
xsd__unsignedLong  ulOption01,
xsd__unsignedLong  ulOption02,
struct MSXExxxx__Response Response 
)

Initialise the Index configuration. The index function enables to generate an event, or do an action, when the index signal occurs. This signal occurs one time per rotation for a rotary encoder, and one time per ride for a linear sensor (for more information see documentation of your sensor).

Parameters:
[in] ulChannel Channel selection (0 to MSXExxxx__SinCosGetNumberOfChannels - 1)
[in] ulEdge Edge selection

  • 0b01 = 1: Rising edge
  • 0b10 = 2: Falling edge
  • 0b11 = 3: Both edges
[in] ulAction Action to do when the index trigger occurs

  • 0b00 = 0: Do nothing (but index trigger can also be used to trigger the acquisition)
  • 0b01 = 1: Clear the value of the sensor
  • 0b10 = 2: Generate a synchro trigger
  • 0b11 = 3: Clear the value of the sensor AND Generate a synchro trigger
[in] ulOption01 Reserved. Set it to 0
[in] ulOption02 Reserved. Set it to 0
[out] Response Response of the system

  • 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 ulEdge parameter is wrong
    • -5: The ulAction parameter is wrong
    • -6: The current status is not correct. The selected Sine/Cosine channel is not initialised
    • -7: The current status is not correct. The selected Sine/Cosine channel Index Logic has already been initialised. Please call the function MSXExxxx__SinCosReleaseIndex
    • -100: Internal system error occurred. See value of syserrno
  • syserrno System error code (the value of the libc "errno" code)
Return values:
0 SOAP_OK
Others See SOAP error