Model { Name "simosys" Version 2.20 SimParamPage Solver SampleTimeColors off InvariantConstants off WideVectorLines off ShowLineWidths off StartTime "0.0" StopTime "20" Solver ode45 RelTol "1e-3" AbsTol "1e-6" Refine "1" MaxStep "10" InitialStep "auto" FixedStep "auto" MaxOrder 5 OutputOption RefineOutputTimes OutputTimes "[]" LoadExternalInput off ExternalInput "[]" SaveTime off TimeSaveName "tout" SaveState off StateSaveName "xout" SaveOutput off OutputSaveName "yout" LoadInitialState off InitialState "[]" SaveFinalState off FinalStateName "xFinal" LimitMaxRows off MaxRows "1000" Decimation "1" AlgebraicLoopMsg warning MinStepSizeMsg warning UnconnectedInputMsg warning UnconnectedOutputMsg warning UnconnectedLineMsg warning ConsistencyChecking off ZeroCross on SimulationMode normal RTWSystemTargetFile "grt.tlc" RTWInlineParameters off RTWRetainRTWFile off RTWTemplateMakefile "grt_default_tmf" RTWMakeCommand "make_rtw" RTWGenerateCodeOnly off RTWPlaceOutputsASAP off RTWLocalBlockOutputs on ExtModeMexFile "ext_comm" ExtModeBatchMode 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 "simosys" Location [235, 140, 625, 333] Open on ToolBar on StatusBar on ScreenColor white PaperOrientation landscape PaperPositionMode auto PaperType usletter PaperUnits inches Block { BlockType Inport Name "Inport" Position [45, 50, 65, 70] Port "1" PortWidth "-1" SampleTime "-1" } Block { BlockType Demux Name "Demux" Ports [1, 2, 0, 0, 0] Position [235, 39, 275, 81] Outputs "2" } Block { BlockType "S-Function" Name "S-function" Ports [1, 1, 0, 0, 0] Position [100, 43, 185, 77] FunctionName "simom" PortCounts "[]" SFunctionModules "''" } Block { BlockType Scope Name "Scope" Ports [1, 0, 0, 0, 0] Position [275, 135, 300, 165] Floating off Location [781, 123, 1061, 343] Open on Grid on TickLabels on ZoomMode on TimeRange "20 " YMin "-2 " YMax "6 " SaveToWorkspace off SaveName "ScopeData" LimitMaxRows on MaxRows "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Outport Name "Outport1" Position [310, 15, 330, 35] Port "1" OutputWhenDisabled held InitialOutput "0" } Block { BlockType Outport Name "Outport2" Position [310, 90, 330, 110] Port "2" OutputWhenDisabled held InitialOutput "0" } Line { SrcBlock "Demux" SrcPort 2 Points [10, 0; 0, 30] DstBlock "Outport2" DstPort 1 } Line { SrcBlock "Demux" SrcPort 1 Points [10, 0; 0, -25] DstBlock "Outport1" DstPort 1 } Line { SrcBlock "S-function" SrcPort 1 Points [30, 0] Branch { DstBlock "Demux" DstPort 1 } Branch { Points [0, 90] DstBlock "Scope" DstPort 1 } } Line { SrcBlock "Inport" SrcPort 1 DstBlock "S-function" DstPort 1 } } }