ZmGetRange


Function

Get the measurement range.

Format

Ret = ZmGetRange ( Id , ChannelNo , Range )

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.

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

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

3 : 4nF

Remarks

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

Example

Get the measurement range for ChannelNo = 1.

C, C++

long Ret;

unsigned short Range;
Ret = ZmGetRange ( Id , 1 , &Range );
 

Python

Ret = ctypes.c_long()

Range = ctypes.c_ushort()

Ret.value = czm.ZmGetRange ( Id , 1 , ctypes.byref(Range) )
 

See Also

ZmSetRange