ZmGetSpeed


Function

Get the measurement speed and average count.

Format

Ret = ZmSetSpeed ( Id , ChannelNo , Speed , AverageCount )

Parameters

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#: out ushort ]
Specify the variable address for storing the measurement speed.

AverageCount [ VB.NET: UInteger ] [ C, C++: unsigned long ] [ C#: uint ]
Specify the variable address for storing the average count.

Return Value

Ret [ VB.NET: Integer ] [ C, C++: long ] [ C#: int ]

Definition

Value
[Dec]

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)

Initial Value

None

Remarks

Get the measurement speed and average count.
Measurement speed and average count is gotten for each channel.

Example

Get the measurement speed and average count for ChannelNo = 1.

VB.NET

Dim Ret As Integer

Dim Speed As UShort
Dim AverageCount As UInteger
Ret = ZmGetSpeed ( Id , 1 , Speed , AverageCount )
 

C, C++

long Ret;

unsigned short Speed;
unsigned long AverageCount;
Ret = ZmGetSpeed ( Id , 1 , &Speed , &AverageCount );
 

C#

int Ret;
ushort Speed;
uint AverageCount;
Ret = zm.GetSpeed ( Id , 1 , out Speed , out AverageCount );
 

See Also

ZmSetSpeed