[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] | ulFixedSteps | : 0 to 65535. If not 0 then this value determine the common time step value for each analog value otherwise for each value you can determine the time step.
- If fixed steps selected then the pulData is a unsigned short array.
- If not fixed steps selected then the pulData is a unsigned long array. Each high word set the time step and each low set word the 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] | pulDatas | : Used for the not fixed time step.
__size: Determine the number of values.
__ptr : Analog values array. Each array element contain the step value (high word) and the analog value (low word).
__offset: Resereved. Set to 0. |
[in] | puDatas | : Used for the fixed time step.
__size: Determine the number of values.
__ptr : Analog values array. Each array element contain the analog value.
__offset: Resereved. Set to 0. |
[in] | ulOption01 | : Reserved |
[in] | ulOption02 | : Reserved |
[out] | Response | :
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
- -8: Cycle number selection wrong
- -9: Fixed 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: Time step value wrong
- -100 : Kernel function error syserrno : system-error code (the value of the libc "errno" code)
|