Model { Name "stategen" Version 4.00 SampleTimeColors off LibraryLinkDisplay "none" WideLines off ShowLineDimensions on 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 Created "Sat Jan 04 06:11:30 2003" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" ModifiedDateFormat "%" LastModifiedDate "Sat Jan 04 08:19:05 2003" ModelVersionFormat "1.%" 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 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 "stategen" Location [206, 85, 980, 638] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "automatic" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" ReportName "simulink-default.rpt" Block { BlockType Reference Name "Band-Limited\nWhite Noise" Ports [0, 1] Position [115, 485, 145, 515] Orientation "up" SourceBlock "simulink3/Sources/Band-Limited\nWhite Noise" SourceType "Continuous White Noise." Cov "[0.1]" Ts "0.1" seed "[23341]" VectorParams1D on } Block { BlockType Reference Name "Band-Limited\nWhite Noise1" Ports [0, 1] Position [350, 485, 380, 515] Orientation "up" SourceBlock "simulink3/Sources/Band-Limited\nWhite Noise" SourceType "Continuous White Noise." Cov "[0.1]" Ts "0.01" seed "[23341]" VectorParams1D on } Block { BlockType Constant Name "Constant" Position [25, 415, 55, 445] Orientation "up" Value "0" VectorParams1D on } Block { BlockType Constant Name "Constant1" Position [250, 415, 280, 445] Orientation "up" Value "0" VectorParams1D on } Block { BlockType Reference Name "Deterministic\nInput Selector\nSwitch" Ports [2, 1] Position [130, 152, 160, 188] SourceBlock "simulink3/Nonlinear/Manual Switch" SourceType "Manual Switch" sw "0" action "0" } Block { BlockType Integrator Name "Integrator" Ports [1, 1] Position [350, 415, 380, 445] Orientation "up" ExternalReset "none" InitialConditionSource "internal" InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Gain Name "Matrix\nGain" Position [275, 180, 305, 210] Gain "E" Multiplication "Matrix(K*u)" SaturateOnIntegerOverflow on Port { PortNumber 1 Name "u" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Reference Name "Noise \nOn/Off Switch" Ports [2, 1] Position [57, 330, 113, 370] Orientation "up" SourceBlock "simulink3/Nonlinear/Manual Switch" SourceType "Manual Switch" sw "0" action "0" Port { PortNumber 1 Name "White\nNoise" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Scope Name "RW-generating\nWhite Noise" Ports [1] Position [475, 414, 505, 446] Floating off Location [61, 250, 713, 489] Open off NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "on" List { ListType AxesTitles axes1 "%" } List { ListType SelectedSignals axes1 "" } Grid "on" TimeRange "10" YMin "-80" YMax "60" SaveToWorkspace off SaveName "ScopeData2" DataFormat "StructureWithTime" LimitDataPoints on MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Reference Name "Random Walk \nOn/Off Switch" Ports [2, 1] Position [287, 330, 343, 370] Orientation "up" SourceBlock "simulink3/Nonlinear/Manual Switch" SourceType "Manual Switch" sw "0" action "0" Port { PortNumber 1 Name "Random\nWalk" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Sin Name "Sine Wave" Position [35, 185, 65, 215] SineType "Time-based" Amplitude "1" Bias "0" Frequency "1" Phase "0" Samples "10" Offset "0" SampleTime "0" VectorParams1D on } Block { BlockType StateSpace Name "State-Space Model\n(matrices defined in\nWorksp" "ace)" Position [495, 144, 625, 246] A "A" B "B" C "C" D "D" X0 "0" AbsoluteTolerance "auto" Realization "auto" Port { PortNumber 1 Name "y" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Step Name "Step" Position [35, 125, 65, 155] Time "1" Before "0" After "1" SampleTime "0" VectorParams1D on } Block { BlockType Sum Name "Sum" Ports [3, 1] Position [210, 180, 240, 210] ShowName off IconShape "round" Inputs "|+++" SaturateOnIntegerOverflow on } Block { BlockType Scope Name "System\nInput" Ports [1] Position [415, 224, 445, 256] Floating off Location [48, 70, 700, 309] Open on NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "on" List { ListType AxesTitles axes1 "%" } List { ListType SelectedSignals axes1 "" } Grid "on" TimeRange "10" YMin "-80" YMax "60" SaveToWorkspace off SaveName "ScopeData1" DataFormat "StructureWithTime" LimitDataPoints on MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Scope Name "System\nOutput" Ports [1] Position [685, 179, 715, 211] Floating off Location [49, 497, 701, 736] Open on NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "on" List { ListType AxesTitles axes1 "%" } List { ListType SelectedSignals axes1 "" } Grid "on" TimeRange "10" YMin "-80" YMax "60" SaveToWorkspace off SaveName "ScopeData" DataFormat "StructureWithTime" LimitDataPoints on MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Scope Name "White Noise" Ports [1] Position [160, 414, 190, 446] Floating off Location [49, 497, 701, 736] Open on NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "on" List { ListType AxesTitles axes1 "%" } List { ListType SelectedSignals axes1 "" } Grid "on" TimeRange "10" YMin "-80" YMax "60" SaveToWorkspace off SaveName "ScopeData3" DataFormat "StructureWithTime" LimitDataPoints on MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "0" } Line { Name "y" Labels [0, 0] SrcBlock "State-Space Model\n(matrices defined in\nWorksp" "ace)" SrcPort 1 DstBlock "System\nOutput" DstPort 1 } Line { Name "u" Labels [0, 0] SrcBlock "Matrix\nGain" SrcPort 1 Points [65, 0] Branch { DstBlock "State-Space Model\n(matrices defined in\nWork" "space)" DstPort 1 } Branch { Points [0, 45] DstBlock "System\nInput" DstPort 1 } } Line { SrcBlock "Constant" SrcPort 1 Points [0, -10; 30, 0] DstBlock "Noise \nOn/Off Switch" DstPort 1 } Line { SrcBlock "Band-Limited\nWhite Noise" SrcPort 1 Points [0, -50] Branch { Points [0, -30; -30, 0] DstBlock "Noise \nOn/Off Switch" DstPort 2 } Branch { DstBlock "White Noise" DstPort 1 } } Line { Name "White\nNoise" Labels [2, 0] SrcBlock "Noise \nOn/Off Switch" SrcPort 1 Points [0, -45; 114, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Sine Wave" SrcPort 1 Points [25, 0; 0, -20] DstBlock "Deterministic\nInput Selector\nSwitch" DstPort 2 } Line { SrcBlock "Step" SrcPort 1 Points [25, 0; 0, 20] DstBlock "Deterministic\nInput Selector\nSwitch" DstPort 1 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Matrix\nGain" DstPort 1 } Line { SrcBlock "Constant1" SrcPort 1 Points [0, -10; 35, 0] DstBlock "Random Walk \nOn/Off Switch" DstPort 1 } Line { Name "Random\nWalk" Labels [2, 0] SrcBlock "Random Walk \nOn/Off Switch" SrcPort 1 Points [0, -45; -90, 0] DstBlock "Sum" DstPort 3 } Line { SrcBlock "Band-Limited\nWhite Noise1" SrcPort 1 Points [0, 0; 0, -10] Branch { DstBlock "Integrator" DstPort 1 } Branch { Points [75, 0; 0, -40] DstBlock "RW-generating\nWhite Noise" DstPort 1 } } Line { SrcBlock "Integrator" SrcPort 1 Points [0, -15; -35, 0] DstBlock "Random Walk \nOn/Off Switch" DstPort 2 } Line { SrcBlock "Deterministic\nInput Selector\nSwitch" SrcPort 1 Points [29, 0; 0, 10] DstBlock "Sum" DstPort 1 } Annotation { Position [383, 59] Text "Generic State Space System\nMatrices A,B,C, and" " D are generated using stategen_init.m" FontSize 18 FontWeight "bold" } Annotation { Position [277, 151] HorizontalAlignment "left" Text "E matrix determines \nwhich inputs are driven. " " \nGo to Workspace to change E." } } }