Overriding 'result' port type in KL2DFG preset

Gustavo BoehsGustavo Boehs Posts: 63 ✭✭
edited January 28 in KL Programming

Hello guys, I'm trying to create a preset (using KL2DFG) that will support different data types. If the data is IO, or even if a create a custom output port that is easy, I use \dfgPresetType port $TYPE$.
What about if I want to use the 'result' port that is generated automatically from the output specified in the KL function? I have tried this with no success:

/// \dfgPresetType input $TYPE$
/// \dfgPresetType result $TYPE$
function Scalar[] myFunc(in Scalar input[]){
return input;

Is this at all possible?
Best regards,


Best Answer


Sign In or Register to comment.