int MSXE351x__GeneratorInitSamplingRate ( xsd__unsignedLong  ulSelection,
xsd__unsignedLong  ulPrescaller,
xsd__unsignedLong  ulOption01,
xsd__unsignedLong  ulOption02,
struct MSXE351x__Response Response 
)
Parameters:
[in] ulSelection : Sampling rate selection.

  • 0 : 20kHz
  • 1 : 40kHz
  • 2 : Synchro trigger
  • 3 : High hardware trigger edge
  • 4 : Low hardware trigger edge
  • 5 : High/Low hardware trigger edge
[in] ulPrescaller : Prescaller selection (1 to 65535). Not available for the 20kHz and 40kHz selection.
[in] ulOption01 : Reserved
[in] ulOption02 : Reserved
[out] Response :
iReturnValue :

  • 0: OK
  • -1: Means an system error occured (check errno in this case)
  • -2: Selection wrong
  • -3: Prescaller selection wrong
  • -4: Any generator in progress. Can not change this
  • -100 : Kernel function error

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

Returns:
  • 0: SOAP_OK
  • <> 0: See SOAP error