Code covered by the BSD License  

Highlights from
Using RTW and Compiler

4.0

4.0 | 1 rating Rate this file 6 Downloads (last 30 days) File Size: 18.4 KB File ID: #2357

Using RTW and Compiler

by Tan Chin Luh

 

10 Sep 2002 (Updated 10 Sep 2002)

Stand alone application example using rapid simulation file.

| Watch this File

File Information
Description

This example shows how to create a rapid simulation target from a Simulink model using RTW, and then create a GUI, which is then compiled into stand alone application by MATLAB compiler to control the parameters tuning of the rapid simulation file. The generated application are able to run under the machine w/o MATLAB. (follow the intruction in "distributing stand alone application" in compiler manual)

Steps:
1) Build the Simulink model using RTW into rapid simulation target. (guide302model.mdl --> guide302model.exe)
2) The GUI already greated (guide302.m and .fig) use following command to compile the GUI
>>mcc -B sglcpp guide302.m
3) The exe file (together with other relevant files) now should be able to run by double clicking on the file in windows explorer. (or use bang operator in MATLAB)

Required Products MATLAB Compiler
Real-Time Workshop
Simulink
MATLAB release MATLAB 6.1 (R12.1)
Other requirements External C compiler (VC++)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
16 May 2007 Athanasios Doukas

I can not use your submission.
When I try to compile the .gif file
I get a response that
"??? Error: No source files were specified (-? for help)."

05 Aug 2008 Frank Graeber

If you are interested, I can make an update (R2008a) of the example available.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
gui tools Tan Chin Luh 22 Oct 2008 06:51:19
example Tan Chin Luh 22 Oct 2008 06:51:19
rapid simulation Tan Chin Luh 22 Oct 2008 06:51:19
gui Tan Chin Luh 22 Oct 2008 06:51:19
compiler Tan Chin Luh 22 Oct 2008 06:51:19
utilities Tan Chin Luh 22 Oct 2008 06:51:19

Contact us at files@mathworks.com