Real Time Workshop and building models with autocoding from the terminal window instead of MATLAB enviroment
古いコメントを表示
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.
回答 (2 件)
Titus Edelhofer
2012 年 8 月 13 日
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
2012 年 8 月 13 日
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"
カテゴリ
ヘルプ センター および File Exchange で Deployment, Integration, and Supported Hardware についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!