Model { Name "dspqdemo" Version 4.00 SampleTimeColors off WideLines on ShowLineDimensions on ShowPortDataTypes off RecordCoverage off CovPath "/" CovSaveName "covdata" CovNameIncrementing off CovHtmlReporting on BlockDataTips on BlockParametersDataTip on BlockAttributesDataTip off BlockPortDimensionsDataTip off BlockDescriptionStringDataTip off BlockMaskParametersDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off Created "Fri Jun 26 18:21:35 1998" Creator "don" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "thartley" ModifiedDateFormat "%" LastModifiedDate "Mon Jun 05 17:39:25 2000" ModelVersionFormat "1.%" ConfigurationManager "none" DefaultBlockFontName "Helvetica" DefaultBlockFontSize 10 DefaultBlockFontWeight "normal" DefaultBlockFontAngle "normal" DefaultAnnotationFontName "Helvetica" DefaultAnnotationFontSize 10 DefaultAnnotationFontWeight "normal" DefaultAnnotationFontAngle "normal" DefaultLineFontName "Helvetica" DefaultLineFontSize 9 DefaultLineFontWeight "normal" DefaultLineFontAngle "normal" SimParamPage "RTW" StartTime "0.0" StopTime "inf" SolverMode "Auto" Solver "FixedStepDiscrete" 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 "Array" LimitDataPoints off MaxDataPoints "1000" Decimation "1" AlgebraicLoopMsg "warning" MinStepSizeMsg "warning" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" InheritedTsInSrcMsg "warning" SingleTaskRateTransMsg "none" MultiTaskRateTransMsg "error" IntegerOverflowMsg "none" 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" RTWOptions "-aRollThreshold=5 -aShowEliminatedStatements=1 -aRT" "WVerbose=1 -aLocalBlockOutputs=1 -aInlineInvariantSignals=1 -aLogVarNameModif" "ier=\"rt_\"" RTWInlineParameters off RTWRetainRTWFile on 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 "dspqdemo" Location [196, 80, 847, 403] 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 "DSP\nConstant1" Ports [0, 1] Position [30, 54, 65, 86] ShowName off SourceBlock "dspsrcs3/DSP\nConstant" SourceType "DSP Constant" Value "1" InterpretAs1D on SampleMode "Discrete" Ts "4" FramebasedOutput off } Block { BlockType Reference Name "DSP\nConstant2" Ports [0, 1] Position [30, 199, 65, 231] ShowName off SourceBlock "dspsrcs3/DSP\nConstant" SourceType "DSP Constant" Value "0" InterpretAs1D on SampleMode "Discrete" Ts "4" FramebasedOutput off } Block { BlockType Display Name "Input Data" Ports [1] Position [340, 33, 430, 127] NamePlacement "alternate" Format "short" Decimation "1" Floating off SampleTime "-1" } Block { BlockType Mux Name "Mux" Ports [3, 1] Position [455, 162, 460, 218] ShowName off Inputs "3" DisplayOption "bar" } Block { BlockType Reference Name "Pop\nQueue" Ports [2, 1] Position [110, 187, 140, 223] BackgroundColor "cyan" SourceBlock "simulink3/Nonlinear/Manual Switch" SourceType "Manual Switch" sw "1" action "0" } Block { BlockType Reference Name "Push\nNext\nInput" Ports [2, 1] Position [110, 62, 140, 98] BackgroundColor "cyan" SourceBlock "simulink3/Nonlinear/Manual Switch" SourceType "Manual Switch" sw "1" action "0" } Block { BlockType Reference Name "Queue" Ports [3, 4] Position [335, 144, 430, 216] SourceBlock "dspbuff3/Queue" SourceType "Queue" depth "3" trigger "Either edge" overflow "Warning" pes "Warning" eso on fso on nso on clr off clrOutport on } Block { BlockType Display Name "Queue Data" Ports [1] Position [500, 38, 590, 132] NamePlacement "alternate" Format "short" Decimation "1" Floating off SampleTime "-1" } Block { BlockType Display Name "Queue Status" Ports [1] Position [500, 154, 590, 226] Format "short" Decimation "1" Floating off SampleTime "-1" } Block { BlockType Reference Name "Triggered Signal\nFrom Workspace" Ports [0, 1, 0, 1] Position [195, 62, 250, 98] SourceBlock "dspsrcs3/Triggered Signal\nFrom Workspace" SourceType "Triggered Signal From Workspace" Signal "1:16" TriggerType "Either edge" ic "0" SamplesPerFrame "4" OutputAfterFinalValue "Setting To Zero" } Block { BlockType SubSystem Name "back" Position [19, 47, 143, 255] ForegroundColor "cyan" BackgroundColor "cyan" ShowName off ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "back" Location [203, 331, 569, 538] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on } } Block { BlockType SubSystem Name "back1" Position [487, 18, 602, 244] ForegroundColor "cyan" BackgroundColor "cyan" ShowName off ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "back1" Location [203, 331, 569, 538] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on } } Block { BlockType SubSystem Name "back2" Position [326, 19, 438, 131] ForegroundColor "cyan" BackgroundColor "cyan" ShowName off ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "back2" Location [205, 333, 571, 540] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on } } Line { SrcBlock "Pop\nQueue" SrcPort 1 DstBlock "Queue" DstPort 3 } Line { SrcBlock "Queue" SrcPort 3 DstBlock "Mux" DstPort 2 } Line { SrcBlock "Queue" SrcPort 2 DstBlock "Mux" DstPort 1 } Line { SrcBlock "Queue" SrcPort 4 DstBlock "Mux" DstPort 3 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Queue Status" DstPort 1 } Line { SrcBlock "Push\nNext\nInput" SrcPort 1 Points [0, 0; 20, 0] Branch { Points [0, 100] DstBlock "Queue" DstPort 2 } Branch { Points [20, 0; 0, -35; 35, 0] DstBlock "Triggered Signal\nFrom Workspace" DstPort trigger } } Line { SrcBlock "DSP\nConstant1" SrcPort 1 Points [10, 0] Branch { Points [0, 125] DstBlock "Pop\nQueue" DstPort 1 } Branch { DstBlock "Push\nNext\nInput" DstPort 1 } } Line { SrcBlock "DSP\nConstant2" SrcPort 1 Points [0, 0; 20, 0] Branch { DstBlock "Pop\nQueue" DstPort 2 } Branch { Points [0, -125] DstBlock "Push\nNext\nInput" DstPort 2 } } Line { SrcBlock "Queue" SrcPort 1 Points [25, 0; 0, -65] DstBlock "Queue Data" DstPort 1 } Line { SrcBlock "Triggered Signal\nFrom Workspace" SrcPort 1 Points [0, 0; 25, 0] Branch { DstBlock "Input Data" DstPort 1 } Branch { Points [0, 75] DstBlock "Queue" DstPort 1 } } Annotation { Position [626, 200] Text "Number " } Annotation { Position [616, 181] Text "Full " } Annotation { Position [620, 162] Text "Empty" } Annotation { Position [319, 295] Text "Double-click on the switches while the demo is " "running\nto trigger the 'push' and 'pop' inputs of the queue." FontName "MS Sans Serif" } } }