You are on page 1of 51

SDD_lookup.

slx
Design Description
The MathWorks, Inc.

SDD_lookup.slx

SDD_lookup.slx: Design Description


The MathWorks, Inc.

Publication date 13-Aug-2015 03:58:18


Copyright 2015
For Internal Distribution Only

Table of Contents
1. Model Version ................................................................................................................ 1
2. Root System ................................................................................................................... 2
Description ................................................................................................................. 2
Blocks ....................................................................................................................... 2
Parameters ......................................................................................................... 2
Block Execution Order ....................................................................................... 16
3. Subsystems ................................................................................................................... 18
Increment Real World ................................................................................................ 18
Blocks ............................................................................................................. 18
LimitedCounter ......................................................................................................... 21
Blocks ............................................................................................................. 21
Repeating Sequence Stair3 .......................................................................................... 23
Blocks ............................................................................................................. 23
Wrap To Zero ........................................................................................................... 26
Blocks ............................................................................................................. 26
4. System Design Variables ................................................................................................. 29
Design Variable Details .............................................................................................. 29
5. System Model Configuration ............................................................................................ 31

iii

List of Figures
2.1. SDD_lookup ................................................................................................................. 2
2.2. Direct1 (Element output) ................................................................................................ 4
2.3. InterpPre ..................................................................................................................... 6
2.4. Lookup Table ............................................................................................................... 7
2.5. Lookup2d .................................................................................................................... 9
2.6. LookupNd .................................................................................................................. 11
2.7. Prelookup ................................................................................................................... 13
3.1. SDD_lookup/Repeating Sequence Stair3/LimitedCounter/Increment Real World ...................... 18
3.2. SDD_lookup/Repeating Sequence Stair3/LimitedCounter .................................................... 21
3.3. SDD_lookup/Repeating Sequence Stair3 .......................................................................... 23
3.4. SDD_lookup/Repeating Sequence Stair3/LimitedCounter/Wrap To Zero ................................ 26

iv

List of Tables
2.1. "Constant" Parameters .................................................................................................... 2
2.2. "Constant1" Parameters .................................................................................................. 3
2.3. "Direct1" Parameters ..................................................................................................... 3
2.4. Direct1 (Element output) (:,:) .......................................................................................... 4
2.5. "dyn" Parameters .......................................................................................................... 5
2.6. "InterpPre" Parameters ................................................................................................... 5
2.7. InterpPre (:,:) ................................................................................................................ 6
2.8. "Lookup Table" Parameters ............................................................................................ 7
2.9. Lookup Table ............................................................................................................... 7
2.10. "Lookup2d" Parameters ................................................................................................ 8
2.11. Lookup2d ................................................................................................................... 9
2.12. "LookupNd" Parameters ............................................................................................... 9
2.13. LookupNd (:,:) .......................................................................................................... 11
2.14. "Prelookup" Parameters .............................................................................................. 11
2.15. Prelookup (:,:) ........................................................................................................... 13
2.16. "Sine Wave1" Parameters ............................................................................................ 13
2.17. "Sine Wave2" Parameters ............................................................................................ 14
2.18. "Sine Wave3" Parameters ............................................................................................ 14
2.19. "Sine Wave4" Parameters ............................................................................................ 15
2.20. "Sine Wave5" Parameters ............................................................................................ 15
2.21. "Sine Wave6" Parameters ............................................................................................ 16
2.22. "Sine Wave7" Parameters ............................................................................................ 16
3.1. "FixPt Constant" Parameters .......................................................................................... 18
3.2. "FixPt Data Type Duplicate" Parameters .......................................................................... 19
3.3. "FixPt Sum1" Parameters .............................................................................................. 19
3.4. "u" Parameters ............................................................................................................ 20
3.5. "y" Parameters ............................................................................................................ 20
3.6. "Data Type Propagation" Parameters ............................................................................... 21
3.7. "Force to be scalar" Parameters ...................................................................................... 21
3.8. "Output" Parameters .................................................................................................... 22
3.9. "y" Parameters ............................................................................................................ 22
3.10. "Force to be scalar" Parameters .................................................................................... 23
3.11. "Out" Parameters ....................................................................................................... 24
3.12. "Output" Parameters ................................................................................................... 24
3.13. "Vector" Parameters ................................................................................................... 25
3.14. "y" Parameters .......................................................................................................... 25
3.15. "Constant" Parameters ................................................................................................ 26
3.16. "FixPt Data Type Duplicate1" Parameters ...................................................................... 27
3.17. "FixPt Switch" Parameters ........................................................................................... 27
3.18. "U" Parameters .......................................................................................................... 28
3.19. "Y" Parameters .......................................................................................................... 28
4.1. OutDataType .............................................................................................................. 29
5.1. SDD_lookup Configuration Set ...................................................................................... 31
5.2. SDD_lookup Configuration Set.Components(1) ................................................................. 31
5.3. SDD_lookup Configuration Set.Components(2) ................................................................. 32
5.4. SDD_lookup Configuration Set.Components(3) ................................................................. 33
5.5. SDD_lookup Configuration Set.Components(4) ................................................................. 34
5.6. SDD_lookup Configuration Set.Components(5) ................................................................. 37
5.7. SDD_lookup Configuration Set.Components(6) ................................................................. 38
5.8. SDD_lookup Configuration Set.Components(7) ................................................................. 38
5.9. SDD_lookup Configuration Set.Components(8) ................................................................. 39

SDD_lookup.slx
5.10. SDD_lookup Configuration Set.Components(9) ............................................................... 41
5.11. SDD_lookup Configuration Set.Components(8).Components(1) .......................................... 42
5.12. SDD_lookup Configuration Set.Components(8).Components(2) .......................................... 43

vi

Chapter1.Model Version
Version: 1.57
Last modified: Wed Mar 13 06:38:38 2013
Checksum: 1019658956 4066013047 747437561 3954250897

Chapter2.Root System
Table of Contents
Description ......................................................................................................................... 2
Blocks ............................................................................................................................... 2
Parameters ................................................................................................................. 2
Block Execution Order ............................................................................................... 16

Figure2.1.SDD_lookup
1-D T[k]

Re pe a ting
S e que nce
S ta ir3

Dire ct1

S ine Wa ve 5

k1

1-D T(k,f)

x
xdat
ydat
dyn

[-1 0 1]
f
S ine Wa ve 1

P re lookup

f1
Cons ta nt
Inte rpP re

[3 4 5]
Cons ta nt1

S ine Wa ve 2
Lookup Ta ble

u1
S ine Wa ve 3

S ine Wa ve 7

u2

Lookup2d
S ine Wa ve 6

2-D
T(u)

LookupNd

Simulink Re port Ge ne ra tor (SDD Re port) Te s t Mode l


S DD_lookup

S ine Wa ve 4

Copyright 2009-2011 The Ma thWorks , Inc.


This mode l s hould conta in a ll blocks in the Lookup Ta ble s libra ry tha t a re n't a ctua lly ma s ke d s ubs ys te ms .

Description
Simulink Report Generator (SDD Report) Test Model

Blocks
Parameters
"Constant" (Constant)
Table2.1."Constant" Parameters
Parameter

Value

Constant value

[-1 0 1]
2

Root System
Parameter

Value

Interpret vector paramet- on


ers as 1-D
Output minimum

[]

Output maximum

[]

Output data type

Inherit: Inherit from 'Constant value'

Lock output data type se- off


tting against changes by
the fixed-point tools
Sample time

inf

Frame period

inf

"Constant1" (Constant)
Table2.2."Constant1" Parameters
Parameter

Value

Constant value

[3 4 5]

Interpret vector paramet- on


ers as 1-D
Output minimum

[]

Output maximum

[]

Output data type

Inherit: Inherit from 'Constant value'

Lock output data type se- off


tting against changes by
the fixed-point tools
Sample time

inf

Frame period

inf

"Direct1" (LookupNDDirect)
Table2.3."Direct1" Parameters
Parameter

Value

Number of table dimens- 1


ions
Inputs select this object
from table

Element

Make table an input

off

Table data

1:10;
3

Root System
Parameter

Value

Diagnostic for out-of-ra- Warning


nge input
Sample time (-1 for inhe- -1
rited)
Table minimum

[]

Table maximum

[]

Table data type

Inherit: Inherit from 'Table data'

Lock data type settings


off
against changes by the fixed-point tools

Figure2.2.Direct1 (Element output)

Table2.4.Direct1 (Element output) (:,:)


[0]

[1]

[2]

[3]

[4]

[5]

[6]

[7]

[8]

[9]

10

Root System

"dyn" (S-Function)
Table2.5."dyn" Parameters
Parameter

Value

SimulinkmasksLookupMethod_MP

Interpolation-Use End Values

SimulinkmasksOutputDa- float('double')
taType_MP
SimulinkmasksLockOut- off
putDataTypeAgainstFxpTools_MP
SimulinkmasksIntegerR- Floor
oundingMode_MP
SimulinkmasksSaturateT- off
oMaxOrMinWhenOverflowsOccur_MP

"InterpPre" (Interpolation_n-D)
Table2.6."InterpPre" Parameters
Parameter

Value

Number of table dimens- 1


ions
Table data source

Dialog

Table data

1:10

Interpolation method

Linear

Extrapolation method

Linear

Diagnostic for out-of-ra- None


nge input
Remove protection agai- off
nst out-of-range index in
generated code
Valid index input may re- off
ach last index
Number of sub-table sel- 0
ection dimensions
Sample time (-1 for inhe- -1
rited)
Output minimum

[]

Output maximum

[]

Output data type

Inherit: Inherit from 'Table data'


5

Root System
Parameter

Value

Internal rule priority

Precision

Lock data type settings


off
against changes by the fixed-point tools
Integer rounding mode

Floor

Saturate on integer overf- off


low
Table minimum

[]

Table maximum

[]

Table data type

Inherit: Same as output

Intermediate results data


type

Inherit: Same as output

Figure2.3.InterpPre

Table2.7.InterpPre (:,:)
1

10

10
6

Root System

"Lookup Table" (Lookup)


Table2.8."Lookup Table" Parameters
Parameter

Value

Vector of input values

[-5:5]

Table data

[-5:5]

Lookup method

Interpolation-Extrapolation

Output minimum

[]

Output maximum

[]

Output data type

Inherit: Same as input

Lock output data type se- off


tting against changes by
the fixed-point tools
Integer rounding mode

Floor

Saturate on integer overf- off


low
Sample time (-1 for inhe- -1
rited)

Figure2.4.Lookup Table

Table2.9.Lookup Table
-5

-5

-4

-4

-3

-3
7

Root System
-2

-2

-1

-1

"Lookup2d" (Lookup2D)
Table2.10."Lookup2d" Parameters
Parameter

Value

Row index input values

[1:3]

Column index input valu- [1:3]


es
Table data

[1 2 3; 4 5 6; 7 8 9]

Lookup method

Interpolation-Extrapolation

Require all inputs to have off


the same data type
Output minimum

[]

Output maximum

[]

Output data type

Inherit: Same as first input

Lock output data type se- off


tting against changes by
the fixed-point tools
Integer rounding mode

Floor

Saturate on integer overf- off


low
Sample time (-1 for inhe- -1
rited)

Root System

Figure2.5.Lookup2d

Table2.11.Lookup2d

"LookupNd" (Lookup_n-D)
Table2.12."LookupNd" Parameters
Parameter

Value

Number of table dimens- 2


ions
Breakpoints specification Explicit values
Breakpoints for dimensi- 1:3
on 1
Breakpoints for dimensi- 1:3
on 2
Breakpoints First Point
for dimension 1

Breakpoints First Point


for dimension 2

Breakpoints Spacing for


dimension 1

Breakpoints Spacing for


dimension 2

Root System
Parameter

Value

Breakpoints minimum
for dimension 1

[]

Breakpoints minimum
for dimension 2

[]

Breakpoints maximum
for dimension 1

[]

Breakpoints maximum
for dimension 2

[]

Breakpoints data type for Inherit: Same as corresponding input


dimension 1
Breakpoints data type for Inherit: Same as corresponding input
dimension 2
Index search method

Binary search

Begin index search using off


previous index result
Use one input port for all off
input data
Table data

[1 2 3; 4 5 6; 7 9 8]

Table minimum

[]

Table maximum

[]

Table data type

Inherit: Same as output

Intermediate results data


type

Inherit: Same as output

Interpolation method

Linear

Extrapolation method

Linear

Diagnostic for out-of-ra- None


nge input
Remove protection against out-of-range input in
generated code

off

Use last table value for


off
inputs at or above last breakpoint
Sample time (-1 for inhe- -1
rited)
Internal rule priority

Precision

Require all inputs to have on


the same data type
Output minimum

[]

Output maximum

[]

Output data type

Inherit: Same as first input

10

Root System
Parameter

Value

Lock data type settings


off
against changes by the fixed-point tools
Integer rounding mode

Floor

Saturate on integer overf- off


low
Fraction data type

Inherit: Inherit via internal rule

Support tunable table size off


in code generation
Maximum indices for ea- []
ch dimension

Figure2.6.LookupNd

Table2.13.LookupNd (:,:)

"Prelookup" (PreLookup)
Table2.14."Prelookup" Parameters
Parameter

Value

Breakpoints source

Dialog

Breakpoints

1:10
11

Root System
Parameter

Value

Specification

Explicit values

Number of points

11

First point

10

Spacing

10

Index search method

Binary search

Begin index search using off


previous index result
Output only the index

off

Extrapolation method

Linear

Use last breakpoint for


off
input at or above upper limit
Remove protection against out-of-range input in
generated code

off

Diagnostic for out-of-ra- None


nge input
Breakpoint minimum

[]

Breakpoint maximum

[]

Parameter data type

Inherit: Same as input

Index data type

uint32

Fraction data type

Inherit: Inherit via internal rule

Lock output data type se- off


tting against changes by
the fixed-point tools
Integer rounding mode

Floor

Sample time (-1 for inhe- -1


rited)

12

Root System

Figure2.7.Prelookup

Table2.15.Prelookup (:,:)
1

10

"Sine Wave1" (Sin)


Table2.16."Sine Wave1" Parameters
Parameter

Value

Sine type

Time based

Time (t)

Use simulation time

Amplitude

Bias

1.5

Frequency (rad/sec)

Phase (rad)

Samples per period

10
13

Root System
Parameter

Value

Number of offset sampl- 0


es
Sample time

Interpret vector paramet- on


ers as 1-D

"Sine Wave2" (Sin)


Table2.17."Sine Wave2" Parameters
Parameter

Value

Sine type

Time based

Time (t)

Use simulation time

Amplitude

Bias

Frequency (rad/sec)

Phase (rad)

Samples per period

10

Number of offset sampl- 0


es
Sample time

Interpret vector paramet- on


ers as 1-D

"Sine Wave3" (Sin)


Table2.18."Sine Wave3" Parameters
Parameter

Value

Sine type

Time based

Time (t)

Use simulation time

Amplitude

Bias

1.5

Frequency (rad/sec)

Phase (rad)

Samples per period

10

Number of offset sampl- 0


es
Sample time

0
14

Root System
Parameter

Value

Interpret vector paramet- on


ers as 1-D

"Sine Wave4" (Sin)


Table2.19."Sine Wave4" Parameters
Parameter

Value

Sine type

Time based

Time (t)

Use simulation time

Amplitude

Bias

1.5

Frequency (rad/sec)

Phase (rad)

Samples per period

10

Number of offset sampl- 0


es
Sample time

Interpret vector paramet- on


ers as 1-D

"Sine Wave5" (Sin)


Table2.20."Sine Wave5" Parameters
Parameter

Value

Sine type

Time based

Time (t)

Use simulation time

Amplitude

Bias

Frequency (rad/sec)

Phase (rad)

Samples per period

10

Number of offset sampl- 0


es
Sample time

Interpret vector paramet- on


ers as 1-D

15

Root System

"Sine Wave6" (Sin)


Table2.21."Sine Wave6" Parameters
Parameter

Value

Sine type

Time based

Time (t)

Use simulation time

Amplitude

Bias

1.5

Frequency (rad/sec)

Phase (rad)

Samples per period

10

Number of offset sampl- 0


es
Sample time

Interpret vector paramet- on


ers as 1-D

"Sine Wave7" (Sin)


Table2.22."Sine Wave7" Parameters
Parameter

Value

Sine type

Time based

Time (t)

Use simulation time

Amplitude

Bias

1.5

Frequency (rad/sec)

Phase (rad)

Samples per period

10

Number of offset sampl- 0


es
Sample time

Interpret vector paramet- on


ers as 1-D

Block Execution Order


1.
2.
3.

Constant [2] (Constant)


Constant1 [3] (Constant)
Sine Wave5 [15] (Sin)
16

Root System
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.

dyn [4] (S-Function)


Output [22] (UnitDelay)
Vector [25] (Constant)
Output [24] (MultiPortSwitch)
Out [24] (SignalConversion)
Direct1 [3] (LookupNDDirect)
Data Type Propagation [21] (S-Function)
FixPt Data Type Duplicate [19] (DataTypeDuplicate)
FixPt Constant [18] (Constant)
FixPt Sum1 [19] (Sum)
FixPt Data Type Duplicate1 [27] (DataTypeDuplicate)
Constant [26] (Constant)
FixPt Switch [27] (Switch)
Sine Wave1 [13] (Sin)
Prelookup [11] (PreLookup)
InterpPre [5] (Interpolation_n-D)
Sine Wave2 [14] (Sin)
Lookup Table [7] (Lookup)
Sine Wave3 [14] (Sin)
Sine Wave6 [15] (Sin)
Lookup2d [8] (Lookup2D)
Sine Wave7 [16] (Sin)
Sine Wave4 [15] (Sin)
LookupNd [9] (Lookup_n-D)

17

Chapter3.Subsystems
Table of Contents
Increment Real World ........................................................................................................
Blocks .....................................................................................................................
LimitedCounter .................................................................................................................
Blocks .....................................................................................................................
Repeating Sequence Stair3 ..................................................................................................
Blocks .....................................................................................................................
Wrap To Zero ...................................................................................................................
Blocks .....................................................................................................................

18
18
21
21
23
23
26
26

Increment Real World


Figure 3.1. SDD_lookup/Repeating Sequence Stair3/LimitedCounter/Increment
Real World

1
u

S a me
DT

Blocks
Parameters
"FixPt Constant" (Constant)
Table3.1."FixPt Constant" Parameters
Parameter

Value

Constant value

Interpret vector paramet- on


ers as 1-D
Output minimum

[]
18

Subsystems
Parameter

Value

Output maximum

[]

Output data type

Inherit: Inherit via back propagation

Lock output data type se- off


tting against changes by
the fixed-point tools
Sample time

inf

Frame period

inf

"FixPt Data Type Duplicate" (DataTypeDuplicate)


Table3.2."FixPt Data Type Duplicate" Parameters
Parameter

Value

Number of input ports

"FixPt Sum1" (Sum)


Table3.3."FixPt Sum1" Parameters
Parameter

Value

Icon shape

rectangular

List of signs

++

Sum over

All dimensions

Dimension

Require all inputs to have on


the same data type
Accumulator data type

Inherit: Inherit via internal rule

Output minimum

[]

Output maximum

[]

Output data type

Inherit: Inherit via back propagation

Lock data type settings


on
against changes by the fixed-point tools
Integer rounding mode

Floor

Saturate on integer overf- off


low
Sample time (-1 for inhe- -1
rited)

19

Subsystems

"u" (Inport)
Table3.4."u" Parameters
Parameter

Value

Port number

Port dimensions (-1 for


inherited)

-1

Sample time (-1 for inhe- -1


rited)
Minimum

[]

Maximum

[]

Data type

Inherit: auto

"y" (Outport)
Table3.5."y" Parameters
Parameter

Value

Port number

Icon display

Port number

Minimum

[]

Maximum

[]

Data type

Inherit: auto

Lock output data type se- off


tting against changes by
the fixed-point tools
Output as nonvirtual bus
in parent model

off

Port dimensions (-1 for


inherited)

-1

Variable-size signal

Inherit

Sample time (-1 for inhe- -1


rited)
Source of initial output
value

Dialog

Output when disabled

held

Initial output

[]

20

Subsystems

LimitedCounter
Figure3.2.SDD_lookup/Repeating Sequence Stair3/LimitedCounter
D:1
Force to be s ca la r

V++
Incre me nt
Re a l World

1
z

Wra p To Ze ro

R e f1
Re f2
P rop
Da ta Type
P ropa ga tion

Blocks
Parameters
"Data Type Propagation" (S-Function)
Table3.6."Data Type Propagation" Parameters
Parameter

Value

Simulinkmasksx1Propag- Specify via dialog


atedDataType_MP
Simulinkmasksx11Propa- uint(nbits)
gatedDataTypeegFixdt116Fixdtsingle_MP
Simulinkmasksx2Propag- Specify via dialog
atedScaling_MP
Simulinkmasksx21Prop- 1
agatedScalingSlopeEg29OrSlopeBiasEg1253_MP

"Force to be scalar" (SignalSpecification)


Table3.7."Force to be scalar" Parameters
Parameter

Value

Minimum

[]
21

1
y

Subsystems
Parameter

Value

Maximum

[]

Data type

Inherit: auto

Lock output data type se- off


tting against changes by
the fixed-point tools
Require nonvirtual bus

off

Dimensions (-1 for inher- 1


ited)
Variable-size signal

Inherit

Sample time (-1 for inhe- -1


rited)

"Output" (UnitDelay)
Table3.8."Output" Parameters
Parameter

Value

Initial condition

0.0

Input processing

Inherited

Sample time (-1 for inhe- tsamp


rited)
State name must resolve off
to Simulink signal object

"y" (Outport)
Table3.9."y" Parameters
Parameter

Value

Port number

Icon display

Port number

Minimum

[]

Maximum

[]

Data type

Inherit: auto

Lock output data type se- off


tting against changes by
the fixed-point tools
Output as nonvirtual bus
in parent model

off

Port dimensions (-1 for


inherited)

-1

22

Subsystems
Parameter

Value

Variable-size signal

Inherit

Sample time (-1 for inhe- -1


rited)
Source of initial output
value

Dialog

Output when disabled

held

Initial output

[]

Repeating Sequence Stair3


Figure3.3.SDD_lookup/Repeating Sequence Stair3

lim
D:1
Limite dCounte r

Force to be s ca la r

1
OutValues

Ve ctor
Output

Blocks
Parameters
"Force to be scalar" (SignalSpecification)
Table3.10."Force to be scalar" Parameters
Parameter

Value

Minimum

[]

Maximum

[]

Data type

Inherit: auto

Lock output data type se- off


tting against changes by
the fixed-point tools
Require nonvirtual bus

off

Dimensions (-1 for inher- 1


ited)
23

Out

Subsystems
Parameter

Value

Variable-size signal

Inherit

Sample time (-1 for inhe- -1


rited)

"Out" (SignalConversion)
Table3.11."Out" Parameters
Parameter

Value

Output

Signal copy

Data type

Inherit: auto

Exclude this block from off


'Block reduction' optimization

"Output" (MultiPortSwitch)
Table3.12."Output" Parameters
Parameter

Value

Data port order

Zero-based contiguous

Number of data ports

Data port indices (e.g. {1, {1,2,3}


[2,3]})
Data port for default case Last data port
Diagnostic for default ca- Error
se
Require all data port inp- off
uts to have the same data
type
Output minimum

OutMin

Output maximum

OutMax

Output data type

Inherit: Inherit via internal rule

Lock output data type se- off


tting against changes by
the fixed-point tools
Integer rounding mode

Floor

Saturate on integer overf- off


low
Sample time (-1 for inhe- tsamp
rited)
24

Subsystems
Parameter

Value

Allow different data inp- off


ut sizes (Results in variable-size output signal)

"Vector" (Constant)
Table3.13."Vector" Parameters
Parameter

Value

Constant value

OutValues

Interpret vector paramet- on


ers as 1-D
Output minimum

OutMin

Output maximum

OutMax

Output data type

OutDataTypeStr

Lock output data type se- off


tting against changes by
the fixed-point tools
Sample time

inf

Frame period

inf

"y" (Outport)
Table3.14."y" Parameters
Parameter

Value

Port number

Icon display

Port number

Minimum

OutMin

Maximum

OutMax

Data type

Inherit: auto

Lock output data type se- off


tting against changes by
the fixed-point tools
Output as nonvirtual bus
in parent model

off

Port dimensions (-1 for


inherited)

-1

Variable-size signal

Inherit

Sample time (-1 for inhe- -1


rited)
25

Subsystems
Parameter

Value

Source of initial output


value

Dialog

Output when disabled

held

Initial output

[]

Wrap To Zero
Figure 3.4. SDD_lookup/Repeating Sequence Stair3/LimitedCounter/Wrap To
Zero

>4

1
U

U(k)

S a me
DT

Blocks
Parameters
"Constant" (Constant)
Table3.15."Constant" Parameters
Parameter

Value

Constant value

Interpret vector paramet- on


ers as 1-D
Output minimum

[]

Output maximum

[]

Output data type

Inherit: Inherit via back propagation


26

Subsystems
Parameter

Value

Lock output data type se- off


tting against changes by
the fixed-point tools
Sample time

inf

Frame period

inf

"FixPt Data Type Duplicate1" (DataTypeDuplicate)


Table3.16."FixPt Data Type Duplicate1" Parameters
Parameter

Value

Number of input ports

"FixPt Switch" (Switch)


Table3.17."FixPt Switch" Parameters
Parameter

Value

Criteria for passing first


input

u2 > Threshold

Threshold

Threshold

Require all data port inp- off


uts to have the same data
type
Output minimum

[]

Output maximum

[]

Output data type

Inherit: Inherit via back propagation

Lock output data type se- off


tting against changes by
the fixed-point tools
Integer rounding mode

Floor

Saturate on integer overf- off


low
Enable zero-crossing det- off
ection
Sample time (-1 for inhe- -1
rited)
Allow different data inp- off
ut sizes (Results in variable-size output signal)

27

Subsystems

"U" (Inport)
Table3.18."U" Parameters
Parameter

Value

Port number

Port dimensions (-1 for


inherited)

-1

Sample time (-1 for inhe- -1


rited)
Minimum

[]

Maximum

[]

Data type

Inherit: auto

"Y" (Outport)
Table3.19."Y" Parameters
Parameter

Value

Port number

Icon display

Port number

Minimum

[]

Maximum

[]

Data type

Inherit: auto

Lock output data type se- off


tting against changes by
the fixed-point tools
Output as nonvirtual bus
in parent model

off

Port dimensions (-1 for


inherited)

-1

Variable-size signal

Inherit

Sample time (-1 for inhe- -1


rited)
Source of initial output
value

Dialog

Output when disabled

held

Initial output

28

Chapter4.System Design Variables


Table of Contents
Design Variable Details ...................................................................................................... 29

Design Variable Details


DblOver. 0

Used by Blocks:
SDD_lookup/dyn [4]
Resolved in: mask workspace (SDD_lookup/dyn)
DoSatur.

Used by Blocks:
SDD_lookup/dyn [4]
Resolved in: mask workspace (SDD_lookup/dyn)
LookUpMeth.

Used by Blocks:
SDD_lookup/dyn [4]
Resolved in: mask workspace (SDD_lookup/dyn)

Table4.1.OutDataType
Property

Value

DataTypeMode

Double

Signedness

Signed

SignednessBool

true

WordLength

64

FixedExponent

FractionLength

Slope

SlopeAdjustmentFactor

Bias

0
29

System Design Variables


DataTypeOverride

Inherit

IsAlias

false

Description

DataScope

Auto

HeaderFile

Used by Blocks:
SDD_lookup/dyn [4]
Resolved in: mask workspace (SDD_lookup/dyn)
OutScaling. 9.7656e-04

Used by Blocks:
SDD_lookup/dyn [4]
Resolved in: mask workspace (SDD_lookup/dyn)
OutputDataTypeScalingMode.

Used by Blocks:
SDD_lookup/dyn [4]
Resolved in: mask workspace (SDD_lookup/dyn)
RndMeth.

Used by Blocks:
SDD_lookup/dyn [4]
Resolved in: mask workspace (SDD_lookup/dyn)
dolog. 0

Used by Blocks:
SDD_lookup/dyn [4]
Resolved in: mask workspace (SDD_lookup/dyn)

30

Chapter5.System Model Configuration


Source:

Model

Source Name:

SDD_lookup

Table5.1.SDD_lookup Configuration Set


Property

Value

Description

Components

[SDD_lookup Configuration Set.Components(1) [31], SDD_lookup Configuration Set.Components(2) [32], SDD_lookup Configuration Set.Components(3) [33], SDD_lookup Configuration Set.Components(4) [34], SDD_lookup Configuration Set.Components(5) [37], SDD_lookup Configuration Set.Components(6) [38],
SDD_lookup Configuration Set.Components(7) [38], SDD_lookup Configuration Set.Components(8) [39], SDD_lookup Configuration Set.Components(9) [41]]

Name

Configuration

SimulationMode

normal

Table5.2.SDD_lookup Configuration Set.Components [31](1)


Property

Value

Name

Solver

Description

Components

StartTime

0.0

StopTime

10

AbsTol

auto

FixedStep

auto

InitialStep

auto

MaxNumMinSteps

-1

MaxOrder

ZcThreshold

auto

ConsecutiveZCsStepRelTol

10*128*eps

MaxConsecutiveZCs

1000

ExtrapolationOrder

NumberNewtonIterations

MaxStep

auto

MinStep

auto
31

System Model Configuration


MaxConsecutiveMinStep

RelTol

1e-3

SolverMode

Auto

EnableConcurrentExecution

off

ConcurrentTasks

off

Solver

ode45

SolverName

ode45

SolverType

Variable-step

SolverJacobianMethodControl

auto

ShapePreserveControl

DisableAll

ZeroCrossControl

UseLocalSettings

ZeroCrossAlgorithm

Nonadaptive

SolverResetMethod

Fast

PositivePriorityOrder

off

AutoInsertRateTranBlk

off

SampleTimeConstraint

Unconstrained

InsertRTBMode

Whenever possible

SampleTimeProperty

Table5.3.SDD_lookup Configuration Set.Components [31](2)


Property

Value

Name

Data Import/Export

Description

Components

Decimation

ExternalInput

[t, u]

FinalStateName

xFinal

InitialState

xInitial

LimitDataPoints

on

MaxDataPoints

1000

LoadExternalInput

off

LoadInitialState

off

SaveFinalState

off

SaveCompleteFinalSimState

off

SaveFormat

Array

SignalLoggingSaveFormat

ModelDataLogs

SaveOutput

on

SaveState

off

SignalLogging

on
32

System Model Configuration


DSMLogging

on

InspectSignalLogs

off

VisualizeSimOutput

on

StreamToWorkspace

off

StreamVariableName

streamout

SaveTime

on

ReturnWorkspaceOutputs

off

StateSaveName

xout

TimeSaveName

tout

OutputSaveName

yout

SignalLoggingName

logsout

DSMLoggingName

dsmout

OutputOption

RefineOutputTimes

OutputTimes

[]

ReturnWorkspaceOutputsName

out

Refine

LoggingIntervals

[-inf, inf]

Table5.4.SDD_lookup Configuration Set.Components [31](3)


Property

Value

Name

Optimization

Description

Components

BlockReduction

off

BooleanDataType

on

ConditionallyExecuteInputs

on

DefaultParameterBehavior

Tunable

InlineParams

off

UseDivisionForNetSlopeComputation

off

UseFloatMulNetSlope

off

DefaultUnderspecifiedDataType

double

UseSpecifiedMinMax

off

InlineInvariantSignals

off

OptimizeBlockIOStorage

on

BufferReuse

on

GlobalBufferReuse

on

GlobalVariableUsage

None

StrengthReduction

off

AdvancedOptControl

33

System Model Configuration


EnforceIntegerDowncast

on

ExpressionFolding

on

BooleansAsBitfields

off

BitfieldContainerType

uint_T

EnableMemcpy

on

MemcpyThreshold

64

PassReuseOutputArgsAs

Structure reference

PassReuseOutputArgsThreshold

12

FoldNonRolledExpr

on

LocalBlockOutputs

on

RollThreshold

StateBitsets

off

DataBitsets

off

ActiveStateOutputEnumStorageType

Native Integer

UseTempVars

off

ZeroExternalMemoryAtStartup

on

ZeroInternalMemoryAtStartup

on

InitFltsAndDblsToZero

on

NoFixptDivByZeroProtection

off

EfficientFloat2IntCast

off

EfficientMapNaN2IntZero

on

OptimizeModelRefInitCode

off

LifeSpan

inf

EvaledLifeSpan

Inf

MaxStackSize

Inherit from target

BufferReusableBoundary

on

SimCompilerOptimization

off

AccelVerboseBuild

off

Table5.5.SDD_lookup Configuration Set.Components [31](4)


Property

Value

Name

Diagnostics

Description

Components

RTPrefix

error

ConsistencyChecking

none

ArrayBoundsChecking

none

SignalInfNanChecking

none

SignalRangeChecking

none
34

System Model Configuration


ReadBeforeWriteMsg

UseLocalSettings

WriteAfterWriteMsg

UseLocalSettings

WriteAfterReadMsg

UseLocalSettings

AlgebraicLoopMsg

warning

ArtificialAlgebraicLoopMsg

warning

SaveWithDisabledLinksMsg

warning

SaveWithParameterizedLinksMsg

none

CheckSSInitialOutputMsg

on

UnderspecifiedInitializationDetection

Classic

MergeDetectMultiDrivingBlocksExec

none

CheckExecutionContextPreStartOutputMsg

off

CheckExecutionContextRuntimeOutputMsg

off

SignalResolutionControl

TryResolveAllWithWarning

BlockPriorityViolationMsg

warning

MinStepSizeMsg

warning

TimeAdjustmentMsg

none

MaxConsecutiveZCsMsg

error

MaskedZcDiagnostic

warning

IgnoredZcDiagnostic

warning

SolverPrmCheckMsg

none

InheritedTsInSrcMsg

warning

MultiTaskDSMMsg

warning

MultiTaskCondExecSysMsg

none

MultiTaskRateTransMsg

error

SingleTaskRateTransMsg

none

TasksWithSamePriorityMsg

warning

SigSpecEnsureSampleTimeMsg

warning

CheckMatrixSingularityMsg

none

IntegerOverflowMsg

warning

Int32ToFloatConvMsg

warning

ParameterDowncastMsg

error

ParameterOverflowMsg

error

ParameterUnderflowMsg

none

ParameterPrecisionLossMsg

warning

ParameterTunabilityLossMsg

warning

FixptConstUnderflowMsg

none

FixptConstOverflowMsg

none

FixptConstPrecisionLossMsg

none

UnderSpecifiedDataTypeMsg

none

35

System Model Configuration


UnnecessaryDatatypeConvMsg

none

VectorMatrixConversionMsg

none

InvalidFcnCallConnMsg

error

FcnCallInpInsideContextMsg

UseLocalSettings

SignalLabelMismatchMsg

none

UnconnectedInputMsg

warning

UnconnectedOutputMsg

warning

UnconnectedLineMsg

warning

SFcnCompatibilityMsg

none

FrameProcessingCompatibilityMsg

error

UniqueDataStoreMsg

none

BusObjectLabelMismatch

warning

RootOutportRequireBusObject

warning

AssertControl

UseLocalSettings

Echo

EnableOverflowDetection

off

AllowSymbolicDim

off

ModelReferenceIOMsg

none

ModelReferenceVersionMismatchMessage

none

ModelReferenceIOMismatchMessage

none

ModelReferenceCSMismatchMessage

none

ModelReferenceSimTargetVerbose

off

UnknownTsInhSupMsg

warning

ModelReferenceDataLoggingMessage

warning

ModelReferenceSymbolNameMessage

warning

ModelReferenceExtraNoncontSigs

error

StateNameClashWarn

warning

SimStateInterfaceChecksumMismatchMsg

warning

SimStateOlderReleaseMsg

error

InitInArrayFormatMsg

warning

StrictBusMsg

ErrorLevel1

BusNameAdapt

WarnAndRepair

NonBusSignalsTreatedAsBus

none

SFUnusedDataAndEventsDiag

warning

SFUnexpectedBacktrackingDiag

warning

SFInvalidInputDataAccessInChartInitDiag

warning

SFNoUnconditionalDefaultTransitionDiag

warning

SFTransitionOutsideNaturalParentDiag

warning

SFUnconditionalTransitionShadowingDiag

warning

36

System Model Configuration


SFUndirectedBroadcastEventsDiag

warning

SFTransitionActionBeforeConditionDiag

warning

SFOutputUsedAsStateInMooreChartDiag

error

IntegerSaturationMsg

warning

Table5.6.SDD_lookup Configuration Set.Components [31](5)


Property

Value

Name

Hardware Implementation

Description

Components

ProdBitPerChar

ProdBitPerShort

16

ProdBitPerInt

32

ProdBitPerLong

32

ProdBitPerLongLong

64

ProdBitPerFloat

32

ProdBitPerDouble

64

ProdBitPerPointer

32

ProdLargestAtomicInteger

Char

ProdLargestAtomicFloat

None

ProdIntDivRoundTo

Undefined

ProdEndianess

Unspecified

ProdWordSize

32

ProdShiftRightIntArith

on

ProdLongLongMode

off

ProdHWDeviceType

32-bit Generic

TargetBitPerChar

TargetBitPerShort

16

TargetBitPerInt

32

TargetBitPerLong

32

TargetBitPerLongLong

64

TargetBitPerFloat

32

TargetBitPerDouble

64

TargetBitPerPointer

32

TargetLargestAtomicInteger

Char

TargetLargestAtomicFloat

None

TargetShiftRightIntArith

on

TargetLongLongMode

off

TargetIntDivRoundTo

Undefined
37

System Model Configuration


TargetEndianess

Unspecified

TargetWordSize

32

TargetTypeEmulationWarnSuppressLevel

TargetPreprocMaxBitsSint

32

TargetPreprocMaxBitsUint

32

TargetHWDeviceType

Specified

TargetUnknown

off

ProdEqTarget

on

Table5.7.SDD_lookup Configuration Set.Components [31](6)


Property

Value

Name

Model Referencing

Description

Components

UpdateModelReferenceTargets

IfOutOfDateOrStructuralChange

SkipRefExpFcnMdlSchedulingOrderCheck

off

EnableRefExpFcnMdlSchedulingChecks

on

CheckModelReferenceTargetMessage

error

EnableParallelModelReferenceBuilds

off

ParallelModelReferenceErrorOnInvalidPool

on

ParallelModelReferenceMATLABWorkerInit

None

ModelReferenceNumInstancesAllowed

Multi

PropagateVarSize

Infer from blocks in model

ModelDependencies

ModelReferencePassRootInputsByReference

on

ModelReferenceMinAlgLoopOccurrences

off

PropagateSignalLabelsOutOfModel

off

SupportModelReferenceSimTargetCustomCode

off

Table5.8.SDD_lookup Configuration Set.Components [31](7)


Property

Value

Name

Simulation Target

Description

Components

SimCustomSourceCode

SimCustomHeaderCode

SimCustomInitializer

SimCustomTerminator

SimReservedNameArray

38

System Model Configuration


SimUserSources

SimUserIncludeDirs

SimUserLibraries

SFSimEnableDebug

off

SFSimOverflowDetection

on

SFSimEcho

on

SimBlas

on

SimCtrlC

on

SimExtrinsic

on

SimIntegrity

on

SimUseLocalCustomCode

off

SimParseCustomCode

on

SimBuildMode

sf_incremental_build

SimDataInitializer

SimGenImportedTypeDefs

off

Table5.9.SDD_lookup Configuration Set.Components [31](8)


Property

Value

Name

Code Generation

SystemTargetFile

grt.tlc

TLCOptions

CodeGenDirectory

GenCodeOnly

off

MakeCommand

make_rtw

GenerateMakefile

on

PackageGeneratedCodeAndArtifacts

off

PackageName

TemplateMakefile

grt_default_tmf

PostCodeGenCommand

Description

GenerateReport

off

SaveLog

off

RTWVerbose

on

RetainRTWFile

off

ProfileTLC

off

TLCDebug

off

TLCCoverage

off

TLCAssert

off

ProcessScriptMode

Default
39

System Model Configuration


ConfigurationMode

Optimized

ProcessScript

ConfigurationScript

ConfigAtBuild

off

RTWUseLocalCustomCode

off

RTWUseSimCustomCode

off

CustomSourceCode

CustomHeaderCode

CustomInclude

CustomSource

CustomLibrary

CustomInitializer

CustomTerminator

Toolchain

Automatically locate an installed toolchain

BuildConfiguration

Faster Builds

CustomToolchainOptions

IncludeHyperlinkInReport

off

LaunchReport

off

PortableWordSizes

off

GenerateErtSFunction

off

CreateSILPILBlock

None

CodeExecutionProfiling

off

CodeExecutionProfileVariable

executionProfile

CodeProfilingSaveOptions

SummaryOnly

CodeProfilingInstrumentation

off

SILDebugging

off

TargetLang

IncludeERTFirstTime

on

GenerateTraceInfo

off

GenerateTraceReport

off

GenerateTraceReportSl

off

GenerateTraceReportSf

off

GenerateTraceReportEml

off

GenerateCodeInfo

off

GenerateWebview

off

GenerateCodeMetricsReport

off

GenerateCodeReplacementReport

off

RTWCompilerOptimization

off

ObjectivePriorities

40

System Model Configuration


RTWCustomCompilerOptimizations

CheckMdlBeforeBuild

Off

CustomRebuildMode

OnUpdate

DataInitializer

Components

[SDD_lookup Configuration Set.Components(8).Components(1) [41], SDD_lookup Configuration Set.Components(8).Components(2) [43]]

Table5.10.SDD_lookup Configuration Set.Components [31](9)


Property

Value

Description

Simulink Coverage Configuration Component

Components

Name

Simulink Coverage

RecordCoverage

on

CovPath

CovSaveName

covdata

CovCompData

CovMetricSettings

rw

CovFilter

CovHTMLOptions

CovNameIncrementing

off

CovHtmlReporting

on

CovForceBlockReductionOff

on

CovEnableCumulative

on

CovSaveCumulativeToWorkspaceVar

on

CovSaveSingleToWorkspaceVar

on

CovCumulativeVarName

covCumulativeData

CovCumulativeReport

off

CovReportOnPause

on

CovModelRefEnable

Off

CovModelRefExcluded

CovExternalEMLEnable

off

CovSFcnEnable

on

CovBoundaryAbsTol

1.0000e-05

CovBoundaryRelTol

0.0100

CovUseTimeInterval

off

CovStartTime

CovStopTime

41

System Model Configuration

Table
5.11.
SDD_lookup
Set.Components(8).Components [41](1)
Property

Value

Name

Code Appearance

Description

Components

ForceParamTrailComments

off

GenerateComments

on

CommentStyle

Auto

IgnoreCustomStorageClasses

on

IgnoreTestpoints

off

IncHierarchyInIds

off

MaxIdLength

31

PreserveName

off

PreserveNameWithParent

off

ShowEliminatedStatement

off

OperatorAnnotations

off

IncAutoGenComments

off

SimulinkDataObjDesc

off

SFDataObjDesc

off

MATLABFcnDesc

off

IncDataTypeInIds

off

PrefixModelToSubsysFcnNames

on

MangleLength

CustomSymbolStr

$R$N$M

CustomSymbolStrGlobalVar

$R$N$M

CustomSymbolStrType

$N$R$M_T

CustomSymbolStrField

$N$M

CustomSymbolStrFcn

$R$N$M$F

CustomSymbolStrFcnArg

rt$I$N$M

CustomSymbolStrBlkIO

rtb_$N$M

CustomSymbolStrTmpVar

$N$M

CustomSymbolStrMacro

$R$N$M

CustomSymbolStrUtil

$N$C

CustomCommentsFcn

DefineNamingRule

None

DefineNamingFcn

ParamNamingRule

None

ParamNamingFcn

42

Configuration

System Model Configuration


SignalNamingRule

None

SignalNamingFcn

InsertBlockDesc

off

InsertPolySpaceComments

off

SimulinkBlockComments

on

MATLABSourceComments

off

EnableCustomComments

off

InternalIdentifier

Shortened

InlinedPrmAccess

Literals

ReqsInCode

off

UseSimReservedNames

off

ReservedNameArray

Table
5.12.
SDD_lookup
Set.Components(8).Components [41](2)
Property

Value

Name

Target

Description

Components

IsERTTarget

off

TargetFcnLib

ansi_tfl_tmw.mat

TargetLibSuffix

TargetPreCompLibLocation

GenFloatMathFcnCalls

NOT IN USE

TargetLangStandard

C89/C90 (ANSI)

TargetFunctionLibrary

NOT IN USE

CodeReplacementLibrary

None

UtilityFuncGeneration

Auto

ERTMultiwordTypeDef

System defined

ERTMultiwordLength

256

MultiwordLength

2048

GenerateFullHeader

on

InferredTypesCompatibility

off

GenerateSampleERTMain

off

GenerateTestInterfaces

off

ModelReferenceCompliant

on

ParMdlRefBuildCompliant

on

CompOptLevelCompliant

on

ConcurrentExecutionCompliant

on
43

Configuration

System Model Configuration


IncludeMdlTerminateFcn

on

CombineOutputUpdateFcns

off

CombineSignalStateStructs

off

SuppressErrorStatus

off

ERTFirstTimeCompliant

off

IncludeFileDelimiter

Auto

ERTCustomFileBanners

off

SupportAbsoluteTime

on

LogVarNameModifier

rt_

MatFileLogging

on

MultiInstanceERTCode

off

CodeInterfacePackaging

Nonreusable function

SupportNonFinite

on

SupportComplex

on

PurelyIntegerCode

off

SupportContinuousTime

on

SupportNonInlinedSFcns

on

SupportVariableSizeSignals

off

ParenthesesLevel

Nominal

CastingMode

Nominal

GenerateClassInterface

off

ModelStepFunctionPrototypeControlCompliant

off

CPPClassGenCompliant

on

GRTInterface

on

GenerateAllocFcn

off

UseToolchainInfoCompliant

on

GenerateSharedConstants

on

ExtMode

off

ExtModeStaticAlloc

off

ExtModeTesting

off

ExtModeStaticAllocSize

1000000

ExtModeTransport

ExtModeMexFile

ext_comm

ExtModeMexArgs

ExtModeIntrfLevel

Level1

RTWCAPISignals

off

RTWCAPIParams

off

RTWCAPIStates

off

RTWCAPIRootIO

off

44

System Model Configuration


GenerateASAP2

off

MultiInstanceErrorCode

Error

45

You might also like