Get the measurement speed and average count.
Ret = ZmGetSpeed ( Id , ChannelNo , Speed , AverageCount )
Id
[ C, C++: short ] [ Python: ctypes.c_short ]
Specify the device ID retrieved from ZmInit.
ChannelNo
[ C, C++ : unsigned short ] [ Python: ctypes.c_ushort ]
Specify the channel number.
Speed [
C, C++ : unsigned short * ] [ Python: ctypes.POINTER(ctypes.c_ushort)
]
Specify the variable address for storing the measurement speed.
AverageCount
[ C, C++ : unsigned long * ] [ Python: ctypes.POINTER(ctypes.c_ulong)
]
Specify the variable address for storing the average count.
Ret [ C, C++: long ] [ Python: ctypes.c_long ]
Definition |
Value |
Description |
ZM_ERR_SUCCESS |
0 |
Normality completion |
ZM_ERR_SYS_CHANNEL_NO |
20100 |
Channel No is out of the settable range. |
The others (See also: Details of Error Code)
None
Get the measurement speed and average count.
Measurement speed and average count is gotten for each channel.
Get the measurement speed and average count for ChannelNo = 1.
C, C++ |
long Ret; unsigned short Speed; |
Python |
Ret = ctypes.c_long() Speed = ctypes.c_ushort() Ret.value = czm.ZmGetSpeed ( Id , 1 , ctypes.byref(Speed) , ctypes.byref(AverageCount) ) |