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!