int MSXE302x__AnalogInputInitAndStartAutoRefresh ( xsd__unsignedLong  ulChannelMask,
struct MSXE302x__unsignedLong16FixedArrayParam pulGainArray,
struct MSXE302x__unsignedLong16FixedArrayParam pulPolarityArray,
xsd__unsignedLong  ulAverageMode,
xsd__unsignedLong  ulAverageValue,
xsd__unsignedLong  ulConversionTime,
xsd__unsignedLong  ulConversionTimeUnit,
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,
struct MSXE302x__Response Response 
)
Parameters:
[in] ulChannelMask Mask of the channel to acquire by the auto refresh (1 bit = 1 Channel)
[in] pulGainArray Define the gain (1 or 2) to use for each channel.
Information : by the channel type "current", the gain 2 is recommended.

  • 1 : +10 V or max 20mA when Unipolar, +/-10V or +/- max 20mA when Bipolar
  • 2 : +5 V or 20mA when Unipolar, +/-5V or +/- 20mA when Bipolar Each index of the array correspond to the channel :
    sample :
  • [0] : Define the gain for the channel 0
  • [1] : Define the gain for the channel 1
  • ...

    Remark: When using a current version of the MSX-E302x, gain 2 has to be used.
[in] pulPolarityArray Define the polarity (0:Unipolar or 1:Bipolar) to use for each channel Each index of the array correspond to the channel :
sample :

  • [0] : Define the polarity for the channel 0
  • [1] : Define the polarity for the channel 1
  • ...

    Remark: When using the unipolar mode, the raw value for 0 volt (or 0 ampere) will be 32767.
[in] ulAverageMode Set the average mode :

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

  • 0 : not used
  • max value : 255
[in] ulConversionTime Conversion Time

  • range from min 10 to 65535 when the unit is the microsecond
  • range from min 1 to 65535 when the unit is the millisecond
  • range from min 1 to 65535 when the unit is the second
[in] ulConversionTimeUnit Conversion Time Unit

  • 0 : microsecond
  • 1 : millisecond
  • 2 : second
[in] ulTriggerMask Define the source of the trigger

  • 0 : trigger disabled
  • 1 : Enable Hardware Digital Input Trigger
  • 2 : Enable Synchro Trigger
[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

  • 0 : continuous mode
  • <> 0 : number of sequence : (1..0xFFFFFFFF)
[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 V)
[in] ulOption1 Reserved
[in] ulOption2 Reserved
[in] ulOption3 Reserved
[out] Response :
iReturnValue :

  • 0 : means the remote function performed OK
  • -1: means an system error occured
  • -2: The channel mask cannot be null
  • -3: Channel Mask error
  • -4: Gain selection error
  • -5: Polarity selection error
  • -6: not available average mode
  • -7: not available average value
  • -8: The minimal converting time is 10 us !
  • -9: Not available conversion time unit
  • -10: Trigger mode : 2 different mode cannot be simultaneously be activated
  • -11: Hardware trigger : front definition error
  • -12: Hardware trigger count value not available
  • -13: Nbr of sequence to acquire by trigger mode not available
  • -14: Data format not available
  • -100: Channel initialisation kernel function error
  • -101: Conversion time initialisation kernel function error
  • -102: Average mode initialisation kernel function error
  • -103: hardware trigger initialisation/enable kernel function error
  • -104: hardware trigger disable kernel function error
  • -105: synchro trigger initialisation/enable kernel function error
  • -106: synchro trigger disable kernel function error
  • -107 Sequence trigger count initialisation error
  • -108: Start auto refresh kernel function error

syserrno : system-error code (the value of the libc "errno" code)

Returns:
  • 0: SOAP_OK
  • <> 0: See SOAP error