Effacer les filtres
Effacer les filtres

Convert Simulink model to DLL (with input from spreadsheet)

3 vues (au cours des 30 derniers jours)
Lennart Vogt
Lennart Vogt le 1 Fév 2023
Réponse apportée : Suman le 16 Fév 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.

Réponses (1)

Suman
Suman le 16 Fév 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

Catégories

En savoir plus sur Deployment, Integration, and Supported Hardware dans Help Center et File Exchange

Produits


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by