kernelv_ch_set_techno_func_duration()

Prototype

KERNELV_RETURN

SetTechnoFuncDuration(uint chanIndex, KERNELV_TECHNO_TYPE type, uint number, uint timeUs);

Description

Sets the execution time for the transferred technology function.

The execution time must be specified in microseconds.

Parameter

Name

Type

Meaning

chanIndex

uint

Channel index.

type

E_KERNELV_TECHNO_TYPE

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

number

uint

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

time_us

uint

Execution time in µs.

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.