Filter löschen
Filter löschen

Convert Simulink model to DLL (with input from spreadsheet)

3 Ansichten (letzte 30 Tage)
Lennart Vogt
Lennart Vogt am 1 Feb. 2023
Beantwortet: Suman am 16 Feb. 2023
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.

Antworten (1)

Suman
Suman am 16 Feb. 2023
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

Kategorien

Mehr zu Deployment, Integration, and Supported Hardware finden Sie in Help Center und File Exchange

Produkte


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by