MATLAB EMBEDDED IDE LINK 4 - FOR USE WITH TEXAS INSTRUMENTS CODE COMPOSER STUDIO Podręcznik Użytkownika Strona 16

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 112
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 15
1 Getting Started
1-12
Setting Simulation Parameters
To set the simulation parameters manually, with your model open, select
Simulation Parameters from the Simulink option. From this dialog, click
Real-Time Workshop. You must specify the appropriate version of the system
target file and template makefile. For the Embedded Target for the TI
TMS320C2000™ DSP Platform, in the
Real-Time Workshop pane of the
dialog, specify
ti_C2000_grt.tlc
or, optionally, select
ti_C2000_ert.tlc
to select the correct target file or click Browse and select from the list of
targets. The associated template file name is automatically filled in.
A Generic Real-Time (GRT) target is the target configuration that generates
model code for a real-time system as if the resulting code was going to be
executed on your workstation. An Embedded Real-Time (ERT) target is the
target configuration that generates model code for execution on an
independent embedded real-time system. This option requires Real-Time
Workshop Embedded Coder.
You must also specify discrete time by selecting
Fixed-step and discrete (no
continuous states)
from the Solver panel of the Simulation Parameters
dialog. After you select
Fixed-step, select SingleTasking as the Mode
parameter. TI C2000 targets do not support multitasking.
When you drag a Target Preferences block into your model, you are given the
option to set basic simulation parameters automatically. Note that this option
does not appear if the
Simulation Parameters dialog is open when you drag
the Target Preferences block into the model.
Building Your Model
With this configuration, you can generate a real-time executable and download
it your TI development board by clicking Build on the
Real-Time Workshop
pane. Real-Time Workshop automatically generates C code and inserts the I/O
device drivers as specified by the hardware blocks in your block diagram, if
any. These device drivers are inserted in the generated C code as inlined
S-functions. For information about inlining S-functions, refer to your target
Przeglądanie stron 15
1 2 ... 11 12 13 14 15 16 17 18 19 20 21 ... 111 112

Komentarze do niniejszej Instrukcji

Brak uwag