create Executable file from simulink model
6 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hi @ all,
I would like to ask you how I can build a model , using the Simulink Coder. I would like to call the so generated exe from a Matlab script.
I tried to performe this action in the following way :
I try to enables, in the configuration parameters mask, the load from workspace, but during the compilation the following warning appears: "Loading external input from the workspace is not supported for current code generation target".
I created the .exe file but it is not able to read data, through some input port, from the Matlab workspace.
In this case the target used for compiling is the generic real time (grt).
Some idea?
Thanks in advance
Mitch
1 Commento
Risposte (3)
Kaustubha Govind
il 15 Gen 2013
I think you might need to modify the generated code to accept the input from whatever source you need it to use.
0 Commenti
Walter Roberson
il 15 Gen 2013
When you generate an executable (rather than a mex) then it runs as an independent process and there is no connection to the MATLAB workspace (other than the command line options.)
0 Commenti
Mitch Martelli
il 15 Gen 2013
2 Commenti
Walter Roberson
il 15 Gen 2013
Generate mex instead of a standalone executable and call it from MATLAB.
Or else modify the generated code to retrieve values from the command line (I don't know anything about the structure of the generated code so I do not know how you would have to modify the blocks to do this.)
Vedere anche
Categorie
Scopri di più su Simulink Coder in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!