ZmSetRange


Function

Set the measurement range.

Format

Ret = ZmSetRange ( Id , ChannelNo , Range )

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.

Range [ VB.NET: UShort ] [ C, C++: unsigned short ] [ 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 4uF

ZM_RANGE_40_MICRO_F

7

Range 40uF

ZM_RANGE_400_MICRO_F

8

Range 400uF

ZM_RANGE_1_4_MILLI_F

9

Range 1.4mF

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_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. ChannelNo = 1の測定レンジを「3:レンジ4nF」に設定します。

VB.NET

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

C, C++

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

C#

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

See Also

ZmGetRange