📄 dsp2.mdl
字号:
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
m "0"
d "1"
s "41"
Ts "0.00000167"
frameBased off
sampPerFrame "1"
orient off
outDataType "double"
}
Block {
BlockType Reference
Name "Gaussian Noise\nGenerator1"
Ports [0, 1]
Position [180, 563, 260, 607]
SourceBlock "commnoisgen2/Gaussian Noise\nGenerator"
SourceType "Gaussian Noise Generator"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
m "0"
d "1"
s "41"
Ts "0.00000167"
frameBased off
sampPerFrame "1"
orient off
outDataType "double"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [205, 97, 235, 128]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
SampleTime "0.00000167"
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [500, 37, 530, 68]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
SampleTime "0.00000167"
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [200, 497, 230, 528]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
SampleTime "0.00000167"
}
Block {
BlockType Scope
Name "Scope"
Ports [5]
Position [865, 176, 930, 344]
Floating off
Location [229, 181, 928, 688]
Open on
NumInputPorts "5"
List {
ListType AxesTitles
axes1 "OUT"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
axes4 "%<SignalLabel>"
axes5 "IN"
}
TimeRange "10"
YMin "-0.0002~-1.5~-3~-2~-2"
YMax "0.0002500000000000001~2~4~2~0.75"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope2"
Ports [5]
Position [860, 396, 925, 564]
Floating off
Location [126, 117, 879, 685]
Open off
NumInputPorts "5"
List {
ListType AxesTitles
axes1 "OUT"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
axes4 "%<SignalLabel>"
axes5 "IN"
}
YMin "-5~-5~-5~-5~-5"
YMax "5~5~5~5~5"
SaveName "ScopeData2"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Sin
Name "carrier"
Ports [0, 1]
Position [70, 195, 100, 225]
Frequency "300000*pi"
SampleTime "0.000000167"
}
Block {
BlockType Sin
Name "carrier1"
Ports [0, 1]
Position [425, 30, 455, 60]
Frequency "300000*pi"
SampleTime "0.000000167"
}
Block {
BlockType Sin
Name "carrier2"
Ports [0, 1]
Position [65, 595, 95, 625]
Frequency "300000*pi"
SampleTime "0.000000167"
}
Line {
SrcBlock "500hz"
SrcPort 1
Points [10, 0; 0, 25]
DstBlock "Add"
DstPort 1
}
Line {
SrcBlock "2000hz"
SrcPort 1
Points [10, 0; 0, -20]
DstBlock "Add"
DstPort 2
}
Line {
SrcBlock "Add"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
DstBlock "Product"
DstPort 1
}
Branch {
Points [0, -75]
DstBlock "Averaging\nPower Spectral\nDensity2"
DstPort 1
}
Branch {
Points [0, 225]
DstBlock "Scope"
DstPort 5
}
}
Line {
SrcBlock "carrier"
SrcPort 1
Points [40, 0; 0, -90]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "carrier1"
SrcPort 1
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "Digital\nFilter Design"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Averaging\nPower Spectral\nDensity1"
DstPort 1
}
Branch {
Points [0, 135]
DstBlock "Scope"
DstPort 1
}
}
Line {
SrcBlock "Product"
SrcPort 1
Points [30, 0]
Branch {
DstBlock "Add1"
DstPort 1
}
Branch {
Points [0, 180]
DstBlock "Scope"
DstPort 4
}
}
Line {
SrcBlock "Gaussian Noise\nGenerator"
SrcPort 1
Points [10, 0; 0, -55]
DstBlock "Add1"
DstPort 2
}
Line {
SrcBlock "Add1"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
DstBlock "Digital\nFilter Design1"
DstPort 1
}
Branch {
Points [0, 100]
Branch {
DstBlock "Averaging\nPower Spectral\nDensity"
DstPort 1
}
Branch {
Points [0, 35]
DstBlock "Scope"
DstPort 3
}
}
}
Line {
SrcBlock "Digital\nFilter Design1"
SrcPort 1
Points [5, 0]
Branch {
Points [20, 0; 0, -65]
DstBlock "Product1"
DstPort 2
}
Branch {
Points [0, 100]
DstBlock "Scope"
DstPort 2
}
}
Line {
SrcBlock "Product1"
SrcPort 1
DstBlock "Digital\nFilter Design"
DstPort 1
}
Line {
SrcBlock "500hz1"
SrcPort 1
Points [10, 0; 0, 25]
DstBlock "Add2"
DstPort 1
}
Line {
SrcBlock "2000hz1"
SrcPort 1
Points [10, 0; 0, -20]
DstBlock "Add2"
DstPort 2
}
Line {
SrcBlock "Add2"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Product2"
DstPort 1
}
Branch {
Points [0, -95]
DstBlock "Averaging\nPower Spectral\nDensity4"
DstPort 1
}
Branch {
Points [0, 130; 670, 0]
DstBlock "Scope2"
DstPort 5
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -