📄 qpsk.mdl
字号:
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [75, 78, 105, 92]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType ActionPort
Name "Action Port"
Position [170, 15, 229, 43]
InitializeStates "reset"
ActionType "then"
}
Block {
BlockType Outport
Name "Out1"
Position [325, 78, 355, 92]
IconDisplay "Port number"
BusOutputAsStruct off
OutputWhenDisabled "reset"
InitialOutput "[0]"
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Switch Case Action\nSubsystem3"
Ports [1, 1, 0, 0, 0, 0, 0, 1]
Position [360, 618, 430, 652]
TreatAsAtomicUnit on
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Switch Case Action\nSubsystem3"
Location [463, 303, 965, 618]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [75, 78, 105, 92]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType ActionPort
Name "Action Port"
Position [170, 15, 229, 43]
InitializeStates "reset"
ActionType "then"
}
Block {
BlockType Outport
Name "Out1"
Position [325, 78, 355, 92]
IconDisplay "Port number"
BusOutputAsStruct off
OutputWhenDisabled "reset"
InitialOutput "[0]"
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType Sin
Name "cos Wave"
Ports [0, 1]
Position [140, 55, 170, 85]
SineType "Time based"
Amplitude "2"
Frequency "2*pi*20"
Phase "pi/2"
SampleTime "1/500"
}
Line {
SrcBlock "cos Wave"
SrcPort 1
Points [15, 0]
Branch {
Points [0, 35]
DstBlock "Product"
DstPort 1
}
Branch {
DstBlock "Scope8"
DstPort 1
}
}
Line {
SrcBlock "From\nWorkspace"
SrcPort 1
Points [5, 0]
Branch {
Points [80, 0]
Branch {
Points [0, -40]
DstBlock "Product"
DstPort 2
}
Branch {
Points [0, 35]
DstBlock "Product1"
DstPort 1
}
}
Branch {
DstBlock "Scope2"
DstPort 1
}
}
Line {
SrcBlock "Sine Wave1"
SrcPort 1
Points [20, 0]
Branch {
Points [0, -20]
DstBlock "Product1"
DstPort 2
}
Branch {
Points [0, 20]
DstBlock "Scope3"
DstPort 1
}
}
Line {
SrcBlock "Product"
SrcPort 1
Points [20, 0]
Branch {
Points [0, -30]
DstBlock "Scope"
DstPort 1
}
Branch {
DstBlock "Digital\nFilter Design"
DstPort 1
}
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [20, 0; 0, -5]
Branch {
Points [0, 50]
DstBlock "Scope1"
DstPort 1
}
Branch {
Points [0, 0]
DstBlock "Digital\nFilter Design1"
DstPort 1
}
}
Line {
SrcBlock "Digital\nFilter Design1"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Rounding\nFunction1"
DstPort 1
}
Branch {
Points [0, 50]
DstBlock "Scope4"
DstPort 1
}
}
Line {
SrcBlock "Digital\nFilter Design"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Rounding\nFunction"
DstPort 1
}
Branch {
Points [0, -35]
DstBlock "Scope5"
DstPort 1
}
}
Line {
SrcBlock "Rounding\nFunction"
SrcPort 1
Points [15, 0]
Branch {
Points [0, -30]
DstBlock "Scope6"
DstPort 1
}
Branch {
Points [0, 35; 90, 0; 0, 150; -615, 0; 0, 15]
Branch {
DstBlock "If"
DstPort 1
}
Branch {
Points [0, 90]
Branch {
Points [0, 90]
Branch {
Points [0, 90]
DstBlock "If3"
DstPort 1
}
Branch {
DstBlock "If2"
DstPort 1
}
}
Branch {
Points [0, -5]
DstBlock "If1"
DstPort 1
}
}
}
}
Line {
SrcBlock "Rounding\nFunction1"
SrcPort 1
Points [10, 0; 0, -15]
Branch {
Points [0, 65]
DstBlock "Scope7"
DstPort 1
}
Branch {
Points [70, 0; 0, 105; -610, 0; 0, 45]
Branch {
Points [0, 85]
Branch {
Points [0, 95]
Branch {
Points [0, 90]
DstBlock "If3"
DstPort 2
}
Branch {
DstBlock "If2"
DstPort 2
}
}
Branch {
DstBlock "If1"
DstPort 2
}
}
Branch {
DstBlock "If"
DstPort 2
}
}
}
Line {
SrcBlock "If"
SrcPort 1
Points [80, 0]
DstBlock "Switch Case Action\nSubsystem"
DstPort ifaction
}
Line {
SrcBlock "Switch Case Action\nSubsystem"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Scope9"
DstPort 1
}
Branch {
DstBlock "Add2"
DstPort 1
}
}
Line {
SrcBlock "If1"
SrcPort 1
Points [80, 0]
DstBlock "Switch Case Action\nSubsystem1"
DstPort ifaction
}
Line {
SrcBlock "Switch Case Action\nSubsystem1"
SrcPort 1
Points [10, 0]
Branch {
Points [5, 0]
DstBlock "Scope10"
DstPort 1
}
Branch {
Points [95, 0; 0, -75]
DstBlock "Add2"
DstPort 2
}
}
Line {
SrcBlock "Constant1"
SrcPort 1
DstBlock "Switch Case Action\nSubsystem1"
DstPort 1
}
Line {
SrcBlock "If2"
SrcPort 1
Points [80, 0]
DstBlock "Switch Case Action\nSubsystem2"
DstPort ifaction
}
Line {
SrcBlock "Switch Case Action\nSubsystem2"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Scope11"
DstPort 1
}
Branch {
Points [0, 25; 125, 0; 0, 25]
DstBlock "Add1"
DstPort 1
}
}
Line {
SrcBlock "Constant2"
SrcPort 1
Points [25, 0; 0, -5]
DstBlock "Switch Case Action\nSubsystem2"
DstPort 1
}
Line {
SrcBlock "If3"
SrcPort 1
Points [80, 0]
DstBlock "Switch Case Action\nSubsystem3"
DstPort ifaction
}
Line {
SrcBlock "Switch Case Action\nSubsystem3"
SrcPort 1
Points [15, 0]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -