📄 qpskusingsimulink.htm
字号:
Line {
SrcBlock "S1"
SrcPort 1
Points [35, 0; 0, 35]
DstBlock "S3"
DstPort 1
}
Line {
SrcBlock "S2"
SrcPort 1
Points [35, 0; 0, -55]
DstBlock "S3"
DstPort 2
}
Line {
SrcBlock "S3"
SrcPort 1
DstBlock "QPSK_out"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "background1"
Ports []
Position [322, 115, 774, 472]
BackgroundColor "yellow"
ShowName off
FontName "Arial"
FontSize 9
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskDisplay "disp('')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "background1"
Location [209, 325, 575, 532]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
}
}
Line {
SrcBlock " I & Q date "
SrcPort 1
Points [0, 15; 100, 0]
Branch {
Points [0, 65]
DstBlock "Embedded\nMATLAB Function_Odd"
DstPort 1
}
Branch {
Points [595, 0; 0, 115]
DstBlock "Scope"
DstPort 1
}
}
Line {
SrcBlock "Carrier Shifter "
SrcPort 2
Points [0, -5]
DstBlock "Embedded\nMATLAB Function_Odd"
DstPort 3
}
Line {
SrcBlock " I & Q date "
SrcPort 2
Points [0, 15; 75, 0]
Branch {
Points [0, 205]
DstBlock "Embedded\nMATLAB Function_Even"
DstPort 1
}
Branch {
Labels [1, 0]
Points [0, -25; 600, 0; 0, 140]
DstBlock "Scope"
DstPort 2
}
}
Line {
Labels [0, 0]
SrcBlock "Embedded\nMATLAB Function_Odd"
SrcPort 1
Points [70, 0]
DstBlock "Sum Ch_I , Ch_Q"
DstPort 1
}
Line {
Labels [0, 0]
SrcBlock "Embedded\nMATLAB Function_Even"
SrcPort 1
Points [65, 0]
DstBlock "Sum Ch_I , Ch_Q"
DstPort 2
}
Line {
SrcBlock "Sum Ch_I , Ch_Q"
SrcPort 1
DstBlock "Scope"
DstPort 3
}
Line {
SrcBlock "Carrier Shifter "
SrcPort 4
Points [70, 0; 0, 85]
DstBlock "Embedded\nMATLAB Function_Even"
DstPort 3
}
Line {
SrcBlock "Carrier Shifter "
SrcPort 3
Points [110, 0; 0, 90]
DstBlock "Embedded\nMATLAB Function_Even"
DstPort 2
}
Line {
SrcBlock "Carrier Shifter "
SrcPort 1
DstBlock "Embedded\nMATLAB Function_Odd"
DstPort 2
}
Annotation {
Name " QPSK Modulator "
Position [550, 535]
ForegroundColor "cyan"
DropShadow on
FontName "Arial Rounded MT Bold"
FontSize 18
FontWeight "bold"
FontAngle "italic"
}
Annotation {
Name " "
Position [819, 266]
}
Annotation {
Name " I_signal"
Position [923, 187]
}
Annotation {
Name "Q_signal"
Position [925, 230]
}
Annotation {
Name "QPSK_signal "
Position [927, 268]
}
Annotation {
Name "Gihad Elamary\ngihad.elamary1@ncl.ac.uk\nDate:- 23/06/08"
Position [127, 597]
ForegroundColor "orange"
BackgroundColor "gray"
DropShadow on
FontSize 14
}
}
}
# Finite State Machines
#
# Stateflow Version 6.7 (R2007b) dated Aug 7 2007, 16:48:14
#
#
Stateflow {
machine {
id 1
name "bpsk"
created "29-Sep-2006 12:05:01"
isLibrary 0
firstTarget 20
sfVersion 67014000.000001
}
chart {
id 2
name "Embedded\nMATLAB Function_Even"
windowPosition [270.45 303.75 200.25 189.75]
viewLimits [0 156.75 0 153.75]
screen [1 1 1280 1024 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 "QPSK_A"
}
}
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 out_a=QPSK_A(Q_in ,No_shift,Shift)\nif Q_in == 1\n out_a = No_shift\nelse\n out_a = Shift\nend"
editorLayout "100 M4x1[348 500 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 [23.575 23.575 14.625 34.575]
subviewer 2
drawStyle SMART
executionOrder 1
}
data {
id 6
name "Q_in"
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 "out_a"
linkNode [2 6 8]
scope OUTPUT_DATA
machine 1
props {
array {
size "-1"
}
type {
method SF_INHERITED_TYPE
}
frame SF_FRAME_NO
}
dataType "inherited"
fixptType {
slope 1
baseType SF_INT16_TYPE
}
}
data {
id 8
name "No_shift"
linkNode [2 7 9]
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 9
name "Shift"
linkNode [2 8 0]
scope INPUT_DATA
machine 1
props {
array {
size "-1"
}
type {
method SF_INHERITED_TYPE
}
}
dataType "inherited"
fixptType {
slope 1
baseType SF_INT16_TYPE
}
}
instance {
id 10
name "Embedded\nMATLAB Function_Even"
machine 1
chart 2
}
chart {
id 11
name "Embedded\nMATLAB Function_Odd"
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 12 0 0]
firstTransition 14
firstJunction 13
viewObj 11
machine 1
decomposition CLUSTER_CHART
type EML_CHART
firstData 15
chartFileNumber 2
disableImplicitCasting 1
eml {
name "QPSK_A"
}
}
state {
id 12
labelString "eML_blk_kernel()"
position [18 64.5 118 66]
fontSize 12
chart 11
treeNode [11 0 0 0]
superState SUBCHART
subviewer 11
type FUNC_STATE
decomposition CLUSTER_STATE
eml {
isEML 1
script "function out_a=QPSK_A(I_in,No_shift,Shift)\nif I_in == 1\n out_a = No_shift\nelse\n out_a = Shift\nend"
editorLayout "100 M4x1[348 500 671 364]"
}
}
junction {
id 13
position [23.5747 49.5747 7]
chart 11
linkNode [11 0 0]
subviewer 11
type CONNECTIVE_JUNCTION
}
transition {
id 14
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 13
intersection [7 0 -1 -1 23.5747 42.5747 0 0]
}
midPoint [23.5747 24.9468]
chart 11
linkNode [11 0 0]
dataLimits [21.175 25.975 14.625 42.575]
subviewer 11
drawStyle SMART
executionOrder 1
}
data {
id 15
name "I_in"
linkNode [11 0 16]
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 16
name "out_a"
linkNode [11 15 17]
scope OUTPUT_DATA
machine 1
props {
array {
size "-1"
}
type {
method SF_INHERITED_TYPE
}
frame SF_FRAME_NO
}
dataType "inherited"
fixptType {
slope 1
baseType SF_INT16_TYPE
}
}
data {
id 17
name "No_shift"
linkNode [11 16 18]
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 18
name "Shift"
linkNode [11 17 0]
scope INPUT_DATA
machine 1
props {
array {
size "-1"
}
type {
method SF_INHERITED_TYPE
}
}
dataType "inherited"
fixptType {
slope 1
baseType SF_INT16_TYPE
}
}
instance {
id 19
name "Embedded\nMATLAB Function_Odd"
machine 1
chart 11
}
target {
id 20
name "sfun"
description "Default Simulink S-Function Target."
machine 1
linkNode [1 0 0]
}
}
</PRE></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -