User`s guide
Table Of Contents
- Getting Started
- Using the IQmath Library
- Block Reference
- Blocks — Alphabetical List
- Absolute IQN
- Arctangent IQN
- C24x ADC
- C24x CAN Receive
- C24x CAN Transmit
- C24x From Memory
- C24x PWM
- C24x To Memory
- C28x ADC
- C28x eCAN Receive
- C28x eCAN Transmit
- C28x From Memory
- C28x PWM
- C28x To Memory
- Division IQN
- F2812 eZdsp
- Float to IQN
- Fractional part IQN
- Fractional part IQN x int32
- Integer part IQN
- Integer part IQN x int32
- IQN to Float
- IQN x int32
- IQN x IQN
- IQN1 to IQN2
- IQN1 x IQN2
- LF2407 eZdsp
- Magnitude IQN
- Saturate IQN
- Square Root IQN
- Trig Fcn IQN
- Index

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