|
int MSXE360x__AnalogInputInitAndStartSequence |
( |
xsd__unsignedLong |
ulChannelMask, |
|
|
xsd__unsignedLong |
ulNbrOfSequence, |
|
|
xsd__unsignedLong |
ulNbrMaxSequenceToTransfer, |
|
|
xsd__double |
dFrequencySelection, |
|
|
struct MSXE360x__unsignedLong8FixedArrayParam * |
pulGainArray, |
|
|
xsd__unsignedLong |
ulICPMask, |
|
|
xsd__unsignedLong |
ulTriggerMask, |
|
|
xsd__unsignedLong |
ulTriggerMode, |
|
|
xsd__unsignedLong |
ulHardwareTriggerEdge, |
|
|
xsd__unsignedLong |
ulHardwareTriggerCount, |
|
|
xsd__unsignedLong |
ulByTriggerNbrOfSeqToAcquire, |
|
|
xsd__unsignedLong |
ulDataFormat, |
|
|
xsd__unsignedLong |
ulCouplingSelectionMask, |
|
|
xsd__unsignedLong |
ulSeDiffSelectionMask, |
|
|
xsd__unsignedLong |
ulOption1, |
|
|
xsd__unsignedLong |
ulOption2, |
|
|
xsd__unsignedLong |
ulOption3, |
|
|
xsd__unsignedLong |
ulOption4, |
|
|
xsd__unsignedLong |
ulOption5, |
|
|
xsd__unsignedLong |
ulOption6, |
|
|
struct MSXE360x__Response * |
Response | |
|
) |
| | |
- Parameters:
-
[in] | ulChannelMask | : 8 bits mask (0->0xFF) which defines channels used for the acquisition (each bit corresponds to one channel)
|
[in] | ulNbrOfSequence | : Number of sequence to acquire :
- 0 : Continuous mode
- > 0 : number of sequence (1 -> 4294967295 (0xFFFFFFFF))
|
[in] | ulNbrMaxSequenceToTransfer | : Not used, must be 0 |
[in] | dFrequencySelection | : Select the frequency of the acquisition
- 1000.00 Hz
- 1280.00 Hz
- 1562.50 Hz
- 1600.00 Hz
- 1666.67 Hz
- 2000.00 Hz
- 2500.00 Hz
- 3125.00 Hz
- 3200.00 Hz
- 3333.33 Hz
- 4000.00 Hz
- 5000.00 Hz
- 6250.00 Hz
- 6400.00 Hz
- 6666.67 Hz
- 8000.00 Hz
- 10000.00 Hz
- 12500.00 Hz
- 12800.00 Hz
- 13333.33 Hz
- 16000.00 Hz
- 16666.67 Hz
- 20000.00 Hz
- 25000.00 Hz
- 32000.00 Hz
- 33333.33 Hz
- 40000.00 Hz
- 50000.00 Hz
- 64000.00 Hz
- 66666.67 Hz
- 80000.00 Hz
- 100000.00 Hz
- 128000.00 Hz
|
[in] | pulGainArray | : Define the gain (1,10 or 100) to use for each channel.
Each index of the array corresponds to the corresponding channel :
example :
- [0] : Define the gain for the channel 0
- [1] : Define the gain for the channel 1
- ...
|
[in] | ulICPMask | : 8 bits mask (0->0xFF) which defines if the ICP is activated or not. (each bit corresponds to one channel)
When the ICP is activated, the channel must be configured with AC and SE.
- 0 : not activated
- 1 : activated
|
[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 | : Not used, must be 0
|
[in] | ulHardwareTriggerEdge | : Define the edge of the trigger
- 1 : Hardware trigger rising edge
- 2 : Hardware trigger falling edge
- 3 : Enable both rising edge and falling edge
|
[in] | ulHardwareTriggerCount | : Define the number of external trigger ignored before taking it account (1 -> 65535)
|
[in] | ulByTriggerNbrOfSeqToAcquire | : Not used, must be 0
|
[in] | ulDataFormat | : Dataformat of the frame, see remarks and examples for more informations :
D0 : Absolute time stamp information (2*32 bits data)
- 0 : no time stamp information
- 1 : time stamp information
D1 : Not used must be 0
D2 : Sequence counter (32 bits data)
- 0: No sequence counter information required
- 1: Sequence counter information required
D3 : Hardware trigger information (32 bits data)
- 0 : No hardware trigger information required
- 1 : Hardware trigger information required
|
[in] | ulCouplingSelectionMask | : 8 bits mask (0->0xFF) which defines the coupling for each channel (each bit corresponds to one channel)
|
[in] | ulSeDiffSelectionMask | : 8 bits mask (0->0xFF) which defines SE/DIFF mode for each channel (each bit corresponds to one channel)
|
Remark 1 : data packets depends on the (number of sequence asked) * (sequence size in 32 bits words) * 4
- <4-8192> bytes, Only one packet of the corresponding size is sent
- 0 (continuous) or > 8192 bytes : packet of 8192 bytes containing the sequences are sent by the MSXE, for the last sequence, the last packet is sent with the rest of the size
Remark 2 : the data order is
- timestamp seconds (optional)
- timestamp microseconds (optional)
- sequence counter (optional)
- hardware trigger information (optional)
- selected channels in ascending order
Remark 3 : sequence size in bytes
- [(timestamp (s) + timestamp (us)) (optional) + sequence counter (optional) + hardware trigger information (optional) + number of channels] * 4
Example 1 : 4 channels in continuous sequence mode
- packets of 8192 bytes are sent -> 512 sequences of 4 32 bits channels per packet
Example 2 : 10 sequences of 4 channels with timestamp and hardware trigger information.
- 1 packet of 280 bytes is sent by the MSXE -> 10 sequences of : timestamp (2*32 bits word) + sequence counter size (32 bits) + 4 * 32 bits channels)
- Parameters:
-
[out] | Response | :
iReturnValue :
- 0: means the remote function performed OK
- -1: means an system error occured
- -2: pld is not working
- -3: error, system is in calibration
- -4: channel action is wrong
- -5: gain selection error
- -6: channel coupling selection error
- -7: SE / Diff selection error
- -8: ICP selection error
- -9: ICP can only be used with AC and SE
- -10: driver is not in idle state
- -11: pld is not working
- -12: error, system is in calibration
- -13: Frequency selection error
- -14: driver is not in idle state
- -19: channel mask can not be null
- -20: channel mask selection error
- -21: number of sequence selection error
- -22: sequence interrupt selection error (must be 0)
- -23: the ulTriggerMode parameter is wrong (must be 0)
- -24: the ulHardwareTriggerEdge parameter is wrong
- -25: the ulHardwareTriggerCount parameter is wrong
- -26: the ulByTriggerNbrOfSeqToAcquire parameter is wrong (must be 0)
- -27: the ulDataFormat parameter is wrong
- -28: the ulTriggerMask parameter is wrong
- -29: the ulICPMask is wrong (0->0xFF)
- -30: the ulCouplingSelectionMask is wrong (0->0xFF)
- -31: the ulSeDiffSelectionMask is wrong (0->0xFF)
- -40: pld is not working
- -41: error, system is in calibration
- -42: driver status is wrong
- -100 internal system error occurs see value of syserrno
syserrno : system-error code (the value of the libc "errno" code) |
- Returns:
- 0: SOAP_OK
- <> 0: See SOAP error
|