Model { Name "L18_pipe_3_el" Version 5.0 SaveDefaultBlockParams on SampleTimeColors on LibraryLinkDisplay "none" WideLines off ShowLineDimensions off ShowPortDataTypes off ShowLoopsOnError on IgnoreBidirectionalLines off ShowStorageClass off ExecutionOrder off RecordCoverage off CovPath "/" CovSaveName "covdata" CovMetricSettings "dw" CovNameIncrementing off CovHtmlReporting on covSaveCumulativeToWorkspaceVar on CovSaveSingleToWorkspaceVar on CovCumulativeVarName "covCumulativeData" CovCumulativeReport off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" MinMaxOverflowArchiveMode "Overwrite" BlockNameDataTip off BlockParametersDataTip off BlockDescriptionStringDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off Created "Fri Nov 01 16:46:55 2002" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "boser" ModifiedDateFormat "%" LastModifiedDate "Fri Nov 01 16:47:50 2002" ModelVersionFormat "1.%" ConfigurationManager "None" SimParamPage "Solver" LinearizationMsg "none" Profile off ParamWorkspaceSource "MATLABWorkspace" 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 BufferReuse on RTWExpressionDepthLimit 5 SimulationMode "normal" Solver "FixedStepDiscrete" SolverMode "SingleTasking" StartTime "0.0" StopTime "6.0" MaxOrder 5 MaxStep "auto" MinStep "auto" MaxNumMinSteps "-1" InitialStep "auto" FixedStep "auto" RelTol "1e-3" AbsTol "1e-6" OutputOption "RefineOutputTimes" OutputTimes "[]" Refine "1" LoadExternalInput off ExternalInput "[t, u]" LoadInitialState off InitialState "xInitial" SaveTime on TimeSaveName "tout" SaveState off StateSaveName "xout" SaveOutput on OutputSaveName "yout" SaveFinalState off FinalStateName "xFinal" SaveFormat "Array" Decimation "1" LimitDataPoints off MaxDataPoints "1000" SignalLoggingName "sigsOut" ConsistencyChecking "none" ArrayBoundsChecking "none" AlgebraicLoopMsg "warning" BlockPriorityViolationMsg "warning" MinStepSizeMsg "warning" InheritedTsInSrcMsg "warning" DiscreteInheritContinuousMsg "warning" MultiTaskRateTransMsg "error" SingleTaskRateTransMsg "none" CheckForMatrixSingularity "none" IntegerOverflowMsg "warning" Int32ToFloatConvMsg "warning" ParameterDowncastMsg "error" ParameterOverflowMsg "error" ParameterPrecisionLossMsg "warning" UnderSpecifiedDataTypeMsg "none" UnnecessaryDatatypeConvMsg "none" VectorMatrixConversionMsg "none" InvalidFcnCallConnMsg "error" SignalLabelMismatchMsg "none" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" SfunCompatibilityCheckMsg "none" RTWInlineParameters off BlockReductionOpt on BooleanDataType off ConditionallyExecuteInputs on ParameterPooling on OptimizeBlockIOStorage on ZeroCross on AssertionControl "UseLocalSettings" ProdHWDeviceType "Microprocessor" ProdHWWordLengths "8,16,32,32" RTWSystemTargetFile "grt.tlc" RTWTemplateMakefile "grt_vc.tmf" RTWMakeCommand "make_rtw" RTWGenerateCodeOnly off RTWRetainRTWFile off TLCProfiler off TLCDebug off TLCCoverage off TLCAssertion off BlockDefaults { Orientation "right" ForegroundColor "black" BackgroundColor "white" DropShadow off NamePlacement "normal" FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" ShowName on } BlockParameterDefaults { Block { BlockType Clock DisplayTime off } Block { BlockType Constant Value "1" VectorParams1D on ShowAdditionalParam off OutDataTypeMode "Inherit from 'Constant value'" OutDataType "sfix(16)" ConRadixGroup "Use specified scaling" OutScaling "2^0" } Block { BlockType Gain Gain "1" Multiplication "Element-wise(K.*u)" ShowAdditionalParam off ParameterDataTypeMode "Same as input" ParameterDataType "sfix(16)" ParameterScalingMode "Best Precision: Matrix-wise" ParameterScaling "2^0" OutDataTypeMode "Same as input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on } Block { BlockType Inport Port "1" PortDimensions "-1" SampleTime "-1" ShowAdditionalParam off LatchInput off DataType "auto" OutDataType "sfix(16)" OutScaling "2^0" SignalType "auto" SamplingMode "auto" Interpolate on } Block { BlockType Lookup InputValues "[-4:5]" OutputValues " rand(1,10)-0.5" ShowAdditionalParam off LookUpMeth "Interpolation-Extrapolation" OutDataTypeMode "Same as input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on } Block { BlockType Mux Inputs "4" DisplayOption "none" } Block { BlockType Outport Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType Product Inputs "2" Multiplication "Element-wise(.*)" ShowAdditionalParam off InputSameDT on OutDataTypeMode "Same as first input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on } Block { BlockType "S-Function" FunctionName "system" PortCounts "[]" SFunctionModules "''" } Block { BlockType Step Time "1" Before "0" After "1" SampleTime "-1" VectorParams1D on ZeroCross on } Block { BlockType SubSystem ShowPortLabels on Permissions "ReadWrite" RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" SimViewingDevice off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" } Block { BlockType Sum IconShape "rectangular" Inputs "++" ShowAdditionalParam off InputSameDT on OutDataTypeMode "Same as first input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on } Block { BlockType ZeroOrderHold SampleTime "1" } } 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 "L18_pipe_3_el" Location [12, 240, 888, 719] 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 "ADC" Ports [1, 1] Position [305, 186, 355, 234] SourceBlock "library/ADC" SourceType "" levels "[ -1 0 1 ]" Port { PortNumber 1 Name "Dout" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" DataLogging off DataLoggingNameMode "SignalName" DataLoggingDecimateData off DataLoggingDecimation "2" DataLoggingLimitDataPoints off DataLoggingMaxPoints "5000" } } Block { BlockType Reference Name "Corrected Output" Ports [2] Position [745, 330, 805, 410] SourceBlock "simulink/Sinks/XY Graph" SourceType "XY scope." xmin "-3" xmax "3" ymin "-1" ymax "4" st "-1" } Block { BlockType Reference Name "DAC" Ports [1, 1] Position [435, 186, 485, 234] SourceBlock "library/DAC" SourceType "" outputs "[ -1.5 -0.5 0.5 1.5 ]" } Block { BlockType Reference Name "Digital Output" Ports [2] Position [745, 215, 805, 295] SourceBlock "simulink/Sinks/XY Graph" SourceType "XY scope." xmin "-3" xmax "3" ymin "-1" ymax "4" st "-1" } Block { BlockType Gain Name "Gain" Position [620, 165, 650, 195] Gain "4" Port { PortNumber 1 Name "residuum" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" DataLogging off DataLoggingNameMode "SignalName" DataLoggingDecimateData off DataLoggingDecimation "2" DataLoggingLimitDataPoints off DataLoggingMaxPoints "5000" } } Block { BlockType Sum Name "Later Stages" Ports [2, 1] Position [625, 370, 660, 410] } Block { BlockType Reference Name "Ramp" Ports [0, 1] Position [75, 126, 135, 174] SourceBlock "simulink/Sources/Ramp" SourceType "Ramp" slope "1" start "0" X0 "-3" VectorParams1D on Port { PortNumber 1 Name "input" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" DataLogging off DataLoggingNameMode "SignalName" DataLoggingDecimateData off DataLoggingDecimation "2" DataLoggingLimitDataPoints off DataLoggingMaxPoints "5000" } } Block { BlockType Reference Name "Residuum" Ports [2] Position [745, 75, 805, 155] SourceBlock "simulink/Sinks/XY Graph" SourceType "XY scope." xmin "-3" xmax "3" ymin "-4" ymax "4" st "-1" } Block { BlockType ZeroOrderHold Name "S/H" Position [185, 126, 235, 174] SampleTime "1/points" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [535, 118, 565, 242] Inputs "+-" } Line { Name "input" SrcBlock "Ramp" SrcPort 1 Points [20, 0] Branch { DstBlock "S/H" DstPort 1 } Branch { Points [0, -55; 540, 0] Branch { DstBlock "Residuum" DstPort 1 } Branch { Points [0, 140] Branch { DstBlock "Digital Output" DstPort 1 } Branch { Points [0, 115] DstBlock "Corrected Output" DstPort 1 } } } } Line { SrcBlock "DAC" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { Name "Dout" Labels [0, 0] SrcBlock "ADC" SrcPort 1 Points [40, 0] Branch { DstBlock "DAC" DstPort 1 } Branch { Labels [1, 0] Points [0, 65; 125, 0] Branch { DstBlock "Digital Output" DstPort 2 } Branch { Points [0, 125] DstBlock "Later Stages" DstPort 2 } } } Line { SrcBlock "S/H" SrcPort 1 Points [20, 0] Branch { Points [0, 60] DstBlock "ADC" DstPort 1 } Branch { DstBlock "Sum" DstPort 1 } } Line { Name "residuum" Labels [0, 0] SrcBlock "Gain" SrcPort 1 Points [75, 0] DstBlock "Residuum" DstPort 2 } Line { SrcBlock "Later Stages" SrcPort 1 DstBlock "Corrected Output" DstPort 2 } Line { SrcBlock "Sum" SrcPort 1 Points [20, 0] Branch { DstBlock "Gain" DstPort 1 } Branch { Points [0, 200] DstBlock "Later Stages" DstPort 1 } } Annotation { Name "in Matlab window:\npoints =100\n(number of poin" "ts/lsb \nin simulation)" Position [151, 338] FontName "Arial" FontSize 12 } Annotation { Name "Pipeline Stage, 3 ADC levels" Position [386, 33] FontName "Arial" FontSize 18 FontWeight "bold" } } }