ZmGetFrequency


Function

Get the measurement frequency.

Format

Ret = ZmGetFrequency ( Id , ChannelNo , Frequency )

Parameters

Id [ C, C++: short ] [ Python: ctypes.c_short ]
Specify the device ID retrieved from ZmInit.

ChannelNo [ C, C++ : unsigned short ] [ Python: ctypes.c_ushort ]
Specify the channel number.

Frequency [ C, C++ : unsigned short * ] [ Python: ctypes.POINTER(ctypes.c_ushort) ]
Specify the variable address for storing the measurement frequency.

Return Value

Ret [ C, C++: long ] [ Python: ctypes.c_long ]

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: 120[Hz]

Remarks

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

Example

Get the measurement frequency set to ChannelNo = 1.

C, C++

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

Python

Ret = ctypes.c_long()

Frequency = ctypes.c_ushort()

Ret.value = czm.ZmGetFrequency ( Id , 1 , ctypes.byref(Frequency) )
 

See Also

ZmSetFrequency