Model { Name "c51" Version 4.00 SampleTimeColors off LibraryLinkDisplay "none" WideLines off 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 Created "Thu Oct 03 12:47:31 2002" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "Администратор" ModifiedDateFormat "%" LastModifiedDate "Sat Oct 15 19:23:05 2005" ModelVersionFormat "1.%" ConfigurationManager "None" SimParamPage "Solver" StartTime "0.0" StopTime "5" SolverMode "Auto" Solver "ode23s" RelTol "1e-10" AbsTol "auto" Refine "1" MaxStep "auto" MinStep "auto" MaxNumMinSteps "-1" InitialStep "auto" FixedStep "auto" MaxOrder 2 OutputOption "RefineOutputTimes" OutputTimes "[]" LoadExternalInput off ExternalInput "[t, u]" SaveTime on TimeSaveName "tout" SaveState on StateSaveName "xout" SaveOutput on OutputSaveName "yout" LoadInitialState off InitialState "xInitial" SaveFinalState on 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" RTWOptions "-aEnforceIntegerDowncast=1 -aExtMode=0 -aFoldNonRol" "ledExpr=1 -aForceParamTrailComments=0 -aGenerateComments=1 -aIgnoreCustomStor" "ageClasses=0 -aIncHierarchyInIds=0 -aInlineInvariantSignals=0 -aLocalBlockOut" "puts=1 -aLogVarNameModifier=\"rt_\" -aRTWVerbose=1 -aRollThreshold=5 -aShowEl" "iminatedStatements=1" 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 "c51" Location [356, 106, 1004, 495] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "automatic" PaperOrientation "rotated" PaperPositionMode "auto" PaperType "a4letter" PaperUnits "inches" ZoomFactor "100" ReportName "simulink-default.rpt" Block { BlockType Logic Name " " Ports [2, 1] Position [445, 142, 475, 173] Operator "OR" Inputs "2" } Block { BlockType HitCross Name "2.5" Ports [1, 1] Position [355, 225, 385, 255] HitCrossingOffset "2.5" HitCrossingDirection "falling" ShowOutputPort on } Block { BlockType HitCross Name "5.8" Ports [1, 1] Position [355, 135, 385, 165] HitCrossingOffset "5.8" HitCrossingDirection "rising" ShowOutputPort on } Block { BlockType Clock Name "Clock" Position [290, 325, 310, 345] DisplayTime off Decimation "10" } Block { BlockType Display Name "Display y1" Ports [1] Position [405, 304, 550, 336] Format "long" Decimation "1" Floating off SampleTime "-1" } Block { BlockType Scope Name "Scope" Ports [1] Position [410, 89, 440, 121] Floating off Location [286, 270, 809, 643] Open off NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "on" List { ListType AxesTitles axes1 "%" } List { ListType SelectedSignals axes1 "c51/y1:1" } Grid "on" TimeRange "5" YMin "0" YMax "6" SaveToWorkspace off SaveName "ScopeData" DataFormat "StructureWithTime" LimitDataPoints on MaxDataPoints "5000000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Sum Name "Sum" Ports [3, 1] Position [110, 84, 135, 126] ShowName off IconShape "rectangular" Inputs "-++" SaturateOnIntegerOverflow on } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [110, 178, 135, 227] ShowName off IconShape "rectangular" Inputs "-+" SaturateOnIntegerOverflow on } Block { BlockType Gain Name "c1" Position [155, 86, 235, 124] Gain "2.7e+6" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "c3" Position [155, 186, 250, 224] Gain "3.5651205" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on } Block { BlockType SubSystem Name "change state" Ports [2, 2, 0, 1] Position [450, 212, 550, 263] ShowPortLabels on TreatAsAtomicUnit on RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "change state" Location [178, 133, 945, 627] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "y1" Position [120, 173, 150, 187] Port "1" LatchInput off Interpolate on } Block { BlockType Inport Name "Time" Position [120, 303, 150, 317] Port "2" LatchInput off Interpolate on } Block { BlockType TriggerPort Name "Trigger" Ports [] Position [125, 80, 145, 100] TriggerType "rising" ShowOutputPort off OutputDataType "auto" } Block { BlockType Switch Name "Switch1" Position [280, 110, 310, 140] Threshold "5" } Block { BlockType Switch Name "Switch2" Position [280, 220, 310, 250] Threshold "5" } Block { BlockType ToWorkspace Name "To Workspace" Position [200, 295, 285, 325] VariableName "discontinuties" MaxDataPoints "inf" Decimation "1" SampleTime "-1" SaveFormat "Array" } Block { BlockType Constant Name "c2_1" Position [205, 135, 235, 165] Value "0.4" VectorParams1D on } Block { BlockType Constant Name "c2_2" Position [205, 80, 235, 110] Value "-0.3" VectorParams1D on } Block { BlockType Constant Name "c4_1" Position [205, 245, 235, 275] Value "5.5" VectorParams1D on } Block { BlockType Constant Name "c4_2" Position [205, 190, 235, 220] Value "2.73" VectorParams1D on } Block { BlockType Outport Name "c2" Position [340, 118, 370, 132] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType Outport Name "c4" Position [340, 228, 370, 242] Port "2" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "Switch1" SrcPort 1 DstBlock "c2" DstPort 1 } Line { SrcBlock "y1" SrcPort 1 Points [10, 0] Branch { Labels [2, 0] Points [0, 55] DstBlock "Switch2" DstPort 2 } Branch { Points [0, -55] DstBlock "Switch1" DstPort 2 } } Line { SrcBlock "Switch2" SrcPort 1 DstBlock "c4" DstPort 1 } Line { SrcBlock "c4_1" SrcPort 1 Points [10, 0; 0, -15] DstBlock "Switch2" DstPort 3 } Line { SrcBlock "c4_2" SrcPort 1 Points [10, 0; 0, 20] DstBlock "Switch2" DstPort 1 } Line { SrcBlock "c2_1" SrcPort 1 Points [10, 0; 0, -15] DstBlock "Switch1" DstPort 3 } Line { SrcBlock "c2_2" SrcPort 1 Points [10, 0; 0, 20] DstBlock "Switch1" DstPort 1 } Line { SrcBlock "Time" SrcPort 1 DstBlock "To Workspace" DstPort 1 } Annotation { Position [262, 33] } } } Block { BlockType Integrator Name "y1" Ports [1, 1] Position [270, 90, 300, 120] ExternalReset "none" InitialConditionSource "internal" InitialCondition "4.2" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Integrator Name "y2" Ports [1, 1] Position [270, 190, 300, 220] ExternalReset "none" InitialConditionSource "internal" InitialCondition "0.3" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Line { SrcBlock "y1" SrcPort 1 Points [0, 0; 30, 0] Branch { Points [0, -40; -240, 0] DstBlock "Sum" DstPort 1 } Branch { Points [0, 45] Branch { Points [0, 0] DstBlock "5.8" DstPort 1 } Branch { Points [0, 90] Branch { DstBlock "2.5" DstPort 1 } Branch { Points [0, 45] Branch { Points [100, 0] DstBlock "change state" DstPort 1 } Branch { Points [0, 35] DstBlock "Display y1" DstPort 1 } } } } Branch { DstBlock "Scope" DstPort 1 } } Line { SrcBlock "c1" SrcPort 1 DstBlock "y1" DstPort 1 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "c1" DstPort 1 } Line { SrcBlock "y2" SrcPort 1 Points [10, 0; 0, -50; -230, 0] Branch { Points [0, -35] DstBlock "Sum" DstPort 3 } Branch { Points [0, 35] DstBlock "Sum1" DstPort 1 } } Line { SrcBlock "c3" SrcPort 1 DstBlock "y2" DstPort 1 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "c3" DstPort 1 } Line { SrcBlock " " SrcPort 1 Points [20, 0] DstBlock "change state" DstPort trigger } Line { SrcBlock "5.8" SrcPort 1 DstBlock " " DstPort 1 } Line { SrcBlock "2.5" SrcPort 1 Points [10, 0; 0, -75] DstBlock " " DstPort 2 } Line { SrcBlock "change state" SrcPort 2 Points [10, 0; 0, 45; -480, 0; 0, -80] DstBlock "Sum1" DstPort 2 } Line { SrcBlock "change state" SrcPort 1 Points [10, 0; 0, -170; -480, 0; 0, 50] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Clock" SrcPort 1 Points [70, 0; 0, -60; 35, 0; 0, -25] DstBlock "change state" DstPort 2 } } }