MATLAB SIMULINK FIXED POINT 6 Instrukcja Użytkownika Strona 8

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 16
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 7
■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
TargetLink Data Types Application Note September 2004
■■■■■■■■■■■■
8
■■■■■■■■■■■■■■■▼
In Simulink, both Constant block outputs and gains can have scaling
parameters. In TargetLink, they are scaled only if the associated
variable class (
output.class
or
gain.class
property) is not set to
default
. “
default
” means that in generated production code, the
variable (gain or
const
) will not be represented by a variable but
merged into operations.
If a Simulink Const or Gain is detected to be scaled, the Conversion
Tool selects a suitable variable class and writes it to the block. For this
purpose, the first dSPACE Data Dictionary variable class object which
complies with the following requirements is selected:
The property
Const
is
on
,
The property
Scope
is
Global
,
The property
Macro
is
off
,
The property
Storage
is
default
,
The property
Info
is
none
,
The property
Optimization
is
movable
or
erasable
.
Additionally, a message such as the following is output:
To enable setting of scaling parameters, the gain.class
property was set to Const.
Reconversion to Simulink
Simulink fixed-point settings which applied before a subsystem was
converted to TargetLink ought to be restored by the reconversion
process. However, there are some differences between TargetLink and
Simulink which make it difficult to unambiguously map TargetLink
scaling parameters to Simulink scaling parameters:
Various TargetLink scaling parameter sets (that is, data type, LSB
and offset values) can be mapped to different Simulink parameter
sets. For example, TargetLink’s UInt16, LSB = 2^0, Offset = 0 can
be mapped either to Simulink ufix(16), [Slope Bias] = [2^0 0], or to
uint16. There are many cases where mapping is similarly
ambiguous.
Przeglądanie stron 7
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

Komentarze do niniejszej Instrukcji

Brak uwag