Implementing and Handling Applications
▲
■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
DS1104 Hardware Installation and Configuration March 2004
I■■■■■■■■■■■■■
▼
60
■■■■■■■■■■■■■■■▼
How to Generate the Required Files
Three application-specific files are required when working with
ControlDesk:
TRC and MAP file The file with the extension TRC provides information on the available
variables and how they are grouped. The MAP file, which is always
created at the end of compilation, maps symbolic names to physical
addresses. It is generated by the Microtec PowerPC compiler. The way
TRC files are generated depends on the method used for
implementation – either via RTI/Simulink or via handcoding in C.
SDF file The system description (SDF) file specifies which executable is
downloaded onto which processor. The way the SDF file is generated
depends on the method used for implementation.
T
When you load an SDF file to your system, the executable and all files
related to the experiment are loaded automatically.
Using RTI and Simulink
RTI automatically generates the SDF file, the TRC file(s) and the
MAP file when generating and compiling the code.
C-Coded Models
In
smd_1104_hc.c
, services have been included to make the application
accessible to ControlDesk. The application-specific SDF and TRC file for
ControlDesk must be created manually. You can use an existing file,
such as
smd_1104_hc.trc
, as a template to create the TRC file for your
application.
For information on how to write your own TRC file, refer to Syntax of
the TRC File in the ControlDesk Reference. To create and edit an SDF
file, you can use ControlDesk’s SDF File Editor or the Save Current
Configuration command.