kernelv_get_channel_count()

Prototype

[ret, channel_count]

get_channel_count(vnck: ctypes.CDLL);

Description

Reads the number of configured channels of the CNC control.

An error code is returned if the function is called while the CNC kernel has not yet started.

Parameter

Name

Type

Meaning

vnck

ctypes.CDLL

Instance of the loaded KernelV DLL.

Return values

Name

Type

Meaning

ret

KERNELV_RETURN

Return value of the native integrated C function.

channel_count

int (unsigned)

Returns the number of configured channels.

KERNELV_RETURN

Symbol

Value

Meaning

RET_FINISHED

0

The function was executed without error.

ERR_CNC_NOT_INIT

-3

The simulation CNC kernel was not yet initialised.