CntGetMaxChannels


Function

Retrieves the total number of channels of device.

Format

Ret = CntGetMaxChannels ( Id , ChannelNum )

Parameters

Id [ C: short ] [ Python: ctypes.c_short ]
Specifies the device ID retrieved from CntInit.

ChannelNum [ C: short * ] [ Python: ctypes.POINTER(ctypes.c_short) ]
Specifies the address of variable which stores the number of channels.

Return Value

Ret [ C: long ] [ Python: ctypes.c_long ]

Definition

Value

Description

CNT_ERR_SUCCESS

0

Normal Complete

CNT_ERR_DLL_INVALID_ID

10001

Invalid ID is specified.

CNT_ERR_DLL_CALL_DRIVER

10002

Driver cannot be called (failed in ioctl).

CNT_ERR_DLL_BUFF_ADDRESS

10101

Invalid data buffer address.

The other errors: (See also: Details of Error Code)

Initial Value

None

Remarks

Retrieves the total number of channels for device.

Example

C

Ret = CntGetMaxChannels(Id, &ChannelNum);
 

Python

Ret = ccnt.CntGetMaxChannels(Id, ctypes.byref(ChannelNum))
 

See Also

None