📄 ch3example24.mdl
字号:
PortNumber 1
Name "解调输出"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Reference
Name "Counter"
Ports [1, 1]
Position [370, 145, 440, 205]
Orientation "left"
FontSize 10
SourceBlock "dspswit3/Counter"
SourceType "Counter"
Direction "Up"
CountEvent "Rising edge"
CounterSize "User defined"
MaxCount "1"
InitialCount "0"
Output "Count"
HitValue "1"
ResetInput off
SamplesPerFrame "1"
Ts "1"
CntDtype "Double"
HitDtype "Logical"
Port {
PortNumber 1
Name "本地恢复载波"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Reference
Name "Manual Switch"
Ports [2, 1]
Position [335, 207, 365, 243]
SourceBlock "simulink/Signal\nRouting/Manual Switch"
SourceType "Manual Switch"
sw "1"
action "0"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [120, 56, 165, 89]
InputSameDT off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [310, 56, 355, 89]
InputSameDT off
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [495, 66, 540, 99]
InputSameDT off
}
Block {
BlockType Product
Name "Product3"
Ports [2, 1]
Position [505, 216, 550, 249]
InputSameDT off
}
Block {
BlockType Scope
Name "Scope1"
Ports [3]
Position [635, 23, 665, 57]
Location [6, 341, 336, 640]
Open on
NumInputPorts "3"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
axes3 ""
}
TimeRange "0.002"
YMin "-1~-0.1~-0.5"
YMax "1~1~0.5"
SaveName "ScopeData2"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope2"
Ports [3]
Position [635, 104, 665, 136]
Location [351, 341, 691, 641]
Open on
NumInputPorts "3"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
axes3 ""
}
TimeRange "0.002"
YMin "-0.3~-1.5~-2"
YMax "0.3~1.5~2"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope3"
Ports [2]
Position [695, 211, 725, 244]
Location [692, 418, 1009, 625]
Open on
NumInputPorts "2"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
}
TimeRange "0.002"
YMin "-1~-0.5"
YMax "1~0.5"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
}
Block {
BlockType SignalGenerator
Name "Signal\nGenerator"
Position [30, 50, 60, 80]
Frequency "1000"
Port {
PortNumber 1
Name "基带"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType SignalGenerator
Name "Signal\nGenerator1"
Position [30, 130, 60, 160]
Frequency "10000"
Port {
PortNumber 1
Name "载波"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Reference
Name "Voltage-Controlled\nOscillator"
Ports [1, 1]
Position [495, 142, 555, 188]
Orientation "left"
FontName "Arial"
FontSize 10
SourceBlock "commcontsrc2/Voltage-Controlled\nOscillator"
SourceType "Voltage-Controlled Oscillator"
Ac "1"
Fc "2.03e4"
Kc "4000"
Ph "0"
}
Line {
Name "基带"
SrcBlock "Signal\nGenerator"
SrcPort 1
Points [5, 0]
Branch {
Labels [1, 0]
DstBlock "Product"
DstPort 1
}
Branch {
Points [0, -55; 605, 0; 0, 210]
DstBlock "Scope3"
DstPort 1
}
}
Line {
Name "载波"
SrcBlock "Signal\nGenerator1"
SrcPort 1
Points [25, 0]
Branch {
Labels [1, 0]
Points [0, -65]
DstBlock "Product"
DstPort 2
}
Branch {
Points [0, 90]
DstBlock "Manual Switch"
DstPort 2
}
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "AWGN\nChannel"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
DstBlock "Analog\nFilter Design"
DstPort 1
}
Branch {
Points [0, -35]
DstBlock "Scope1"
DstPort 2
}
}
Line {
SrcBlock "Analog\nFilter Design"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
DstBlock "Product2"
DstPort 1
}
Branch {
Points [0, -25]
DstBlock "Scope1"
DstPort 3
}
}
Line {
SrcBlock "Voltage-Controlled\nOscillator"
SrcPort 1
Points [0, 0; -20, 0]
Branch {
Points [0, 10]
DstBlock "Counter"
DstPort 1
}
Branch {
Points [0, -45]
Branch {
Points [0, -30]
DstBlock "Product2"
DstPort 2
}
Branch {
DstBlock "Scope2"
DstPort 2
}
}
}
Line {
SrcBlock "Product2"
SrcPort 1
Points [55, 0; 0, 25]
Branch {
Points [0, 55]
DstBlock "Voltage-Controlled\nOscillator"
DstPort 1
}
Branch {
DstBlock "Scope2"
DstPort 1
}
}
Line {
SrcBlock "Product3"
SrcPort 1
DstBlock "Analog\nFilter Design1"
DstPort 1
}
Line {
SrcBlock "Manual Switch"
SrcPort 1
DstBlock "Product3"
DstPort 1
}
Line {
Name "本地恢复载波"
Labels [0, 0]
SrcBlock "Counter"
SrcPort 1
Points [0, 0; -65, 0]
Branch {
Points [0, 40]
DstBlock "Manual Switch"
DstPort 1
}
Branch {
Points [0, -45]
DstBlock "Scope2"
DstPort 3
}
}
Line {
Name "解调输出"
Labels [0, 0]
SrcBlock "Analog\nFilter Design1"
SrcPort 1
DstBlock "Scope3"
DstPort 2
}
Line {
SrcBlock "AWGN\nChannel"
SrcPort 1
Points [15, 0]
Branch {
Points [5, 0]
Branch {
Points [0, -10]
DstBlock "Product1"
DstPort 1
}
Branch {
Points [0, 5]
DstBlock "Product1"
DstPort 2
}
}
Branch {
Points [0, 185; 205, 0]
DstBlock "Product3"
DstPort 2
}
Branch {
Points [0, -45]
DstBlock "Scope1"
DstPort 1
}
}
Annotation {
Name "DSB-SC调制"
Position [138, 113]
}
Annotation {
Name "相干解调"
Position [528, 271]
}
Annotation {
Name "低通滤波"
Position [610, 300]
}
Annotation {
Name "PLL"
Position [607, 172]
}
Annotation {
Name "抑制载波双边带调制的平方环载波恢复和解调模型\n"
"文件名:ch3example24.mdl"
Position [163, 289]
DropShadow on
FontName "Arial"
FontSize 12
}
Annotation {
Name "平方"
Position [332, 107]
}
Annotation {
Name "信道"
Position [222, 132]
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -