|
Initialise the selected Sine/Cosine channel.
- Parameters:
-
[in] | ulChannel | Channel selection (0 to MSXExxxx__SinCosGetNumberOfChannels - 1) |
[in] | dSignalPeriod | Signal period (Unit/period) |
[in] | ulResolution | Resolution to use for the measure (steps/period)
Maximum input frequency corresponding to the parameter ulResolution:
+------------+----------------+
| Resolution | Max. Freq. Hz. |
+------------+----------------+
| 16 | 250000 |
+------------+----------------+
| 32 | 162500 |
+------------+----------------+
| 40 | 16300 |
+------------+----------------+
| 64 | 81300 |
+------------+----------------+
| 80 | 16300 |
+------------+----------------+
| 100 | 26000 |
+------------+----------------+
| 128 | 40600 |
+------------+----------------+
| 160 | 16300 |
+------------+----------------+
| 200 | 26000 |
+------------+----------------+
| 256 | 20300 |
+------------+----------------+
| 320 | 16300 |
+------------+----------------+
| 400 | 13000 |
+------------+----------------+
| 500 | 10400 |
+------------+----------------+
| 512 | 10200 |
+------------+----------------+
| 800 | 6500 |
+------------+----------------+
| 1000 | 5200 |
+------------+----------------+
| 1024 | 5100 |
+------------+----------------+
| 1600 | 3300 |
+------------+----------------+
| 2000 | 2600 |
+------------+----------------+
| 2048 | 2540 |
+------------+----------------+
| 4096 | 1270 |
+------------+----------------+
| 8192 | 635 |
+------------+----------------+
* |
[in] | ulOption01 | Reserved. Set it to 0 |
[in] | ulOption02 | Reserved. Set it to 0 |
[in] | ulOption03 | Reserved. Set it to 0 |
[in] | ulOption04 | Reserved. Set it to 0 |
[out] | Response | Response of the system
-
sResponse
-
iReturnValue Function return code
-
0: The remote function performed OK
-
-1: System error occurred
-
-2: The PLD is not working
-
-3: The ulChannel parameter is wrong
-
-4: The current status is not correct. The selected Sine/Cosine channel has already been initialised. Please call the MSXExxxx__SinCosRelease and retry
-
-5: The dSignalPeriod parameter is wrong
-
-6: The ulResolution parameter is wrong
-
-7: Gain calibration error occurred. Please check the connection with the sensor
-
-21: Timeout while initialising the Sine/Cosine sensor. Please check the connection with the sensor
-
-100: Internal system error occurred. See value of syserrno
-
syserrno System error code (the value of the libc "errno" code)
-
ulMaxInputFrequency Return the maximal input frequency that can be used (in Hz).
|
- Return values:
-
| 0 | SOAP_OK |
| Others | See SOAP error |
|