How to add libraries to RTW Custom Files?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Kaustubha Govind
el 19 de Oct. de 2011
Is your MATLAB 32-bit or 64-bit? Make sure your .lib file is also of the same type.
Respuestas (0)
Ver también
Categorías
Más información sobre Simulink Coder en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!