# kernelv_ch_set_cont_visu_abs_curvature_error()

## Prototype

KERNELV_RETURN | kernelv_ch_set_cont_visu_abs_curvature_error (unsigned long int chanIndex, unsigned long int rel_error);

## Description

Sets the absolute curvature error of the command contour visualisation for curved contours (circle segments and polynomials).

The absolute curvature error indicates the permitted secant error for tracing the curved contour.

The effective secant error to trace a contour element is determined by the minimum value between the absolute and relative secant errors.

## Parameter

Name | Type | Meaning
chanIndex | unsigned long | Channel index of the channel from which the variable is to be read.
rel_error | unsigned long | Relative curvature error in 0.1%

## 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_CNC_NOT_INIT | -3 | The simulation CNC kernel was not yet initialised.