VxWorks libmat and libmx source code

8 views (last 30 days)
Mohammed Kagalwala
Mohammed Kagalwala on 10 Apr 2025
Answered: Walter Roberson on 12 Apr 2025
I have sucessfully compiled my Simulink code to C++, however I am getting build issues when building my code on VxWorks. My Simulink code reads in a .mat file, thus requires additional libmat and libmx libraries. The Windows versions of these libraries, do not seem to solve the issue.
Are there specific VxWorks versions of these 2 libraries? Do I need the source code to compile these libraries myself?

Answers (2)

Walter Roberson
Walter Roberson on 12 Apr 2025

Mark McBroom
Mark McBroom on 12 Apr 2025
MathWorks does not provide the source files for libmat and libmx. One workaround would be to save your data in a text file rather than a .mat file and then replace the block for reading from .mat file with a MATLAB Function block that uses fopen, fread, fclose to read data from text file.

Products


Release

R2022a

Community Treasure Hunt

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

Start Hunting!