Model { Name "PWM" Version 3.00 SimParamPage "Solver" SampleTimeColors off InvariantConstants off WideVectorLines off ShowLineWidths off ShowPortDataTypes off StartTime "0.0" StopTime "100.0" SolverMode "Auto" Solver "ode45" RelTol "1e-3" AbsTol "auto" Refine "1" MaxStep "auto" 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 "Matrix" LimitMaxRows off MaxRows "1000" Decimation "1" AlgebraicLoopMsg "warning" MinStepSizeMsg "warning" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" InheritedTsInSrcMsg "warning" IntegerOverflowMsg "warning" UnnecessaryDatatypeConvMsg "none" Int32ToFloatConvMsg "warning" SignalLabelMismatchMsg "none" ConsistencyChecking "off" ZeroCross on SimulationMode "normal" BlockDataTips on BlockParametersDataTip on BlockAttributesDataTip off BlockPortWidthsDataTip off BlockDescriptionStringDataTip off BlockMaskParametersDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off OptimizeBlockIOStorage on BufferReuse on BooleanDataType off RTWSystemTargetFile "grt.tlc" RTWInlineParameters off RTWRetainRTWFile off RTWTemplateMakefile "grt_default_tmf" RTWMakeCommand "make_rtw" RTWGenerateCodeOnly off ExtModeMexFile "ext_comm" ExtModeBatchMode off ExtModeTrigType "manual" ExtModeTrigMode "oneshot" 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 off Created "Tue Jul 25 11:29:12 2000" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" ModifiedDateFormat "%" LastModifiedDate "Tue Jul 25 14:58:00 2000" ModelVersionFormat "1.%" ConfigurationManager "none" 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 "PWM" Location [322, 83, 822, 384] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "automatic" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on ReportName "simulink-default.rpt" Block { BlockType Integrator Name "Integrator" Ports [1, 1, 0, 0, 0] Position [200, 190, 230, 220] ExternalReset "none" InitialConditionSource "internal" InitialCondition "0.05" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Relay Name "Relay" Position [170, 85, 200, 115] OnSwitchValue "0.1" OffSwitchValue "-0.1" OnOutputValue "1" OffOutputValue "-1" } Block { BlockType Relay Name "Relay1" Position [130, 190, 160, 220] OnSwitchValue "1" OffSwitchValue "-1" OnOutputValue "1" OffOutputValue "-1" } Block { BlockType Scope Name "Scope" Ports [1, 0, 0, 0, 0] Position [250, 84, 280, 116] Floating off Location [1, 46, 801, 599] Open on NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "on" List { ListType AxesTitles axes1 "%" } Grid "on" TimeRange "auto" YMin "-5" YMax "5" SaveToWorkspace off SaveName "ScopeData" DataFormat "StructureWithTime" LimitMaxRows on MaxRows "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Scope Name "Scope1" Ports [1, 0, 0, 0, 0] Position [390, 189, 420, 221] Floating off Location [1, 46, 801, 599] Open on NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "on" List { ListType AxesTitles axes1 "%" } Grid "on" TimeRange "auto" YMin "-5" YMax "5" SaveToWorkspace off SaveName "ScopeData" DataFormat "StructureWithTime" LimitMaxRows on MaxRows "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Sin Name "Sine Wave" Position [50, 85, 80, 115] Amplitude "1" Frequency ".2" Phase "0" SampleTime "0" } Block { BlockType Sum Name "Sum" Ports [2, 1, 0, 0, 0] Position [110, 90, 130, 110] ShowName off IconShape "round" Inputs "|+-" SaturateOnIntegerOverflow on } Block { BlockType TransferFcn Name "Transfer Fcn" Position [140, 255, 200, 295] Orientation "left" NamePlacement "alternate" Numerator "[-2]" Denominator "[1]" } Block { BlockType TransferFcn Name "Transfer Fcn1" Position [290, 185, 350, 225] NamePlacement "alternate" Numerator "[2]" Denominator "[1]" } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Relay" DstPort 1 } Line { SrcBlock "Relay" SrcPort 1 DstBlock "Scope" DstPort 1 } Line { SrcBlock "Sine Wave" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Relay1" SrcPort 1 DstBlock "Integrator" DstPort 1 } Line { SrcBlock "Integrator" SrcPort 1 Points [25, 0] Branch { Points [0, 70] DstBlock "Transfer Fcn" DstPort 1 } Branch { DstBlock "Transfer Fcn1" DstPort 1 } } Line { SrcBlock "Transfer Fcn" SrcPort 1 Points [-40, 0; 0, -70] DstBlock "Relay1" DstPort 1 } Line { SrcBlock "Transfer Fcn1" SrcPort 1 Points [15, 0] Branch { DstBlock "Scope1" DstPort 1 } Branch { Points [0, -50; -250, 0] DstBlock "Sum" DstPort 2 } } } }