📄 fm2.mdl
字号:
Ports [1, 1]
Position [505, 317, 570, 373]
SourceBlock "dsparch4/Analog\nFilter Design"
SourceType "Analog Filter Design"
method "Butterworth"
filttype "Bandpass"
N "10"
Wlo "800*2*pi"
Whi "1e5*2*pi"
Rp "0.5"
Rs "40"
}
Block {
BlockType Reference
Name "Analog\nFilter Design2"
Ports [1, 1]
Position [740, 327, 805, 383]
SourceBlock "dsparch4/Analog\nFilter Design"
SourceType "Analog Filter Design"
method "Butterworth"
filttype "Lowpass"
N "10"
Wlo "150*2*pi"
Whi "1e5*2*pi"
Rp "0.5"
Rs "40"
}
Block {
BlockType Reference
Name "PM\nModulator\nPassband"
Ports [1, 1]
Position [255, 282, 330, 328]
SourceBlock "commanapbnd2/PM\nModulator\nPassband"
SourceType "PM Modulator Passband"
Fc "1000"
Ph "0"
Kc "1"
td "Inf"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [645, 336, 690, 369]
InputSameDT off
}
Block {
BlockType Scope
Name "Scope1"
Ports [2]
Position [1065, 631, 1095, 664]
Location [148, 278, 1064, 878]
Open off
NumInputPorts "2"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
}
YMin "-0.5~-1"
YMax "0.5~1"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Scope
Name "Scope2"
Ports [1]
Position [1100, 329, 1130, 361]
Location [52, 359, 376, 598]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "-1000"
YMax "1000"
SaveName "ScopeData2"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Scope
Name "Scope3"
Ports [1]
Position [590, 539, 620, 571]
Location [115, 529, 788, 914]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
YMin "-2"
YMax "2"
SaveName "ScopeData3"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Scope
Name "Scope4"
Ports [1]
Position [625, 254, 655, 286]
Location [482, 698, 1155, 1083]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
YMin "-2"
YMax "2"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType SignalGenerator
Name "Signal\nGenerator"
Position [140, 270, 170, 300]
Frequency "100"
}
Block {
BlockType Reference
Name "Spectrum\nScope"
Ports [1]
Position [715, 140, 750, 190]
SourceBlock "dspsnks4/Spectrum\nScope"
SourceType "Spectrum Scope"
ScopeProperties off
Domain "Frequency"
HorizSpan "1"
UseBuffer on
BufferSize "1024"
Overlap "256"
inpFftLenInherit on
FFTlength "1024"
numAvg "10"
DisplayProperties off
AxisGrid on
Memory off
FrameNumber on
AxisLegend off
AxisZoom off
OpenScopeAtSimStart on
OpenScopeImmediately off
FigPos "get(0,'defaultfigureposition')"
AxisProperties on
XUnits "Hertz"
XRange "[0...Fs/2]"
InheritXIncr off
XIncr "2.5E-4"
XLabel "Samples"
YUnits "Magnitude"
YMin "-30"
YMax "25"
YLabel "Magnitude"
LineProperties off
}
Block {
BlockType Reference
Name "Spectrum\nScope1"
Ports [1]
Position [1125, 175, 1160, 225]
SourceBlock "dspsnks4/Spectrum\nScope"
SourceType "Spectrum Scope"
ScopeProperties on
Domain "Frequency"
HorizSpan "1"
UseBuffer on
BufferSize "256"
Overlap "16"
inpFftLenInherit on
FFTlength "256"
numAvg "2"
DisplayProperties off
AxisGrid on
Memory on
FrameNumber on
AxisLegend off
AxisZoom off
OpenScopeAtSimStart on
OpenScopeImmediately off
FigPos "get(0,'defaultfigureposition')"
AxisProperties off
XUnits "Hertz"
XRange "[0...Fs/2]"
InheritXIncr off
XIncr "1/400"
XLabel "Samples"
YUnits "dB"
YMin "-30"
YMax "100"
YLabel "Magnitude"
LineProperties off
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [460, 125, 520, 155]
VariableName "simout"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType Reference
Name "Voltage-Controlled\nOscillator"
Ports [1, 1]
Position [680, 455, 760, 495]
Orientation "left"
NamePlacement "alternate"
FontName "Arial"
SourceBlock "commcontsrc2/Voltage-Controlled\nOscillator"
SourceType "Voltage-Controlled Oscillator"
Ac "1"
Fc "1000"
Kc "10"
Ph "0"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold"
Position [450, 196, 485, 234]
SampleTime "2.5e-4"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold1"
Position [1015, 186, 1050, 224]
SampleTime "1/400"
}
Line {
SrcBlock "Signal\nGenerator"
SrcPort 1
Points [0, -5; 45, 0; 0, 25; 25, 0]
Branch {
Points [-25, 0; 0, 350]
DstBlock "Scope1"
DstPort 2
}
Branch {
DstBlock "PM\nModulator\nPassband"
DstPort 1
}
}
Line {
SrcBlock "PM\nModulator\nPassband"
SrcPort 1
Points [20, 0; 0, -20; 20, 0]
Branch {
Points [0, -145]
DstBlock "To Workspace"
DstPort 1
}
Branch {
Points [25, 0]
Branch {
Points [0, -110; 35, 0]
DstBlock "Zero-Order\nHold"
DstPort 1
}
Branch {
Points [0, 60; 45, 0]
Branch {
Points [0, 210]
DstBlock "Scope3"
DstPort 1
}
Branch {
DstBlock "Analog\nFilter Design1"
DstPort 1
}
}
}
}
Line {
SrcBlock "Zero-Order\nHold"
SrcPort 1
Points [65, 0; 0, -50]
DstBlock "Spectrum\nScope"
DstPort 1
}
Line {
SrcBlock "Analog\nFilter Design"
SrcPort 1
Points [5, 0; 45, 0]
Branch {
Points [0, 295]
DstBlock "Scope1"
DstPort 1
}
Branch {
Points [5, 0]
Branch {
DstBlock "Scope2"
DstPort 1
}
Branch {
Points [-5, 0]
DstBlock "Zero-Order\nHold1"
DstPort 1
}
}
}
Line {
SrcBlock "Zero-Order\nHold1"
SrcPort 1
Points [0, -5]
DstBlock "Spectrum\nScope1"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Analog\nFilter Design2"
DstPort 1
}
Line {
SrcBlock "Voltage-Controlled\nOscillator"
SrcPort 1
Points [-55, 0; 0, -115]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Analog\nFilter Design2"
SrcPort 1
Points [10, 0; 0, 5]
Branch {
Points [0, 115]
DstBlock "Voltage-Controlled\nOscillator"
DstPort 1
}
Branch {
Points [0, -15]
DstBlock "Analog\nFilter Design"
DstPort 1
}
}
Line {
SrcBlock "Analog\nFilter Design1"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Product"
DstPort 1
}
Branch {
Points [0, -75]
DstBlock "Scope4"
DstPort 1
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -