Hi to everybody,
I'm trying to develop a Simulink library for interfacing teensy to Simulink coder hoping to obtain a simple interface for building general purpose real time controllers.
The simplest way for achieving the scope is s-function block, in which the code is written in Arduino-like way. The Simulink model is compiled in c++ and than flashed with the Arduino IDE.
The most cool thing is that it works!!! Of course you need a little bit of manipulation (like attaching the generated main function to a periodic interrupt according to the control timestep).

The implementation of all the functions and libraries is limitless and there is a very little effort in doing this, except one: external interrupt routines.
Do you know and method to implement ISR through Simulink? Some sort of asynchronous task which is executed with higher priority independently from the model execution. I'm not focused on how to deal with asynchronous tasks in Simulink (Arduino target code is crypted).
Of course the library and the methodology will be shared with the community.
Thank you!
I'm trying to develop a Simulink library for interfacing teensy to Simulink coder hoping to obtain a simple interface for building general purpose real time controllers.
The simplest way for achieving the scope is s-function block, in which the code is written in Arduino-like way. The Simulink model is compiled in c++ and than flashed with the Arduino IDE.
The most cool thing is that it works!!! Of course you need a little bit of manipulation (like attaching the generated main function to a periodic interrupt according to the control timestep).

The implementation of all the functions and libraries is limitless and there is a very little effort in doing this, except one: external interrupt routines.
Do you know and method to implement ISR through Simulink? Some sort of asynchronous task which is executed with higher priority independently from the model execution. I'm not focused on how to deal with asynchronous tasks in Simulink (Arduino target code is crypted).
Of course the library and the methodology will be shared with the community.
Thank you!
