📄 qam16.mdl
字号:
SrcBlock "Product"
SrcPort 1
Points [20, 0; 0, 30]
DstBlock "Add"
DstPort 1
}
Line {
SrcBlock "Add"
SrcPort 1
DstBlock "AWGN\nChannel2"
DstPort 1
}
Line {
SrcBlock "Sine Wave2"
SrcPort 1
DstBlock "Product2"
DstPort 1
}
Line {
SrcBlock "From"
SrcPort 1
Points [0, 0; 55, 0]
Branch {
Points [0, 65]
DstBlock "Product3"
DstPort 1
}
Branch {
Points [0, -60]
DstBlock "Product2"
DstPort 2
}
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "I-Raised Cosine\nTransmit Filter"
SrcPort 1
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "AWGN\nChannel2"
SrcPort 1
Points [25, 0]
Branch {
DstBlock "Scope2"
DstPort 1
}
Branch {
Points [0, -105]
DstBlock "Goto"
DstPort 1
}
}
Line {
SrcBlock "Product2"
SrcPort 1
DstBlock "Raised Cosine\nReceive Filter"
DstPort 1
}
Line {
SrcBlock "Product3"
SrcPort 1
DstBlock "Raised Cosine\nReceive Filter1"
DstPort 1
}
Line {
SrcBlock "Raised Cosine\nReceive Filter"
SrcPort 1
Points [30, 0]
Branch {
DstBlock "Scope3"
DstPort 1
}
Branch {
Points [0, 70]
DstBlock "Real-Imag to\nComplex"
DstPort 1
}
Branch {
DstBlock "Discrete-Time\nEye Diagram\nScope"
DstPort 1
}
}
Line {
SrcBlock "Raised Cosine\nReceive Filter1"
SrcPort 1
Points [30, 0]
Branch {
DstBlock "Scope4"
DstPort 1
}
Branch {
Points [0, -55]
DstBlock "Real-Imag to\nComplex"
DstPort 2
}
}
Line {
SrcBlock "Sine Wave1"
SrcPort 1
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "Sine Wave3"
SrcPort 1
DstBlock "Product3"
DstPort 2
}
Line {
SrcBlock "Complex to\nReal-Imag1"
SrcPort 1
Points [0, -40]
DstBlock "Buffer3"
DstPort 1
}
Line {
SrcBlock "Error Rate\nCalculation"
SrcPort 1
DstBlock "Display"
DstPort 1
}
Line {
SrcBlock "Real-Imag to\nComplex"
SrcPort 1
DstBlock "Buffer1"
DstPort 1
}
Line {
SrcBlock "Complex to\nReal-Imag1"
SrcPort 2
Points [0, -40]
DstBlock "Buffer4"
DstPort 1
}
Line {
SrcBlock "Buffer3"
SrcPort 1
DstBlock "Embedded\nMATLAB Function"
DstPort 1
}
Line {
SrcBlock "From1"
SrcPort 1
Points [285, 0]
Branch {
DstBlock "Error Rate\nCalculation"
DstPort 1
}
Branch {
Points [0, -25]
DstBlock "Scope13"
DstPort 1
}
}
Line {
SrcBlock "Integer Delay"
SrcPort 1
Points [35, 0]
Branch {
DstBlock "Error Rate\nCalculation"
DstPort 2
}
Branch {
DstBlock "Scope10"
DstPort 1
}
}
Line {
SrcBlock "Embedded\nMATLAB Function"
SrcPort 1
Points [-20, 0]
Branch {
Points [0, 0]
DstBlock "Scope9"
DstPort 1
}
Branch {
DstBlock "Goto2"
DstPort 1
}
}
Line {
SrcBlock "Buffer4"
SrcPort 1
DstBlock "Embedded\nMATLAB Function1"
DstPort 1
}
Line {
SrcBlock "Embedded\nMATLAB Function1"
SrcPort 1
Points [30, 0]
DstBlock "Integer Delay1"
DstPort 1
}
Line {
SrcBlock "Integer Delay1"
SrcPort 1
Points [0, 20]
DstBlock "Scope1"
DstPort 1
}
Line {
SrcBlock "Squaring\nTiming Recovery"
SrcPort 1
Points [40, 0]
Branch {
DstBlock "Discrete-Time\nScatter Plot\nScope2"
DstPort 1
}
Branch {
DstBlock "Complex to\nReal-Imag1"
DstPort 1
}
}
Line {
SrcBlock "Selector"
SrcPort 1
DstBlock "Display1"
DstPort 1
}
Line {
SrcBlock "Squaring\nTiming Recovery"
SrcPort 2
Points [40, 0; 0, 80]
DstBlock "Selector"
DstPort 1
}
Line {
SrcBlock "Buffer1"
SrcPort 1
DstBlock "Squaring\nTiming Recovery"
DstPort 1
}
}
}
# Finite State Machines
#
# Stateflow Version 6.0 (R14) dated Apr 30 2004, 06:19:14
#
#
Stateflow {
machine {
id 1
name "Qam16"
created "28-Jul-2005 10:00:05"
isLibrary 0
firstTarget 16
sfVersion 60014000.000006
}
chart {
id 2
name "Embedded\n"
"MATLAB Function1"
windowPosition [240.45 333.75 200.25 189.75]
viewLimits [0 156.75 0 153.75]
screen [1 1 1024 768 1.333333333333333]
treeNode [0 3 0 0]
firstTransition 5
firstJunction 4
viewObj 2
machine 1
decomposition CLUSTER_CHART
type EML_CHART
firstData 6
chartFileNumber 1
disableImplicitCasting 1
eml {
name "fcn"
}
}
state {
id 3
labelString "eML_blk_kernel()"
position [18 64.5 118 66]
fontSize 12
chart 2
treeNode [2 0 0 0]
superState SUBCHART
subviewer 2
type FUNC_STATE
decomposition CLUSTER_STATE
eml {
isEML 1
script "function y = fcn(u)\n"
"% This block supports an embeddable subset of the MATLAB la"
"nguage.\n"
"% See the help menu for details. \n"
"if u>2;\n"
" y=3;\n"
"elseif u>0\n"
" y=1;\n"
"elseif u>-2\n"
" y=-1;\n"
"else\n"
" y=-3;\n"
"end;\n"
" "
editorLayout "100 M4x1[241 339 671 364]"
}
}
junction {
id 4
position [23.5747 49.5747 7]
chart 2
linkNode [2 0 0]
subviewer 2
type CONNECTIVE_JUNCTION
}
transition {
id 5
labelString "{eML_blk_kernel();}"
labelPosition [32.125 19.875 102.544 14.964]
fontSize 12
src {
intersection [0 0 1 0 23.5747 14.625 0 0]
}
dst {
id 4
intersection [7 0 -1 -1 23.5747 42.5747 0 0]
}
midPoint [23.5747 24.9468]
chart 2
linkNode [2 0 0]
dataLimits [21.175 25.975 14.625 42.575]
subviewer 2
drawStyle SMART
}
data {
id 6
name "u"
linkNode [2 0 7]
scope INPUT_DATA
machine 1
dataType "inherited"
fixptType {
bias 0
slope 1
exponent 0
baseType SF_INT16_TYPE
lock 0
}
dlgFixptMode 0
props {
range {
minimum ""
maximum ""
}
array {
size "-1"
}
}
}
data {
id 7
name "y"
linkNode [2 6 0]
scope OUTPUT_DATA
machine 1
dataType "inherited"
fixptType {
bias 0
slope 1
exponent 0
baseType SF_INT16_TYPE
lock 0
}
dlgFixptMode 0
props {
range {
minimum ""
maximum ""
}
array {
size "-1"
}
}
}
instance {
id 8
name "Embedded\n"
"MATLAB Function1"
machine 1
chart 2
}
chart {
id 9
name "Embedded\n"
"MATLAB Function"
windowPosition [225.45 348.75 200.25 189.75]
viewLimits [0 156.75 0 153.75]
screen [1 1 1024 768 1.333333333333333]
treeNode [0 10 0 0]
firstTransition 12
firstJunction 11
viewObj 9
machine 1
decomposition CLUSTER_CHART
type EML_CHART
firstData 13
chartFileNumber 2
disableImplicitCasting 1
eml {
name "fcn"
}
}
state {
id 10
labelString "eML_blk_kernel()"
position [18 64.5 118 66]
fontSize 12
chart 9
treeNode [9 0 0 0]
superState SUBCHART
subviewer 9
type FUNC_STATE
decomposition CLUSTER_STATE
eml {
isEML 1
script "function y = fcn(u)\n"
"% This block supports an embeddable subset of the MATLAB la"
"nguage.\n"
"% See the help menu for details. \n"
"if u>2;\n"
" y=3;\n"
"elseif u>0\n"
" y=1;\n"
"elseif u>-2\n"
" y=-1;\n"
"else\n"
" y=-3;\n"
"end;\n"
" "
editorLayout "100 M4x1[241 339 671 364]"
}
}
junction {
id 11
position [23.5747 49.5747 7]
chart 9
linkNode [9 0 0]
subviewer 9
type CONNECTIVE_JUNCTION
}
transition {
id 12
labelString "{eML_blk_kernel();}"
labelPosition [32.125 19.875 102.544 14.964]
fontSize 12
src {
intersection [0 0 1 0 23.5747 14.625 0 0]
}
dst {
id 11
intersection [7 0 -1 -1 23.5747 42.5747 0 0]
}
midPoint [23.5747 24.9468]
chart 9
linkNode [9 0 0]
dataLimits [21.175 25.975 14.625 42.575]
subviewer 9
drawStyle SMART
}
data {
id 13
name "u"
linkNode [9 0 14]
scope INPUT_DATA
machine 1
dataType "inherited"
fixptType {
bias 0
slope 1
exponent 0
baseType SF_INT16_TYPE
lock 0
}
dlgFixptMode 0
props {
range {
minimum ""
maximum ""
}
array {
size "-1"
}
}
}
data {
id 14
name "y"
linkNode [9 13 0]
scope OUTPUT_DATA
machine 1
dataType "inherited"
fixptType {
bias 0
slope 1
exponent 0
baseType SF_INT16_TYPE
lock 0
}
dlgFixptMode 0
props {
range {
minimum ""
maximum ""
}
array {
size "-1"
}
}
}
instance {
id 15
name "Embedded\n"
"MATLAB Function"
machine 1
chart 9
}
target {
id 16
name "sfun"
description "Default Simulink S-Function Target."
codeFlags " debug=1 overflow=1 echo=1"
machine 1
linkNode [1 0 0]
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -