MATLAB SIMULINK FIXED POINT 6 Manuale Utente Pagina 10

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 16
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 9
■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
TargetLink Data Types Application Note September 2004
■■■■■■■■■■■■
10
■■■■■■■■■■■■■■■▼
Simulink TargetLink Results
Saved Simulink data
type was
int8
,
int16
,
int32
,
uint8
,
uint16
,
uint32
,
single
,
double
, or
boolean
.
TargetLink data type is
Int8, Int16,
Int32, UInt8, UInt16,
UInt32,.Float32, Float64, Boolean
or a user-defined type whose base
type is one of these types.
The Simulink data type is
written to the block. The
TargetLink LSB and offset are
not used.
Saved Simulink data
type was specified with
an
sfix
function call, or
an
uint
,
sint
,
ufrac
or
sfrac
function call and
[LSB offset] is not [2
0
0]
or [2
-wordwidth
0],
respectively.
TargetLink data type is
Int8, Int16,
Int32, UInt8, UInt16,
UInt32,.Float32, Float64, Boolean
or a user-defined type.
Int8 -> sfix(8)
Int16 -> sfix(16)
Int32 -> sfix(32)
UInt8 -> ufix(8)
UInt16 -> ufix(16)
UInt32 -> ufix(32)
Float32 -> float(‘single’)
Float64 -> float(‘double’)
[LSB offset] -> [Slope Bias]
If the LSB or offset is different
across vector, the first values are
written and a warning is issued.
Saved Simulink data
type was specified with
an
uint
or
sint
function call, and [LSB
offset] is [2
0
0].
TargetLink data type is
Int8, Int16,
Int32, UInt8, UInt16, UInt32
or a
user-defined type with integer base
type.
Int8 -> sint(8)
Int16 -> sint(16)
Int32 -> sint(32)
UInt8 -> uint(8)
UInt16 -> uint(16)
UInt32 -> uint(32)
Saved Simulink data
type was specified with
an
ufrac
or
sfrac
function call, and [LSB
offset] is [2
-wordwidth
0].
TargetLink data type is
Int8, Int16,
Int32, UInt8, UInt16, UInt32
or a
user-defined type with integer base
type.
Int8 -> sfrac(8)
Int16 -> sfrac(16)
Int32 -> sfrac(32)
UInt8 -> ufrac(8)
UInt16 -> ufrac(16)
UInt32 -> ufrac(32)
SaturateOnIntegerOver
flow
output.checkmin
and
output.cheeckmax
If Simulink type is integer:
SaturateOnIntegerOverflow
is
set to the value of
output.checkmin
if
output.checkmin ==
output.checkmax
. Otherwise, a
warning is issued.
Vedere la pagina 9
1 2 ... 5 6 7 8 9 10 11 12 13 14 15 16

Commenti su questo manuale

Nessun commento