ZmSetSpeed


Function

Set 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#: ushort ]
Specify the measurement speed.

Definition

Value
[Dec]

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.

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.

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)

Initial Value

Speed = 0 : Speed FAST
AverageCount = 1

Remarks

Set the measurement speed and average count.
Measurement speed and average count can be set for each channel.

Example

For ChannelNo = 1, set the measurement speed to "1 : Speed ​​NORMAL" and set the average count to "1".

VB.NET

Dim Ret As Integer
Ret = ZmSetSpeed ( Id , 1 , 1 , 1 )
 

C, C++

long Ret;
Ret = ZmSetSpeed ( Id , 1 , 1 , 1 );
 

C#

int Ret;
Ret = zm.SetSpeed ( Id , 1 , 1 , 1 );
 

See Also

ZmGetSpeed