📄 work2.mdl
字号:
InheritXIncr on
XIncr "1.0"
XLabel "Samples"
YUnits "Magnitude-squared"
YMin "-0.1"
YMax "6"
YLabel "Magnitude-squared, dB"
LineProperties off
wintypeSpecScope "Hann"
RsSpecScope "50"
betaSpecScope "5"
winsampSpecScope "Periodic"
}
Block {
BlockType Reference
Name "Spectrum\nScope2"
Ports [1]
Position [685, 120, 720, 170]
NamePlacement "alternate"
ShowName off
DialogController "dspdialog.SpectrumScope"
DialogControllerArgs "DataTag1"
SourceBlock "dspsnks4/Spectrum\nScope"
SourceType "Spectrum Scope"
ShowPortLabels off
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
ScopeProperties on
Domain "Frequency"
HorizSpan "1"
UseBuffer on
BufferSize "128"
Overlap "0"
inpFftLenInherit off
FFTlength "256"
numAvg "64"
DisplayProperties off
AxisGrid on
Memory off
FrameNumber on
AxisLegend off
AxisZoom off
OpenScopeAtSimStart on
OpenScopeImmediately off
FigPos "get(0,'defaultfigureposition')"
AxisProperties off
XUnits "Hertz"
XRange "[-Fs/2...Fs/2]"
InheritXIncr on
XIncr "1.0"
XLabel "Samples"
YUnits "Magnitude-squared"
YMin "-0.1"
YMax "6"
YLabel "Magnitude-squared, dB"
LineProperties off
wintypeSpecScope "Hann"
RsSpecScope "50"
betaSpecScope "5"
winsampSpecScope "Periodic"
}
Line {
SrcBlock "Sine Wave17"
SrcPort 1
Points [-25, 0]
DstBlock "Add2"
DstPort 1
}
Line {
SrcBlock "Sine Wave18"
SrcPort 1
Points [-25, 0]
DstBlock "Add2"
DstPort 2
}
Line {
SrcBlock "Sine Wave19"
SrcPort 1
Points [-25, 0]
DstBlock "Add2"
DstPort 3
}
Line {
SrcBlock "Sine Wave20"
SrcPort 1
Points [-25, 0]
DstBlock "Add2"
DstPort 4
}
Line {
SrcBlock "Sine Wave21"
SrcPort 1
Points [0, -40]
DstBlock "Add2"
DstPort 5
}
Line {
SrcBlock "Sine Wave22"
SrcPort 1
Points [0, -55]
DstBlock "Add2"
DstPort 6
}
Line {
SrcBlock "Sine Wave23"
SrcPort 1
Points [0, -40]
DstBlock "Add2"
DstPort 7
}
Line {
SrcBlock "Sine Wave24"
SrcPort 1
Points [-20, 0]
DstBlock "Add2"
DstPort 8
}
Line {
SrcBlock "Sine Wave25"
SrcPort 1
Points [-25, 0]
DstBlock "Add2"
DstPort 9
}
Line {
SrcBlock "Sine Wave26"
SrcPort 1
Points [-25, 0]
DstBlock "Add2"
DstPort 10
}
Line {
SrcBlock "Sine Wave28"
SrcPort 1
Points [-20, 0]
DstBlock "Add2"
DstPort 12
}
Line {
SrcBlock "Sine Wave29"
SrcPort 1
Points [-20, 0]
DstBlock "Add2"
DstPort 13
}
Line {
SrcBlock "Sine Wave30"
SrcPort 1
Points [-15, 0]
DstBlock "Add2"
DstPort 14
}
Line {
SrcBlock "Sine Wave31"
SrcPort 1
Points [-15, 0]
DstBlock "Add2"
DstPort 15
}
Line {
SrcBlock "Sine Wave32"
SrcPort 1
Points [-15, 0]
DstBlock "Add2"
DstPort 16
}
Line {
SrcBlock "Sine Wave33"
SrcPort 1
Points [-15, 0]
DstBlock "Add2"
DstPort 17
}
Line {
SrcBlock "Sine Wave34"
SrcPort 1
Points [-15, 0]
DstBlock "Add2"
DstPort 18
}
Line {
SrcBlock "Sine Wave35"
SrcPort 1
Points [-15, 0]
DstBlock "Add2"
DstPort 19
}
Line {
SrcBlock "Add2"
SrcPort 1
Points [0, -80]
DstBlock "Real-Imag to\nComplex"
DstPort 2
}
Line {
SrcBlock "Sine Wave27"
SrcPort 1
Points [-25, 0]
DstBlock "Add2"
DstPort 11
}
Line {
SrcBlock "Add1"
SrcPort 1
Points [0, 30]
Branch {
Points [0, 25]
DstBlock "Real-Imag to\nComplex"
DstPort 1
}
Branch {
DstBlock "Spectrum\nScope2"
DstPort 1
}
}
Line {
SrcBlock "Real-Imag to\nComplex"
SrcPort 1
DstBlock "Abs"
DstPort 1
}
Line {
SrcBlock "Sine Wave16"
SrcPort 1
Points [-25, 0]
DstBlock "Add1"
DstPort 17
}
Line {
SrcBlock "Sine Wave15"
SrcPort 1
Points [-25, 0]
DstBlock "Add1"
DstPort 16
}
Line {
SrcBlock "Sine Wave14"
SrcPort 1
Points [-35, 0]
DstBlock "Add1"
DstPort 15
}
Line {
SrcBlock "Sine Wave13"
SrcPort 1
Points [-30, 0]
DstBlock "Add1"
DstPort 14
}
Line {
SrcBlock "Sine Wave12"
SrcPort 1
Points [-25, 0]
DstBlock "Add1"
DstPort 13
}
Line {
SrcBlock "Sine Wave11"
SrcPort 1
Points [-35, 0]
DstBlock "Add1"
DstPort 12
}
Line {
SrcBlock "Sine Wave10"
SrcPort 1
Points [-35, 0]
DstBlock "Add1"
DstPort 11
}
Line {
SrcBlock "Sine Wave9"
SrcPort 1
Points [-35, 0]
DstBlock "Add1"
DstPort 10
}
Line {
SrcBlock "Sine Wave8"
SrcPort 1
Points [-30, 0]
DstBlock "Add1"
DstPort 9
}
Line {
SrcBlock "Sine Wave7"
SrcPort 1
Points [0, 35]
DstBlock "Add1"
DstPort 8
}
Line {
SrcBlock "Sine Wave6"
SrcPort 1
Points [-35, 0]
DstBlock "Add1"
DstPort 7
}
Line {
SrcBlock "Sine Wave5"
SrcPort 1
Points [0, 35]
DstBlock "Add1"
DstPort 6
}
Line {
SrcBlock "Sine Wave4"
SrcPort 1
Points [-35, 0]
DstBlock "Add1"
DstPort 5
}
Line {
SrcBlock "Sine Wave3"
SrcPort 1
Points [-30, 0]
DstBlock "Add1"
DstPort 4
}
Line {
SrcBlock "Sine Wave2"
SrcPort 1
Points [-35, 0]
DstBlock "Add1"
DstPort 3
}
Line {
SrcBlock "Sine Wave1"
SrcPort 1
Points [0, 35]
DstBlock "Add1"
DstPort 2
}
Line {
SrcBlock "Sine Wave0"
SrcPort 1
Points [-30, 0]
DstBlock "Add1"
DstPort 1
}
Line {
SrcBlock "Abs"
SrcPort 1
DstBlock "Scope"
DstPort 1
}
Line {
SrcBlock "Sine Wave36"
SrcPort 1
Points [25, 0]
DstBlock "Add2"
DstPort 20
}
Line {
SrcBlock "Sine Wave37"
SrcPort 1
Points [-35, 0]
DstBlock "Add1"
DstPort 18
}
Line {
SrcBlock "Sine Wave38"
SrcPort 1
Points [-35, 0]
DstBlock "Add1"
DstPort 19
}
Line {
SrcBlock "Sine Wave39"
SrcPort 1
Points [-30, 0]
DstBlock "Add1"
DstPort 20
}
Line {
SrcBlock "Sine Wave40"
SrcPort 1
Points [-35, 0]
DstBlock "Add1"
DstPort 21
}
Line {
SrcBlock "Sine Wave41"
SrcPort 1
Points [-35, 0]
DstBlock "Add1"
DstPort 22
}
Line {
SrcBlock "Sine Wave42"
SrcPort 1
Points [-30, 0]
DstBlock "Add1"
DstPort 23
}
Line {
SrcBlock "Sine Wave43"
SrcPort 1
Points [0, 35]
DstBlock "Add1"
DstPort 24
}
Line {
SrcBlock "Sine Wave44"
SrcPort 1
DstBlock "Add1"
DstPort 25
}
}
}
MatData {
NumRecords 2
DataRecord {
Tag DataTag1
Data " %)30 . , 8 ( ! % "
"\" 0 0 "
}
DataRecord {
Tag DataTag0
Data " %)30 . , 8 ( ! % "
"\" 0 0 "
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -