Model { Name "unt2" 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 "Wed Apr 07 12:46:03 2004" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "Рогачев" ModifiedDateFormat "%" LastModifiedDate "Sat Jan 01 03:37:52 2000" ModelVersionFormat "1.%" ConfigurationManager "None" SimParamPage "Solver" StartTime "0.0" StopTime "10.0" SolverMode "Auto" Solver "ode15s" RelTol "1e-3" AbsTol "auto" Refine "1" MaxStep "auto" MinStep "auto" MaxNumMinSteps "-1" InitialStep "auto" FixedStep "0.0001" 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 "unt2" Location [2, 74, 1014, 744] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "automatic" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "200" ReportName "simulink-default.rpt" Block { BlockType SubSystem Name "Chart" Ports [1, 1, 0, 1] Position [120, 189, 180, 241] ShowPortLabels on TreatAsAtomicUnit on RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" MaskType "Stateflow" MaskDescription "Stateflow diagram" MaskDisplay "plot(sf('Private','sfblk','xIcon'),sf('Private'" ",'sfblk','yIcon'));text(0.5,0,sf('Private', 'sfblk', 'tIcon'),'HorizontalAl'," "'Center','VerticalAl','Bottom');" MaskSelfModifiable on MaskIconFrame off MaskIconOpaque off MaskIconRotate "none" MaskIconUnits "autoscale" System { Name "Chart" Location [257, 457, 812, 717] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "din" Position [20, 101, 40, 119] Port "1" LatchInput off PortDimensions "1" Interpolate on } Block { BlockType TriggerPort Name "event" Ports [0, 1] Position [20, 136, 40, 154] TriggerType "rising" ShowOutputPort on OutputDataType "auto" } Block { BlockType Demux Name " Demux " Ports [1, 1] Position [270, 160, 320, 200] Outputs "1" BusSelectionMode off } Block { BlockType "S-Function" Name " SFunction " Tag "Stateflow S-Function unt2 1" Ports [2, 2] Position [180, 100, 230, 160] FunctionName "sf_sfun" PortCounts "[2 2]" SFunctionModules "''" Port { PortNumber 2 Name "dout" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Terminator Name " Terminator " Position [460, 171, 480, 189] } Block { BlockType Outport Name "dout" Position [460, 101, 480, 119] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock " Demux " SrcPort 1 DstBlock " Terminator " DstPort 1 } Line { SrcBlock " SFunction " SrcPort 1 Points [0, 65] DstBlock " Demux " DstPort 1 } Line { SrcBlock "din" SrcPort 1 DstBlock " SFunction " DstPort 1 } Line { SrcBlock "event" SrcPort 1 DstBlock " SFunction " DstPort 2 } Line { Name "dout" Labels [0, 0] SrcBlock " SFunction " SrcPort 2 DstBlock "dout" DstPort 1 } } } Block { BlockType Constant Name "Constant" Position [15, 80, 45, 110] Value "0" VectorParams1D on } Block { BlockType Display Name "Display" Ports [1] Position [385, 225, 475, 255] Format "short" Decimation "1" Floating off SampleTime "-1" } Block { BlockType Integrator Name "Integrator" Ports [1, 1] Position [325, 225, 355, 255] ExternalReset "none" InitialConditionSource "internal" InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Mux Name "Mux" Ports [2, 1] Position [355, 38, 360, 142] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Product Name "Product" Ports [2, 1] Position [250, 221, 295, 254] Inputs "2" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType DiscretePulseGenerator Name "Pulse\nGenerator" Position [15, 153, 60, 187] PulseType "Time-based" Amplitude "1" Period ".005" PulseWidth "50" PhaseDelay "0" SampleTime "1" VectorParams1D on } Block { BlockType Scope Name "Scope" Ports [1] Position [385, 74, 415, 106] Floating off Location [5, 53, 1033, 775] Open off NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "on" List { ListType AxesTitles axes1 "%" } List { ListType SelectedSignals axes1 "" } Grid "on" TimeRange "10" YMin "-0.4" YMax "1.7" SaveToWorkspace off SaveName "ScopeData" DataFormat "StructureWithTime" LimitDataPoints off MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [65, 85, 85, 105] ShowName off IconShape "round" Inputs "|+-" SaturateOnIntegerOverflow on } Block { BlockType Reference Name "Transfer Fcn\n(with initial outputs)" Ports [1, 1] Position [225, 97, 285, 133] SourceBlock "simulink_extras/Additional\nLinear/Transfer Fcn" "\n(with initial outputs)" SourceType "Transfer Function with Initial Outputs" N "[1 ]" D "[1 0 -4]" Y0 ".1" U0 "0" } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Scope" DstPort 1 } Line { SrcBlock "Constant" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Pulse\nGenerator" SrcPort 1 Points [85, 0] DstBlock "Chart" DstPort trigger } Line { SrcBlock "Sum" SrcPort 1 Points [10, 0; 0, 120] Branch { DstBlock "Chart" DstPort 1 } Branch { Points [0, 40; 125, 0; 0, -10] Branch { Points [0, -15] DstBlock "Product" DstPort 1 } Branch { DstBlock "Product" DstPort 2 } } } Line { SrcBlock "Chart" SrcPort 1 Points [15, 0; 0, -100] Branch { Points [0, -50] DstBlock "Mux" DstPort 1 } Branch { DstBlock "Transfer Fcn\n(with initial outputs)" DstPort 1 } } Line { SrcBlock "Transfer Fcn\n(with initial outputs)" SrcPort 1 Points [45, 0] Branch { DstBlock "Mux" DstPort 2 } Branch { Points [0, 50; -260, 0] DstBlock "Sum" DstPort 2 } } Line { SrcBlock "Integrator" SrcPort 1 DstBlock "Display" DstPort 1 } Line { SrcBlock "Product" SrcPort 1 DstBlock "Integrator" DstPort 1 } } } # Finite State Machines # -- File save dated 01-Jan-2000 03:37:53 # # Stateflow Version 4.1 (R12.1) dated May 21 2001, 01:15:03 # # Stateflow { machine { id 1 name "unt2" created "07-Apr-2004 12:46:06" isLibrary 0 firstTarget 17 debug { animation [0 0] } sfVersion 41012101 } chart { id 2 name "Chart" windowPosition [-44.25 -17.25 768 523.5] viewLimits [120.912 483.162 1.723 245.473] zoomFactor 0.5 screen [1 1 1024 768 1.333333333333333] treeNode [0 3 0 0] firstTransition 5 viewObj 2 machine 1 decomposition CLUSTER_CHART firstEvent 9 firstData 10 chartFileNumber 1 } state { id 3 labelString "a/\n" "ex:x=ml('round(normrnd(20,8))');" position [137.95 38.668 189.521 68.664] fontSize 12 chart 2 treeNode [2 0 0 4] subviewer 2 type OR_STATE decomposition CLUSTER_STATE } state { id 4 labelString "b/\n" "ex:x=ml('round(normrnd(20,8))');" position [283.743 165.774 188.506 68.43] fontSize 12 chart 2 treeNode [2 0 3 0] subviewer 2 type OR_STATE decomposition CLUSTER_STATE firstEvent 8 } transition { id 5 labelString "/dout=din;\n" "din1=din;" labelPosition [232.409 11.208 53.195 27.707] fontSize 12 src { intersection [0 0 1 0 226.3927 8.668 0 0] } dst { id 3 intersection [1 0 -1 0.4667 226.3927 38.668 0 0] } midPoint [226.3927 20.0595] chart 2 linkNode [2 0 6] dataLimits [223.993 228.793 8.668 38.668] subviewer 2 drawStyle SMART } transition { id 6 labelString "after(x,event)\n" "/dout=5*din+(din-din1)/h;\n" "din1=din;" labelPosition [348.949 81.627 132.238 41.187] fontSize 12 src { id 3 intersection [2 1 0 0.3556 327.471 63.0822 0 -44.2498] } dst { id 4 intersection [1 0 -1 0.4389 366.4853 165.774 0 39.0143] } midPoint [363.6224 96.9171] chart 2 linkNode [2 5 7] dataLimits [327.471 368.885 63.082 165.774] subviewer 2 drawStyle SMART slide { sticky BOTH_STICK midPointSticky 1 } } transition { id 7 labelString "after(x,event)\n" "/dout=5*din+(din-din1)/h;\n" "din1=din;" labelPosition [173.463 117.193 132.238 41.187] fontSize 12 src { id 4 intersection [4 -1 0 0.8168 283.743 178.3096 0 -56.2636] } dst { id 3 intersection [3 0 1 0.3562 259.9703 107.332 0 67.5007] } midPoint [262.149 154.5135] chart 2 linkNode [2 6 0] dataLimits [257.57 283.743 107.332 178.31] subviewer 2 drawStyle SMART slide { sticky BOTH_STICK } } event { id 8 name "event" linkNode [4 0 0] scope LOCAL_EVENT trigger EITHER_EDGE_EVENT machine 1 } event { id 9 name "event" linkNode [2 0 0] scope INPUT_EVENT trigger RISING_EDGE_EVENT machine 1 } data { id 10 name "din" linkNode [2 0 11] scope INPUT_DATA machine 1 dataType "" props { range { minimum "" maximum "" } } } data { id 11 name "dout" linkNode [2 10 12] scope OUTPUT_DATA machine 1 dataType "" props { range { minimum "" maximum "" } } } data { id 12 name "x" linkNode [2 11 13] scope LOCAL_DATA machine 1 dataType "" props { range { minimum "" maximum "" } } } data { id 13 name "y" linkNode [2 12 14] scope LOCAL_DATA machine 1 dataType "" props { range { minimum "" maximum "" } } } data { id 14 name "din1" linkNode [2 13 15] scope LOCAL_DATA machine 1 dataType "" props { range { minimum "" maximum "" } } } data { id 15 name "h" linkNode [2 14 0] scope LOCAL_DATA machine 1 dataType "" props { range { minimum "" maximum "" } initialValue "0.1" } } instance { id 16 name "Chart" machine 1 chart 2 } target { id 17 name "sfun" description "Default Simulink S-Function Target." machine 1 linkNode [1 0 0] } }