Generate code from a simulink model that calls a dll via C S-function

5 vues (au cours des 30 derniers jours)
Thomas Trefflich
Thomas Trefflich le 20 Mai 2016
Hello,
i have a dll that i need to call in simulink. Afterwards i want to generate Code from simulink for a real time application.
So far i wrote a S-Function in C to call the dll. In simulink i use the S-function block to call my S-function and in normal simulation mode it works just fine. On generating code i get an error due to Matlab cant open source file windows.h.
I checked the internet for a solution and found out that there is the problem that my S-function uses a windows compiler to call the dll but in code generation this compiler cant get used due to the Matlab compiler is generating the code. But there werent any solutions for that problem.
Anyone got a clue how to solve my issue?
Thanks

Réponses (0)

Catégories

En savoir plus sur Simulink Coder dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by