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.

Answers (2)

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
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"

Products

Asked:

on 13 Aug 2012

Community Treasure Hunt

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

Start Hunting!