ZmSetLevel


Function

Set the measurement signal level.

Format

Ret = ZmSetLevel ( Id , ChannelNo , Level )

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.

Level [ C, C++ : unsigned short ] [ Python: ctypes.c_ushort ]
Specify the measurement signal level.

Definition

Value
[Dec]

Description

ZM_LEVEL_0_5_V

0

Level 500mV

ZM_LEVEL_1_V

1

Level 1V

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_LEVEL

20102

Level is out of the settable range.

The others (See also: Details of Error Code)

Initial Value

0 : Level 500mV

Remarks

Set the measurement signal level.
The measurement signal level can be set for each channel.

Example

Set the measurement signal level to "1 : Level 1V" for ChannelNo = 1.

C, C++

long Ret;
Ret = ZmSetLevel ( Id , 1 , 1 );
 

Python

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

See Also

ZmGetLevel