📄 qpsk.mdl
字号:
ListType RTWdata
TLCFile "extended_custcode"
Location "Subsystem Enable Function"
Top "/* Top Code */\n"
Middle "/*Middle Code */\n"
Bottom "/*Bottom Code*/\n"
Unique "Multiple"
Key ""
}
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Array {
Type "Handle"
Dimension 0
PropName "AvailSigsLoadSave"
}
MaskHideContents off
MaskType "Stateflow"
MaskDescription "Embedded MATLAB block"
MaskDisplay "disp('nrz');"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "convert"
Location [257, 457, 812, 717]
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"
Block {
BlockType Inport
Name "u"
Position [20, 101, 40, 119]
IconDisplay "Port number"
}
Block {
BlockType Demux
Name " Demux "
Ports [1, 1]
Position [270, 160, 320, 200]
Outputs "1"
}
Block {
BlockType "S-Function"
Name " SFunction "
Tag "Stateflow S-Function qpsk 1"
Ports [1, 2]
Position [180, 100, 230, 160]
FunctionName "sf_sfun"
PortCounts "[1 2]"
Port {
PortNumber 2
Name "y"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Terminator
Name " Terminator "
Position [460, 171, 480, 189]
}
Block {
BlockType Outport
Name "y"
Position [460, 101, 480, 119]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock " SFunction "
SrcPort 1
Points [0, 65]
DstBlock " Demux "
DstPort 1
}
Line {
SrcBlock " Demux "
SrcPort 1
DstBlock " Terminator "
DstPort 1
}
Line {
SrcBlock "u"
SrcPort 1
DstBlock " SFunction "
DstPort 1
}
Line {
Name "y"
Labels [0, 0]
SrcBlock " SFunction "
SrcPort 2
DstBlock "y"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "convert1"
Ports [1, 1]
Position [250, 292, 320, 338]
List {
ListType RTWdata
TLCFile "extended_custcode"
Location "Subsystem Enable Function"
Top "/* Top Code */\n"
Middle "/*Middle Code */\n"
Bottom "/*Bottom Code*/\n"
Unique "Multiple"
Key ""
}
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Array {
Type "Handle"
Dimension 0
PropName "AvailSigsLoadSave"
}
MaskHideContents off
MaskType "Stateflow"
MaskDescription "Embedded MATLAB block"
MaskDisplay "disp('nrz');"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "convert1"
Location [257, 457, 812, 717]
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"
Block {
BlockType Inport
Name "u"
Position [20, 101, 40, 119]
IconDisplay "Port number"
}
Block {
BlockType Demux
Name " Demux "
Ports [1, 1]
Position [270, 160, 320, 200]
Outputs "1"
}
Block {
BlockType "S-Function"
Name " SFunction "
Tag "Stateflow S-Function qpsk 2"
Ports [1, 2]
Position [180, 100, 230, 160]
FunctionName "sf_sfun"
PortCounts "[1 2]"
Port {
PortNumber 2
Name "y"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Terminator
Name " Terminator "
Position [460, 171, 480, 189]
}
Block {
BlockType Outport
Name "y"
Position [460, 101, 480, 119]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock " SFunction "
SrcPort 1
Points [0, 65]
DstBlock " Demux "
DstPort 1
}
Line {
SrcBlock " Demux "
SrcPort 1
DstBlock " Terminator "
DstPort 1
}
Line {
SrcBlock "u"
SrcPort 1
DstBlock " SFunction "
DstPort 1
}
Line {
Name "y"
Labels [0, 0]
SrcBlock " SFunction "
SrcPort 2
DstBlock "y"
DstPort 1
}
}
}
Block {
BlockType Sin
Name "coswt"
Ports [0, 1]
Position [355, 135, 385, 165]
SineType "Time based"
Frequency "2*pi"
Phase "pi/2"
SampleTime "0"
}
Block {
BlockType Sin
Name "sinwt"
Ports [0, 1]
Position [360, 345, 390, 375]
SineType "Time based"
Frequency "2*pi"
SampleTime "0"
}
Block {
BlockType Outport
Name "Out1"
Position [835, 198, 865, 212]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [0, 5; 30, 0]
Branch {
Points [0, -75]
DstBlock "Scope5"
DstPort 1
}
Branch {
DstBlock "Out1"
DstPort 1
}
}
Line {
SrcBlock "Bernoulli Binary\nGenerator2"
SrcPort 1
Points [30, 0]
Branch {
DstBlock "convert1"
DstPort 1
}
Branch {
Points [0, -60]
DstBlock "Scope3"
DstPort 1
}
}
Line {
Labels [1, 0]
SrcBlock "Product2"
SrcPort 1
Points [20, 0]
Branch {
Points [0, -70]
DstBlock "Scope2"
DstPort 1
}
Branch {
Points [75, 0; 0, -110]
DstBlock "Sum"
DstPort 2
}
}
Line {
SrcBlock "sinwt"
SrcPort 1
Points [55, 0]
DstBlock "Product2"
DstPort 2
}
Line {
SrcBlock "convert1"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Product2"
DstPort 1
}
Branch {
Points [0, -60]
DstBlock "Scope4"
DstPort 1
}
}
Line {
SrcBlock "Bernoulli Binary\nGenerator1"
SrcPort 1
Points [30, 0]
Branch {
DstBlock "convert"
DstPort 1
}
Branch {
Points [0, -60]
DstBlock "Scope0"
DstPort 1
}
}
Line {
Labels [1, 0]
SrcBlock "Product1"
SrcPort 1
Points [20, 0]
Branch {
Points [0, -70]
DstBlock "Scope"
DstPort 1
}
Branch {
Points [80, 0; 0, 85]
DstBlock "Sum"
DstPort 1
}
}
Line {
SrcBlock "coswt"
SrcPort 1
Points [55, 0]
DstBlock "Product1"
DstPort 2
}
Line {
SrcBlock "convert"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Product1"
DstPort 1
}
Branch {
Points [0, -60]
DstBlock "Scope1"
DstPort 1
}
}
}
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [140, 119, 170, 151]
Floating off
Location [1, 52, 1025, 737]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData7"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [435, 307, 465, 343]
Floating off
Location [235, 284, 714, 510]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData9"
DataFormat "StructureWithTime"
SampleInput on
SampleTime "0.01"
}
Block {
BlockType Scope
Name "Scope2"
Ports [1]
Position [610, 397, 640, 433]
Orientation "left"
NamePlacement "alternate"
Floating off
Location [244, 64, 723, 290]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData10"
DataFormat "StructureWithTime"
SampleInput on
SampleTime "0.01"
}
Block {
BlockType Scope
Name "Scope3"
Ports [1]
Position [610, 487, 640, 523]
Orientation "left"
NamePlacement "alternate"
Floating off
Location [186, 335, 665, 561]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData11"
DataFormat "StructureWithTime"
SampleInput on
SampleTime "0.01"
}
Block {
BlockType Scope
Name "Scope4"
Ports [1]
Position [415, 437, 445, 473]
Orientation "left"
NamePlacement "alternate"
Floating off
Location [192, 529, 671, 756]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData12"
DataFormat "StructureWithTime"
SampleInput on
SampleTime "0.01"
}
Block {
BlockType Scope
Name "Scope5"
Ports [1]
Position [415, 542, 445, 578]
Orientation "left"
NamePlacement "alternate"
Floating off
Location [1, 52, 1025, 737]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData13"
DataFormat "StructureWithTime"
SampleInput on
SampleTime "0.01"
}
Block {
BlockType Scope
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -