kernelv_ch_set_techno_func_duration()

Prototype

KERNELV_RETURN

kernelv_ch_set_techno_func_duration (unsigned long int chanIndex,
                                                  E_KERNELV_TECHNO_TYPE type,
                                                  unsigned long int number,
                                                  unsigned long int time_us);

Description

Sets the execution time for the transferred technology function.

The execution time must be specified in microseconds.

Parameter

Name

Type

Meaning

chanIndex

unsigned long int

Channel index.

type

E_KERNELV_TECHNO_TYPE

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

number

unsigned long int

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

time_us

unsigned long int

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.