int MSXE302x__AnalogInputInitAndStartSequence ( xsd__unsignedLong  ulNbrOfChannel,
struct MSXE302x__unsignedLong16FixedArrayParam pulChannelList,
struct MSXE302x__unsignedLong16FixedArrayParam pulGainArray,
struct MSXE302x__unsignedLong16FixedArrayParam pulPolarityArray,
xsd__unsignedLong  ulConversionTime,
xsd__unsignedLong  ulConversionTimeUnit,
xsd__unsignedLong  ulNbrOfSequence,
xsd__unsignedLong  ulNbrMaxSequenceToTransfer,
xsd__unsignedLong  ulDelayMode,
xsd__unsignedLong  ulDelayTimeUnit,
xsd__unsignedLong  ulDelayValue,
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] ulNbrOfChannel : nbr of channel in the sequence
[in] pulChannelList : list of the channel who compose the sequence
[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 20 mA 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] ulConversionTime Conversion Time (min 10 us or 40 us)
[in] ulConversionTimeUnit Conversion Time Unit

  • 0 : us
  • 1 : ms
[in] ulNbrOfSequence : Number of sequence to acquire :

  • 0 : continuous mode
  • <> 0 : number of sequence
[in] ulNbrMaxSequenceToTransfer : Max nbr of sequence to acquire before a data transfer : (1,65535)
[in] ulDelayMode : Delay Mode :

  • 0 : delay not used
  • 1 : mode 1
  • 2 : mode 2
[in] ulDelayTimeUnit : Selection of the time unit
0: us
1: ms
2: s
[in] ulDelayValue : Delay Value : (1..0xFFFF)
[in] ulTriggerMask Define the source of the trigger

  • 0 : trigger disabled
  • 1 : Enable Hardware Digital Input Trigger
  • 2 : Enable Synchro Trigger
  • 3 : Enable both Hardware and 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 generate a trigger action

  • 1 : rising front (Only if hardware trigger selected)
  • 2 : falling front (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 : Data format option
D0 : Time stamp information

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

D1 : Sequence counter information

  • 0 : No sequence counter information
  • 1 : Sequence counter information

D2 : Data format

  • 0 : 32/16 bit digital value
  • 1 : 32-bit analog value (in V)

D3 : 16-Bit digital value

  • 0 : 32-bit digital/analog value
  • 1 : 16-bit digital value.
    Only a pair number of acquisition channels (ulNbrOfChannel) can be selected.
[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 nbr of channel in the sequence cannot be null
  • -3: Channel index selection error
  • -4: Gain selection error
  • -5: Polarity selection error
  • -6: The minimal converting time is 10 us !
  • -7: Not available conversion time unit
  • -8: Delay mode selection not available
  • -9: Delay time unit selection not available
  • -10: Delay value not available
  • -11: Trigger mode : 2 different mode cannot be simultaneously be activated
  • -12: Hardware trigger : edge definition error
  • -13: Hardware trigger count value not available
  • -14: Nbr of sequence to acquire by trigger mode not available
  • -15: Data format not available
  • -100: Channel initialisation kernel function error
  • -101: Conversion time initialisation kernel function error
  • -102: Delay 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: Sequence initialisation kernel function error
  • -109: Start sequence kernel function error

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

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