int MSXE351x__GeneratorInitContinuous ( xsd__unsignedLong  ulChannel,
xsd__unsignedLong  ulOutputType,
xsd__unsignedLong  ulPolarity,
xsd__unsignedLong  ulMinDataNbr,
xsd__unsignedLong  ulFixedSteps,
xsd__unsignedLong  ulGateTriggerMask,
xsd__unsignedLong  ulGateTriggerMode,
xsd__unsignedLong  ulStartMode,
xsd__unsignedLong  ulStopState,
xsd__unsignedLong  ulDataSrc,
xsd__unsignedLong  ulOption01,
xsd__unsignedLong  ulOption02,
struct MSXE351x__Response Response 
)

Use the MSXE351x__GeneratorWriteData or data server to write the values

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] ulMinDataNbr : Determine the number of analgue value before start the ganarator.
[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 data to transfer is a unsigned short array.
  • If not fixed steps selected then data to transfer 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] ulStartMode : Start mode.

  • 0 : Each generator start separately
  • 1 : All generators started at the same time
[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] ulDataSrc : Determine the data source.

  • 1 : Receive analgue outputs datas via SOAP functions
  • 2 : Receive analgue outputs datas via the data server
[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
  • -7: Min data number selection wrong
  • -9: Fixed steps selection wrong
  • -10: Gate/Trigger mask selection wrong
  • -11: Gate/Trigger mode selection wrong
  • -12: Start mode selection wrong
  • -13: Stop state selection wrong
  • -14: Data source selection wrong
  • -100 : Kernel function error
    syserrno : system-error code (the value of the libc "errno" code)
Returns:
  • 0: SOAP_OK
  • <> 0: See SOAP error