ExternalMathFunction

This block can be used to call an external function provided by a dynamic library (a .dll or .so file). The arguments of the C function are passed by value and the unique output of the function is returned.

    ExternalMathFunction

Library

Activate/CustomBlocks

Parameters

ExternalMathFunction_0

NameLabelDescriptionData TypeValid Values

dll

dll path without extension

String

func

function name

String

nin

Number of input ports

Number

itypes

Input arg types

Vector of integers 1,3-8. Scalar used if all inputs have same type.

Vector

otype

Output arg type

an integer 1,3-8.

Scalar

externalActivation

External activation

Number

0
1

Ports

NameTypeDescriptionIO TypeNumber

Port 1

explicit

input

nin

Port 2

explicit

output

1

Port 3

activation

input

externalActivation