ZmGetFrequency


Function

Get the measurement frequency.

Format

Ret = ZmGetFrequency ( 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#: out ushort ]
Specify the variable address for storing the measurement frequency.

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

1 : 1[kHz]

Remarks

Get the measurement frequency.
The measurement frequency is gotten for each channel.

Example

Get the measurement frequency set to ChannelNo = 1.

VB.NET

Dim Ret As Integer
Dim Frequency As UShort
Ret = ZmGetFrequency ( Id , 1 , Frequency )
 

C, C++

long Ret;
unsigned short Frequency;
Ret = ZmGetFrequency ( Id , 1 , &Frequency );
 

C#

int Ret;
ushort Frequency;
Ret = zm.GetFrequency ( Id , 1 , out Frequency );
 

See Also

ZmSetFrequency