📄 oqpsk.mdl
字号:
}
}
Line {
SrcBlock "Buffer5"
SrcPort 1
DstBlock "Embedded\nMATLAB Function1"
DstPort 1
}
Line {
SrcBlock "Embedded\nMATLAB Function1"
SrcPort 1
Points [30, 0; 0, 110]
DstBlock "Scope1"
DstPort 1
}
Line {
SrcBlock "Integer Delay"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "Error Rate\nCalculation1"
DstPort 2
}
Branch {
DstBlock "Scope10"
DstPort 1
}
}
Line {
SrcBlock "Embedded\nMATLAB Function2"
SrcPort 1
DstBlock "Integer Delay"
DstPort 1
}
Line {
SrcBlock "Complex to\nReal-Imag"
SrcPort 2
DstBlock "Integer Delay1"
DstPort 1
}
Line {
SrcBlock "Integer Delay1"
SrcPort 1
Points [10, 0; 0, 40]
Branch {
DstBlock "Q-Raised Cosine\nTransmit Filter1"
DstPort 1
}
Branch {
DstBlock "Scope7"
DstPort 1
}
}
Line {
SrcBlock "Selector1"
SrcPort 1
DstBlock "Display1"
DstPort 1
}
Line {
SrcBlock "Squaring\nTiming Recovery1"
SrcPort 1
Points [0, 0; 80, 0]
Branch {
DstBlock "Complex to\nReal-Imag1"
DstPort 1
}
Branch {
DstBlock "Discrete-Time\nScatter Plot\nScope2"
DstPort 1
}
}
Line {
SrcBlock "Squaring\nTiming Recovery1"
SrcPort 2
Points [80, 0; 0, 80]
DstBlock "Selector1"
DstPort 1
}
}
}
# Finite State Machines
#
# Stateflow Version 6.0 (R14) dated Apr 30 2004, 06:19:14
#
#
Stateflow {
machine {
id 1
name "OQPSK"
created "28-Jul-2005 21:10:45"
isLibrary 0
firstTarget 23
sfVersion 60014000.000006
}
chart {
id 2
name "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>0\n"
" y=1;\n"
"else\n"
" y=-1;\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 [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]"
}
}
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
}
chart {
id 16
name "Embedded\n"
"MATLAB Function2"
windowPosition [270.45 303.75 200.25 189.75]
viewLimits [0 156.75 0 153.75]
screen [1 1 1024 768 1.333333333333333]
treeNode [0 17 0 0]
firstTransition 19
firstJunction 18
viewObj 16
machine 1
decomposition CLUSTER_CHART
type EML_CHART
firstData 20
chartFileNumber 3
disableImplicitCasting 1
eml {
name "fcn"
}
}
state {
id 17
labelString "eML_blk_kernel()"
position [18 64.5 118 66]
fontSize 12
chart 16
treeNode [16 0 0 0]
superState SUBCHART
subviewer 16
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>0\n"
" y=1;\n"
"else\n"
" y=-1;\n"
"end;\n"
" "
editorLayout "100 M4x1[241 339 671 364]"
}
}
junction {
id 18
position [23.5747 49.5747 7]
chart 16
linkNode [16 0 0]
subviewer 16
type CONNECTIVE_JUNCTION
}
transition {
id 19
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 18
intersection [7 0 -1 -1 23.5747 42.5747 0 0]
}
midPoint [23.5747 24.9468]
chart 16
linkNode [16 0 0]
dataLimits [21.175 25.975 14.625 42.575]
subviewer 16
drawStyle SMART
}
data {
id 20
name "u"
linkNode [16 0 21]
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 21
name "y"
linkNode [16 20 0]
scope OUTPUT_DATA
machine 1
dataType "inherited"
fixptType {
bias 0
slope
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -