kernelv_ch_get_techno_data2()
Prototype
[ret, techno_data2, return_length] | ch_get_techno_data2(vnck: ctypes.CDLL, chan_index: int); |
Description
Returns the technology functions (M/H functions) acknowledged for the specified channel during the last call of kernelv_do_cycle().
Parameter
Name | Type | Meaning |
vnck | ctypes.CDLL | Instance of the loaded KernelV DLL. |
chan_index | int (unsigned) | Channel index. |
Return values
Name | Type | Meaning |
ret | KERNELV_RETURN (int) | Return value of the native integrated C function. |
techno_data2 | Array[KERNELV_TECHNO_DATA2] | Technology functions (M/H functions) acknowledged for the specified channel. |
return_length | int (unsigned) | Number of actually returned bytes. |
KERNELV_RETURN
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 returnLength parameter. |