📄 pcmtiming.mdl
字号:
Model {
Name "pcmtiming"
Version 3.00
SimParamPage "Solver"
SampleTimeColors off
InvariantConstants off
WideVectorLines off
ShowLineWidths off
ShowPortDataTypes off
StartTime "0.0"
StopTime "10.0"
SolverMode "Auto"
Solver "ode45"
RelTol "1e-3"
AbsTol "auto"
Refine "1"
MaxStep "auto"
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 "Matrix"
LimitMaxRows off
MaxRows "1000"
Decimation "1"
AlgebraicLoopMsg "warning"
MinStepSizeMsg "warning"
UnconnectedInputMsg "warning"
UnconnectedOutputMsg "warning"
UnconnectedLineMsg "warning"
InheritedTsInSrcMsg "warning"
IntegerOverflowMsg "warning"
UnnecessaryDatatypeConvMsg "none"
Int32ToFloatConvMsg "warning"
SignalLabelMismatchMsg "none"
ConsistencyChecking "off"
ZeroCross on
SimulationMode "normal"
BlockDataTips on
BlockParametersDataTip on
BlockAttributesDataTip off
BlockPortWidthsDataTip off
BlockDescriptionStringDataTip off
BlockMaskParametersDataTip off
ToolBar on
StatusBar on
BrowserShowLibraryLinks off
BrowserLookUnderMasks off
OptimizeBlockIOStorage on
BufferReuse on
BooleanDataType off
RTWSystemTargetFile "grt.tlc"
RTWInlineParameters off
RTWRetainRTWFile off
RTWTemplateMakefile "grt_default_tmf"
RTWMakeCommand "make_rtw"
RTWGenerateCodeOnly 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
Created "Fri Nov 12 16:14:17 1999"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Sat Dec 11 21:38:04 1999"
ModelVersionFormat "1.%<AutoIncrement:2>"
ConfigurationManager "none"
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 "pcmtiming"
Location [103, 184, 837, 588]
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 Scope
Name "Before filtering"
Ports [1, 0, 0, 0, 0]
Position [490, 14, 520, 46]
DropShadow on
Floating off
Location [227, 450, 551, 689]
Open on
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "0.02"
YMin "-0.5"
YMax "0.5"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitMaxRows on
MaxRows "5000"
Decimation "1"
SampleInput on
SampleTime "0"
}
Block {
BlockType Reference
Name "DPCM\ndecode"
Ports [1, 2, 0, 0, 0]
Position [355, 88, 435, 132]
SourceBlock "commsrccod/DPCM\ndecode"
SourceType "DPCM decode"
num "[0 .9963]"
den "1"
codebook "[-.0848 -.029 .0298 .0853]"
sample_time "1/20000"
}
Block {
BlockType Reference
Name "DPCM\nencode"
Ports [1, 2, 0, 0, 0]
Position [140, 63, 220, 107]
SourceBlock "commsrccod/DPCM\nencode"
SourceType "DPCM encode"
num "[0 .9963]"
den "1"
partition "[-.0569 .0004 .0576]"
codebook "[-.0848 -.029 .0298 .0853]"
sample_time "1/20000"
}
Block {
BlockType Reference
Name "Digital FIR\nFilter Design"
Ports [1, 1, 0, 0, 0]
Position [485, 72, 555, 128]
SourceBlock "dspddes2/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"
frame off
numChans "1"
}
Block {
BlockType Scope
Name "Encoded\nindex"
Ports [1, 0, 0, 0, 0]
Position [295, 54, 325, 86]
DropShadow on
Floating off
Location [28, 122, 352, 361]
Open on
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "0.002"
YMin "0"
YMax "3"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitMaxRows on
MaxRows "5000"
Decimation "1"
SampleInput on
SampleTime "0"
}
Block {
BlockType Scope
Name "Input"
Ports [1, 0, 0, 0, 0]
Position [155, 164, 185, 196]
DropShadow on
Floating off
Location [127, 401, 451, 640]
Open on
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "0.02"
YMin "-1"
YMax "1"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitMaxRows on
MaxRows "5000"
Decimation "1"
SampleInput on
SampleTime "0"
}
Block {
BlockType Scope
Name "Output"
Ports [1, 0, 0, 0, 0]
Position [610, 84, 640, 116]
DropShadow on
Floating off
Location [495, 400, 819, 639]
Open on
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "0.02"
YMin "-0.4"
YMax "0.5"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitMaxRows on
MaxRows "5000"
Decimation "1"
SampleInput on
SampleTime "0"
}
Block {
BlockType Scope
Name "Quant\nRec. Value"
Ports [1, 0, 0, 0, 0]
Position [285, 129, 315, 161]
DropShadow on
Floating off
Location [34, 448, 358, 687]
Open on
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "0.02"
YMin "-1"
YMax "1.25"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitMaxRows on
MaxRows "5000"
Decimation "1"
SampleInput on
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope3"
Ports [1, 0, 0, 0, 0]
Position [465, 214, 495, 246]
DropShadow on
Floating off
Location [611, 399, 935, 638]
Open on
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "0.02"
YMin "-1"
YMax "1.25"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitMaxRows on
MaxRows "5000"
Decimation "1"
SampleInput on
SampleTime "0"
}
Block {
BlockType Sin
Name "Sine Wave"
Position [55, 70, 85, 100]
DropShadow on
Amplitude "1"
Frequency "1000*(2*pi)"
Phase "0"
SampleTime "1/20000"
}
Line {
SrcBlock "DPCM\nencode"
SrcPort 2
Points [0, 50]
DstBlock "Quant\nRec. Value"
DstPort 1
}
Line {
SrcBlock "DPCM\nencode"
SrcPort 1
Points [0, -5; 35, 0]
Branch {
DstBlock "Encoded\nindex"
DstPort 1
}
Branch {
Points [0, 40]
DstBlock "DPCM\ndecode"
DstPort 1
}
}
Line {
SrcBlock "DPCM\ndecode"
SrcPort 2
Points [0, 110]
DstBlock "Scope3"
DstPort 1
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "DPCM\nencode"
DstPort 1
}
Branch {
Points [0, 95]
DstBlock "Input"
DstPort 1
}
}
Line {
SrcBlock "Digital FIR\nFilter Design"
SrcPort 1
DstBlock "Output"
DstPort 1
}
Line {
SrcBlock "DPCM\ndecode"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "Digital FIR\nFilter Design"
DstPort 1
}
Branch {
Points [0, -70]
DstBlock "Before filtering"
DstPort 1
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -