ZmSetContactCheck


Function

Set the contact check function.

Format

Ret = ZmSetContactCheck ( Id , ChannelNo , ContactCheck )

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.

ContactCheck [ VB.NET: UShort ] [ C, C++: unsigned short ] [ C#: ushort ]
Specify the contact check function.

Definition

Value
[Dec]

Description

ZM_CONTACTCHECK_DISABLE

0

Contact check disabled

ZM_CONTACTCHECK_BEFORE

1

Contact check before measurement

ZM_CONTACTCHECK_AFTER

2

Contact check after measurement

ZM_CONTACTCHECK_BOTH

3

Contact check before and after measurement

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_CONTACTCHECK

20115

ContactCheck is out of the settable range.

The others (See also: Details of Error Code)

Initial Value

0 : Contact check disabled

Remarks

Set the contact check.
Contact check is set for each channel.

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

Example

Set ChannelNo = 1 to "1 : Contact check before measurement".

VB.NET

Dim Ret As Integer
Ret = ZmSetContactCheck ( Id , 1 , 1 )
 

C, C++

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

C#

int Ret;
Ret = zm.SetContactCheck ( Id , 1 , 1 );
 

See Also

ZmGetContactCheck