ZmGetContactCheck


Function

Get the contact check function.

Format

Ret = ZmGetContactCheck ( Id , ChannelNo , ContactCheck )

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.

ContactCheck [ C, C++ : unsigned short * ] [ Python: ctypes.POINTER(ctypes.c_ushort) ]
Specify the variable address for storing the contact check setting.

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

0 : Check before measurement

Remarks

Get the contact check.
Contact check is gotten for each channel.

For details about contact check, please refer to the glossary "Contact Check".

Example

Get the contact check setting for ChannelNo = 1.

C, C++

long Ret;

unsigned short ContactCheck;
Ret = ZmGetContactCheck ( Id , 1 , &ContactCheck );
 

Python

Ret = ctypes.c_long()

ContactCheck = ctypes.c_ushort()

Ret.value = czm.ZmGetContactCheck ( Id , 1 , ctypes.byref(ContactCheck) )

 

See Also

ZmSetContactCheck