Set the measurement speed and average count.
Ret = ZmSetSpeed ( Id , ChannelNo , Speed , AverageCount )
Id
[ VB.NET: Short ] [ C, C++: short ] [ C#: short ]
Specify the device ID retrieved from ZmInit.
ChannelNo
[ VB.NET: UShort ] [ C, C++: unsigned short ] [ C#: ushort ]
Specify the channel number.
Speed [
VB.NET: UShort ] [ C, C++: unsigned short ] [ C#: ushort ]
Specify the measurement speed.
Definition |
Value |
Description |
ZM_SPEED_FAST |
0 |
Speed FAST |
ZM_SPEED_NORMAL |
1 |
Speed NORMAL |
ZM_SPEED_SLOW |
2 |
Speed SLOW |
AverageCount
[ VB.NET: UInteger ] [ C, C++: unsigned long ] [ C#: uint ]
Specify the average count.
The setting range is 1 to 512.
Ret [ VB.NET: Integer ] [ C, C++: long ] [ C#: int ]
Definition |
Value |
Description |
ZM_ERR_SUCCESS |
0 |
Normality completion |
ZM_ERR_SYS_CHANNEL_NO |
20100 |
Channel No is out of the settable range. |
ZM_ERR_SYS_SPEED |
20103 |
Speed is out of the settable range. |
ZM_ERR_SYS_AVERAGE_COUNT |
20104 |
AverageCount is out of the settable range. |
The others (See also: Details of Error Code)
Speed = 0 : Speed FAST
AverageCount = 1
Set the measurement speed and average count.
Measurement speed and average count can be set for each channel.
For ChannelNo = 1, set the measurement speed to "1 : Speed NORMAL" and set the average count to "1".
VB.NET |
Dim Ret As Integer |
C, C++ |
long Ret; |
C# |
int Ret; |