📄 ch5example3.mdl
字号:
}
Block {
BlockType Saturate
Name "Saturation1"
Position [370, 180, 400, 210]
UpperLimit "inf"
LowerLimit "0"
}
Block {
BlockType Scope
Name "Scope1"
Ports [2]
Position [595, 170, 625, 205]
Location [49, 456, 373, 695]
Open on
NumInputPorts "2"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
}
TimeRange "0.005"
YMin "-3~0"
YMax "3~2"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Reference
Name "Slider\nGain"
Ports [1, 1]
Position [110, 350, 155, 380]
SourceBlock "simulink/Math\nOperations/Slider\nGain"
SourceType "Slider Gain"
low "550"
gain "1200"
high "1605"
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [0, 1]
Position [20, 15, 60, 65]
TreatAsAtomicUnit off
System {
Name "Subsystem"
Location [293, 101, 563, 303]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Constant
Name "Constant"
Position [25, 90, 55, 120]
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [145, 31, 190, 64]
InputSameDT off
}
Block {
BlockType SignalGenerator
Name "Signal\nGenerator"
Position [25, 25, 55, 55]
Amplitude "0.3*1"
Frequency "1000"
}
Block {
BlockType SignalGenerator
Name "Signal\nGenerator1"
Position [25, 145, 55, 175]
Frequency "1000e3"
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 Sum
Name "Sum"
Ports [2, 1]
Position [80, 30, 100, 50]
ShowName off
IconShape "round"
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Outport
Name "Out1"
Position [215, 45, 245, 59]
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [30, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Signal\nGenerator"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Product"
DstPort 1
}
Line {
Name "载波"
Labels [0, 0]
SrcBlock "Signal\nGenerator1"
SrcPort 1
Points [70, 0]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Subsystem1"
Ports [0, 1]
Position [20, 119, 60, 171]
TreatAsAtomicUnit off
System {
Name "Subsystem1"
Location [293, 101, 563, 303]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Constant
Name "Constant"
Position [25, 90, 55, 120]
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [145, 31, 190, 64]
InputSameDT off
}
Block {
BlockType SignalGenerator
Name "Signal\nGenerator"
Position [25, 25, 55, 55]
WaveForm "sawtooth"
Amplitude "0.3*1"
Frequency "500"
}
Block {
BlockType SignalGenerator
Name "Signal\nGenerator1"
Position [25, 145, 55, 175]
Frequency "1200e3"
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 Sum
Name "Sum"
Ports [2, 1]
Position [80, 30, 100, 50]
ShowName off
IconShape "round"
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Outport
Name "Out1"
Position [215, 43, 245, 57]
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
Name "载波"
Labels [0, 0]
SrcBlock "Signal\nGenerator1"
SrcPort 1
Points [70, 0]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Signal\nGenerator"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [30, 0]
DstBlock "Sum"
DstPort 2
}
}
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [235, 30, 255, 50]
ShowName off
IconShape "round"
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [160, 30, 180, 50]
ShowName off
IconShape "round"
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Reference
Name "Voltage-Controlled\nOscillator"
Ports [1, 1]
Position [220, 278, 300, 322]
FontName "Arial"
FontSize 10
SourceBlock "commcontsrc2/Voltage-Controlled\nOscillator"
SourceType "Voltage-Controlled Oscillator"
Ac "1"
Fc "465e3"
Kc "1e3"
Ph "0"
Port {
PortNumber 1
Name "本机振荡"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Line {
SrcBlock "Random\nNumber"
SrcPort 1
Points [10, 0]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Product混频"
DstPort 1
}
Line {
SrcBlock "Slider\nGain"
SrcPort 1
Points [-5, 0; 15, 0]
Branch {
DstBlock "Display1接收频率显示 KHz"
DstPort 1
}
Branch {
Points [0, -65]
DstBlock "Voltage-Controlled\nOscillator"
DstPort 1
}
}
Line {
SrcBlock "Constant1"
SrcPort 1
DstBlock "Slider\nGain"
DstPort 1
}
Line {
SrcBlock "Saturation1"
SrcPort 1
DstBlock "Analog\nFilter Design3"
DstPort 1
}
Line {
Name "本机振荡"
Labels [2, 0]
SrcBlock "Voltage-Controlled\nOscillator"
SrcPort 1
Points [10, 0; 0, -245]
DstBlock "Product混频"
DstPort 2
}
Line {
SrcBlock "Product混频"
SrcPort 1
DstBlock "Analog\nFilter Design1"
DstPort 1
}
Line {
SrcBlock "Analog\nFilter Design1"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Analog\nFilter Design2"
DstPort 1
}
Line {
SrcBlock "Analog\nFilter Design2"
SrcPort 1
Points [10, 0; 0, 100; -70, 0]
Branch {
Points [-210, 0; 0, 45]
DstBlock "Saturation1"
DstPort 1
}
Branch {
Points [0, 30]
DstBlock "Scope1"
DstPort 1
}
}
Line {
SrcBlock "Analog\nFilter Design3"
SrcPort 1
DstBlock "Gain3"
DstPort 1
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Subsystem"
SrcPort 1
DstBlock "Gain2"
DstPort 1
}
Line {
SrcBlock "Subsystem1"
SrcPort 1
DstBlock "Gain1"
DstPort 1
}
Line {
SrcBlock "Gain2"
SrcPort 1
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [30, 0]
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Gain3"
SrcPort 1
DstBlock "Scope1"
DstPort 2
}
Annotation {
Name "超外差接收机仿真模型\n文件名:ch5example3.mdl"
Position [103, 237]
DropShadow on
FontName "Arial"
FontSize 12
}
Annotation {
Name "AWGN信道"
Position [247, 21]
}
Annotation {
Name "包络检波"
Position [385, 229]
}
Annotation {
Name "中频放大"
Position [501, 88]
}
Annotation {
Name "1000KHz载波"
Position [43, 91]
}
Annotation {
Name "1200KHz载波"
Position [43, 196]
}
Annotation {
Name "中频滤波"
Position [431, 117]
}
Annotation {
Name "中频滤波"
Position [581, 117]
}
Annotation {
Name "基带信号放大"
Position [540, 234]
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -