Model { Name "difeq" Version 5.0 SaveDefaultBlockParams on SampleTimeColors off 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 "Mon Feb 07 11:48:28 2005" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" ModifiedDateFormat "%" LastModifiedDate "Wed Feb 09 12:21:23 2005" 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 "ode45" SolverMode "Auto" StartTime "0.0" StopTime "200" MaxOrder 5 MaxStep "auto" MinStep "auto" MaxNumMinSteps "-1" InitialStep "auto" FixedStep "auto" RelTol "1e-6" AbsTol "auto" 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 on 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 on ConditionallyExecuteInputs on ParameterPooling on OptimizeBlockIOStorage on ZeroCross on AssertionControl "UseLocalSettings" ProdHWDeviceType "Microprocessor" ProdHWWordLengths "8,16,32,32" RTWSystemTargetFile "grt.tlc" RTWTemplateMakefile "grt_default_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 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 Ground } 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 Integrator ExternalReset "none" InitialConditionSource "internal" InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" ZeroCross on } Block { BlockType MATLABFcn MATLABFcn "sin" OutputDimensions "-1" OutputSignalType "auto" Output1D on } Block { BlockType Outport Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType Scope Floating off ModelBased off TickLabels "OneTimeTick" ZoomMode "on" Grid "on" TimeRange "auto" YMin "-5" YMax "5" SaveToWorkspace off SaveName "ScopeData" LimitDataPoints on MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType "S-Function" FunctionName "system" PortCounts "[]" SFunctionModules "''" } 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 Switch Criteria "u2 >= Threshold" Threshold "0" ShowAdditionalParam off InputSameDT on OutDataTypeMode "Inherit via internal rule" RndMeth "Floor" SaturateOnIntegerOverflow on ZeroCross on } Block { BlockType ToWorkspace VariableName "simulink_output" MaxDataPoints "1000" Decimation "1" SampleTime "0" } } 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 "difeq" Location [2, 74, 774, 540] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "88" ReportName "simulink-default.rpt" Block { BlockType Gain Name "Gain" Position [1222, 245, 1248, 290] Orientation "down" NamePlacement "alternate" Gain "6" } Block { BlockType Gain Name "Gain1" Position [915, 255, 945, 295] Orientation "down" NamePlacement "alternate" Gain "9" } Block { BlockType Gain Name "Gain2" Position [599, 250, 631, 290] Orientation "down" NamePlacement "alternate" Gain "7" } Block { BlockType Gain Name "Gain3" Position [424, 255, 456, 290] Orientation "down" NamePlacement "alternate" Gain "5" } Block { BlockType Gain Name "Gain4" Position [260, 255, 290, 285] Orientation "down" NamePlacement "alternate" Gain "9" } Block { BlockType Gain Name "Gain5" Position [763, 255, 797, 295] Orientation "down" NamePlacement "alternate" } Block { BlockType Gain Name "Gain6" Position [1061, 255, 1089, 295] Orientation "down" NamePlacement "alternate" } Block { BlockType Ground Name "Ground" Position [285, 145, 305, 165] Orientation "left" ShowName off } Block { BlockType Ground Name "Ground1" Position [455, 145, 475, 165] Orientation "left" ShowName off } Block { BlockType Ground Name "Ground2" Position [635, 140, 655, 160] Orientation "left" ShowName off } Block { BlockType Ground Name "Ground3" Position [795, 145, 815, 165] Orientation "left" ShowName off } Block { BlockType Ground Name "Ground4" Position [945, 145, 965, 165] Orientation "left" ShowName off } Block { BlockType Ground Name "Ground5" Position [1090, 145, 1110, 165] Orientation "left" ShowName off } Block { BlockType Ground Name "Ground6" Position [1280, 145, 1300, 165] Orientation "left" ShowName off } Block { BlockType Integrator Name "Integrator" Ports [1, 1] Position [1085, 80, 1115, 110] InitialCondition "1" } Block { BlockType Integrator Name "Integrator1" Ports [1, 1] Position [940, 80, 970, 110] } Block { BlockType Integrator Name "Integrator2" Ports [1, 1] Position [785, 80, 815, 110] } Block { BlockType Integrator Name "Integrator3" Ports [1, 1] Position [620, 80, 650, 110] } Block { BlockType Integrator Name "Integrator4" Ports [1, 1] Position [445, 80, 475, 110] } Block { BlockType Integrator Name "Integrator5" Ports [1, 1] Position [280, 80, 310, 110] } Block { BlockType Integrator Name "Integrator6" Ports [1, 1] Position [100, 80, 130, 110] } Block { BlockType MATLABFcn Name "MATLAB Fcn1" Position [120, 295, 180, 325] Orientation "left" MATLABFcn "satamp" } Block { BlockType MATLABFcn Name "MATLAB Fcn10" Position [680, 80, 740, 110] MATLABFcn "satamp" } Block { BlockType MATLABFcn Name "MATLAB Fcn11" Position [845, 80, 905, 110] MATLABFcn "satamp" } Block { BlockType MATLABFcn Name "MATLAB Fcn12" Position [995, 80, 1055, 110] MATLABFcn "satamp" } Block { BlockType MATLABFcn Name "MATLAB Fcn13" Position [1135, 80, 1195, 110] MATLABFcn "satamp" } Block { BlockType MATLABFcn Name "MATLAB Fcn14" Position [690, 570, 750, 600] Orientation "left" MATLABFcn "satamp" } Block { BlockType MATLABFcn Name "MATLAB Fcn2" Position [195, 350, 255, 380] Orientation "left" MATLABFcn "satamp" } Block { BlockType MATLABFcn Name "MATLAB Fcn3" Position [285, 395, 345, 425] Orientation "left" MATLABFcn "satamp" } Block { BlockType MATLABFcn Name "MATLAB Fcn4" Position [380, 445, 440, 475] Orientation "left" MATLABFcn "satamp" } Block { BlockType MATLABFcn Name "MATLAB Fcn5" Position [460, 485, 520, 515] Orientation "left" MATLABFcn "satamp" } Block { BlockType MATLABFcn Name "MATLAB Fcn6" Position [570, 530, 630, 560] Orientation "left" MATLABFcn "satamp" } Block { BlockType MATLABFcn Name "MATLAB Fcn7" Position [160, 80, 220, 110] MATLABFcn "satamp" } Block { BlockType MATLABFcn Name "MATLAB Fcn8" Position [335, 80, 395, 110] MATLABFcn "satamp" } Block { BlockType MATLABFcn Name "MATLAB Fcn9" Position [515, 80, 575, 110] MATLABFcn "satamp" } Block { BlockType Reference Name "Manual Switch" Ports [2, 1] Position [257, 185, 288, 225] Orientation "down" NamePlacement "alternate" ShowName off SourceBlock "simulink/Signal\nRouting/Manual Switch" SourceType "Manual Switch" sw "1" action "0" } Block { BlockType Reference Name "Maual Switch1" Ports [2, 1] Position [422, 180, 453, 220] Orientation "down" NamePlacement "alternate" ShowName off SourceBlock "simulink/Signal\nRouting/Manual Switch" SourceType "Manual Switch" sw "1" action "0" } Block { BlockType Reference Name "Maual Switch2" Ports [2, 1] Position [597, 180, 628, 220] Orientation "down" NamePlacement "alternate" ShowName off SourceBlock "simulink/Signal\nRouting/Manual Switch" SourceType "Manual Switch" sw "1" action "0" } Block { BlockType Reference Name "Maual Switch3" Ports [2, 1] Position [762, 180, 793, 220] Orientation "down" NamePlacement "alternate" ShowName off SourceBlock "simulink/Signal\nRouting/Manual Switch" SourceType "Manual Switch" sw "0" action "0" } Block { BlockType Reference Name "Maual Switch4" Ports [2, 1] Position [912, 180, 943, 220] Orientation "down" NamePlacement "alternate" ShowName off SourceBlock "simulink/Signal\nRouting/Manual Switch" SourceType "Manual Switch" sw "1" action "0" } Block { BlockType Reference Name "Maual Switch5" Ports [2, 1] Position [1057, 190, 1088, 230] Orientation "down" NamePlacement "alternate" ShowName off SourceBlock "simulink/Signal\nRouting/Manual Switch" SourceType "Manual Switch" sw "0" action "0" } Block { BlockType Reference Name "Maual Switch6" Ports [2, 1] Position [1217, 175, 1248, 215] Orientation "down" NamePlacement "alternate" ShowName off SourceBlock "simulink/Signal\nRouting/Manual Switch" SourceType "Manual Switch" sw "1" action "0" } Block { BlockType Scope Name "Scope" Ports [1] Position [1300, 79, 1330, 111] Location [1, 49, 801, 571] Open on NumInputPorts "1" List { ListType AxesTitles axes1 "%" } List { ListType SelectedSignals axes1 "" } DataFormat "StructureWithTime" } Block { BlockType Scope Name "Scope1" Ports [1] Position [125, 594, 155, 626] Location [471, 355, 795, 594] Open on NumInputPorts "1" List { ListType AxesTitles axes1 "%" } List { ListType SelectedSignals axes1 "" } SaveName "ScopeData1" DataFormat "StructureWithTime" } Block { BlockType Scope Name "Scope2" Ports [1] Position [1155, 134, 1185, 166] Location [5, 53, 805, 575] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } List { ListType SelectedSignals axes1 "" } SaveName "ScopeData2" DataFormat "StructureWithTime" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [50, 300, 70, 320] Orientation "up" NamePlacement "alternate" ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [50, 355, 70, 375] Orientation "up" NamePlacement "alternate" ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum2" Ports [2, 1] Position [50, 400, 70, 420] Orientation "up" NamePlacement "alternate" ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum3" Ports [2, 1] Position [50, 535, 70, 555] Orientation "up" NamePlacement "alternate" ShowName off IconShape "round" Inputs "|--" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum4" Ports [2, 1] Position [50, 490, 70, 510] Orientation "up" NamePlacement "alternate" ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum5" Ports [2, 1] Position [50, 450, 70, 470] Orientation "up" NamePlacement "alternate" ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType ToWorkspace Name "To Workspace" Position [1195, 25, 1255, 55] Orientation "up" NamePlacement "alternate" VariableName "y" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Line { SrcBlock "Integrator" SrcPort 1 Points [0, 0] Branch { DstBlock "MATLAB Fcn13" DstPort 1 } Branch { Points [0, 55] DstBlock "Scope2" DstPort 1 } } Line { SrcBlock "Integrator1" SrcPort 1 DstBlock "MATLAB Fcn12" DstPort 1 } Line { SrcBlock "Integrator2" SrcPort 1 DstBlock "MATLAB Fcn11" DstPort 1 } Line { SrcBlock "Integrator3" SrcPort 1 DstBlock "MATLAB Fcn10" DstPort 1 } Line { SrcBlock "Integrator4" SrcPort 1 DstBlock "MATLAB Fcn9" DstPort 1 } Line { SrcBlock "Integrator5" SrcPort 1 DstBlock "MATLAB Fcn8" DstPort 1 } Line { SrcBlock "Integrator6" SrcPort 1 DstBlock "MATLAB Fcn7" DstPort 1 } Line { SrcBlock "Sum" SrcPort 1 Points [0, -200] DstBlock "Integrator6" DstPort 1 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Sum2" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Sum3" SrcPort 1 DstBlock "Sum4" DstPort 1 } Line { SrcBlock "Sum5" SrcPort 1 DstBlock "Sum2" DstPort 1 } Line { SrcBlock "Sum4" SrcPort 1 DstBlock "Sum5" DstPort 1 } Line { SrcBlock "Ground" SrcPort 1 DstBlock "Manual Switch" DstPort 2 } Line { SrcBlock "Ground6" SrcPort 1 Points [-35, 0] DstBlock "Maual Switch6" DstPort 2 } Line { SrcBlock "Ground5" SrcPort 1 Points [-5, 0] DstBlock "Maual Switch5" DstPort 2 } Line { SrcBlock "Ground4" SrcPort 1 Points [-5, 0] DstBlock "Maual Switch4" DstPort 2 } Line { SrcBlock "Ground3" SrcPort 1 Points [-5, 0] DstBlock "Maual Switch3" DstPort 2 } Line { SrcBlock "Ground2" SrcPort 1 Points [-10, 0] DstBlock "Maual Switch2" DstPort 2 } Line { SrcBlock "Ground1" SrcPort 1 Points [-5, 0] DstBlock "Maual Switch1" DstPort 2 } Line { SrcBlock "MATLAB Fcn7" SrcPort 1 Points [40, 0] Branch { DstBlock "Integrator5" DstPort 1 } Branch { DstBlock "Manual Switch" DstPort 1 } } Line { SrcBlock "MATLAB Fcn8" SrcPort 1 Points [30, 0] Branch { DstBlock "Integrator4" DstPort 1 } Branch { DstBlock "Maual Switch1" DstPort 1 } } Line { SrcBlock "MATLAB Fcn9" SrcPort 1 Points [25, 0] Branch { DstBlock "Integrator3" DstPort 1 } Branch { DstBlock "Maual Switch2" DstPort 1 } } Line { SrcBlock "MATLAB Fcn10" SrcPort 1 Points [25, 0] Branch { DstBlock "Integrator2" DstPort 1 } Branch { DstBlock "Maual Switch3" DstPort 1 } } Line { SrcBlock "MATLAB Fcn11" SrcPort 1 Points [10, 0] Branch { DstBlock "Integrator1" DstPort 1 } Branch { DstBlock "Maual Switch4" DstPort 1 } } Line { SrcBlock "MATLAB Fcn12" SrcPort 1 Points [5, 0] Branch { DstBlock "Integrator" DstPort 1 } Branch { DstBlock "Maual Switch5" DstPort 1 } } Line { SrcBlock "MATLAB Fcn13" SrcPort 1 Points [20, 0] Branch { Points [5, 0] Branch { DstBlock "Scope" DstPort 1 } Branch { DstBlock "To Workspace" DstPort 1 } } Branch { Points [5, 0] DstBlock "Maual Switch6" DstPort 1 } } Line { SrcBlock "Manual Switch" SrcPort 1 DstBlock "Gain4" DstPort 1 } Line { SrcBlock "Maual Switch1" SrcPort 1 DstBlock "Gain3" DstPort 1 } Line { SrcBlock "Maual Switch2" SrcPort 1 DstBlock "Gain2" DstPort 1 } Line { SrcBlock "Maual Switch3" SrcPort 1 DstBlock "Gain5" DstPort 1 } Line { SrcBlock "Maual Switch4" SrcPort 1 DstBlock "Gain1" DstPort 1 } Line { SrcBlock "Maual Switch5" SrcPort 1 DstBlock "Gain6" DstPort 1 } Line { SrcBlock "Maual Switch6" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "Gain4" SrcPort 1 Points [0, 20] DstBlock "MATLAB Fcn1" DstPort 1 } Line { SrcBlock "Gain3" SrcPort 1 Points [0, 70] DstBlock "MATLAB Fcn2" DstPort 1 } Line { SrcBlock "Gain2" SrcPort 1 Points [0, 115] DstBlock "MATLAB Fcn3" DstPort 1 } Line { SrcBlock "Gain5" SrcPort 1 Points [0, 160] DstBlock "MATLAB Fcn4" DstPort 1 } Line { SrcBlock "Gain1" SrcPort 1 Points [0, 200] DstBlock "MATLAB Fcn5" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 Points [0, 290] DstBlock "MATLAB Fcn14" DstPort 1 } Line { SrcBlock "Gain6" SrcPort 1 Points [0, 245] DstBlock "MATLAB Fcn6" DstPort 1 } Line { SrcBlock "MATLAB Fcn1" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { SrcBlock "MATLAB Fcn2" SrcPort 1 DstBlock "Sum1" DstPort 2 } Line { SrcBlock "MATLAB Fcn3" SrcPort 1 DstBlock "Sum2" DstPort 2 } Line { SrcBlock "MATLAB Fcn4" SrcPort 1 DstBlock "Sum5" DstPort 2 } Line { SrcBlock "MATLAB Fcn5" SrcPort 1 DstBlock "Sum4" DstPort 2 } Line { SrcBlock "MATLAB Fcn6" SrcPort 1 DstBlock "Sum3" DstPort 2 } Line { SrcBlock "MATLAB Fcn14" SrcPort 1 Points [-625, 0; 0, -5] Branch { DstBlock "Sum3" DstPort 1 } Branch { Points [0, 30] DstBlock "Scope1" DstPort 1 } } } }