How to add libraries to RTW Custom Files?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
In Simulink "Configuration Parameters" window, under "Real Time Workshop\Custom Code" then "Include list of additional", one can add "Libraries" besides .c and .h source files.
What I intend to do is: use CodeWarior to build a library "driver.lib" to package the board-level drivers and add it here. Therefore I can use those driver functions such as Setup_Interrupts() in a transition within a stateflow chart.
I did a test with only one driver function and a chart with one transition, but I got an error saying unresolved function Setup_Interrupts(), i.e. driver.lib could not be recognized.
If I added Setup_Interrupts() as source files, model simulation succeeded. But my intention is to add a library.
I could not find any support in Matlab Help. Please give me some advice. Thanks!
2 commentaires
Kaustubha Govind
le 19 Oct 2011
Is your MATLAB 32-bit or 64-bit? Make sure your .lib file is also of the same type.
Réponses (0)
Voir également
Catégories
En savoir plus sur Simulink Coder dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!