📄 myqam16.mdl
字号:
}
Line {
SrcBlock "AWGN\nChannel2"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "carrier wave demodulate"
DstPort 1
}
Branch {
Points [-5, 0]
DstBlock "Scope3"
DstPort 1
}
}
Line {
SrcBlock "carrier wave demodulate"
SrcPort 1
Points [5, 0]
Branch {
Points [35, 0]
DstBlock "Real-Imag to\nComplex"
DstPort 1
}
Branch {
Points [0, -55]
DstBlock "Discrete-Time\nEye Diagram\nScope"
DstPort 1
}
}
Line {
SrcBlock "carrier wave demodulate"
SrcPort 2
DstBlock "Real-Imag to\nComplex"
DstPort 2
}
Line {
SrcBlock "Real-Imag to\nComplex"
SrcPort 1
DstBlock "Buffer1"
DstPort 1
}
Line {
SrcBlock "Squaring\nTiming Recovery"
SrcPort 1
Points [-10, 0]
Branch {
Points [0, 75]
DstBlock "Discrete-Time\nScatter Plot\nScope1"
DstPort 1
}
Branch {
DstBlock "verdict"
DstPort 1
}
}
Line {
SrcBlock "verdict"
SrcPort 1
DstBlock "Rectangular QAM\nDemodulator\nBaseband"
DstPort 1
}
Line {
SrcBlock "Integer Delay"
SrcPort 1
Points [20, 0]
Branch {
Points [50, 0]
DstBlock "Relational\nOperator"
DstPort 1
}
Branch {
Points [0, 70]
DstBlock "Scope1"
DstPort 1
}
}
Line {
SrcBlock "Rectangular QAM\nDemodulator\nBaseband"
SrcPort 1
Points [-30, 0]
Branch {
Points [-10, 0]
DstBlock "Relational\nOperator"
DstPort 2
}
Branch {
Points [0, -45; -50, 0; 0, 165]
DstBlock "Scope2"
DstPort 1
}
}
Line {
SrcBlock "Relational\nOperator"
SrcPort 1
Points [0, 30]
DstBlock "Data Type Conversion"
DstPort 1
}
Line {
SrcBlock "Data Type Conversion"
SrcPort 1
DstBlock "Error Rate\nCalculation"
DstPort 2
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [-40, 0; 0, 35]
DstBlock "Error Rate\nCalculation"
DstPort 1
}
Line {
SrcBlock "Error Rate\nCalculation"
SrcPort 1
DstBlock "Display"
DstPort 1
}
Line {
SrcBlock "Buffer1"
SrcPort 1
Points [25, 0; 0, 105]
DstBlock "Squaring\nTiming Recovery"
DstPort 1
}
}
}
MatData {
NumRecords 4
DataRecord {
Tag DataTag3
Data " %)30 . P 8 ( 0 % "
"\" $ \" 0 . 2 8 ( ! % \" $ "
" 4 0 0 % %)A:7-E9$-O<VEN949I;'1E<E1X X ! !@ @"
" $ 4 ( 0 H ! ! * 8V]M;61I86QO9P "
" "
}
DataRecord {
Tag DataTag2
Data " %)30 . P 8 ( 0 % "
"\" $ \" 0 . 2 8 ( ! % \" $ "
" 4 0 0 % %)A:7-E9$-O<VEN949I;'1E<E1X X ! !@ @"
" $ 4 ( 0 H ! ! * 8V]M;61I86QO9P "
" "
}
DataRecord {
Tag DataTag1
Data " %)30 . P 8 ( 0 % "
"\" $ \" 0 . 2 8 ( ! % \" $ "
" 4 0 0 % %)A:7-E9$-O<VEN949I;'1E<E)X X ! !@ @"
" $ 4 ( 0 H ! ! * 8V]M;61I86QO9P "
" "
}
DataRecord {
Tag DataTag0
Data " %)30 . P 8 ( 0 % "
"\" $ \" 0 . 2 8 ( ! % \" $ "
" 4 0 0 % %)A:7-E9$-O<VEN949I;'1E<E)X X ! !@ @"
" $ 4 ( 0 H ! ! * 8V]M;61I86QO9P "
" "
}
}
# Finite State Machines
#
# Stateflow Version 6.2 (R14SP2) dated Aug 4 2005, 10:13:39
#
#
Stateflow {
machine {
id 1
name "myQAM16"
created "02-Sep-2008 22:00:34"
isLibrary 0
firstTarget 16
sfVersion 62014000
}
chart {
id 2
name "verdict/Embedded\n"
"MATLAB Function1"
windowPosition [255.45 318.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]"
fimathString "fimath(...\n"
"'RoundMode', 'floor',...\n"
"'OverflowMode', 'wrap',...\n"
"'ProductMode', 'KeepLSB', 'ProductWordLength', 32,..."
"\n"
"'SumMode', 'KeepLSB', 'SumWordLength', 32,...\n"
"'CastBeforeSum', false)"
treatIntsAsFixpt 0
}
}
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
executionOrder 1
}
data {
id 6
name "u"
linkNode [2 0 7]
scope INPUT_DATA
machine 1
props {
array {
size "-1"
}
type {
method SF_INHERITED_TYPE
}
}
dataType "inherited"
fixptType {
slope 1
baseType SF_INT16_TYPE
}
}
data {
id 7
name "y"
linkNode [2 6 0]
scope OUTPUT_DATA
machine 1
props {
array {
size "-1"
}
type {
method SF_INHERITED_TYPE
}
}
dataType "inherited"
fixptType {
slope 1
baseType SF_INT16_TYPE
}
}
instance {
id 8
name "verdict/Embedded\n"
"MATLAB Function1"
machine 1
chart 2
}
chart {
id 9
name "verdict/Embedded\n"
"MATLAB Function"
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 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]"
fimathString "fimath(...\n"
"'RoundMode', 'floor',...\n"
"'OverflowMode', 'wrap',...\n"
"'ProductMode', 'KeepLSB', 'ProductWordLength', 32,..."
"\n"
"'SumMode', 'KeepLSB', 'SumWordLength', 32,...\n"
"'CastBeforeSum', false)"
treatIntsAsFixpt 0
}
}
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
executionOrder 1
}
data {
id 13
name "u"
linkNode [9 0 14]
scope INPUT_DATA
machine 1
props {
array {
size "-1"
}
type {
method SF_INHERITED_TYPE
}
}
dataType "inherited"
fixptType {
slope 1
baseType SF_INT16_TYPE
}
}
data {
id 14
name "y"
linkNode [9 13 0]
scope OUTPUT_DATA
machine 1
props {
array {
size "-1"
}
type {
method SF_INHERITED_TYPE
}
}
dataType "inherited"
fixptType {
slope 1
baseType SF_INT16_TYPE
}
}
instance {
id 15
name "verdict/Embedded\n"
"MATLAB Function"
machine 1
chart 9
}
target {
id 16
name "sfun"
description "Default Simulink S-Function Target."
machine 1
linkNode [1 0 0]
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -