Model { Name "tstdpcms" Version 4.00 SampleTimeColors off LibraryLinkDisplay "none" WideLines off ShowLineDimensions off ShowPortDataTypes off RecordCoverage off CovPath "/" CovSaveName "covdata" CovNameIncrementing off CovHtmlReporting on BlockNameDataTip off BlockParametersDataTip on BlockDescriptionStringDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off PreLoadFcn "x=sin(0:.1:40);[p_trans,codebook,partition]=dpcmopt" "(x,1,8);" Created "Tue Oct 20 09:12:15 1998" Creator "tdelve" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "ysong" ModifiedDateFormat "%" LastModifiedDate "Wed Aug 23 10:38:38 2000" ModelVersionFormat "1.%" ConfigurationManager "none" SimParamPage "Solver" StartTime "0.0" StopTime "99999" 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" 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 "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 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 "tstdpcms" Location [120, 214, 676, 514] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on ReportName "simulink-default.rpt" Block { BlockType Reference Name "DPCM\ndecode" Ports [1, 2] Position [265, 43, 345, 87] ShowName off SourceBlock "com_frmt/DPCM\ndecode" SourceType "DPCM decode" num "p_trans" den "1" codebook "codebook" sample_time ".1" } Block { BlockType Reference Name "DPCM\nencode" Ports [1, 2] Position [120, 53, 200, 97] ShowName off SourceBlock "com_frmt/DPCM\nencode" SourceType "DPCM encode" num "p_trans" den "1" partition "partition" codebook "codebook" sample_time ".1" } Block { BlockType SubSystem Name "DPCM data\ntraining" Ports [] Position [465, 83, 525, 127] ForegroundColor "red" ShowName off OpenFcn "x=sin([0:.1:40]);[p_trans,codebook,partition]=d" "pcmopt(x,1,8);" ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" MaskDisplay "disp('Load\\nData')" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" System { Name "DPCM data\ntraining" Location [360, 145, 701, 331] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on } } Block { BlockType Reference Name "Graph\n" Ports [1] Position [485, 21, 515, 59] SourceBlock "com_sour/Graph" SourceType "Graph scope." tr "10" ym "-1.2" yma "1.2" color "'y-/r-/y*/g*/yo/go/b+'" } Block { BlockType Mux Name "Mux1" Ports [2, 1] Position [420, 20, 455, 55] ShowName off Inputs "2" DisplayOption "none" } Block { BlockType SignalGenerator Name "Signal\ngenerator" Position [30, 13, 75, 47] BackgroundColor "yellow" ShowName off WaveForm "sine" Amplitude "1.000000" Frequency "1.000000" Units "rad/sec" VectorParams1D on } Block { BlockType Terminator Name "Terminator" Position [225, 76, 245, 94] ShowName off } Block { BlockType Terminator Name "Terminator1" Position [370, 66, 390, 84] ShowName off } Line { SrcBlock "Mux1" SrcPort 1 DstBlock "Graph\n" DstPort 1 } Line { SrcBlock "DPCM\nencode" SrcPort 1 DstBlock "DPCM\ndecode" DstPort 1 } Line { SrcBlock "DPCM\ndecode" SrcPort 1 Points [15, 0; 0, -10] DstBlock "Mux1" DstPort 2 } Line { SrcBlock "Signal\ngenerator" SrcPort 1 Points [25, 0] Branch { DstBlock "DPCM\nencode" DstPort 1 } Branch { DstBlock "Mux1" DstPort 1 } } Line { SrcBlock "DPCM\ndecode" SrcPort 2 DstBlock "Terminator1" DstPort 1 } Line { SrcBlock "DPCM\nencode" SrcPort 2 DstBlock "Terminator" DstPort 1 } Annotation { Position [152, 122] VerticalAlignment "top" Text "This example demonstrates a delta modulation." } Annotation { Position [227, 227] VerticalAlignment "top" Text "This example converts the analog signal to a 3-" "bits digital signal." } Annotation { Position [272, 182] VerticalAlignment "top" Text "The commands used for the parameter training ar" "e as follows. You may train the\nparameter if you have changed the signal sou" "rce.\nx=sin([0:.1:40]);[p_trans,codebook,partition]=dpcmopt(x,1,8);" } Annotation { Position [267, 147] VerticalAlignment "top" Text "The parameters are trained by double clicking " "\"Load Data\" block. p_trans is a\n1st order FIR filter, codebook is a length" " 8 vector, partition is a length 7 vector." } Annotation { Position [275, 282] Text "Warning: This model is obsolete and may be remo" "ved in the future." FontName "Arial" FontSize 12 } } }