kernelv_ch_get_cont_visu_data()

Prototype

KERNELV_RETURN

ChGetContourVisuData(

uint chanIndex,

out byte[] data,

uint maxByteSize,

out uint retLength

);

Description

Reads the contour visualisation of a channel. The format of the returned data is set by the parameter P-STUP-00039. A structure of type CONTOUR_VISU is returned followed by structures of type COUNTOUR_VISU_DATA_V0 … _V8.

If the memory provided by the calling application is not sufficient to return the structure CONTOUR_VISU, ERR_CNC_RET_MEMORY is returned and the minimum size of the required memory area is returned in retLength.

Parameter

Name

Type

Meaning

chanIndex

uint

Channel index of the channel from which the variable is to be read.

Data

out byte[]

Returns the return values.

maxByteSize

uint

Size of the return memory.

retLength

out uint

Number of bytes returned in pData.

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.

ERR_CNC_RET_MEMORY

-4

The return value(s) does/do not fit into the memory provided. The number of bytes required is returned in the returnSize parameter.