📄 analog_modul.mdl
字号:
Block {
BlockType Reference
Name "Manual Switch"
Ports [2, 1]
Position [595, 127, 625, 163]
SourceBlock "simulink/Signal\nRouting/Manual Switch"
SourceType "Manual Switch"
ShowPortLabels on
sw "1"
action "0"
}
Block {
BlockType Reference
Name "Manual Switch1"
Ports [2, 1]
Position [190, 117, 220, 153]
SourceBlock "simulink/Signal\nRouting/Manual Switch"
SourceType "Manual Switch"
ShowPortLabels on
sw "1"
action "0"
}
Block {
BlockType Reference
Name "Manual Switch2"
Ports [2, 1]
Position [515, 182, 545, 218]
SourceBlock "simulink/Signal\nRouting/Manual Switch"
SourceType "Manual Switch"
ShowPortLabels on
sw "1"
action "0"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [270, 127, 300, 158]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [215, 382, 245, 413]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [735, 110, 795, 140]
VariableName "simout"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Structure"
}
Block {
BlockType Sin
Name "demodulate_carrier"
Ports [1, 1]
Position [90, 425, 120, 455]
SineType "Time based"
TimeSource "Use external signal"
Amplitude "2"
Frequency "1000*2*pi"
SampleTime "0.00001"
}
Block {
BlockType Scope
Name "demodulated Signal1"
Ports [1]
Position [740, 49, 770, 81]
Location [5, 49, 805, 576]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "-2"
YMax "2"
SaveName "s"
DataFormat "Array"
MaxDataPoints "100000"
}
Block {
BlockType Sin
Name "f(t)=1+sin(2*pi*100*t)"
Ports [0, 1]
Position [75, 80, 105, 110]
SineType "Time based"
Bias "1"
Frequency "100*2*pi"
SampleTime "0.0001"
}
Block {
BlockType Sin
Name "f(t)=sin(2*pi*100*t)"
Ports [0, 1]
Position [75, 205, 105, 235]
SineType "Time based"
Frequency "100*2*pi"
SampleTime "0.0001"
}
Block {
BlockType Reference
Name "low fh=150hz"
Ports [1, 1]
Position [295, 372, 360, 428]
SourceBlock "dsparch4/Analog\nFilter Design"
SourceType "Analog Filter Design"
method "Butterworth"
filttype "Lowpass"
N "8"
Wlo "150*2*pi"
Whi "150*2*pi"
Rp "2"
Rs "40"
}
Block {
BlockType Scope
Name "scope"
Ports [4]
Position [855, 264, 885, 296]
Location [156, 592, 956, 1119]
Open on
NumInputPorts "4"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
axes4 "%<SignalLabel>"
}
YMin "-2~-5~-5~-5"
YMax "2~5~5~5"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
MaxDataPoints "100000"
}
Block {
BlockType Reference
Name "Band-Limited\nWhite Noise1"
Ports [0, 1]
Position [320, 255, 350, 285]
IOType "siggen"
SourceBlock "simulink/Sources/Band-Limited\nWhite Noise"
SourceType "Band-Limited White Noise."
ShowPortLabels on
Cov "[0.1]"
Ts "0.1"
seed "[23341]"
VectorParams1D on
}
Block {
BlockType Reference
Name "Binary Error\nPattern Generator1"
Ports [0, 1]
Position [15, 53, 95, 97]
IOType "siggen"
FontName "Arial"
SourceBlock "commnoisgen2/Binary Error\nPattern Generator"
SourceType "Binary Error Pattern Generator"
n "7"
prob "0.5"
seed "12345"
Ts "1"
frameBased off
blksPerFrame "1"
orient off
}
Line {
SrcBlock "f(t)=1+sin(2*pi*100*t)"
SrcPort 1
Points [50, 0]
Branch {
Points [0, 30]
DstBlock "Manual Switch1"
DstPort 1
}
Branch {
Points [0, -90; 675, 0; 0, 260]
DstBlock "scope"
DstPort 1
}
}
Line {
SrcBlock "f(t)=sin(2*pi*100*t)"
SrcPort 1
Points [0, -5; 50, 0; 0, -70]
DstBlock "Manual Switch1"
DstPort 2
}
Line {
SrcBlock "Manual Switch1"
SrcPort 1
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Carrier \nf=1000hz"
SrcPort 1
Points [70, 0]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Low fh=950hz"
SrcPort 1
Points [45, 0; 0, 20]
DstBlock "Manual Switch2"
DstPort 1
}
Line {
SrcBlock "High fl=1050hz"
SrcPort 1
Points [40, 0]
DstBlock "Manual Switch2"
DstPort 2
}
Line {
SrcBlock "Manual Switch2"
SrcPort 1
Points [15, 0; 0, -45]
DstBlock "Manual Switch"
DstPort 2
}
Line {
SrcBlock "demodulate_carrier"
SrcPort 1
Points [35, 0; 0, -35]
DstBlock "Product1"
DstPort 2
}
Line {
SrcBlock "Product1"
SrcPort 1
DstBlock "low fh=150hz"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
Points [15, 0]
Branch {
Points [20, 0]
Branch {
Points [0, 25]
Branch {
Points [0, 95]
DstBlock "High fl=1050hz"
DstPort 1
}
Branch {
DstBlock "Low fh=950hz"
DstPort 1
}
}
Branch {
Points [0, -60]
DstBlock "Band fh=1150hz\nfl=850hz"
DstPort 1
}
}
Branch {
Points [0, -125; 480, 0; 0, 255]
DstBlock "scope"
DstPort 2
}
}
Line {
SrcBlock "Baoluojianbo"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "demodulated Signal1"
DstPort 1
}
Branch {
Points [0, 60]
DstBlock "To Workspace"
DstPort 1
}
}
Line {
SrcBlock "Band fh=1150hz\nfl=850hz"
SrcPort 1
Points [55, 0]
Branch {
Points [0, 50]
DstBlock "Manual Switch"
DstPort 1
}
Branch {
Labels [2, 0]
Points [0, -20]
DstBlock "Baoluojianbo"
DstPort 1
}
}
Line {
SrcBlock "Manual Switch"
SrcPort 1
Points [10, 0]
Branch {
Points [0, 195; -445, 0; 0, 50]
DstBlock "Product1"
DstPort 1
}
Branch {
Points [65, 0; 0, 140]
DstBlock "scope"
DstPort 3
}
}
Line {
SrcBlock "Clock"
SrcPort 1
Points [25, 0]
Branch {
DstBlock "Carrier \nf=1000hz"
DstPort 1
}
Branch {
Points [0, 50; -30, 0]
DstBlock "demodulate_carrier"
DstPort 1
}
}
Line {
SrcBlock "low fh=150hz"
SrcPort 1
Points [460, 0; 0, -105]
DstBlock "scope"
DstPort 4
}
Annotation {
Name "AM/DSB"
Position [501, 77]
}
Annotation {
Name "AM"
Position [133, 85]
}
Annotation {
Name "SSB/DSB"
Position [141, 231]
}
Annotation {
Name "SSB_L"
Position [484, 162]
}
Annotation {
Name "SSB_U"
Position [476, 259]
}
Annotation {
Position [695, 215]
}
Annotation {
Name "demodulated"
Position [714, 389]
}
Annotation {
Name "modulated"
Position [771, 281]
}
Annotation {
Name "producted"
Position [791, 186]
}
Annotation {
Name "m(t)"
Position [846, 182]
}
Annotation {
Position [726, 70]
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -