How can I save data in Simulink realtime model using coder.ceval() for fwrite?
2 ビュー (過去 30 日間)
古いコメントを表示
Hi all,
I am using a beaglebone platform interfaced with simulink for a real time application.
I have data from sensors and I want to store them on a .txt file (or better in a .mat file). I am using fwrite but it is not supported by code generator. I have seen that I can use coder.extrinsic but it does not work, or coder.ceval() but it does not write any file even if the system can compile.
Do you know how to use coder.ceval function?
0 件のコメント
回答 (1 件)
Akshat Dalal
2025 年 3 月 2 日
Hi
The following resource should be helpful: https://www.mathworks.com/matlabcentral/answers/80503-how-to-use-real-time-workshop-to-convert-the-matlab-functions-fread-and-fwrite-into-c-code
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Run-Time Parameters についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!