Writing Hardware Drivers in Simulink -- Good Idea?
Ältere Kommentare anzeigen
Hey all, I was hoping to get some feedback on a design philosophy that may or may not be a good idea. For context, I'm an embedded software engineer who's new to Simulink but fairly experienced with writing hardware drivers in C/C++.
I've got a large new project at work (bare metal) that is taking a model based design approach and one engineer (very experienced with Simulink), is advocating strongly for writing the HW drivers in Simulink. I've messed around with embedded coder a little bit and see how that could be possible, but my question is: Is this a good idea?
The argument is that by doing everything in Simulink we can take full advantage of the analysis tools built into the product to increase our confidence level in the software correctness, which is actually a very important thing we need in this project. I like the idea of that, however I haven't seen many references elsewhere on the internet where this is done.
2 Kommentare
Lorenz
am 10 Apr. 2026 um 6:53
Hey @Brandon
we’re currently facing a very similar architectural decision in our company.
So far, our workflow has been based on generating C code from Simulink models and integrating it into a manually developed OS framework that also handles all hardware interfaces.
We are now considering a shift in architecture: moving hardware driver integration directly into Simulink to achieve a more unified, model-based workflow.
I’d be very interested to hear more about the path you chose:
- How did you integrate hardware drivers into Simulink (e.g., custom blocks, S-Functions, or other approaches)?
- What challenges or trade-offs did you encounter during the transition?
Any insights or lessons learned would be greatly appreciated.
Thanks in advance, and best regards,
Lorenz
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Simulink Coder finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!