📄 ch3example20.mdl
字号:
BlockType RelationalOperator
Operator ">="
ShowAdditionalParam off
InputSameDT on
LogicOutDataTypeMode "Logical (see Advanced Sim. Parameters)"
LogicDataType "uint(8)"
ZeroCross on
}
Block {
BlockType Scope
Floating off
ModelBased off
TickLabels "OneTimeTick"
ZoomMode "on"
Grid "on"
TimeRange "auto"
YMin "-5"
YMax "5"
SaveToWorkspace off
SaveName "ScopeData"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType "S-Function"
FunctionName "system"
PortCounts "[]"
SFunctionModules "''"
}
Block {
BlockType SignalGenerator
WaveForm "sine"
Amplitude "1"
Frequency "1"
Units "Hertz"
VectorParams1D on
}
Block {
BlockType SubSystem
ShowPortLabels on
Permissions "ReadWrite"
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType Sum
IconShape "rectangular"
Inputs "++"
ShowAdditionalParam off
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
}
Block {
BlockType Trigonometry
Operator "sin"
OutputSignalType "auto"
}
Block {
BlockType ZeroOrderHold
SampleTime "1"
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "Helvetica"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "ch3example20"
Location [379, 109, 959, 402]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name "AWGN\nChannel"
Ports [1, 1]
Position [235, 34, 315, 76]
FontSize 10
SourceBlock "commchan2/AWGN\nChannel"
SourceType "AWGN Channel"
seed "67"
noiseMode "Signal to noise ratio (SNR)"
EsNodB "10"
SNRdB "10"
Ps "0.25"
Tsym "1"
variance "1"
}
Block {
BlockType Reference
Name "DSBSC AM\nDemodulator\nPassband"
Ports [1, 1]
Position [345, 32, 420, 78]
FontSize 10
SourceBlock "commanapbnd2/DSBSC AM\nDemodulator\nPassband"
SourceType "DSBSC AM Demodulator Passband"
Fc "100"
num "[0.9447 1.8894 0.9447]*0.001"
den "[1.0000 -1.9112 0.9150]"
Ph "pi/200"
ts "0.001"
}
Block {
BlockType Reference
Name "DSBSC AM\nModulator\nPassband"
Ports [1, 1]
Position [120, 32, 195, 78]
FontSize 10
SourceBlock "commanapbnd2/DSBSC AM\nModulator\nPassband"
SourceType "DSBSC AM Modulator Passband"
Fc "100"
Ph "pi/2"
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [440, 130, 530, 160]
FontSize 10
Decimation "1"
}
Block {
BlockType Scope
Name "Scope"
Ports [3]
Position [490, 28, 520, 82]
Location [172, 411, 754, 712]
Open on
NumInputPorts "3"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
axes3 ""
}
YMin "-5~-5~-5"
YMax "5~5~5"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType SignalGenerator
Name "Signal\nGenerator"
Position [40, 40, 70, 70]
Frequency "3"
}
Block {
BlockType Reference
Name "Variance"
Ports [1, 1]
Position [340, 128, 415, 162]
FontSize 10
SourceBlock "dspstat3/Variance"
SourceType "Variance"
run on
reset_popup "None"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold"
Position [250, 125, 290, 165]
SampleTime "1/1000"
}
Line {
SrcBlock "Signal\nGenerator"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "DSBSC AM\nModulator\nPassband"
DstPort 1
}
Branch {
Points [0, -40; 365, 0; 0, 20]
DstBlock "Scope"
DstPort 1
}
}
Line {
SrcBlock "DSBSC AM\nModulator\nPassband"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "AWGN\nChannel"
DstPort 1
}
Branch {
Points [0, 55]
Branch {
Points [0, 35]
DstBlock "Zero-Order\nHold"
DstPort 1
}
Branch {
Points [255, 0; 0, -35]
DstBlock "Scope"
DstPort 3
}
}
}
Line {
SrcBlock "AWGN\nChannel"
SrcPort 1
DstBlock "DSBSC AM\nDemodulator\nPassband"
DstPort 1
}
Line {
SrcBlock "Variance"
SrcPort 1
DstBlock "Display"
DstPort 1
}
Line {
SrcBlock "Zero-Order\nHold"
SrcPort 1
DstBlock "Variance"
DstPort 1
}
Line {
SrcBlock "DSBSC AM\nDemodulator\nPassband"
SrcPort 1
DstBlock "Scope"
DstPort 2
}
Annotation {
Name "调制输出功率"
Position [486, 185]
}
Annotation {
Name "抑制载波双边带调制解调测试模型\n文件名:ch3exam"
"ple20.mdl"
Position [101, 150]
DropShadow on
FontName "Arial"
FontSize 12
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -