int MSXExxxx__AnalogInputCalibrationStart ( xsd__unsignedLong  ulChannel,
xsd__unsignedLong  ulGainSelection,
xsd__unsignedLong  ulRefSource,
xsd__double  dRefValue,
xsd__unsignedLong  ulOption1,
xsd__unsignedLong  ulOption2,
struct MSXExxxx__Response Response 
)
Parameters:
[in] ulChannel : Calibration channel selection (0 to 15).
[in] ulGainSelection : Selected gain (1, 10, 100,)
[in] ulRefSource : Calibration reference source

  • 0 : External source via the first function module channel
  • 1 : System internal reference voltage
[in] dRefValue : Reference voltage value for the calibration (V or mA)
[in] ulOption1 : Tolerance voltage for the calibration. If not 0, then defines the value of the tolerance (the unit is micro Volt).
If the calibration does not reach the required tolerance, an error is thrown.
Leaving 0 for this value will not check the tolerance of the calibration value and will try to get the best potentiometer value
[in] ulOption2 : Reserved. Set to 0
[out] Response :
sResponse.iReturnValue :

  • 0: Means the remote function performed OK
  • -1: Means an system error occured
  • -2: Channel selection error
  • -3: Any acquisition already started
  • -4: Any calibration already started
  • -5: Gain selection error
  • -6: Reference source selection error
  • -7: Ref value to high/low for the selected gain
  • -8: Calibration start acquisition error
Returns:
  • 0: SOAP_OK
  • <> 0: See SOAP error