int MSXE371x__TransducerInitAndStartAutoRefresh ( xsd__unsignedLong  ulTransducerSelection,
xsd__unsignedLong  ulChannelMask,
xsd__unsignedLong  ulAverageMode,
xsd__unsignedLong  ulAverageValue,
xsd__unsignedLong  ulTriggerMask,
xsd__unsignedLong  ulTriggerMode,
xsd__unsignedLong  ulHardwareTriggerEdge,
xsd__unsignedLong  ulHardwareTriggerCount,
xsd__unsignedLong  ulByTriggerNbrOfSeqToAcquire,
xsd__unsignedLong  ulDataFormat,
xsd__unsignedLong  ulOption1,
xsd__unsignedLong  ulOption2,
xsd__unsignedLong  ulOption3,
xsd__unsignedLong  ulOption4,
struct MSXE371x__Response Response 
)
Parameters:
[in] ulTransducerSelection Transducer type selection
[in] ulChannelMask Mask of the channel to acquire by the auto refresh (1 bit = 1 Channel, D0 channel 0 and D7 channel 7)
[in] ulAverageMode Set the average mode :

  • 0 : not used
  • 1 : average per channel
[in] ulAverageValue Set the average value (only used, when average is used) :

  • 0 : not used
  • max value : 255
[in] ulTriggerMask Define the source of the trigger

  • 0 : trigger disabled
  • 1 : Enable Hardware Digital Input Trigger
  • 2 : Enable Synchro Trigger
  • 4 : Enable Incremental Counter Compare Interrupt
[in] ulTriggerMode Define the trigger mode

  • 1 : One shot trigger
  • 2 : Sequence trigger
[in] ulHardwareTriggerEdge Define the edge of the hardware trigger who generates a trigger action

  • 1 : rising edge (Only if hardware trigger selected)
  • 2 : falling edge (Only if hardware trigger selected)
  • 3 : Both front (Only if hardware trigger selected)
[in] ulHardwareTriggerCount Define the number of trigger events before the action occur

  • 0 or 1 : all trigger event start the action
  • max value : 65535
[in] ulByTriggerNbrOfSeqToAcquire Define the number of sequence to acquire by each trigger event (1..65535)
[in] ulDataFormat D0 : Time stamp information

  • 0: no time stamp information
  • 1: time stamp information

D1 : Data format

  • 0: Digital value
  • 1: Analog value (in mm)

D2 : invert value

  • 0 : don't invert the channel value
  • 1 : invert the channel value (-2 mm -> + 2mm)

D3 : Temperature value

  • 0 : don't acquire the temperature value
  • 1 : acquire the temperature value

D4 : Incremental counter value

  • 0 : don't acquire the incremental counter value
  • 1 : acquire the incremental counter value

D5 : Diff. mode

  • 0 : Diff mode disabled
  • 1 : Diff mode enabled : Channel X value = Channel (X) value + Channel (X + 4) value
[in] ulOption1 : Reserved
[in] ulOption2 : Reserved
[in] ulOption3 : Reserved
[in] ulOption4 : Reserved
[out] Response :
iReturnValue : Error value

  • 0: success
  • -1: means an system error occurred
  • -2: Transducer selection error
  • -3: The channel mask cannot be null
  • -4: Channel Mask error
  • -5: not available average mode
  • -6: not available average value
  • -7: Trigger source : 2 or more different source cannot be simultaneously be activated
  • -8: Trigger mode selection error
  • -9: Hardware trigger : front definition error
  • -10: Hardware trigger count value not available
  • -11: Nbr of sequence to acquire by trigger mode not available
  • -12: Data format not available
  • -13: Incremental counter not initialised
  • -14: Incremental counter compare logic not initialised
  • -15: Temperature channel not initialised
  • -100: Auto refrseh initialisation and start kernel function error syserrno : system-error code (the value of the libc "errno" code)
Returns:
0: SOAP_OK
<> 0: See SOAP error