📄 fdm.mdl
字号:
Model {
Name "fdm"
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 22:53:31 2001"
ModelVersionFormat "1.%<AutoIncrement:32>"
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 "fdm"
Location [73, 92, 765, 541]
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 Reference
Name "4khz-5khz\nbandpass filter"
Ports [1, 1]
Position [325, 67, 395, 123]
FontSize 10
SourceBlock "dspddes3/Digital FIR\nFilter Design"
SourceType "Digital FIR Filter Design"
filttype "Bandpass"
N "64"
Wlo "4/16"
Whi "5/16"
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 "channel 1"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType Reference
Name "9khz-10khz\nbandpass filter"
Ports [1, 1]
Position [320, 222, 390, 278]
FontSize 10
SourceBlock "dspddes3/Digital FIR\nFilter Design"
SourceType "Digital FIR Filter Design"
filttype "Bandpass"
N "64"
Wlo "9/16"
Whi "10/16"
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 "channel 2"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType Sin
Name "Carrier wave"
Position [105, 155, 135, 185]
Amplitude "1"
Frequency "2*pi*5e3"
Phase "0"
SampleTime "1/(32e3)"
VectorParams1D on
Port {
PortNumber 1
Name "5 khz carrier"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType Sin
Name "Carrier wave1"
Position [100, 310, 130, 340]
Amplitude "1"
Frequency "2*pi*10e3"
Phase "0"
SampleTime "1/(32e3)"
VectorParams1D on
Port {
PortNumber 1
Name "10khz carrier"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType Reference
Name "Channel 1\nSpectrum"
Ports [1]
Position [545, 70, 580, 120]
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 "Channel 2\nSpectrum"
Ports [1]
Position [540, 225, 575, 275]
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 "FDM\nsignal\nSpectrum"
Ports [1]
Position [610, 150, 645, 200]
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 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 Sin
Name "Modulating wave1"
Position [55, 225, 85, 255]
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 Product
Name "Product"
Ports [2, 1]
Position [210, 76, 255, 109]
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [205, 231, 250, 264]
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [435, 165, 455, 185]
ShowName off
IconShape "round"
Inputs "|++"
SaturateOnIntegerOverflow on
Port {
PortNumber 1
Name "fdm_out"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Line {
Name "5 khz carrier"
Labels [0, 0]
SrcBlock "Carrier wave"
SrcPort 1
Points [35, 0; 0, -70]
DstBlock "Product"
DstPort 2
}
Line {
Name "Modulating signal"
Labels [0, 0]
SrcBlock "Modulating wave"
SrcPort 1
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "4khz-5khz\nbandpass filter"
DstPort 1
}
Line {
Name "channel 1"
Labels [0, 0]
SrcBlock "4khz-5khz\nbandpass filter"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Channel 1\nSpectrum"
DstPort 1
}
Branch {
Points [0, 80]
DstBlock "Sum"
DstPort 1
}
}
Line {
Name "10khz carrier"
Labels [0, 0]
SrcBlock "Carrier wave1"
SrcPort 1
Points [35, 0; 0, -70]
DstBlock "Product2"
DstPort 2
}
Line {
Name "Modulating signal"
Labels [0, 0]
SrcBlock "Modulating wave1"
SrcPort 1
DstBlock "Product2"
DstPort 1
}
Line {
SrcBlock "Product2"
SrcPort 1
DstBlock "9khz-10khz\nbandpass filter"
DstPort 1
}
Line {
Name "channel 2"
Labels [0, 0]
SrcBlock "9khz-10khz\nbandpass filter"
SrcPort 1
Points [50, 0]
Branch {
DstBlock "Sum"
DstPort 2
}
Branch {
DstBlock "Channel 2\nSpectrum"
DstPort 1
}
}
Line {
Name "fdm_out"
Labels [0, 0]
SrcBlock "Sum"
SrcPort 1
DstBlock "FDM\nsignal\nSpectrum"
DstPort 1
}
Annotation {
Position [316, 23]
Text "FREQUENCY DIVISION MULTIPLEXING EXAMPLE"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -