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.
Library
Activate/CustomBlocks
Parameters
Name | Label | Description | Data Type | Valid 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 |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
Port 1 | explicit | input | nin | |
Port 2 | explicit | output | 1 | |
Port 3 | activation | input | externalActivation |