|
For each latch the data server send a 5 DWORD frame with following informations:
DWORD 0 : Time stamp micro s
DWORD 1 : Time stamp s
DWORD 2 : Counter index
D1-D0 : Sub module index (0 to 3)
D31-D16 : Sub module functionality (0)
DWORD 3 : Event mask
0: Compare
1: Frequency measurement
2: Hardware trigger latch occur
3: Synchro input latch occur
4: Counter index
DWORD 4 :
D31-D0: Counter value (DWORD)
- Parameters:
-
[in] | ulMFModuleIndex | : index of the multifunction sub module (0 to 3).
|
[in] | ulTimingInterval | : Timing interval from 1 to 0xFFFF, one step correspond to 100 ns.
- 1: time interval = 100 ns
- 2: time interval = 200 ns
- ...
|
[in] | ulOption01 | : Set the measurement mode
- 0: One shot, the frequency measure is done at each call of this function
- 1: Triggered mode, this function has to be called only once (to initialize the measure). The synchro trigger is used to trigger the measure. The synchro trigger cycle time should be > frequency time interval
|
[in] | ulOption02 | : Timebase selection
|
[out] | Response | :
iReturnValue :
- 0: means the remote function performed OK
- -1: means an system error occured
- -2: Multifunction sub module index selection error
- -3: Timing interval selection error
- -4: Multifunction sub module is not a incremental counter
- -5: Incremental counter not initialised
- -6: Frequency measurement already initialised and started
- -7: Frequency measurement ulOption01 parameter wrong value
- -8: Frequency measurement ulOption02 parameter wrong value
- -100: Init and enable counter Frequency measurement kernel function error
syserrno : system-error code (the value of the libc "errno" code) |
- Returns:
- 0: SOAP_OK
- <> 0: See SOAP error
|