User`s guide

8 Targeting Tornado for Real-Time Applications
8-18
MATLAB MAT-file — to enable data logging during program execution,
check
MAT-file logging. The program will create a file named MODEL.mat at
the end of program execution; this file will contain the variables that you
specified in the Solver page of the
Simulation Parameters dialog box. By
default, the MAT-file is created in the root directory of the current default
device in VxWorks. This is typically the host file system that VxWorks was
booted from. Other remote file systems can be used as a destination for the
MAT-file using rsh or ftp network devices or NFS. See the VxWorks
Programmer’s Guide for more information. If a device or filename other than
the default is desired, add
"-DSAVEFILE=filename" to the OPTS flag to the
make command. For example,
make_rtw OPTS="-DSAVEFILE=filename"
Additional options are available on the Code Generation Options dialog
box. To see descriptions of them, place your mouse over any field name. An
online help description of the selected option will appear on your screen.
Initiating the Build
Click on the Build button in the Real-Time Workshop page of the Simulation
parameters
dialog to build the program. The resulting object file is named
with the
.lo extension (which stands for loadable object”). This file has been
compiled for the target processor using the cross compiler specified in the
makefile. If automatic downloading (
Download to VxWorks target) is enabled
in the
Code Generation Options dialog box, the target server is started and
theobjectfileisdownloadedandstartedonthetarget.If
StethoScope was
checkedonthe
Code Generation Options dialog box, you can now start
StethoScope on the host. The StethoScope object files,
libxdr.so,
libutilstssip.so,andlibscope.so, will be loaded on the VxWorks target by
the automatic download. See the StethoScope User’s Manual for more
information.