📄 fdma_demo.mdl
字号:
Model {
Name "fdma_demo"
Version 4.00
SampleTimeColors off
LibraryLinkDisplay "none"
WideLines off
ShowLineDimensions off
ShowPortDataTypes off
ShowStorageClass off
ExecutionOrder off
RecordCoverage off
CovPath "/"
CovSaveName "covdata"
CovMetricSettings "dw"
CovNameIncrementing off
CovHtmlReporting on
BlockNameDataTip off
BlockParametersDataTip on
BlockDescriptionStringDataTip off
ToolBar on
StatusBar on
BrowserShowLibraryLinks off
BrowserLookUnderMasks off
PreLoadFcn "F0=50;F2=80;F4=110;ts=.002;[num0,den0]=butter(2,F0/"
"2*ts);[num4,den4]=butter(2,F4/2*ts);[num2,den2]=butter(2,F2/2*ts);"
Created "Tue Oct 20 09:13:07 1998"
Creator "tdelve"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Sun Aug 25 21:27:46 2002"
ModelVersionFormat "1.%<AutoIncrement:14>"
ConfigurationManager "none"
SimParamPage "Solver"
StartTime "0.0"
StopTime "10"
SolverMode "SingleTasking"
Solver "VariableStepDiscrete"
RelTol "1e-3"
AbsTol "1e-6"
Refine "1"
MaxStep "auto"
MinStep "auto"
MaxNumMinSteps "-1"
InitialStep "auto"
FixedStep "auto"
MaxOrder 5
OutputOption "RefineOutputTimes"
OutputTimes "[]"
LoadExternalInput off
ExternalInput "[t, u]"
SaveTime off
TimeSaveName "tout"
SaveState off
StateSaveName "xout"
SaveOutput off
OutputSaveName "yout"
LoadInitialState off
InitialState "xInitial"
SaveFinalState off
FinalStateName "xFinal"
SaveFormat "Array"
LimitDataPoints off
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"
InvalidFcnCallConnMsg "error"
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"
TryForcingSFcnDF off
ExtModeMexFile "ext_comm"
ExtModeBatchMode off
ExtModeTrigType "manual"
ExtModeTrigMode "oneshot"
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 off
ExtModeSkipDownloadWhenConnect off
ExtModeLogAll on
ExtModeAutoUpdateStatusClock on
OptimizeBlockIOStorage on
BufferReuse on
ParameterPooling on
BlockReductionOpt off
RTWExpressionDepthLimit 5
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 "fdma_demo"
Location [5, 191, 793, 511]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name "AWGN\nchannel"
Ports [1, 1]
Position [355, 108, 435, 152]
ShowName off
SourceBlock "com_chan/AWGN\nchannel"
SourceType "AWGN channel, fixed parameter"
m "0"
d ".0001"
s "12345"
}
Block {
BlockType SubSystem
Name "Butterworth\nIIR BP Filter1"
Ports [1, 1]
Position [205, 47, 260, 83]
ShowName off
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskType "butter(BP)"
MaskDescription "Butterworth band pass filter. \n(Requires"
" Signal Processing Toolbox)"
MaskHelp "IIR Butterworth band pass filter using MATLAB's"
" butter command."
MaskPromptString "Center frequency (0 to 1):|Bandwidth (0 to 1):|"
"Order:|Sample time:"
MaskStyleString "edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on"
MaskCallbackString "|||"
MaskEnableString "on,on,on,on"
MaskVisibilityString "on,on,on,on"
MaskToolTipString "on,on,on,on"
MaskInitialization "Fc=@1;bw=@2;od=@3;ts=@4;bw = bw/2; [a,b,c,d]=bu"
"tter(od,[Fc-bw,Fc+bw] ); [num,den]=ss2tf(a,b,c,d,1); if (od <= 8), [a,b,c,d]="
"tf2ss(num,den); end; h=freqz(num,den,64);\n"
MaskDisplay "plot(1:64,abs(h))"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "F0*ts*2|0.05|7|ts"
MaskVariableAliases ",,,"
System {
Name "Butterworth\nIIR BP Filter1"
Location [360, 145, 860, 405]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [20, 80, 40, 100]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType DiscreteStateSpace
Name "Butterworth\nIIR BP Filter1"
Position [90, 58, 160, 92]
ShowName off
A "a"
B "b"
C "c"
D "d"
X0 "0"
SampleTime "ts"
Realization "auto"
RTWStateStorageClass "Auto"
}
Block {
BlockType Outport
Name "Out1"
Position [190, 80, 210, 100]
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
}
Line {
SrcBlock "Butterworth\nIIR BP Filter1"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Butterworth\nIIR BP Filter1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Butterworth\nIIR BP Filter2"
Ports [1, 1]
Position [205, 112, 260, 148]
ShowName off
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskType "butter(BP)"
MaskDescription "Butterworth band pass filter. \n(Requires"
" Signal Processing Toolbox)"
MaskHelp "IIR Butterworth band pass filter using MATLAB's"
" butter command."
MaskPromptString "Center frequency (0 to 1):|Bandwidth (0 to 1):|"
"Order:|Sample time:"
MaskStyleString "edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on"
MaskCallbackString "|||"
MaskEnableString "on,on,on,on"
MaskVisibilityString "on,on,on,on"
MaskToolTipString "on,on,on,on"
MaskInitialization "Fc=@1;bw=@2;od=@3;ts=@4;bw = bw/2; [a,b,c,d]=bu"
"tter(od,[Fc-bw,Fc+bw] ); [num,den]=ss2tf(a,b,c,d,1); if (od <= 8), [a,b,c,d]="
"tf2ss(num,den); end; h=freqz(num,den,64);\n\n"
MaskDisplay "plot(1:64,abs(h))"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "F2*ts*2|0.05|7|ts"
MaskVariableAliases ",,,"
System {
Name "Butterworth\nIIR BP Filter2"
Location [360, 145, 860, 405]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [20, 80, 40, 100]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType DiscreteStateSpace
Name "Butterworth\nIIR BP Filter2"
Position [90, 58, 160, 92]
ShowName off
A "a"
B "b"
C "c"
D "d"
X0 "0"
SampleTime "ts"
Realization "auto"
RTWStateStorageClass "Auto"
}
Block {
BlockType Outport
Name "Out1"
Position [190, 80, 210, 100]
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
}
Line {
SrcBlock "Butterworth\nIIR BP Filter2"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Butterworth\nIIR BP Filter2"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Butterworth\nIIR BP Filter3"
Ports [1, 1]
Position [205, 184, 260, 216]
ShowName off
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskType "butter(BP)"
MaskDescription "Butterworth band pass filter. \n(Requires"
" Signal Processing Toolbox)"
MaskHelp "IIR Butterworth band pass filter using MATLAB's"
" butter command."
MaskPromptString "Center frequency (0 to 1):|Bandwidth (0 to 1):|"
"Order:|Sample time:"
MaskStyleString "edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on"
MaskCallbackString "|||"
MaskEnableString "on,on,on,on"
MaskVisibilityString "on,on,on,on"
MaskToolTipString "on,on,on,on"
MaskInitialization "Fc=@1;bw=@2;od=@3;ts=@4;bw = bw/2; [a,b,c,d]=bu"
"tter(od,[Fc-bw,Fc+bw] ); [num,den]=ss2tf(a,b,c,d,1); if (od <= 8), [a,b,c,d]="
"tf2ss(num,den); end; h=freqz(num,den,64);\n"
MaskDisplay "plot(1:64,abs(h))"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "F4*ts*2|0.05|7|ts"
MaskVariableAliases ",,,"
System {
Name "Butterworth\nIIR BP Filter3"
Location [360, 145, 860, 405]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -