int MSXExxxx__AnalogOutputWrite1Value ( xsd__unsignedLong  ulChannel,
xsd__unsignedLong  ulOutputType,
xsd__unsignedLong  ulPolarity,
xsd__unsignedLong  ulTriggerMask,
xsd__unsignedLong  ulTriggerEdgeSelection,
xsd__unsignedLong  ulTriggerCount,
xsd__unsignedLong  ulValue,
xsd__unsignedLong  ulOption01,
xsd__unsignedLong  ulOption02,
xsd__unsignedLong  ulOption03,
struct MSXExxxx__Response Response 
)
Parameters:
[in] ulChannel Index of the channel (0 to MSXExxxx__AnalogOutputGetNumberOfChannels - 1)
[in] ulOutputType Type of the output

  • 0 voltage
  • 1 current
  • 2 system default
[in] ulPolarity Polarity

  • 0 unipolar
  • 1 bipolar
[in] ulTriggerMask Trigger to use to set the outputs (Mask of bits)

  • 0 no trigger: output directly updated after a call to this function
  • Bit 0 = 1: Hardware trigger used
  • Bit 1 = 1: Synchro trigger used
  • Bit 2 = 1: Software trigger used: output updated after a call to MSXExxxx__AnalogOutputTriggerOutputs You can give a combination of bits. Examples:
  • 1: Only hardware trigger
  • 2: Only synchro trigger
  • 3: Hardware trigger and synchro trigger
  • 7: Hardware trigger, synchro trigger and software trigger
[in] ulTriggerEdgeSelection Only used if you select the hardware trigger. Defines the detected edges (Mask of bits). The value cannot be null (if hardware trigger is selected).

  • Bit 0 = 1: Rising edges are detected
  • Bit 1 = 1: Falling edges are detected
    To detect both edges (rising and falling), the value is also 3.
[in] ulTriggerCount Only used if you select the hardware trigger. Defines the number of hardware trigger to wait before updating the analog outputs. The value cannot be null (if hardware trigger is selected).
[in] ulValue Value that you want to set (digital format)

  • If unipolar, range is from 0 to 0x7fff ( from 0V to +10V)
  • If bipolar, range is from 0 to 0xffff ( from -10V to +10V)
[in] ulOption01 Reserved. Set to 0
[in] ulOption02 Reserved. Set to 0
[in] ulOption03 Reserved. Set to 0
[out] Response 
iReturnValue

  • 0: Means the remote function performed OK
  • -1: Means an system error occurred
  • -2: The PLD is not working
  • -3: The ulChannel parameter is wrong
  • -4: The ulOutputType parameter is wrong
  • -5: The ulPolarity parameter is wrong
  • -6: The ulTriggerMask parameter is wrong
  • -7: The ulValue parameter is wrong
  • -8: The ulTriggerEdgeSelection parameter is wrong
  • -9: The ulTriggerCount parameter is wrong
  • -10: Timeout while setting the value
  • -100: Internal system error occurred. See value of syserrno

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

Return values:
0 SOAP_OK
Others See SOAP error