Convert Simulink model to DLL (with input from spreadsheet)
2 ビュー (過去 30 日間)
古いコメントを表示
Hi all,
I am trying to create a DLL from a Simulink model that reads in data from an Excel sheet. A minimum example of the model would look like this:
To convert the model into a DLL, I am using the Embedded Coder with the Shared Library Target according to various explanations found online. I was able to convert other models before, but now that I have included the "From Spreadsheet" block I am getting the following error:
Error encountered in block Model/From Spreadsheet
Caused by: From Spreadsheet block supports rapid simulation target and the following simulation modes: Normal, Accelerator, and Rapid Accelerator.
Has anyone faced this probem and found a workaround?
Thanks.
0 件のコメント
回答 (1 件)
Suman
2023 年 2 月 16 日
Hi Lennart,
As per my understanding, the "From Spreadsheet" block might not support code generation that involves building ERT or GRT targets, or using SIL or PIL simulation modes. So, in your case, ERT target (i.e., Embedded Coder) is not supported.
A possible workaround could be using "From Workplace" block after saving the spreadsheet content into a workspace variable. Please have a look at the following MATLAB documentation pages for reference:
I hope this information will be helpful to you.
Cheers,
Suman
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Deployment, Integration, and Supported Hardware についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!