Real Time Workshop and building models with autocoding from the terminal window instead of MATLAB enviroment
Ältere Kommentare anzeigen
I am looking for a way to generate autocode in MatLab using the realtime workshop to build models using the terminal window, just like you can with MatrixX 6.
Is there a command to just get MatLab to create a build using RTW from the terminal or even through MatLab itself instead of having to press the button yourself and do everything manually?
I would like to get the autocoded files generated and copied over to a UNIX machine from the Windows machine that the MATLAB program is in, all through a script.
Ideally, the entire process should be able to be ran using a PERL Script.
Antworten (2)
Titus Edelhofer
am 13 Aug. 2012
Hi Jenniffer,
I think you are looking for the command
rtwbuild
You can invoke MATLAB as a batch process from the operating system via
matlab -r "rtwbuild yourmodel"
assuming that the model is on the path ...
Titus
Kaustubha Govind
am 13 Aug. 2012
The command in MATLAB to use is RTWBUILD. You can of course write a MATLAB script/function to perform this and any other commands and call it from the System shell using:
$ matlab -r "statement"
Kategorien
Mehr zu Deployment, Integration, and Supported Hardware finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!