kernelv_ch_set_techno_func_duration()

Prototype

KERNELV_RETURN (int)

set_techno_func_duration(vnck: ctypes.CDLL,

chan_index: int,

techno_type: int,

techno_number: int,

time_us: int);

Description

Sets the execution time for the transferred technology function.

The execution time must be specified in microseconds.

Parameter

Name

Type

Meaning

vnck

ctypes.CDLL

Instance of the loaded KernelV DLL.

chan_index

int (unsigned)

Channel index.

techno_type

E_KERNELV_TECHNO_TYPE

Type of the technology function whose execution time is to be written.

techno_number

int (signed)

Number of the technology function whose execution time is to be written.

time_us

int (unsigned)

Execution time in us.

Return values

Symbol

Value

Meaning

RET_FINISHED

0

The function was executed without error.

ERR_INVALID_CHAN

-1

The transferred channel index is higher than the number of configured channels -1.

ERR_INTERNAL_ERROR

-11

An internal error has occurred in the DLL. The value could not be written.

ERR_INVALID_TECHNO_
PARAM

-16

An invalid parameter was transferred when the execution time was set for a technology function, e.g. transferred number of the M or H function is higher than the maximum permitted number.

ERR_UNKNOWN_TECHNO_TYPE

-15

An invalid type was specified for a technology function when the execution time was set.