📄 dsbsc.mdl
字号:
Model {
Name "dsbsc"
Version 4.00
Description "AM mdulator, given modulation index, modulation and"
" carrier frequencies and Carrier Amplitude"
SampleTimeColors off
LibraryLinkDisplay "none"
WideLines off
ShowLineDimensions off
ShowPortDataTypes off
RecordCoverage off
CovPath "/"
CovSaveName "covdata"
CovNameIncrementing off
CovHtmlReporting on
BlockNameDataTip off
BlockParametersDataTip off
BlockDescriptionStringDataTip off
ToolBar on
StatusBar on
BrowserShowLibraryLinks off
BrowserLookUnderMasks off
Created "Fri Mar 02 23:24:37 2001"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Sun Mar 11 23:24:05 2001"
ModelVersionFormat "1.%<AutoIncrement:28>"
ConfigurationManager "none"
SimParamPage "Solver"
StartTime "0.0"
StopTime "15/1000"
SolverMode "Auto"
Solver "ode45"
RelTol "1e-3"
AbsTol "auto"
Refine "1"
MaxStep "auto"
MinStep "auto"
MaxNumMinSteps "-1"
InitialStep "auto"
FixedStep "auto"
MaxOrder 5
OutputOption "RefineOutputTimes"
OutputTimes "[]"
LoadExternalInput off
ExternalInput "[t, u]"
SaveTime on
TimeSaveName "tout"
SaveState off
StateSaveName "xout"
SaveOutput on
OutputSaveName "yout"
LoadInitialState off
InitialState "xInitial"
SaveFinalState off
FinalStateName "xFinal"
SaveFormat "Array"
LimitDataPoints on
MaxDataPoints "1000"
Decimation "1"
AlgebraicLoopMsg "warning"
MinStepSizeMsg "warning"
UnconnectedInputMsg "warning"
UnconnectedOutputMsg "warning"
UnconnectedLineMsg "warning"
InheritedTsInSrcMsg "warning"
SingleTaskRateTransMsg "none"
MultiTaskRateTransMsg "error"
IntegerOverflowMsg "warning"
CheckForMatrixSingularity "none"
UnnecessaryDatatypeConvMsg "none"
Int32ToFloatConvMsg "warning"
SignalLabelMismatchMsg "none"
LinearizationMsg "none"
VectorMatrixConversionMsg "none"
SfunCompatibilityCheckMsg "none"
BlockPriorityViolationMsg "warning"
ArrayBoundsChecking "none"
ConsistencyChecking "none"
ZeroCross on
Profile off
SimulationMode "normal"
RTWSystemTargetFile "grt.tlc"
RTWInlineParameters off
RTWRetainRTWFile off
RTWTemplateMakefile "grt_default_tmf"
RTWMakeCommand "make_rtw"
RTWGenerateCodeOnly off
TLCProfiler off
TLCDebug off
TLCCoverage off
AccelSystemTargetFile "accel.tlc"
AccelTemplateMakefile "accel_default_tmf"
AccelMakeCommand "make_rtw"
ExtModeMexFile "ext_comm"
ExtModeBatchMode off
ExtModeTrigType "manual"
ExtModeTrigMode "normal"
ExtModeTrigPort "1"
ExtModeTrigElement "any"
ExtModeTrigDuration 1000
ExtModeTrigHoldOff 0
ExtModeTrigDelay 0
ExtModeTrigDirection "rising"
ExtModeTrigLevel 0
ExtModeArchiveMode "off"
ExtModeAutoIncOneShot off
ExtModeIncDirWhenArm off
ExtModeAddSuffixToVar off
ExtModeWriteAllDataToWs off
ExtModeArmWhenConnect on
ExtModeLogAll on
OptimizeBlockIOStorage on
BufferReuse on
ParameterPooling on
BlockReductionOpt off
BooleanDataType off
BlockDefaults {
Orientation "right"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
NamePlacement "normal"
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
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 "dsbsc"
Location [111, 101, 789, 528]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
ReportName "simulink-default.rpt"
Block {
BlockType Gain
Name "Carrier Amplitude"
Position [430, 80, 460, 110]
Gain "2*sqrt(2)"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
Port {
PortNumber 1
Name "DSBSC signal"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType Sin
Name "Carrier wave"
Position [105, 155, 135, 185]
Amplitude "1"
Frequency "2*pi*10e3"
Phase "0"
SampleTime "1/(32e3)"
VectorParams1D on
Port {
PortNumber 1
Name "Carrier signal"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType Reference
Name "DSBSC\nSpectrum"
Ports [1]
Position [545, 40, 580, 90]
LinkData {
BlockName "Optional\nBuffering/Buffer"
DialogParameters {
N "BufferSize"
V "Overlap"
ic "0"
}
}
SourceBlock "dspsnks3/Spectrum\nScope"
SourceType "Spectrum Scope"
ScopeProperties off
Domain "Frequency"
HorizSpan "1"
UseBuffer on
BufferSize "512"
Overlap "64"
inpFftLenInherit on
FFTlength "512"
numAvg "8"
DisplayProperties off
AxisGrid on
Memory off
FrameNumber on
AxisLegend on
AxisZoom off
OpenScopeAtSimStart on
OpenScopeImmediately off
FigPos "get(0,'defaultfigureposition')"
AxisProperties off
XUnits "Hertz"
XRange "[0...Fs/2]"
InheritXIncr on
XIncr "1.0"
XLabel "Samples"
YUnits "Magnitude"
YMin "3.65159800006636e-011"
YMax "13.9640852655876"
YLabel "Magnitude"
LineProperties on
}
Block {
BlockType Reference
Name "Demodulated\nsignal\nSpectrum"
Ports [1]
Position [560, 320, 595, 370]
LinkData {
BlockName "Optional\nBuffering/Buffer"
DialogParameters {
N "BufferSize"
V "Overlap"
ic "0"
}
}
SourceBlock "dspsnks3/Spectrum\nScope"
SourceType "Spectrum Scope"
ScopeProperties off
Domain "Frequency"
HorizSpan "1"
UseBuffer on
BufferSize "512"
Overlap "64"
inpFftLenInherit on
FFTlength "512"
numAvg "8"
DisplayProperties off
AxisGrid on
Memory off
FrameNumber on
AxisLegend on
AxisZoom off
OpenScopeAtSimStart on
OpenScopeImmediately off
FigPos "get(0,'defaultfigureposition')"
AxisProperties on
XUnits "Hertz"
XRange "[0...Fs/2]"
InheritXIncr on
XIncr "1.0"
XLabel "Samples"
YUnits "Magnitude"
YMin "4.78560482882244e-013"
YMax "13.7333572019111"
YLabel "Magnitude"
LineProperties off
}
Block {
BlockType Reference
Name "Digital FIR\nFilter Design"
Ports [1, 1]
Position [315, 317, 385, 373]
SourceBlock "dspddes3/Digital FIR\nFilter Design"
SourceType "Digital FIR Filter Design"
filttype "Lowpass"
N "22"
Wlo "0.4"
Whi "0.6"
W0 "[.2 .5 .8]"
g0 "1"
W1 "[0 .2 .3 .6 .8 1]"
gains "[1 .5 0 0 1 .5]"
wintype "Hamming"
Rs "10"
Kbeta "5"
Port {
PortNumber 1
Name "Demodulated signal"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType Sin
Name "Local oscillator"
Position [100, 335, 130, 365]
Amplitude "1"
Frequency "2*pi*10e3"
Phase "0"
SampleTime "1/(32e3)"
VectorParams1D on
}
Block {
BlockType Sin
Name "Modulating wave"
Position [60, 70, 90, 100]
Amplitude "1"
Frequency "2*pi*500"
Phase "0"
SampleTime "1/(32e3)"
VectorParams1D on
Port {
PortNumber 1
Name "Modulating signal"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType Gain
Name "Modulation Index"
Position [195, 70, 225, 100]
Gain "0.8"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [335, 76, 380, 109]
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [195, 326, 240, 359]
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Scope
Name "Scope"
Ports [4]
Position [555, 154, 585, 186]
Floating off
Location [186, 251, 510, 490]
Open off
NumInputPorts "4"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
axes4 "%<SignalLabel>"
}
Grid "on"
TimeRange "auto"
YMin "-1~-4e-012~-1.5e-011~-5"
YMax "1~4e-012~1.5e-011~5"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitDataPoints off
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Line {
Name "Carrier signal"
Labels [0, 0]
SrcBlock "Carrier wave"
SrcPort 1
Points [180, 0]
Branch {
DstBlock "Product"
DstPort 2
}
Branch {
Points [220, 0]
DstBlock "Scope"
DstPort 2
}
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Carrier Amplitude"
DstPort 1
}
Line {
Name "DSBSC signal"
Labels [0, 0]
SrcBlock "Carrier Amplitude"
SrcPort 1
Points [0, 0; 25, 0]
Branch {
Points [0, -30]
DstBlock "DSBSC\nSpectrum"
DstPort 1
}
Branch {
Points [0, 85]
Branch {
Points [50, 0]
DstBlock "Scope"
DstPort 3
}
Branch {
Labels [2, 0]
Points [0, 65; -310, 0]
DstBlock "Product1"
DstPort 1
}
}
}
Line {
SrcBlock "Product1"
SrcPort 1
DstBlock "Digital FIR\nFilter Design"
DstPort 1
}
Line {
Name "Demodulated signal"
Labels [0, 0]
SrcBlock "Digital FIR\nFilter Design"
SrcPort 1
Points [125, 0]
Branch {
DstBlock "Demodulated\nsignal\nSpectrum"
DstPort 1
}
Branch {
Points [0, -160]
DstBlock "Scope"
DstPort 4
}
}
Line {
Name "Modulating signal"
Labels [0, 0]
SrcBlock "Modulating wave"
SrcPort 1
Points [50, 0]
Branch {
DstBlock "Modulation Index"
DstPort 1
}
Branch {
Points [0, 70]
DstBlock "Scope"
DstPort 1
}
}
Line {
SrcBlock "Modulation Index"
SrcPort 1
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Local oscillator"
SrcPort 1
DstBlock "Product1"
DstPort 2
}
Annotation {
Position [100, 283]
Text "DSBSC RECEIVER"
}
Annotation {
Position [161, 38]
Text "DSBSC TRANSMITTER"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -