📄 qpsk.mdl
字号:
Name "Scope7"
Ports [1]
Position [435, 67, 465, 103]
Floating off
Location [22, 170, 501, 396]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData8"
DataFormat "StructureWithTime"
SampleInput on
SampleTime "0.01"
}
Line {
SrcBlock "SOURCE"
SrcPort 1
Points [30, 0]
Branch {
Points [0, -75]
DstBlock "Scope"
DstPort 1
}
Branch {
Points [75, 0]
Branch {
Points [0, -80]
Branch {
Points [0, -70]
DstBlock "Product"
DstPort 2
}
Branch {
DstBlock "Product1"
DstPort 2
}
}
Branch {
Points [0, 90]
Branch {
DstBlock "Product2"
DstPort 2
}
Branch {
Points [0, 55]
DstBlock "Product3"
DstPort 1
}
}
}
}
Line {
SrcBlock "Product"
SrcPort 1
Points [55, 0]
Branch {
DstBlock "Analog\nFilter Design1"
DstPort 1
}
Branch {
Points [0, 30]
DstBlock "Scope7"
DstPort 1
}
}
Line {
SrcBlock "Product1"
SrcPort 1
DstBlock "Analog\nFilter Design2"
DstPort 1
}
Line {
SrcBlock "Product2"
SrcPort 1
Points [40, 0]
Branch {
DstBlock "Analog\nFilter Design3"
DstPort 1
}
Branch {
Points [0, 30]
DstBlock "Scope1"
DstPort 1
}
}
Line {
SrcBlock "Product3"
SrcPort 1
DstBlock "Analog\nFilter Design4"
DstPort 1
}
Line {
SrcBlock "Analog\nFilter Design1"
SrcPort 1
Points [375, 0]
Branch {
Points [0, 150]
DstBlock "PLL"
DstPort 2
}
Branch {
Points [35, 0; 0, 400]
DstBlock "Gain"
DstPort 1
}
}
Line {
SrcBlock "Analog\nFilter Design2"
SrcPort 1
Points [360, 0; 0, 65]
DstBlock "PLL"
DstPort 1
}
Line {
SrcBlock "Analog\nFilter Design4"
SrcPort 1
Points [375, 0; 0, -145]
DstBlock "PLL"
DstPort 3
}
Line {
SrcBlock "Analog\nFilter Design3"
SrcPort 1
Points [360, 0]
Branch {
Points [0, 0; 0, -60]
DstBlock "PLL"
DstPort 4
}
Branch {
Points [35, 0; 0, 265]
DstBlock "Gain1"
DstPort 1
}
}
Line {
SrcBlock "PLL"
SrcPort 1
Points [-460, 0; 0, -145]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "PLL"
SrcPort 2
Points [-445, 0; 0, -90]
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "PLL"
SrcPort 3
Points [-445, 0; 0, 65]
DstBlock "Product2"
DstPort 1
}
Line {
SrcBlock "PLL"
SrcPort 4
Points [-460, 0; 0, 135]
DstBlock "Product3"
DstPort 2
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [-145, 0]
Branch {
DstBlock "Scope2"
DstPort 1
}
Branch {
DstBlock "Compare\nTo Zero"
DstPort 1
}
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [-145, 0]
Branch {
DstBlock "Scope3"
DstPort 1
}
Branch {
DstBlock "Compare\nTo Zero1"
DstPort 1
}
}
Line {
SrcBlock "Compare\nTo Zero"
SrcPort 1
DstBlock "Scope4"
DstPort 1
}
Line {
SrcBlock "Compare\nTo Zero1"
SrcPort 1
DstBlock "Scope5"
DstPort 1
}
Annotation {
Name "0"
Position [644, 180]
}
Annotation {
Name "45"
Position [647, 199]
}
Annotation {
Name "90"
Position [645, 225]
}
Annotation {
Name "135"
Position [643, 243]
}
Annotation {
Name "SIGNAL:I"
Position [750, 446]
}
Annotation {
Name "SIGNAL:Q"
Position [758, 553]
}
}
}
MatData {
NumRecords 2
DataRecord {
Tag DataTag1
Data " %)30 . > 8 ( 0 % "
"\" $ ! 0 . 2 8 ( ! % \" $ "
"2 0 0 $@ $)E<FYO=6QL:4)I;F%R>4=E;@ "
}
DataRecord {
Tag DataTag0
Data " %)30 . > 8 ( 0 % "
"\" $ ! 0 . 2 8 ( ! % \" $ "
"2 0 0 $@ $)E<FYO=6QL:4)I;F%R>4=E;@ "
}
}
# Finite State Machines
#
# Stateflow Version 6.6 (R2007a) dated Jan 30 2007, 03:33:34
#
#
Stateflow {
machine {
id 1
name "qpsk"
created "22-Apr-2008 16:07:04"
isLibrary 0
firstTarget 16
sfVersion 66014000
}
chart {
id 2
name "SOURCE/convert"
windowPosition [270.45 285 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 "nrz"
}
}
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 = nrz(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"
" u=-1;\n"
"end\n"
"y = u;"
editorLayout "100 M4x1[161 328 671 364]"
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 [23.575 23.575 14.625 34.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
}
complexity SF_COMPLEX_INHERITED
}
dataType "inherited"
fixptType {
slope 1
baseType SF_INT16_TYPE
}
complexity SF_COMPLEX_INHERITED
}
data {
id 7
name "y"
linkNode [2 6 0]
scope OUTPUT_DATA
machine 1
props {
array {
size "-1"
}
type {
method SF_INHERITED_TYPE
}
complexity SF_COMPLEX_INHERITED
frame SF_FRAME_NO
}
dataType "inherited"
fixptType {
slope 1
baseType SF_INT16_TYPE
}
complexity SF_COMPLEX_INHERITED
}
instance {
id 8
name "SOURCE/convert"
machine 1
chart 2
}
chart {
id 9
name "SOURCE/convert1"
windowPosition [285.45 270 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 "nrz"
}
}
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 = nrz(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"
" u=-1;\n"
"end\n"
"y = u;"
editorLayout "100 M4x1[161 328 671 364]"
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 [23.575 23.575 14.625 34.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
}
complexity SF_COMPLEX_INHERITED
}
dataType
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -