ZmSetRange


Function

Set the measurement range.

Format

Ret = ZmSetRange ( 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.c_ushort ]
Specify the measurement range.

Definition

Value
[Dec]

Description

ZM_RANGE_4_NANO_F

3

Range 4nF

ZM_RANGE_40_NANO_F

4

Range 40nF

ZM_RANGE_400_NANO_F

5

Range 400nF

ZM_RANGE_4_MICRO_F

6

Range 4µF

ZM_RANGE_40_MICRO_F

7

Range 40µF

ZM_RANGE_400_MICRO_F

8

Range 400µF

ZM_RANGE_1_4_MILLI_F

9

Range 1.4mF

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.

ZM_ERR_SYS_RANGE

20106

Range is out of the settable range.

The others (See also: Details of Error Code)

Initial Value

3 : Range 4nF

Remarks

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

Example

Set the measurement range to "3 : Range 4nF" for ChannelNo = 1.

C, C++

long Ret;
Ret = ZmSetRange ( Id , 1 , 3 );
 

Python

Ret = ctypes.c_long()
Ret.value = czm.ZmSetRange ( Id , 1 , 3 )
 

See Also

ZmGetRange