Technical data
A Basic Example
3-5
The file, basic.tlc, is a TLC file that uses the .rtw code to generate text that
contains the model’s name, generation date, and its number of continuous
states.
Instead of using the Simulation Parameters dialog from Simulink’s
Simulation menu, you could perform the same functions directly from the
MATLAB prompt. To create
basic.rtw and execute basic.tlc from the
MATLAB prompt, enter:
rtwgen basic
tlc –r basic.rtw basic.tlc –v
The output of this process is:
As you continue through this chapter, you will learn the details of creating
target files.
%with CompiledModel
My model's name is: %<Name>
It was generated on: %<GeneratedOn>
And it has %<NumContStates> continuous states.
%endwith
basic.tlc
My model's name is: basic
It was generated on: Tue Mar 18 09:53:17 1997
And it has 0 continuous states.