Model { Name "dtvss" Version 4.00 SampleTimeColors off LibraryLinkDisplay "none" WideLines on ShowLineDimensions off ShowPortDataTypes off ShowStorageClass off ExecutionOrder off 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 PreLoadFcn "[A B C D] = drmodel(3,1,3);" Created "Thu Feb 07 14:38:19 2002" Creator "dmedonza" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "dmedonza" ModifiedDateFormat "%" LastModifiedDate "Thu Feb 07 14:40:03 2002" ModelVersionFormat "1.%" ConfigurationManager "rcs" SimParamPage "Solver" StartTime "0.0" StopTime "100" SolverMode "SingleTasking" Solver "ode45" RelTol "1e-3" AbsTol "1e-3" Refine "1" MaxStep ".10" 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 "none" 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 "rtwspox.tlc" RTWInlineParameters off RTWRetainRTWFile off RTWTemplateMakefile "rtwspox30.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 "swextcom" 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 on 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 "dtvss" Location [522, 216, 1144, 663] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" ReportName "simulink-default.rpt" Block { BlockType SubSystem Name "A" Ports [0, 1] Position [15, 78, 40, 102] ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" MaskType "Matrix Constant" MaskDescription "Matrix Constant:" MaskPromptString "Matrix Constant Value:" MaskStyleString "edit" MaskTunableValueString "on" MaskEnableString "on" MaskVisibilityString "on" MaskToolTipString "on" MaskInitialization "K=@1(:);" MaskDisplay "disp('A')" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "A" System { Name "A" Location [480, 85, 980, 386] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "automatic" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Constant Name "A" Position [90, 58, 115, 82] Value "K" VectorParams1D on } Block { BlockType Outport Name "Out1" Position [145, 75, 165, 95] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "A" SrcPort 1 DstBlock "Out1" DstPort 1 } } } Block { BlockType SubSystem Name "B" Ports [0, 1] Position [15, 128, 40, 152] ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" MaskType "Matrix Constant" MaskDescription "Matrix Constant:" MaskPromptString "Matrix Constant Value:" MaskStyleString "edit" MaskTunableValueString "on" MaskEnableString "on" MaskVisibilityString "on" MaskToolTipString "on" MaskInitialization "K=@1(:);" MaskDisplay "disp('B')" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "B" System { Name "B" Location [480, 85, 980, 386] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "automatic" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Constant Name "B" Position [90, 58, 115, 82] Value "K" VectorParams1D on } Block { BlockType Outport Name "Out1" Position [145, 75, 165, 95] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "B" SrcPort 1 DstBlock "Out1" DstPort 1 } } } Block { BlockType SubSystem Name "C" Ports [0, 1] Position [15, 168, 40, 192] ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" MaskType "Matrix Constant" MaskDescription "Matrix Constant:" MaskPromptString "Matrix Constant Value:" MaskStyleString "edit" MaskTunableValueString "on" MaskEnableString "on" MaskVisibilityString "on" MaskToolTipString "on" MaskInitialization "K=@1(:);" MaskDisplay "disp('C')" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "C" System { Name "C" Location [480, 85, 980, 386] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "automatic" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Constant Name "C" Position [90, 58, 115, 82] Value "K" VectorParams1D on } Block { BlockType Outport Name "Out1" Position [145, 75, 165, 95] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "C" SrcPort 1 DstBlock "Out1" DstPort 1 } } } Block { BlockType SubSystem Name "D" Ports [0, 1] Position [15, 208, 40, 232] ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" MaskType "Matrix Constant" MaskDescription "Matrix Constant:" MaskPromptString "Matrix Constant Value:" MaskStyleString "edit" MaskTunableValueString "on" MaskEnableString "on" MaskVisibilityString "on" MaskToolTipString "on" MaskInitialization "K=@1(:);" MaskDisplay "disp('D')" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "D" System { Name "D" Location [480, 85, 980, 386] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "automatic" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Constant Name "D" Position [90, 58, 115, 82] Value "K" VectorParams1D on } Block { BlockType Outport Name "Out1" Position [145, 75, 165, 95] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "D" SrcPort 1 DstBlock "Out1" DstPort 1 } } } Block { BlockType DiscreteStateSpace Name "Discrete State-Space" Position [185, 258, 305, 302] A "A" B "B" C "C" D "D" X0 "0" SampleTime "1" Realization "auto" RTWStateStorageClass "Auto" } Block { BlockType SubSystem Name "Discrete Time Varying\nState-Space" Ports [5, 1] Position [150, 31, 370, 209] ShowPortLabels off TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" MaskType "Time Varying State Space Block" MaskDescription "Initialize Values " MaskHelp "Inputs 1-4 are the A,B,C, & D matrices. Input 5" " is the system input. Initial matrices determine sizes of variables being pas" "sed in. Unmask the block to see how is works. The delay time is the first ele" "ment of Ts while the block update time is the second element. If they are" MaskPromptString "Initial A:|Initial B:|Initial C:| Intial D:|x0:" "|Ts:" MaskStyleString "edit,edit,edit,edit,edit,edit" MaskTunableValueString "on,on,on,on,on,on" MaskCallbackString "|||||" MaskEnableString "on,on,on,on,on,on" MaskVisibilityString "on,on,on,on,on,on" MaskToolTipString "on,on,on,on,on,on" MaskInitialization "A=@1;B=@2;C=@3;D=@4; x0=@5; if length(@6)==2,Tz" "=@6(1);Ts=@6(2);, else Ts=@6; Tz=@6; end" MaskDisplay "disp('x(n+1)= A(t)x[n] + B(t)u[n] \\n y(n) = C(" "t)x[n] + D(t)u[n]')" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "A|B|C|D|[0 0 0]'|[.1 1]" MaskVariableAliases ",,,,," System { Name "Discrete Time Varying\nState-Space" Location [130, 309, 819, 730] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "U" Position [20, 120, 40, 140] Port "1" LatchInput off Interpolate on } Block { BlockType Inport Name "A" Position [105, 60, 125, 80] Port "2" LatchInput off Interpolate on } Block { BlockType Inport Name "B" Position [105, 145, 125, 165] Port "3" LatchInput off Interpolate on } Block { BlockType Inport Name "C" Position [410, 225, 430, 245] Port "4" LatchInput off Interpolate on } Block { BlockType Inport Name "D" Position [410, 330, 430, 350] Port "5" LatchInput off Interpolate on } Block { BlockType SubSystem Name "Subsystem" Ports [2, 1] Position [155, 115, 245, 170] ShowPortLabels off TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" MaskType "Time Varying Matrix Gain" MaskDescription "Matrix Gain" MaskHelp "This block implements a time-varying matrix" " gain. The intial gain K determines the resizing of the vector input gain. Th" "e gain matrix(m,n) will produce m outputs, the input u having n columns." MaskPromptString "Initial Gain Matrix: |Update Sample Time" MaskStyleString "edit,edit" MaskTunableValueString "on,on" MaskCallbackString "|" MaskEnableString "on,on" MaskVisibilityString "on,on" MaskToolTipString "on,on" MaskInitialization "K=@1;Ts=@2;[m,n]=size(@1);" MaskDisplay "disp('Time Varying\\nMatrix Gain')" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "B|Ts" MaskVariableAliases "," System { Name "Subsystem" Location [579, 383, 930, 533] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "in_1" Position [10, 60, 30, 80] Port "1" LatchInput off Interpolate on } Block { BlockType Inport Name "in_2" Position [10, 75, 30, 95] Port "2" LatchInput off Interpolate on } Block { BlockType Mux Name "Mux" Ports [2, 1] Position [60, 61, 90, 94] Inputs "[n m*n]" DisplayOption "none" } Block { BlockType "S-Function" Name "S-Function" Ports [1, 1] Position [130, 70, 180, 90] FunctionName "stvmgain" Parameters "K,Ts" PortCounts "[]" SFunctionModules "''" } Block { BlockType Outport Name "out_1" Position [210, 70, 230, 90] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "in_2" SrcPort 1 DstBlock "Mux" DstPort 2 } Line { SrcBlock "S-Function" SrcPort 1 DstBlock "out_1" DstPort 1 } Line { SrcBlock "in_1" SrcPort 1 DstBlock "Mux" DstPort 1 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "S-Function" DstPort 1 } } } Block { BlockType SubSystem Name "Subsystem1" Ports [2, 1] Position [155, 30, 245, 85] ShowPortLabels off TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" MaskType "Time Varying Matrix Gain" MaskDescription "Matrix Gain" MaskHelp "This block implements a time-varying matrix" " gain. The intial gain K determines the resizing of the vector input gain. Th" "e gain matrix(m,n) will produce m outputs, the input u having n columns." MaskPromptString "Initial Gain Matrix: |Update Sample Time" MaskStyleString "edit,edit" MaskTunableValueString "on,on" MaskCallbackString "|" MaskEnableString "on,on" MaskVisibilityString "on,on" MaskToolTipString "on,on" MaskInitialization "K=@1;Ts=@2;[m,n]=size(@1);" MaskDisplay "disp('Time Varying\\nMatrix Gain')" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "A|Ts" MaskVariableAliases "," System { Name "Subsystem1" Location [579, 383, 930, 533] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "in_1" Position [10, 60, 30, 80] Port "1" LatchInput off Interpolate on } Block { BlockType Inport Name "in_2" Position [10, 75, 30, 95] Port "2" LatchInput off Interpolate on } Block { BlockType Mux Name "Mux" Ports [2, 1] Position [60, 61, 90, 94] Inputs "[n m*n]" DisplayOption "none" } Block { BlockType "S-Function" Name "S-Function" Ports [1, 1] Position [130, 70, 180, 90] FunctionName "stvmgain" Parameters "K,Ts" PortCounts "[]" SFunctionModules "''" } Block { BlockType Outport Name "out_1" Position [210, 70, 230, 90] Port "1" OutputWhenDisabled "held" InitialOutput "0" } Line { SrcBlock "Mux" SrcPort 1 DstBlock "S-Function" DstPort 1 } Line { SrcBlock "in_1" SrcPort 1 DstBlock "Mux" DstPort 1 } Line { SrcBlock "S-Function" SrcPort 1 DstBlock "out_1" DstPort 1 } Line { SrcBlock "in_2" SrcPort 1 DstBlock "Mux" DstPort 2 } } } Block { BlockType SubSystem Name "Subsystem2" Ports [2, 1] Position [460, 195, 550, 250] ShowPortLabels off TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" MaskType "Time Varying Matrix Gain" MaskDescription "Matrix Gain" MaskHelp "This block implements a time-varying matrix" " gain. The intial gain K determines the resizing of the vector input gain. Th" "e gain matrix(m,n) will produce m outputs, the input u having n columns." MaskPromptString "Initial Gain Matrix: |Update Sample Time" MaskStyleString "edit,edit" MaskTunableValueString "on,on" MaskCallbackString "|" MaskEnableString "on,on" MaskVisibilityString "on,on" MaskToolTipString "on,on" MaskInitialization "K=@1;Ts=@2;[m,n]=size(@1);" MaskDisplay "disp('Time Varying\\nMatrix Gain')" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "C|Ts" MaskVariableAliases "," System { Name "Subsystem2" Location [579, 383, 930, 533] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "in_1" Position [10, 60, 30, 80] Port "1" LatchInput off Interpolate on } Block { BlockType Inport Name "in_2" Position [10, 75, 30, 95] Port "2" LatchInput off Interpolate on } Block { BlockType Mux Name "Mux" Ports [2, 1] Position [60, 61, 90, 94] Inputs "[n m*n]" DisplayOption "none" } Block { BlockType "S-Function" Name "S-Function" Ports [1, 1] Position [130, 70, 180, 90] FunctionName "stvmgain" Parameters "K,Ts" PortCounts "[]" SFunctionModules "''" } Block { BlockType Outport Name "out_1" Position [210, 70, 230, 90] Port "1" OutputWhenDisabled "held" InitialOutput "0" } Line { SrcBlock "in_2" SrcPort 1 DstBlock "Mux" DstPort 2 } Line { SrcBlock "S-Function" SrcPort 1 DstBlock "out_1" DstPort 1 } Line { SrcBlock "in_1" SrcPort 1 DstBlock "Mux" DstPort 1 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "S-Function" DstPort 1 } } } Block { BlockType SubSystem Name "Subsystem3" Ports [2, 1] Position [460, 300, 550, 355] ShowPortLabels off TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" MaskType "Time Varying Matrix Gain" MaskDescription "Matrix Gain" MaskHelp "This block implements a time-varying matrix" " gain. The intial gain K determines the resizing of the vector input gain. Th" "e gain matrix(m,n) will produce m outputs, the input u having n columns." MaskPromptString "Initial Gain Matrix: |Update Sample Time" MaskStyleString "edit,edit" MaskTunableValueString "on,on" MaskCallbackString "|" MaskEnableString "on,on" MaskVisibilityString "on,on" MaskToolTipString "on,on" MaskInitialization "K=@1;Ts=@2;[m,n]=size(@1);" MaskDisplay "disp('Time Varying\\nMatrix Gain')" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "D|Ts" MaskVariableAliases "," System { Name "Subsystem3" Location [579, 383, 930, 533] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "in_1" Position [10, 60, 30, 80] Port "1" LatchInput off Interpolate on } Block { BlockType Inport Name "in_2" Position [10, 75, 30, 95] Port "2" LatchInput off Interpolate on } Block { BlockType Mux Name "Mux" Ports [2, 1] Position [60, 61, 90, 94] Inputs "[n m*n]" DisplayOption "none" } Block { BlockType "S-Function" Name "S-Function" Ports [1, 1] Position [130, 70, 180, 90] FunctionName "stvmgain" Parameters "K,Ts" PortCounts "[]" SFunctionModules "''" } Block { BlockType Outport Name "out_1" Position [210, 70, 230, 90] Port "1" OutputWhenDisabled "held" InitialOutput "0" } Line { SrcBlock "Mux" SrcPort 1 DstBlock "S-Function" DstPort 1 } Line { SrcBlock "in_1" SrcPort 1 DstBlock "Mux" DstPort 1 } Line { SrcBlock "S-Function" SrcPort 1 DstBlock "out_1" DstPort 1 } Line { SrcBlock "in_2" SrcPort 1 DstBlock "Mux" DstPort 2 } } } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [290, 18, 335, 187] IconShape "rectangular" Inputs "++" SaturateOnIntegerOverflow on } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [595, 174, 625, 381] IconShape "rectangular" Inputs "++" SaturateOnIntegerOverflow on } Block { BlockType UnitDelay Name "Unit Delay" Position [360, 97, 410, 113] X0 "x0" SampleTime "Tz" RTWStateStorageClass "Auto" } Block { BlockType Outport Name "Y" Position [660, 270, 680, 290] Port "1" OutputWhenDisabled "held" InitialOutput "0" } Line { SrcBlock "U" SrcPort 1 Points [40, 0] Branch { DstBlock "Subsystem" DstPort 1 } Branch { Points [0, 185] DstBlock "Subsystem3" DstPort 1 } } Line { SrcBlock "Unit Delay" SrcPort 1 Points [20, 0] Branch { Points [0, -100; -320, 0; 0, 40] DstBlock "Subsystem1" DstPort 1 } Branch { Points [0, 105] DstBlock "Subsystem2" DstPort 1 } } Line { SrcBlock "Subsystem1" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Subsystem" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { SrcBlock "Subsystem2" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Subsystem3" SrcPort 1 DstBlock "Sum1" DstPort 2 } Line { SrcBlock "A" SrcPort 1 DstBlock "Subsystem1" DstPort 2 } Line { SrcBlock "C" SrcPort 1 DstBlock "Subsystem2" DstPort 2 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Y" DstPort 1 } Line { SrcBlock "B" SrcPort 1 DstBlock "Subsystem" DstPort 2 } Line { SrcBlock "D" SrcPort 1 DstBlock "Subsystem3" DstPort 2 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Unit Delay" DstPort 1 } Annotation { Position [132, 27] VerticalAlignment "top" Text "x" } } } Block { BlockType Scope Name "Scope" Ports [1] Position [455, 64, 485, 96] Floating off Location [188, 365, 512, 604] Open off NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "on" List { ListType AxesTitles axes1 "%" } List { ListType SelectedSignals axes1 "" } Grid "on" TimeRange "auto" YMin "-5" YMax "5" SaveToWorkspace off SaveName "ScopeData" DataFormat "StructureWithTime" LimitDataPoints on MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Sin Name "Sine Wave" Position [15, 37, 45, 63] SineType "Time-based" Amplitude "[1 2 3]" Bias "0" Frequency "[3 2 1]" Phase "0" Samples "10" Offset "0" SampleTime "-1" VectorParams1D on } Block { BlockType ToWorkspace Name "To Workspace" Position [460, 122, 510, 138] VariableName "yout" MaxDataPoints "1000" Decimation "1" SampleTime "0" SaveFormat "Array" } Block { BlockType ToWorkspace Name "To Workspace1" Position [390, 272, 440, 288] VariableName "yout1" MaxDataPoints "1000" Decimation "1" SampleTime "0" SaveFormat "Array" } Line { SrcBlock "D" SrcPort 1 Points [90, 0] DstBlock "Discrete Time Varying\nState-Space" DstPort 5 } Line { SrcBlock "C" SrcPort 1 Points [90, 0] DstBlock "Discrete Time Varying\nState-Space" DstPort 4 } Line { SrcBlock "B" SrcPort 1 Points [90, 0] DstBlock "Discrete Time Varying\nState-Space" DstPort 3 } Line { SrcBlock "A" SrcPort 1 Points [90, 0] DstBlock "Discrete Time Varying\nState-Space" DstPort 2 } Line { SrcBlock "Discrete Time Varying\nState-Space" SrcPort 1 Points [0, 10; 40, 0] Branch { DstBlock "To Workspace" DstPort 1 } Branch { Points [0, -50] DstBlock "Scope" DstPort 1 } } Line { SrcBlock "Discrete State-Space" SrcPort 1 DstBlock "To Workspace1" DstPort 1 } Line { SrcBlock "Sine Wave" SrcPort 1 Points [55, 0] Branch { DstBlock "Discrete Time Varying\nState-Space" DstPort 1 } Branch { Points [0, 230] DstBlock "Discrete State-Space" DstPort 1 } } Annotation { Position [292, 342] VerticalAlignment "top" Text "This system requires two sample times, Tz, the " "unit delay sample time\nand Ts, the block update sample time. If the times ar" "e different, place the \nunit delay time Tz as the first element and Ts as th" "e second in the\nTs box of the mask." } } }