📄 pcm.mdl
字号:
Model {
Name "PCM"
Version 4.00
SampleTimeColors off
LibraryLinkDisplay "none"
WideLines off
ShowLineDimensions off
ShowPortDataTypes off
ShowStorageClass off
ExecutionOrder on
RecordCoverage off
CovPath "/"
CovSaveName "covdata"
CovMetricSettings "dw"
CovNameIncrementing off
CovHtmlReporting on
BlockNameDataTip off
BlockParametersDataTip off
BlockDescriptionStringDataTip off
ToolBar on
StatusBar on
BrowserShowLibraryLinks off
BrowserLookUnderMasks off
Created "Tue May 09 20:33:06 2006"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
LastModifiedBy "Admin"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Tue May 30 20:55:17 2006"
ModelVersionFormat "1.%<AutoIncrement:33>"
ConfigurationManager "None"
SimParamPage "Solver"
StartTime "0.0"
StopTime "10.0"
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"
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 "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
ExtModeSkipDownloadWhenConnect off
ExtModeLogAll on
ExtModeAutoUpdateStatusClock on
OptimizeBlockIOStorage off
BufferReuse on
ParameterPooling on
BlockReductionOpt on
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 "PCM"
Location [144, 138, 881, 406]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 212
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name "A-Law\nCompressor"
Ports [1, 1]
Position [145, 193, 225, 237]
SourceBlock "commsrccod2/A-Law\nCompressor"
SourceType "A-Law Compressor"
A "87.6"
V "1"
}
Block {
BlockType Reference
Name "A-Law\nExpander"
Ports [1, 1]
Position [605, 178, 685, 222]
SourceBlock "commsrccod2/A-Law\nExpander"
SourceType "A-Law Expander"
A "87.6"
V "1"
}
Block {
BlockType Abs
Name "Abs"
Position [485, 265, 515, 295]
SaturateOnIntegerOverflow on
}
Block {
BlockType Constant
Name "Constant"
Position [310, 120, 340, 150]
Value "128"
VectorParams1D on
}
Block {
BlockType Constant
Name "Constant1"
Position [390, 310, 420, 340]
Value "-128"
VectorParams1D on
}
Block {
BlockType Reference
Name "Integer to Bit\nConverter"
Ports [1, 1]
Position [540, 258, 620, 302]
SourceBlock "commutil2/Integer to Bit\nConverter"
SourceType "Integer to Bit Converter"
nbits "8"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [735, 331, 740, 369]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Reference
Name "Quantizer\nDecode"
Ports [1, 1]
Position [485, 178, 565, 222]
SourceBlock "commsrccod2/Quantizer\nDecode"
SourceType "Quantizer Decode"
codebook "[-1:2/255:1]"
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator"
Position [375, 127, 405, 158]
Operator "<="
}
Block {
BlockType Reference
Name "Sampled\nQuantizer Encode1"
Ports [1, 3]
Position [245, 193, 325, 237]
SourceBlock "commsrccod2/Sampled\nQuantizer Encode"
SourceType "Sampled Quantizer Encode"
partition "[(-1+1/255):2/255:(1-1/255)]"
codebook "[-1:2/255:1]"
n "1"
sample_time "1/128"
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [760, 331, 790, 369]
Floating off
Location [245, 171, 789, 617]
Open off
NumInputPorts "1"
TickLabels "on"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
Grid "on"
TimeRange "1.5"
YMin "0"
YMax "275"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Sin
Name "Sine Wave"
Position [70, 200, 100, 230]
SineType "Time-based"
Amplitude "1"
Bias "0"
Frequency "2*pi"
Phase "0"
Samples "10"
Offset "0"
SampleTime "0"
VectorParams1D on
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [440, 270, 460, 290]
ShowName off
IconShape "round"
Inputs "|++"
SaturateOnIntegerOverflow on
}
Block {
BlockType Terminator
Name "Terminator1"
Position [345, 275, 365, 295]
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [430, 130, 490, 160]
VariableName "s1"
MaxDataPoints "inf"
Decimation "1"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace1"
Position [645, 265, 705, 295]
VariableName "s2"
MaxDataPoints "inf"
Decimation "1"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace2"
Position [595, 125, 655, 155]
VariableName "s3"
MaxDataPoints "inf"
Decimation "1"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace3"
Position [355, 215, 415, 245]
VariableName "s"
MaxDataPoints "inf"
Decimation "1"
SampleTime "-1"
SaveFormat "Array"
}
Line {
SrcBlock "A-Law\nCompressor"
SrcPort 1
DstBlock "Sampled\nQuantizer Encode1"
DstPort 1
}
Line {
SrcBlock "Sampled\nQuantizer Encode1"
SrcPort 3
DstBlock "Terminator1"
DstPort 1
}
Line {
SrcBlock "Integer to Bit\nConverter"
SrcPort 1
DstBlock "To Workspace1"
DstPort 1
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Relational\nOperator"
DstPort 1
}
Line {
SrcBlock "Relational\nOperator"
SrcPort 1
DstBlock "To Workspace"
DstPort 1
}
Line {
SrcBlock "Constant1"
SrcPort 1
Points [25, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Abs"
DstPort 1
}
Line {
SrcBlock "Abs"
SrcPort 1
DstBlock "Integer to Bit\nConverter"
DstPort 1
}
Line {
SrcBlock "A-Law\nExpander"
SrcPort 1
Points [30, 0]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Scope"
DstPort 1
}
Line {
SrcBlock "Sampled\nQuantizer Encode1"
SrcPort 2
Points [10, 0]
DstBlock "To Workspace3"
DstPort 1
}
Line {
SrcBlock "Quantizer\nDecode"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "A-Law\nExpander"
DstPort 1
}
Branch {
DstBlock "To Workspace2"
DstPort 1
}
}
Line {
SrcBlock "Sampled\nQuantizer Encode1"
SrcPort 1
Points [30, 0]
Branch {
Points [65, 0]
Branch {
DstBlock "Quantizer\nDecode"
DstPort 1
}
Branch {
DstBlock "Sum"
DstPort 1
}
}
Branch {
DstBlock "Relational\nOperator"
DstPort 2
}
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "A-Law\nCompressor"
DstPort 1
}
Branch {
Points [0, 145]
DstBlock "Mux"
DstPort 2
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -