Clear Filters
Clear Filters

How to implement simulink model in matlab coder

1 view (last 30 days)
Hi everyone, I have this very simple model that I compile by using Simulink coder and ert_shrlib.tlc as System target file. Moreover, I have a script in Matlab where I read an Excel file to import the two inputs that I set by using the timeseries function and the option "Data Import/Export-Load from Workspace-Input" inside the Simulink model. My goal is to have an executable created by Matlab coder that englobes the model and that requires the Excel input file and that returns another Excel file with output (result of the sum). In this case, by using ert_shrlib.tlc as System target file, I have a dll library that I can load inside the Matlab script using coder.loadlibrary. Then, I have problems when I try to use Matlab coder. It does not support xlsread, xlswrite, timeseries and coder.loadlibrary. Somebody knows how to solve this problem?

Answers (0)

Community Treasure Hunt

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

Start Hunting!