How to build an SFunction which uses an external data file?
1 view (last 30 days)
Show older comments
Hi,
I am currently working on real time and HIL simulations. I have a complicated model written in Fortran 90 which needs a bunch of data input files (*.dat) to run. I have already written a C MEX wrapper and successfully run my model in a Level-2 SFunction with normal simulation mode. Unfortunately, I don't know how to build and download data input files beside .obj and .lib files to target system with xPC Target.
I've seen in Real Time Workshop help documentation that I need to provide a global data map record which would be added to the "CompiledModel" structure in the model.rtw file. Is this the only way to tackle with this problem? Please help me.
0 Comments
Answers (0)
See Also
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!