Load a .dll file in Simulink
25 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hi everyone,
Like mention the title I would like to know if is it possible to load a .dll file in Simulink (with a S-function for example). I'm a beginner at Simulink so please be as specific as you can.
Best regards
Vithuran
0 Commenti
Risposte (1)
Kaustubha Govind
il 30 Set 2013
Modificato: Kaustubha Govind
il 30 Set 2013
Yes, this should be possible. I would recommend that you first achieve the interface using plain MATLAB code. For help, see Calling Functions in Shared Libraries. Once you have written the MATLAB code to call into your DLL, you can then place the same code in a Level-2 MATLAB S-function to create a Simulink block for it.
2 Commenti
Kaustubha Govind
il 1 Ott 2013
Not sure, but I think people usually rig up their own header file with the function declarations of the functions exported from the DLL (please feel free to create a new question for this). Alternatively, you might be able to use C code to call into the library.
Vedere anche
Categorie
Scopri di più su Simulink Coder in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!