I'm developing a system control in simulink and I'd like to run this model on embedded board. So, I'd like to link the inputs and outputs of model with specific functions (written by hand and outside of the model).
For understanding: I have an input that is an array of 8 elements. The pointer of this array is returned by a function called adc.readAllValues().
How can interface simulink with my external code?