|
int MSXE351x__GeneratorInitFormula |
( |
xsd__unsignedLong |
ulChannel, |
|
|
xsd__unsignedLong |
ulOutputType, |
|
|
xsd__unsignedLong |
ulPolarity, |
|
|
xsd__unsignedLong |
ulCycleNbr, |
|
|
xsd__unsignedLong |
ulTimeSteps, |
|
|
xsd__unsignedLong |
ulGateTriggerMask, |
|
|
xsd__unsignedLong |
ulGateTriggerMode, |
|
|
xsd__unsignedLong |
ulStopState, |
|
|
xsd__long |
lXStartValue, |
|
|
xsd__long |
lXEndValue, |
|
|
struct xsd__base64Binary * |
pFormula, |
|
|
xsd__unsignedLong |
ulOption01, |
|
|
xsd__unsignedLong |
ulOption02, |
|
|
struct MSXE351x__GeneratorInitFormulaResponse * |
Response | |
|
) |
| | |
- Parameters:
-
[in] | ulChannel | : Analog output generator channel selection (0 to 7) |
[in] | ulOutputType | : Output type selection
- 0 : Voltage
- 1 : Current
- 2 : System default
|
[in] | ulPolarity | : Polarity selection
- 0 : Unipolar
- 1 : Bipolar (Only available for the voltage mode)
|
[in] | ulCycleNbr,: | Determine the number of cycle(s). 0 for infinity. |
[in] | ulTimeSteps | : 1 to 65535. This value determine the time step for each analog value. |
[in] | ulGateTriggerMask | : Reqired hardware action to start the generator.
- 0 : No hardware action required to start the generator.
- 1 : Hardware trigger action required to start the generator.
- 2 : Synchro input action required to start the generator. First trigger start the generator
|
[in] | ulGateTriggerMode | : Only for the hardware trigger action.
- 001 (1) : Rising front start the generator (trigger action).
- 010 (2) : Falling front start the generator (trigger action).
- 011 (3) : Both front start the generator (trigger action).
- 101 (5) : High level start the generator (gate action).
- 110 (6) : Low level start the generator (gate action).
|
[in] | ulStopState | : Gnerator output stop state selection.
- 00 (0) : The output keep the state.
- 01 (1) : The output is set to 0V/0mA after write all values.
- 10 (2) : The output is set to 0V/0mA after a software stop command
- 11 (3) : The output is set to 0V/0mA after write all values or a software stop command
|
[in] | lXStartValue | : Start value from X |
[in] | lXEndValue | : End value from X |
[in] | pFormula | : Formula for the signal generation
__size: Determine the formula string length + 1 for the null character.
__ptr : Formula string pointer
__offset: Resereved. Set to 0. |
[in] | ulOption01 | : Reserved |
[in] | ulOption02 | : Reserved |
[out] | Response | :
sResponse.iReturnValue :
- 0: OK
- -1: Means an system error occured (check errno in this case)
- -2: Channel selection wrong
- -3: Output type selection wrong
- -4: Polarity selection wrong
- -5: Operating mode selection wrong
- -6: Data number selection wrong
- -7: Min data number selection wrong
- -8: Cycle number selection wrong
- -9: Steps selection wrong
- -10: Gate/Trigger mask selection wrong
- -11: Gate/Trigger mode selection wrong
- -13: Stop state selection wrong
- -15: Analog value wrong
- -16: Steps selection wrong
- -20: lXEndValue - lXStartValue to big
- -21: Formula interpretation error. More informations via sError
- -22: Internal error
- -100 : Kernel function error
sError : If error -21 then return the error message
sError.__size: Return the error message string length + 1 for the null character.
sError.__ptr : Return the error message. sError.__offset: Resereved. return 0. ulErrorStartPos : If error -21 return the start position in pFormula for the error identification
ulErrorEndPos : If error -21 return the end position in pcFormula for the error identification
sResponse.syserrno : system-error code (the value of the libc "errno" code)
|
- Returns:
- 0: SOAP_OK
- <> 0: See SOAP error
|