ZmSetFrequency


Function

Set the measurement frequency.

Format

Ret = ZmSetFrequency ( Id , ChannelNo , Frequency )

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.

Frequency [ VB.NET: UShort ] [ C, C++: unsigned short ] [ C#: ushort ]
Specify the measurement frequency.

Definition

Value
[Dec]

Description

ZM_FREQUENCY_120_HZ

0

Frequency 120Hz

ZM_FREQUENCY_1_KILO_HZ

1

Frequency 1kHz

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_FREQUENCY

20101

Frequency is out of the settable range.

The others (See also: Details of Error Code)

Initial Value

1 : Frequency 1kHz

Remarks

Set the measurement frequency.
The measurement frequency can be set for each channel.

Example

Set the measurement frequency to "0 : Frequency 120Hz" for ChannelNo = 1.

VB.NET

Dim Ret As Integer
Ret = ZmSetFrequency ( Id , 1 , 0 )
 

C, C++

long Ret;
Ret = ZmSetFrequency ( Id , 1 , 0 );
 

C#

int Ret;
Ret = zm.SetFrequency ( Id , 1 , 0 );
 

See Also

ZmGetFrequency