Model { Name "dcm_pwm" Version 7.0 MdlSubVersion 0 GraphicalInterface { NumRootInports 0 NumRootOutports 0 ParameterArgumentNames "" ComputedModelVersion "1.27" NumModelReferences 0 NumTestPointedSignals 0 } SavedCharacterEncoding "windows-1252" SaveDefaultBlockParams on SampleTimeColors off LibraryLinkDisplay "none" WideLines off ShowLineDimensions off ShowPortDataTypes off ShowLoopsOnError on IgnoreBidirectionalLines off ShowStorageClass off ShowTestPointIcons on ShowViewerIcons on SortedOrder off ExecutionContextIcon off ShowLinearizationAnnotations on ScopeRefreshTime 0.035000 OverrideScopeRefreshTime on DisableAllScopes off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" MinMaxOverflowArchiveMode "Overwrite" BlockNameDataTip off BlockParametersDataTip off BlockDescriptionStringDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off Created "Tue Nov 11 11:17:21 2008" Creator "ielolof" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "ielolof" ModifiedDateFormat "%" LastModifiedDate "Sun Nov 23 20:21:23 2008" RTWModifiedTimeStamp 0 ModelVersionFormat "1.%" ConfigurationManager "None" SimulationMode "normal" LinearizationMsg "none" Profile off ParamWorkspaceSource "MATLABWorkspace" AccelSystemTargetFile "accel.tlc" AccelTemplateMakefile "accel_default_tmf" AccelMakeCommand "make_rtw" TryForcingSFcnDF off RecordCoverage off CovPath "/" CovSaveName "covdata" CovMetricSettings "dw" CovNameIncrementing off CovHtmlReporting on covSaveCumulativeToWorkspaceVar on CovSaveSingleToWorkspaceVar on CovCumulativeVarName "covCumulativeData" CovCumulativeReport off CovReportOnPause on ExtModeBatchMode off ExtModeEnableFloating on ExtModeTrigType "manual" ExtModeTrigMode "normal" ExtModeTrigPort "1" ExtModeTrigElement "any" ExtModeTrigDuration 1000 ExtModeTrigDurationFloating "auto" 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 ShowModelReferenceBlockVersion off ShowModelReferenceBlockIO off Array { Type "Handle" Dimension 1 Simulink.ConfigSet { $ObjectID 1 Version "1.3.0" Array { Type "Handle" Dimension 8 Simulink.SolverCC { $ObjectID 2 Version "1.3.0" StartTime "0.0" StopTime "1" AbsTol "auto" FixedStep "auto" InitialStep "auto" MaxNumMinSteps "-1" MaxOrder 5 ConsecutiveZCsStepRelTol "10*128*eps" MaxConsecutiveZCs "1000" ExtrapolationOrder 4 NumberNewtonIterations 1 MaxStep "auto" MinStep "auto" MaxConsecutiveMinStep "1" RelTol "1e-3" SolverMode "Auto" Solver "ode45" SolverName "ode45" ZeroCrossControl "UseLocalSettings" AlgebraicLoopSolver "TrustRegion" SolverResetMethod "Fast" PositivePriorityOrder off AutoInsertRateTranBlk off SampleTimeConstraint "Unconstrained" RateTranMode "Deterministic" } Simulink.DataIOCC { $ObjectID 3 Version "1.3.0" Decimation "1" ExternalInput "[t, u]" FinalStateName "xFinal" InitialState "xInitial" LimitDataPoints off MaxDataPoints "1000" LoadExternalInput off LoadInitialState off SaveFinalState off SaveFormat "Array" SaveOutput on SaveState off SignalLogging on InspectSignalLogs off SaveTime on StateSaveName "xout" TimeSaveName "tpwm" OutputSaveName "yout" SignalLoggingName "logsout" OutputOption "RefineOutputTimes" OutputTimes "[]" Refine "1" } Simulink.OptimizationCC { $ObjectID 4 Array { Type "Cell" Dimension 5 Cell "ZeroExternalMemoryAtStartup" Cell "ZeroInternalMemoryAtStartup" Cell "InitFltsAndDblsToZero" Cell "OptimizeModelRefInitCode" Cell "NoFixptDivByZeroProtection" PropName "DisabledProps" } Version "1.3.0" BlockReduction on BooleanDataType on ConditionallyExecuteInputs on InlineParams off InlineInvariantSignals off OptimizeBlockIOStorage on BufferReuse on EnforceIntegerDowncast on ExpressionFolding on ExpressionDepthLimit 2147483647 FoldNonRolledExpr on LocalBlockOutputs on RollThreshold 5 SystemCodeInlineAuto off StateBitsets off DataBitsets off UseTempVars off ZeroExternalMemoryAtStartup on ZeroInternalMemoryAtStartup on InitFltsAndDblsToZero on NoFixptDivByZeroProtection off EfficientFloat2IntCast off OptimizeModelRefInitCode off LifeSpan "inf" BufferReusableBoundary on SimCompilerOptimization "Off" AccelVerboseBuild off } Simulink.DebuggingCC { $ObjectID 5 Version "1.3.0" RTPrefix "error" ConsistencyChecking "none" ArrayBoundsChecking "none" SignalInfNanChecking "none" SignalRangeChecking "none" ReadBeforeWriteMsg "UseLocalSettings" WriteAfterWriteMsg "UseLocalSettings" WriteAfterReadMsg "UseLocalSettings" AlgebraicLoopMsg "warning" ArtificialAlgebraicLoopMsg "warning" SaveWithDisabledLinksMsg "warning" SaveWithParameterizedLinksMsg "warning" CheckSSInitialOutputMsg on CheckExecutionContextPreStartOutputMsg off CheckExecutionContextRuntimeOutputMsg off SignalResolutionControl "UseLocalSettings" BlockPriorityViolationMsg "warning" MinStepSizeMsg "warning" TimeAdjustmentMsg "none" MaxConsecutiveZCsMsg "error" SolverPrmCheckMsg "warning" InheritedTsInSrcMsg "warning" DiscreteInheritContinuousMsg "warning" MultiTaskDSMMsg "error" MultiTaskCondExecSysMsg "error" MultiTaskRateTransMsg "error" SingleTaskRateTransMsg "none" TasksWithSamePriorityMsg "warning" SigSpecEnsureSampleTimeMsg "warning" CheckMatrixSingularityMsg "none" IntegerOverflowMsg "warning" Int32ToFloatConvMsg "warning" ParameterDowncastMsg "error" ParameterOverflowMsg "error" ParameterUnderflowMsg "none" ParameterPrecisionLossMsg "warning" ParameterTunabilityLossMsg "warning" UnderSpecifiedDataTypeMsg "none" UnnecessaryDatatypeConvMsg "none" VectorMatrixConversionMsg "none" InvalidFcnCallConnMsg "error" FcnCallInpInsideContextMsg "Use local settings" SignalLabelMismatchMsg "none" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" SFcnCompatibilityMsg "none" UniqueDataStoreMsg "none" BusObjectLabelMismatch "warning" RootOutportRequireBusObject "warning" AssertControl "UseLocalSettings" EnableOverflowDetection off ModelReferenceIOMsg "none" ModelReferenceVersionMismatchMessage "none" ModelReferenceIOMismatchMessage "none" ModelReferenceCSMismatchMessage "none" ModelReferenceSimTargetVerbose off UnknownTsInhSupMsg "warning" ModelReferenceDataLoggingMessage "warning" ModelReferenceSymbolNameMessage "warning" ModelReferenceExtraNoncontSigs "error" StateNameClashWarn "warning" StrictBusMsg "Warning" LoggingUnavailableSignals "error" } Simulink.HardwareCC { $ObjectID 6 Version "1.3.0" ProdBitPerChar 8 ProdBitPerShort 16 ProdBitPerInt 32 ProdBitPerLong 32 ProdIntDivRoundTo "Undefined" ProdEndianess "Unspecified" ProdWordSize 32 ProdShiftRightIntArith on ProdHWDeviceType "32-bit Generic" TargetBitPerChar 8 TargetBitPerShort 16 TargetBitPerInt 32 TargetBitPerLong 32 TargetShiftRightIntArith on TargetIntDivRoundTo "Undefined" TargetEndianess "Unspecified" TargetWordSize 32 TargetTypeEmulationWarnSuppressLevel 0 TargetPreprocMaxBitsSint 32 TargetPreprocMaxBitsUint 32 TargetHWDeviceType "Specified" TargetUnknown off ProdEqTarget on } Simulink.ModelReferenceCC { $ObjectID 7 Version "1.3.0" UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange" CheckModelReferenceTargetMessage "error" ModelReferenceNumInstancesAllowed "Multi" ModelReferencePassRootInputsByReference on ModelReferenceMinAlgLoopOccurrences off } Simulink.RTWCC { $BackupClass "Simulink.RTWCC" $ObjectID 8 Array { Type "Cell" Dimension 2 Cell "IncludeHyperlinkInReport" Cell "GenerateTraceInfo" PropName "DisabledProps" } Version "1.3.0" SystemTargetFile "grt.tlc" GenCodeOnly off MakeCommand "make_rtw" GenerateMakefile on TemplateMakefile "grt_default_tmf" GenerateReport off SaveLog off RTWVerbose on RetainRTWFile off ProfileTLC off TLCDebug off TLCCoverage off TLCAssert off ProcessScriptMode "Default" ConfigurationMode "Optimized" ConfigAtBuild off IncludeHyperlinkInReport off LaunchReport off TargetLang "C" IncludeBusHierarchyInRTWFileBlockHierarchyMap off IncludeERTFirstTime off GenerateTraceInfo off RTWCompilerOptimization "Off" Array { Type "Handle" Dimension 2 Simulink.CodeAppCC { $ObjectID 9 Array { Type "Cell" Dimension 16 Cell "IgnoreCustomStorageClasses" Cell "InsertBlockDesc" Cell "SFDataObjDesc" Cell "SimulinkDataObjDesc" Cell "DefineNamingRule" Cell "SignalNamingRule" Cell "ParamNamingRule" Cell "InlinedPrmAccess" Cell "CustomSymbolStr" Cell "CustomSymbolStrGlobalVar" Cell "CustomSymbolStrType" Cell "CustomSymbolStrField" Cell "CustomSymbolStrFcn" Cell "CustomSymbolStrBlkIO" Cell "CustomSymbolStrTmpVar" Cell "CustomSymbolStrMacro" PropName "DisabledProps" } Version "1.3.0" ForceParamTrailComments off GenerateComments on IgnoreCustomStorageClasses on IncHierarchyInIds off MaxIdLength 31 PreserveName off PreserveNameWithParent off ShowEliminatedStatement off IncAutoGenComments off SimulinkDataObjDesc off SFDataObjDesc off IncDataTypeInIds off MangleLength 1 CustomSymbolStrGlobalVar "$R$N$M" CustomSymbolStrType "$N$R$M" CustomSymbolStrField "$N$M" CustomSymbolStrFcn "$R$N$M$F" CustomSymbolStrBlkIO "rtb_$N$M" CustomSymbolStrTmpVar "$N$M" CustomSymbolStrMacro "$R$N$M" DefineNamingRule "None" ParamNamingRule "None" SignalNamingRule "None" InsertBlockDesc off SimulinkBlockComments on EnableCustomComments off InlinedPrmAccess "Literals" ReqsInCode off } Simulink.GRTTargetCC { $BackupClass "Simulink.TargetCC" $ObjectID 10 Array { Type "Cell" Dimension 15 Cell "IncludeMdlTerminateFcn" Cell "CombineOutputUpdateFcns" Cell "SuppressErrorStatus" Cell "ERTCustomFileBanners" Cell "GenerateSampleERTMain" Cell "GenerateTestInterfaces" Cell "ModelStepFunctionPrototypeControlCompliant" Cell "MultiInstanceERTCode" Cell "PurelyIntegerCode" Cell "SupportNonFinite" Cell "SupportComplex" Cell "SupportAbsoluteTime" Cell "SupportContinuousTime" Cell "SupportNonInlinedSFcns" Cell "PortableWordSizes" PropName "DisabledProps" } Version "1.3.0" TargetFcnLib "ansi_tfl_table_tmw.mat" TargetLibSuffix "" TargetPreCompLibLocation "" GenFloatMathFcnCalls "ANSI_C" UtilityFuncGeneration "Auto" GenerateFullHeader on GenerateSampleERTMain off GenerateTestInterfaces off IsPILTarget off ModelReferenceCompliant on CompOptLevelCompliant on IncludeMdlTerminateFcn on CombineOutputUpdateFcns off SuppressErrorStatus off IncludeFileDelimiter "Auto" ERTCustomFileBanners off SupportAbsoluteTime on LogVarNameModifier "rt_" MatFileLogging on MultiInstanceERTCode off SupportNonFinite on SupportComplex on PurelyIntegerCode off SupportContinuousTime on SupportNonInlinedSFcns on EnableShiftOperators on ParenthesesLevel "Nominal" PortableWordSizes off ModelStepFunctionPrototypeControlCompliant off ExtMode off ExtModeStaticAlloc off ExtModeTesting off ExtModeStaticAllocSize 1000000 ExtModeTransport 0 ExtModeMexFile "ext_comm" ExtModeIntrfLevel "Level1" RTWCAPISignals off RTWCAPIParams off RTWCAPIStates off GenerateASAP2 off } PropName "Components" } } hdlcoderui.hdlcc { $ObjectID 11 Description "HDL Coder custom configuration component" Version "1.3.0" Name "HDL Coder" Array { Type "Cell" Dimension 1 Cell "" PropName "HDLConfigFile" } HDLCActiveTab "0" } PropName "Components" } Name "Configuration" CurrentDlgPage "Data Import//Export" } PropName "ConfigurationSets" } Simulink.ConfigSet { $PropName "ActiveConfigurationSet" $ObjectID 1 } BlockDefaults { Orientation "right" ForegroundColor "black" BackgroundColor "white" DropShadow off NamePlacement "normal" FontName "Arial" FontSize 10 FontWeight "normal" FontAngle "normal" ShowName on } BlockParameterDefaults { Block { BlockType Gain Gain "1" Multiplication "Element-wise(K.*u)" ParamMin "[]" ParamMax "[]" ParameterDataTypeMode "Same as input" ParameterDataType "fixdt(1,16,0)" ParameterScalingMode "Best Precision: Matrix-wise" ParameterScaling "[]" OutMin "[]" OutMax "[]" OutDataTypeMode "Same as input" OutDataType "fixdt(1,16,0)" OutScaling "[]" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType Inport Port "1" UseBusObject off BusObject "BusObject" BusOutputAsStruct off PortDimensions "-1" SampleTime "-1" OutMin "[]" OutMax "[]" DataType "auto" OutDataType "fixdt(1,16,0)" OutScaling "[]" SignalType "auto" SamplingMode "auto" LatchByDelayingOutsideSignal off LatchByCopyingInsideSignal off Interpolate on } Block { BlockType Integrator ExternalReset "none" InitialConditionSource "internal" InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" IgnoreLimit off ZeroCross on ContinuousStateAttributes "''" } Block { BlockType Outport Port "1" UseBusObject off BusObject "BusObject" BusOutputAsStruct off PortDimensions "-1" SampleTime "-1" OutMin "[]" OutMax "[]" DataType "auto" OutDataType "fixdt(1,16,0)" OutScaling "[]" SignalType "auto" SamplingMode "auto" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType Product Inputs "2" Multiplication "Element-wise(.*)" CollapseMode "All dimensions" CollapseDim "1" InputSameDT on OutMin "[]" OutMax "[]" OutDataTypeMode "Same as first input" OutDataType "fixdt(1,16,0)" OutScaling "[]" LockScale off RndMeth "Zero" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType Relay OnSwitchValue "eps" OffSwitchValue "eps" OnOutputValue "1" OffOutputValue "0" OutMin "[]" OutMax "[]" OutDataTypeMode "All ports same datatype" OutDataType "fixdt(1,16,0)" ConRadixGroup "Use specified scaling" OutScaling "[]" ZeroCross on SampleTime "-1" } Block { BlockType Scope 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 "-1" } Block { BlockType SubSystem ShowPortLabels "FromPortIcon" Permissions "ReadWrite" PermitHierarchicalResolution "All" TreatAsAtomicUnit off SystemSampleTime "-1" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" SimViewingDevice off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" } Block { BlockType Sum IconShape "rectangular" Inputs "++" CollapseMode "All dimensions" CollapseDim "1" InputSameDT on OutMin "[]" OutMax "[]" OutDataTypeMode "Same as first input" OutDataType "fixdt(1,16,0)" OutScaling "[]" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType Switch Criteria "u2 >= Threshold" Threshold "0" InputSameDT on OutMin "[]" OutMax "[]" OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1,16,0)" OutScaling "[]" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on ZeroCross on SampleTime "-1" } Block { BlockType ToWorkspace VariableName "simulink_output" MaxDataPoints "1000" Decimation "1" SampleTime "0" FixptAsFi off } Block { BlockType Abs ZeroCross on SampleTime "-1" OutMax "[]" OutDataTypeMode "Same as input" OutDataType "fixdt(1,16,0)" OutScaling "[]" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on } Block { BlockType Constant Value "1" VectorParams1D on SamplingMode "Sample based" OutMin "[]" OutMax "[]" OutDataTypeMode "Inherit from 'Constant value'" OutDataType "fixdt(1,16,0)" ConRadixGroup "Use specified scaling" OutScaling "[]" SampleTime "inf" FramePeriod "inf" } Block { BlockType Signum ZeroCross on SampleTime "-1" } } AnnotationDefaults { HorizontalAlignment "center" VerticalAlignment "middle" ForegroundColor "black" BackgroundColor "white" DropShadow off FontName "Arial" FontSize 10 FontWeight "normal" FontAngle "normal" UseDisplayTextAsClickCallback off } LineDefaults { FontName "Arial" FontSize 9 FontWeight "normal" FontAngle "normal" } System { Name "dcm_pwm" Location [63, 145, 709, 369] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" ReportName "simulink-default.rpt" Block { BlockType Constant Name "Börvärde\numedel" Position [20, 90, 50, 120] Value "U" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant1" Position [20, 15, 50, 45] ShowName off Value "Udc" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant2" Position [245, 85, 275, 115] ShowName off Value "0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType SubSystem Name "DC-motor" Ports [2, 2] Position [435, 50, 475, 110] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "DC-motor" Location [644, 240, 1009, 556] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "ua" Position [15, 33, 45, 47] IconDisplay "Port number" } Block { BlockType Inport Name "TL" Position [35, 263, 65, 277] Port "2" IconDisplay "Port number" } Block { BlockType Sum Name "Add" Ports [3, 1] Position [80, 34, 110, 66] ShowName off Inputs "+--" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Add1" Ports [2, 1] Position [90, 247, 120, 278] ShowName off Inputs "+-" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain" Position [140, 29, 180, 71] ShowName off Gain "1/La" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain1" Position [150, 100, 180, 130] Orientation "left" NamePlacement "alternate" ShowName off Gain "Ra" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain2" Position [155, 250, 185, 280] ShowName off Gain "1/J" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain3" Position [135, 190, 180, 230] Orientation "left" NamePlacement "alternate" ShowName off Gain "psim" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain4" Position [135, 140, 180, 180] Orientation "left" NamePlacement "alternate" ShowName off Gain "psim" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Integrator Name "Integrator" Ports [1, 1] Position [210, 35, 240, 65] ShowName off } Block { BlockType Integrator Name "Integrator1" Ports [1, 1] Position [220, 250, 250, 280] ShowName off } Block { BlockType Outport Name "ia" Position [275, 108, 305, 122] ShowName off IconDisplay "Port number" } Block { BlockType Outport Name "w" Position [310, 258, 340, 272] Port "2" IconDisplay "Port number" } Line { SrcBlock "Add" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Integrator" DstPort 1 } Line { SrcBlock "Integrator" SrcPort 1 Points [10, 0; 0, 65] Branch { DstBlock "Gain1" DstPort 1 } Branch { Points [0, 95] DstBlock "Gain3" DstPort 1 } Branch { DstBlock "ia" DstPort 1 } } Line { SrcBlock "Add1" SrcPort 1 DstBlock "Gain2" DstPort 1 } Line { SrcBlock "Gain2" SrcPort 1 DstBlock "Integrator1" DstPort 1 } Line { SrcBlock "Gain3" SrcPort 1 Points [-70, 0; 0, 45] DstBlock "Add1" DstPort 1 } Line { SrcBlock "Integrator1" SrcPort 1 Points [35, 0] Branch { DstBlock "w" DstPort 1 } Branch { Points [0, -105] DstBlock "Gain4" DstPort 1 } } Line { SrcBlock "Gain1" SrcPort 1 Points [-90, 0; 0, -55] DstBlock "Add" DstPort 3 } Line { SrcBlock "Gain4" SrcPort 1 Points [-85, 0; 0, -110] DstBlock "Add" DstPort 2 } Line { SrcBlock "ua" SrcPort 1 DstBlock "Add" DstPort 1 } Line { SrcBlock "TL" SrcPort 1 DstBlock "Add1" DstPort 2 } } } Block { BlockType SubSystem Name "Fläkt" Ports [1, 1] Position [430, 138, 480, 172] Orientation "left" MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "Fläkt" Location [664, 331, 973, 446] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "wfan" Position [240, 15, 270, 30] Orientation "down" IconDisplay "Port number" } Block { BlockType Abs Name "Abs" Position [205, 45, 235, 75] Orientation "left" NamePlacement "alternate" ShowName off OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain5" Position [80, 55, 110, 85] Orientation "left" NamePlacement "alternate" ShowName off Gain "D" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product" Ports [2, 1] Position [140, 50, 170, 90] Orientation "left" NamePlacement "alternate" ShowName off CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Outport Name "Tfan" Position [25, 63, 55, 77] Orientation "left" IconDisplay "Port number" } Line { SrcBlock "Product" SrcPort 1 DstBlock "Gain5" DstPort 1 } Line { SrcBlock "Abs" SrcPort 1 DstBlock "Product" DstPort 1 } Line { SrcBlock "wfan" SrcPort 1 Points [0, 25; -5, 0] Branch { DstBlock "Abs" DstPort 1 } Branch { Points [0, 20] DstBlock "Product" DstPort 2 } } Line { SrcBlock "Gain5" SrcPort 1 DstBlock "Tfan" DstPort 1 } } } Block { BlockType Relay Name "Relay1" Position [245, 50, 275, 80] NamePlacement "alternate" ShowName off OffOutputValue "-1" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Scope Name "Scope" Ports [2] Position [545, 50, 585, 110] Floating off Location [856, 75, 1210, 777] Open on NumInputPorts "2" ZoomMode "xonly" List { ListType AxesTitles axes1 "%" axes2 "%" } TimeRange "1" YMin "0~0" YMax "30~100" SaveToWorkspace on SaveName "mpwm" DataFormat "Structure" LimitDataPoints off SampleTime "0" } Block { BlockType Sum Name "Sum4" Ports [2, 1] Position [190, 47, 220, 78] NamePlacement "alternate" ShowName off Inputs "-+" CollapseMode "All dimensions" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType ToWorkspace Name "To Workspace" Position [545, 140, 585, 160] ShowName off VariableName "iapwm" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "To Workspace1" Position [545, 170, 585, 190] ShowName off VariableName "wpwm" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "To Workspace2" Position [550, 15, 590, 35] ShowName off VariableName "uapwm" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType Switch Name "Transistorswitch" Position [305, 15, 345, 115] } Block { BlockType SubSystem Name "Triangel 0-Udc\nPeriod Ts" Ports [1, 1] Position [100, 33, 160, 77] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "Triangel 0-Udc\nPeriod Ts" Location [43, 433, 722, 735] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Udc" Position [25, 38, 55, 52] IconDisplay "Port number" } Block { BlockType Gain Name "Gain2" Position [240, 155, 270, 185] ShowName off Gain "2*(1/Ts)" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Gain3" Position [240, 95, 270, 125] ShowName off Gain "-2*(1/Ts)" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Gain4" Position [90, 29, 140, 61] ShowName off ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Gain5" Position [90, 228, 140, 262] ShowName off Gain "0" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Integrator Name "Integrator1" Ports [1, 1] Position [575, 124, 605, 156] } Block { BlockType Relay Name "Relay" Position [415, 125, 445, 155] OnSwitchValue "1" OffSwitchValue "-1" OffOutputValue "-1" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Signum Name "Sign" Position [310, 115, 335, 135] ShowName off } Block { BlockType Signum Name "Sign1" Position [310, 145, 335, 165] ShowName off } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [190, 130, 210, 150] ShowName off Inputs "+-" CollapseMode "All dimensions" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [285, 60, 305, 80] Orientation "down" NamePlacement "alternate" ShowName off Inputs "-+" CollapseMode "All dimensions" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Sum Name "Sum2" Ports [2, 1] Position [285, 210, 305, 230] Orientation "up" ShowName off Inputs "-+" CollapseMode "All dimensions" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Sum Name "Sum3" Ports [2, 1] Position [360, 130, 380, 150] ShowName off CollapseMode "All dimensions" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Switch Name "Switch" Position [480, 125, 510, 155] } Block { BlockType Outport Name "um" Position [640, 125, 655, 155] IconDisplay "Port number" } Line { SrcBlock "Switch" SrcPort 1 DstBlock "Integrator1" DstPort 1 } Line { SrcBlock "Gain3" SrcPort 1 Points [190, 0] DstBlock "Switch" DstPort 1 } Line { SrcBlock "Gain2" SrcPort 1 Points [190, 0] DstBlock "Switch" DstPort 3 } Line { SrcBlock "Integrator1" SrcPort 1 Points [10, 0] Branch { Points [0, -95] DstBlock "Sum1" DstPort 2 } Branch { Points [0, 105] DstBlock "Sum2" DstPort 2 } Branch { DstBlock "um" DstPort 1 } } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Sign" DstPort 1 } Line { SrcBlock "Sum2" SrcPort 1 DstBlock "Sign1" DstPort 1 } Line { SrcBlock "Sign" SrcPort 1 Points [0, 10] DstBlock "Sum3" DstPort 1 } Line { SrcBlock "Sign1" SrcPort 1 Points [0, -10] DstBlock "Sum3" DstPort 2 } Line { SrcBlock "Sum3" SrcPort 1 DstBlock "Relay" DstPort 1 } Line { SrcBlock "Relay" SrcPort 1 DstBlock "Switch" DstPort 2 } Line { SrcBlock "Sum" SrcPort 1 Points [0, 10; 10, 0] Branch { DstBlock "Gain3" DstPort 1 } Branch { DstBlock "Gain2" DstPort 1 } } Line { SrcBlock "Udc" SrcPort 1 Points [15, 0] Branch { DstBlock "Gain5" DstPort 1 } Branch { DstBlock "Gain4" DstPort 1 } } Line { SrcBlock "Gain5" SrcPort 1 Points [30, 0] Branch { DstBlock "Sum" DstPort 2 } Branch { DstBlock "Sum2" DstPort 1 } } Line { SrcBlock "Gain4" SrcPort 1 Points [30, 0] Branch { DstBlock "Sum" DstPort 1 } Branch { DstBlock "Sum1" DstPort 1 } } } } Line { SrcBlock "Constant1" SrcPort 1 Points [20, 0] Branch { DstBlock "Transistorswitch" DstPort 1 } Branch { Points [0, 25] DstBlock "Triangel 0-Udc\nPeriod Ts" DstPort 1 } } Line { SrcBlock "Constant2" SrcPort 1 DstBlock "Transistorswitch" DstPort 3 } Line { SrcBlock "Börvärde\numedel" SrcPort 1 Points [120, 0] DstBlock "Sum4" DstPort 2 } Line { SrcBlock "Sum4" SrcPort 1 DstBlock "Relay1" DstPort 1 } Line { SrcBlock "Relay1" SrcPort 1 DstBlock "Transistorswitch" DstPort 2 } Line { SrcBlock "Triangel 0-Udc\nPeriod Ts" SrcPort 1 DstBlock "Sum4" DstPort 1 } Line { SrcBlock "DC-motor" SrcPort 1 Points [45, 0] Branch { DstBlock "Scope" DstPort 1 } Branch { Points [0, 85] DstBlock "To Workspace" DstPort 1 } } Line { SrcBlock "DC-motor" SrcPort 2 Points [60, 0] Branch { DstBlock "Scope" DstPort 2 } Branch { Labels [0, 0] Points [-35, 0; 0, 60] Branch { DstBlock "Fläkt" DstPort 1 } Branch { Points [0, 25] DstBlock "To Workspace1" DstPort 1 } } } Line { SrcBlock "Fläkt" SrcPort 1 Points [-15, 0; 0, -60] DstBlock "DC-motor" DstPort 2 } Line { SrcBlock "Transistorswitch" SrcPort 1 Points [50, 0] Branch { DstBlock "DC-motor" DstPort 1 } Branch { Points [0, -40] DstBlock "To Workspace2" DstPort 1 } } Annotation { Name "U=100;\nRa=3;\nLa=0.03;\npsim=1.1;\nJ=0.05;\nD=0.002;\n\nTs=0.002;\nUdc=200;" Position [210, 157] } } }