Model { Name "final_controller_dis" Version 7.0 MdlSubVersion 0 GraphicalInterface { NumRootInports 0 NumRootOutports 0 ParameterArgumentNames "" ComputedModelVersion "1.287" 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 on BrowserLookUnderMasks on Created "Thu Jul 05 14:24:58 2007" Creator "skj" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "Heine" ModifiedDateFormat "%" LastModifiedDate "Sun Jun 01 17:51:38 2008" RTWModifiedTimeStamp 0 ModelVersionFormat "1.%" ConfigurationManager "None" SimulationMode "external" 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 off ShowModelReferenceBlockVersion off ShowModelReferenceBlockIO off Array { Type "Handle" Dimension 1 Simulink.ConfigSet { $ObjectID 1 Version "1.3.0" Array { Type "Handle" Dimension 7 Simulink.SolverCC { $ObjectID 2 Version "1.3.0" StartTime "0.0" StopTime "inf" AbsTol "auto" FixedStep "TsPWM" 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 "ode3" SolverName "ode3" 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 "tout" 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 off BooleanDataType on ConditionallyExecuteInputs on InlineParams off InlineInvariantSignals off OptimizeBlockIOStorage off BufferReuse off EnforceIntegerDowncast on ExpressionFolding off ExpressionDepthLimit 2147483647 FoldNonRolledExpr on LocalBlockOutputs off 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 "none" 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 "Zero" ProdEndianess "LittleEndian" ProdWordSize 32 ProdShiftRightIntArith on ProdHWDeviceType "32-bit xPC Target (AMD Athlon)" TargetBitPerChar 8 TargetBitPerShort 16 TargetBitPerInt 32 TargetBitPerLong 32 TargetShiftRightIntArith on TargetIntDivRoundTo "Undefined" TargetEndianess "Unspecified" TargetWordSize 32 TargetTypeEmulationWarnSuppressLevel 0 TargetPreprocMaxBitsSint 32 TargetPreprocMaxBitsUint 32 TargetHWDeviceType "32-bit Generic" TargetUnknown off ProdEqTarget off } 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 "xpctarget.tlc" GenCodeOnly off MakeCommand "make_rtw" GenerateMakefile on TemplateMakefile "xpc_default_tmf" Description "xPC Target" GenerateReport off SaveLog off RTWVerbose on RetainRTWFile off ProfileTLC off TLCDebug off TLCCoverage off TLCAssert off ProcessScriptMode "Default" ConfigurationMode "Optimized" ProcessScript "xpctarget_make_rtw_hook" 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 } xpctarget.xpcTargetCC { $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_tmw.mat" TargetLibSuffix "" TargetPreCompLibLocation "" GenFloatMathFcnCalls "ANSI_C" UtilityFuncGeneration "Auto" GenerateFullHeader on GenerateSampleERTMain off GenerateTestInterfaces off IsPILTarget off ModelReferenceCompliant on CompOptLevelCompliant off 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 RL32ModeModifier "Real-Time" ExtMode on ExtModeMexFile "ext_xpc" ExtModeIntrfLevel "Level2 - Open" ExtModeArmWhenConnect off RL32LogTETModifier off RL32LogBufSizeModifier "9000000" RL32IRQSourceModifier "Timer" xPCIRQSourceBoard "None/Other" xPCIOIRQSlot "-1" xpcDblBuff off xpcObjCom off xPCGenerateASAP2 off xPCGenerateXML on RL32ObjectName "tg" xPCisDownloadable on xPCisDefaultEnv on xPCTargetPCEnvName "tg" } PropName "Components" } } PropName "Components" } Name "Configuration" ExtraOptions "-aGenerateTraceInfo=0 " CurrentDlgPage "Solver" } 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 DataTypeConversion OutMin "[]" OutMax "[]" OutDataTypeMode "Inherit via back propagation" OutDataType "fixdt(1,16,0)" OutScaling "[]" LockScale off ConvertRealWorld "Real World Value (RWV)" RndMeth "Zero" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType Demux Outputs "4" DisplayOption "none" BusSelectionMode off } Block { BlockType Fcn Expr "sin(u[1])" SampleTime "-1" } 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 Ground } 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 Math Operator "exp" OutputSignalType "auto" SampleTime "-1" OutMin "[]" OutMax "[]" OutDataTypeMode "Same as first input" OutDataType "fixdt(1,16,0)" OutScaling "[]" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on } Block { BlockType Mux Inputs "4" DisplayOption "none" UseBusObject off BusObject "BusObject" NonVirtualBus off } 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 RateTransition Integrity on Deterministic on X0 "0" OutPortSampleTime "-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 SignalSpecification Dimensions "-1" SampleTime "-1" OutMin "[]" OutMax "[]" DataType "auto" OutDataType "fixdt(1,16,0)" OutScaling "[]" SignalType "auto" SamplingMode "auto" } Block { BlockType "S-Function" FunctionName "system" SFunctionModules "''" PortCounts "[]" } 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 UnitDelay X0 "0" SampleTime "1" StateMustResolveToSignalObject off RTWStateStorageClass "Auto" } Block { BlockType ZeroOrderHold SampleTime "1" } 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 RelationalOperator Operator ">=" InputSameDT on LogicOutDataTypeMode "Logical (see Configuration Parameters: Optimization)" LogicDataType "uint(8)" ZeroCross on SampleTime "-1" } Block { BlockType Saturate UpperLimit "0.5" LowerLimit "-0.5" LinearizeAsGain on ZeroCross on SampleTime "-1" OutMin "[]" OutMax "[]" OutDataTypeMode "Same as input" OutDataType "fixdt(1,16,0)" OutScaling "[]" LockScale off RndMeth "Floor" } } 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 "final_controller_dis" Location [202, 82, 1653, 987] Open on ModelBrowserVisibility on 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 Sum Name "Add" Ports [2, 1] Position [912, 135, 943, 165] Orientation "up" 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 [967, 105, 998, 135] Orientation "up" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" SaturateOnIntegerOverflow off } Block { BlockType SubSystem Name "Controller" Ports [3, 2] Position [900, 470, 985, 550] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "Controller" Location [728, 220, 1576, 613] Open off ModelBrowserVisibility on 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 "yp" Position [673, 15, 687, 45] Orientation "down" NamePlacement "alternate" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "ref" Position [23, 120, 37, 150] Orientation "down" NamePlacement "alternate" Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" Port { PortNumber 1 Name "r" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Inport Name "T_iw" Position [115, 83, 145, 97] Port "3" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant1" Position [273, 250, 337, 285] Orientation "up" ShowName off Value "u_bar_wood" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant2" Position [641, 220, 679, 260] Orientation "up" ShowName off Value "y_bar" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant3" Position [251, 120, 289, 160] Orientation "up" ShowName off Value "d_bar" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Gain" Position [570, 159, 615, 191] ShowName off Gain "Cd_wood" Multiplication "Matrix(K*u)" 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 [435, 214, 480, 246] Orientation "left" NamePlacement "alternate" ShowName off Gain "Ad_wood" Multiplication "Matrix(K*u)" 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 [320, 174, 365, 206] ShowName off Gain "Bd_new_wood" Multiplication "Matrix(K*u)" 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 [510, 89, 555, 121] Orientation "left" NamePlacement "alternate" ShowName off Gain "Ld_wood" Multiplication "Matrix(K*u)" 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 [120, 174, 165, 206] ShowName off Gain "Fdi_wood" Multiplication "Matrix(K*u)" 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 "Gain5" Position [310, 74, 355, 106] ShowName off Gain "Ed_wood" Multiplication "Matrix(K*u)" 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 "Gain7" Position [435, 279, 480, 311] Orientation "left" NamePlacement "alternate" ShowName off Gain "Fd1_wood" Multiplication "Matrix(K*u)" 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 SubSystem Name "Input Saturation" Ports [1, 1] Position [160, 123, 225, 167] NamePlacement "alternate" MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "Input Saturation" Location [705, 653, 945, 775] Open off ModelBrowserVisibility on 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 "In1" Position [25, 53, 55, 67] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Demux Name "Demux2" Ports [1, 2] Position [80, 41, 85, 79] BackgroundColor "black" ShowName off Outputs "2" DisplayOption "bar" } Block { BlockType Mux Name "Mux4" Ports [2, 1] Position [155, 41, 160, 79] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Saturate Name "Saturation" Position [105, 25, 135, 55] ShowName off UpperLimit "100*beta_motor" LowerLimit "0.00000000001*beta_motor" } Block { BlockType Saturate Name "Saturation1" Position [105, 65, 135, 95] ShowName off UpperLimit "beta_blower*30" LowerLimit "0.00000000001*beta_blower" } Block { BlockType Outport Name "Out1" Position [185, 53, 215, 67] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Demux2" SrcPort 1 DstBlock "Saturation" DstPort 1 } Line { SrcBlock "Demux2" SrcPort 2 DstBlock "Saturation1" DstPort 1 } Line { SrcBlock "Saturation" SrcPort 1 DstBlock "Mux4" DstPort 1 } Line { SrcBlock "Saturation1" SrcPort 1 DstBlock "Mux4" DstPort 2 } Line { SrcBlock "In1" SrcPort 1 Points [0, 0] DstBlock "Demux2" DstPort 1 } Line { SrcBlock "Mux4" SrcPort 1 Points [0, 0] DstBlock "Out1" DstPort 1 } } } Block { BlockType RateTransition Name "Rate Transition1" Position [349, 105, 391, 140] Orientation "down" ForegroundColor "red" NamePlacement "alternate" OutPortSampleTime "1" } Block { BlockType RateTransition Name "Rate Transition11" Position [180, 69, 215, 111] ForegroundColor "red" } Block { BlockType Sum Name "Sum" Ports [4, 1] Position [380, 160, 410, 190] ShowName off IconShape "round" Inputs "++++" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off Port { PortNumber 1 Name "x_dot" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [670, 95, 690, 115] Orientation "left" NamePlacement "alternate" ShowName off IconShape "round" Inputs "+-" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum2" Ports [2, 1] Position [280, 180, 300, 200] ShowName off IconShape "round" Inputs "|+-" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off Port { PortNumber 1 Name "u" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Sum Name "Sum3" Ports [2, 1] Position [650, 165, 670, 185] ShowName off IconShape "round" Inputs "|++" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off Port { PortNumber 1 Name "yo" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Sum Name "Sum4" Ports [2, 1] Position [260, 80, 280, 100] ShowName off IconShape "round" Inputs "|+-" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum5" Ports [3, 1] Position [20, 180, 40, 200] ShowName off IconShape "round" Inputs "-++" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum6" Ports [2, 1] Position [185, 180, 205, 200] ShowName off IconShape "round" Inputs "|-+" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum7" Ports [2, 1] Position [180, 235, 200, 255] Orientation "up" ShowName off IconShape "round" Inputs "|-+" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType UnitDelay Name "Unit Delay" Position [460, 158, 495, 192] SampleTime "-1" Port { PortNumber 1 Name "x" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType UnitDelay Name "Unit Delay2" Position [60, 173, 95, 207] SampleTime "-1" Port { PortNumber 1 Name "xi" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Outport Name "u" Position [205, 213, 235, 227] Orientation "left" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "yo" Position [735, 168, 765, 182] NamePlacement "alternate" Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { Name "r" Labels [1, 0] SrcBlock "ref" SrcPort 1 DstBlock "Sum5" DstPort 1 } Line { SrcBlock "Constant1" SrcPort 1 Points [-15, 0] Branch { DstBlock "Sum2" DstPort 2 } Branch { DstBlock "Sum7" DstPort 2 } } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Sum3" DstPort 1 } Line { SrcBlock "Constant2" SrcPort 1 DstBlock "Sum3" DstPort 2 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Gain3" DstPort 1 } Line { SrcBlock "Constant3" SrcPort 1 DstBlock "Sum4" DstPort 2 } Line { SrcBlock "Sum4" SrcPort 1 DstBlock "Gain5" DstPort 1 } Line { Name "yo" Labels [0, 0] SrcBlock "Sum3" SrcPort 1 Points [5, 0] Branch { DstBlock "Sum1" DstPort 2 } Branch { DstBlock "yo" DstPort 1 } } Line { Name "u" Labels [0, 0] SrcBlock "Sum2" SrcPort 1 DstBlock "Gain2" DstPort 1 } Line { SrcBlock "Gain2" SrcPort 1 Points [0, 0] DstBlock "Sum" DstPort 3 } Line { SrcBlock "Gain1" SrcPort 1 Points [-35, 0] DstBlock "Sum" DstPort 4 } Line { Name "x_dot" Labels [1, 0] SrcBlock "Sum" SrcPort 1 DstBlock "Unit Delay" DstPort 1 } Line { Name "x" Labels [1, 0] SrcBlock "Unit Delay" SrcPort 1 Points [20, 0] Branch { DstBlock "Gain" DstPort 1 } Branch { Points [0, 55] Branch { DstBlock "Gain1" DstPort 1 } Branch { Points [0, 65] DstBlock "Gain7" DstPort 1 } } } Line { SrcBlock "yp" SrcPort 1 Points [0, 20] Branch { DstBlock "Sum1" DstPort 1 } Branch { Points [15, 0; 0, 310; -690, 0] DstBlock "Sum5" DstPort 2 } } Line { Name "xi" Labels [0, 0] SrcBlock "Unit Delay2" SrcPort 1 Points [5, 0] Branch { DstBlock "Gain4" DstPort 1 } Branch { Points [0, 50; -75, 0] DstBlock "Sum5" DstPort 3 } } Line { SrcBlock "Sum5" SrcPort 1 DstBlock "Unit Delay2" DstPort 1 } Line { SrcBlock "Gain4" SrcPort 1 DstBlock "Sum6" DstPort 1 } Line { SrcBlock "Gain3" SrcPort 1 Points [-110, 0] DstBlock "Sum" DstPort 1 } Line { SrcBlock "Gain7" SrcPort 1 Points [-240, 0] DstBlock "Sum7" DstPort 1 } Line { SrcBlock "Sum7" SrcPort 1 Points [5, 0] DstBlock "Sum6" DstPort 2 } Line { SrcBlock "Sum6" SrcPort 1 Points [0, -20; -65, 0] DstBlock "Input Saturation" DstPort 1 } Line { SrcBlock "Input Saturation" SrcPort 1 Points [15, 0; 0, 45; 5, 0] Branch { DstBlock "Sum2" DstPort 1 } Branch { DstBlock "u" DstPort 1 } } Line { SrcBlock "T_iw" SrcPort 1 DstBlock "Rate Transition11" DstPort 1 } Line { SrcBlock "Rate Transition11" SrcPort 1 DstBlock "Sum4" DstPort 1 } Line { SrcBlock "Gain5" SrcPort 1 DstBlock "Rate Transition1" DstPort 1 } Line { SrcBlock "Rate Transition1" SrcPort 1 Points [0, 5; -1, 0] DstBlock "Sum" DstPort 2 } } } Block { BlockType SubSystem Name "Controller1" Ports [3, 2] Position [1160, 445, 1245, 525] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "Controller1" Location [728, 220, 1576, 613] Open off ModelBrowserVisibility on 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 "yp" Position [673, 15, 687, 45] Orientation "down" NamePlacement "alternate" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "ref" Position [23, 120, 37, 150] Orientation "down" NamePlacement "alternate" Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" Port { PortNumber 1 Name "r" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Inport Name "T_iw" Position [115, 83, 145, 97] Port "3" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant1" Position [273, 250, 337, 285] Orientation "up" ShowName off Value "u_bar_wood" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant2" Position [641, 220, 679, 260] Orientation "up" ShowName off Value "y_bar" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant3" Position [251, 120, 289, 160] Orientation "up" ShowName off Value "d_bar" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Gain" Position [570, 159, 615, 191] ShowName off Gain "Cd_wheat" Multiplication "Matrix(K*u)" 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 [435, 214, 480, 246] Orientation "left" NamePlacement "alternate" ShowName off Gain "Ad_wheat" Multiplication "Matrix(K*u)" 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 [320, 174, 365, 206] ShowName off Gain "Bd_new_wheat" Multiplication "Matrix(K*u)" 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 [510, 89, 555, 121] Orientation "left" NamePlacement "alternate" ShowName off Gain "Ld_wheat" Multiplication "Matrix(K*u)" 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 [120, 174, 165, 206] ShowName off Gain "Fdi_wheat" Multiplication "Matrix(K*u)" 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 "Gain5" Position [310, 74, 355, 106] ShowName off Gain "Ed_wheat" Multiplication "Matrix(K*u)" 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 "Gain7" Position [435, 279, 480, 311] Orientation "left" NamePlacement "alternate" ShowName off Gain "Fd1_wheat" Multiplication "Matrix(K*u)" 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 SubSystem Name "Input Saturation" Ports [1, 1] Position [160, 123, 225, 167] NamePlacement "alternate" MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "Input Saturation" Location [705, 653, 945, 775] Open off ModelBrowserVisibility on 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 "In1" Position [25, 53, 55, 67] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Demux Name "Demux2" Ports [1, 2] Position [80, 41, 85, 79] BackgroundColor "black" ShowName off Outputs "2" DisplayOption "bar" } Block { BlockType Mux Name "Mux4" Ports [2, 1] Position [155, 41, 160, 79] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Saturate Name "Saturation" Position [105, 25, 135, 55] ShowName off UpperLimit "100*beta_motor" LowerLimit "0.00000000001*beta_motor" } Block { BlockType Saturate Name "Saturation1" Position [105, 65, 135, 95] ShowName off UpperLimit "beta_blower*30" LowerLimit "0.00000000001*beta_blower" } Block { BlockType Outport Name "Out1" Position [185, 53, 215, 67] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Mux4" SrcPort 1 Points [0, 0] DstBlock "Out1" DstPort 1 } Line { SrcBlock "In1" SrcPort 1 Points [0, 0] DstBlock "Demux2" DstPort 1 } Line { SrcBlock "Saturation1" SrcPort 1 DstBlock "Mux4" DstPort 2 } Line { SrcBlock "Saturation" SrcPort 1 DstBlock "Mux4" DstPort 1 } Line { SrcBlock "Demux2" SrcPort 2 DstBlock "Saturation1" DstPort 1 } Line { SrcBlock "Demux2" SrcPort 1 DstBlock "Saturation" DstPort 1 } } } Block { BlockType RateTransition Name "Rate Transition1" Position [349, 105, 391, 140] Orientation "down" ForegroundColor "red" NamePlacement "alternate" OutPortSampleTime "1" } Block { BlockType RateTransition Name "Rate Transition11" Position [180, 69, 215, 111] ForegroundColor "red" } Block { BlockType Sum Name "Sum" Ports [4, 1] Position [380, 160, 410, 190] ShowName off IconShape "round" Inputs "++++" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off Port { PortNumber 1 Name "x_dot" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [670, 95, 690, 115] Orientation "left" NamePlacement "alternate" ShowName off IconShape "round" Inputs "+-" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum2" Ports [2, 1] Position [280, 180, 300, 200] ShowName off IconShape "round" Inputs "|+-" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off Port { PortNumber 1 Name "u" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Sum Name "Sum3" Ports [2, 1] Position [650, 165, 670, 185] ShowName off IconShape "round" Inputs "|++" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off Port { PortNumber 1 Name "yo" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Sum Name "Sum4" Ports [2, 1] Position [260, 80, 280, 100] ShowName off IconShape "round" Inputs "|+-" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum5" Ports [3, 1] Position [20, 180, 40, 200] ShowName off IconShape "round" Inputs "-++" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum6" Ports [2, 1] Position [185, 180, 205, 200] ShowName off IconShape "round" Inputs "|-+" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum7" Ports [2, 1] Position [180, 235, 200, 255] Orientation "up" ShowName off IconShape "round" Inputs "|-+" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType UnitDelay Name "Unit Delay" Position [460, 158, 495, 192] SampleTime "-1" Port { PortNumber 1 Name "x" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType UnitDelay Name "Unit Delay2" Position [60, 173, 95, 207] SampleTime "-1" Port { PortNumber 1 Name "xi" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Outport Name "u" Position [205, 213, 235, 227] Orientation "left" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "yo" Position [735, 168, 765, 182] NamePlacement "alternate" Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Rate Transition1" SrcPort 1 Points [0, 5; -1, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Gain5" SrcPort 1 DstBlock "Rate Transition1" DstPort 1 } Line { SrcBlock "Rate Transition11" SrcPort 1 DstBlock "Sum4" DstPort 1 } Line { SrcBlock "T_iw" SrcPort 1 DstBlock "Rate Transition11" DstPort 1 } Line { SrcBlock "Input Saturation" SrcPort 1 Points [15, 0; 0, 45; 5, 0] Branch { DstBlock "u" DstPort 1 } Branch { DstBlock "Sum2" DstPort 1 } } Line { SrcBlock "Sum6" SrcPort 1 Points [0, -20; -65, 0] DstBlock "Input Saturation" DstPort 1 } Line { SrcBlock "Sum7" SrcPort 1 Points [5, 0] DstBlock "Sum6" DstPort 2 } Line { SrcBlock "Gain7" SrcPort 1 Points [-240, 0] DstBlock "Sum7" DstPort 1 } Line { SrcBlock "Gain3" SrcPort 1 Points [-110, 0] DstBlock "Sum" DstPort 1 } Line { SrcBlock "Gain4" SrcPort 1 DstBlock "Sum6" DstPort 1 } Line { SrcBlock "Sum5" SrcPort 1 DstBlock "Unit Delay2" DstPort 1 } Line { Name "xi" Labels [0, 0] SrcBlock "Unit Delay2" SrcPort 1 Points [5, 0] Branch { Points [0, 50; -75, 0] DstBlock "Sum5" DstPort 3 } Branch { DstBlock "Gain4" DstPort 1 } } Line { SrcBlock "yp" SrcPort 1 Points [0, 20] Branch { Points [15, 0; 0, 310; -690, 0] DstBlock "Sum5" DstPort 2 } Branch { DstBlock "Sum1" DstPort 1 } } Line { Name "x" Labels [1, 0] SrcBlock "Unit Delay" SrcPort 1 Points [20, 0] Branch { Points [0, 55] Branch { Points [0, 65] DstBlock "Gain7" DstPort 1 } Branch { DstBlock "Gain1" DstPort 1 } } Branch { DstBlock "Gain" DstPort 1 } } Line { Name "x_dot" Labels [1, 0] SrcBlock "Sum" SrcPort 1 DstBlock "Unit Delay" DstPort 1 } Line { SrcBlock "Gain1" SrcPort 1 Points [-35, 0] DstBlock "Sum" DstPort 4 } Line { SrcBlock "Gain2" SrcPort 1 Points [0, 0] DstBlock "Sum" DstPort 3 } Line { Name "u" Labels [0, 0] SrcBlock "Sum2" SrcPort 1 DstBlock "Gain2" DstPort 1 } Line { Name "yo" Labels [0, 0] SrcBlock "Sum3" SrcPort 1 Points [5, 0] Branch { DstBlock "yo" DstPort 1 } Branch { DstBlock "Sum1" DstPort 2 } } Line { SrcBlock "Sum4" SrcPort 1 DstBlock "Gain5" DstPort 1 } Line { SrcBlock "Constant3" SrcPort 1 DstBlock "Sum4" DstPort 2 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Gain3" DstPort 1 } Line { SrcBlock "Constant2" SrcPort 1 DstBlock "Sum3" DstPort 2 } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Sum3" DstPort 1 } Line { SrcBlock "Constant1" SrcPort 1 Points [-15, 0] Branch { DstBlock "Sum7" DstPort 2 } Branch { DstBlock "Sum2" DstPort 2 } } Line { Name "r" Labels [1, 0] SrcBlock "ref" SrcPort 1 DstBlock "Sum5" DstPort 1 } } } Block { BlockType Demux Name "Demux" Ports [1, 2] Position [805, 386, 810, 424] Orientation "left" BackgroundColor "black" NamePlacement "alternate" ShowName off Outputs "2" DisplayOption "bar" } Block { BlockType Demux Name "Demux1" Ports [1, 2] Position [1130, 386, 1135, 424] Orientation "left" BackgroundColor "black" NamePlacement "alternate" ShowName off Outputs "2" DisplayOption "bar" } Block { BlockType Constant Name "Fan Speed Hz" Position [1275, 125, 1305, 155] Value "25" OutDataType "sfix(16)" OutScaling "2^0" SampleTime "TsPWM" } Block { BlockType Gain Name "Gain1" Position [755, 305, 785, 335] Orientation "up" ShowName off Gain "1/beta_blower" 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 [1050, 365, 1080, 395] Orientation "up" ShowName off Gain "1/beta_blower" 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 [1110, 330, 1140, 360] Orientation "up" ShowName off Gain "1/beta_motor_wheat" 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 "Gain5" Position [815, 310, 845, 340] Orientation "up" ShowName off Gain "1/beta_motor_wood" 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 SubSystem Name "IO card " Ports [3, 5] Position [1425, 116, 1595, 384] NamePlacement "alternate" MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off Port { PortNumber 1 Name "Temp" PropagatedSignals "boiler Temp" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } Port { PortNumber 2 Name "Trøg" PropagatedSignals "smoke Temp" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } Port { PortNumber 3 Name "Lamda" PropagatedSignals "oxygen/Lambda" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } Port { PortNumber 4 Name "Retur" PropagatedSignals "temp" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } System { Name "IO card " Location [202, 82, 1670, 1026] Open off ModelBrowserVisibility on 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 "95" Block { BlockType Inport Name "Calorifier Hz" Position [120, 118, 150, 132] NamePlacement "alternate" IconDisplay "Port number" } Block { BlockType Inport Name " Blower\nPWM %" Position [95, 458, 125, 472] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "Stoker engine" Position [95, 543, 125, 557] Port "3" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType SubSystem Name "Analog Out" Ports [2] Position [265, 71, 350, 144] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "Analog Out" Location [381, 727, 879, 1027] Open off ModelBrowserVisibility on 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 "Ana out 1" Position [40, 103, 70, 117] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "Calorifier" Position [40, 188, 70, 202] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Gain" Position [110, 95, 150, 125] Gain "0.5" 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 [115, 180, 155, 210] 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 Reference Name "PCL-812PG 1" Ports [1] Position [195, 165, 300, 225] SourceBlock "xpcadvantechlib/D//A/PCL-812PG " SourceType "daadvpcl812pg" channels "[2]" ranges "[5]" sample "-1" baseaddr "0x220" } Block { BlockType Reference Name "PCL-812PG 2" Ports [1] Position [195, 80, 300, 140] SourceBlock "xpcadvantechlib/D//A/PCL-812PG " SourceType "daadvpcl812pg" channels "[1]" ranges "[5]" sample "-1" baseaddr "0x220" } Line { SrcBlock "Gain1" SrcPort 1 DstBlock "PCL-812PG 1" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 DstBlock "PCL-812PG 2" DstPort 1 } Line { SrcBlock "Calorifier" SrcPort 1 DstBlock "Gain1" DstPort 1 } Line { SrcBlock "Ana out 1" SrcPort 1 DstBlock "Gain" DstPort 1 } } } Block { BlockType Constant Name "Constant" Position [205, 610, 235, 640] OutDataType "sfix(16)" OutScaling "2^0" SampleTime "TsPWM" } Block { BlockType Constant Name "Constant3" Position [100, 365, 130, 395] OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Gain" Position [185, 108, 245, 142] Gain "1/10" 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 SubSystem Name "Inputs / Sensor adjustments" Ports [0, 5] Position [570, 98, 685, 392] ShowPortLabels "SignalName" MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "Inputs / Sensor adjustments" Location [202, 82, 1670, 1026] Open off ModelBrowserVisibility on 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 SubSystem Name "Analog Input" Ports [0, 16] Position [140, 75, 195, 415] ShowPortLabels "SignalName" MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" Port { PortNumber 1 Name "Ana In 1" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } Port { PortNumber 2 Name "Ana In 2" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } Port { PortNumber 3 Name "Ana In 3" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } Port { PortNumber 6 Name "Ano In 6" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } System { Name "Analog Input" Location [474, 443, 972, 1236] Open off ModelBrowserVisibility on 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 Reference Name "PCL-812PG" Ports [0, 1] Position [40, 67, 145, 123] SourceBlock "xpcadvantechlib/A//D/PCL-812PG" SourceType "adadvpcl812pg" channels "[1]" range "[-10]" sample "TsMaaling" baseaddr "0x220" } Block { BlockType Reference Name "PCL-812PG1" Ports [0, 1] Position [40, 147, 145, 203] SourceBlock "xpcadvantechlib/A//D/PCL-812PG" SourceType "adadvpcl812pg" channels "[2]" range "[-10]" sample "TsMaaling" baseaddr "0x220" } Block { BlockType Reference Name "PCL-812PG2" Ports [0, 1] Position [40, 222, 145, 278] SourceBlock "xpcadvantechlib/A//D/PCL-812PG" SourceType "adadvpcl812pg" channels "[3]" range "[-10]" sample "TsMaaling" baseaddr "0x220" } Block { BlockType Reference Name "PCL-812PG3" Ports [0, 1] Position [40, 372, 145, 428] SourceBlock "xpcadvantechlib/A//D/PCL-812PG" SourceType "adadvpcl812pg" channels "[5]" range "[-10]" sample "TsMaaling" baseaddr "0x220" } Block { BlockType Reference Name "PCL-812PG4" Ports [0, 1] Position [40, 457, 145, 513] SourceBlock "xpcadvantechlib/A//D/PCL-812PG" SourceType "adadvpcl812pg" channels "[6]" range "[-10]" sample "TsMaaling" baseaddr "0x220" } Block { BlockType Outport Name "Boiler temp" Position [200, 88, 230, 102] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Smoke temp" Position [200, 168, 230, 182] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Oxygen/Lambda" Position [200, 243, 230, 257] Port "3" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Ana In 4" Position [200, 318, 230, 332] Port "4" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Return temp" Position [205, 393, 235, 407] Port "5" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Water Flow" Position [205, 478, 235, 492] Port "6" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Ana In 7" Position [200, 543, 230, 557] Port "7" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Ana In 8" Position [200, 618, 230, 632] Port "8" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Ana In 9" Position [410, 88, 440, 102] Port "9" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Ana In 10" Position [405, 168, 435, 182] Port "10" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Ana In 11" Position [405, 243, 435, 257] Port "11" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Ana In 12" Position [405, 318, 435, 332] Port "12" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Ana In 13" Position [410, 393, 440, 407] Port "13" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Ana In 14" Position [410, 478, 440, 492] Port "14" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Ana In 15" Position [410, 543, 440, 557] Port "15" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Ana In 16" Position [410, 618, 440, 632] Port "16" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "PCL-812PG2" SrcPort 1 DstBlock "Oxygen/Lambda" DstPort 1 } Line { SrcBlock "PCL-812PG1" SrcPort 1 DstBlock "Smoke temp" DstPort 1 } Line { SrcBlock "PCL-812PG" SrcPort 1 DstBlock "Boiler temp" DstPort 1 } Line { SrcBlock "PCL-812PG3" SrcPort 1 DstBlock "Return temp" DstPort 1 } Line { SrcBlock "PCL-812PG4" SrcPort 1 DstBlock "Water Flow" DstPort 1 } } } Block { BlockType SubSystem Name "Flow adjustments" Ports [1, 1] Position [385, 413, 510, 457] ShowPortLabels "SignalName" MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "Flow adjustments" Location [632, 503, 1466, 681] Open off ModelBrowserVisibility on 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 "In1" Position [40, 43, 70, 57] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Sum Name "Add" Ports [2, 1] Position [105, 42, 135, 73] Inputs "+-" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" SaturateOnIntegerOverflow off Port { PortNumber 1 Name "Voltage" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Gain Name "Areal" Position [330, 45, 360, 75] Gain "0.491" 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 "Full scale m/s devided by voltage scale" Position [210, 44, 250, 76] Gain "3/8" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off Port { PortNumber 1 Name "m/s" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Constant Name "Offset" Position [40, 75, 70, 105] Value "2" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Water flow [L/s]" Position [390, 53, 420, 67] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "In1" SrcPort 1 DstBlock "Add" DstPort 1 } Line { SrcBlock "Offset" SrcPort 1 Points [0, -25] DstBlock "Add" DstPort 2 } Line { Name "Voltage" Labels [1, 0] SrcBlock "Add" SrcPort 1 DstBlock "Full scale m/s devided by voltage scale" DstPort 1 } Line { Name "m/s" Labels [0, 0] SrcBlock "Full scale m/s devided by voltage scale" SrcPort 1 DstBlock "Areal" DstPort 1 } Line { SrcBlock "Areal" SrcPort 1 DstBlock "Water flow [L/s]" DstPort 1 } } } Block { BlockType SubSystem Name "Lambda sonde adjustment" Ports [1, 1] Position [385, 243, 505, 287] ShowPortLabels "SignalName" MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off Port { PortNumber 1 Name "oxygen/Lambda" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } System { Name "Lambda sonde adjustment" Location [585, 718, 1211, 1013] Open off ModelBrowserVisibility on 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 "In1" Position [30, 43, 60, 57] ShowName off IconDisplay "Signal name" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Gain" Position [105, 35, 150, 65] Gain "250" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off Port { PortNumber 1 Name "Bit" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Fcn Name "Oxygenlevel1" Position [275, 35, 335, 65] Expr "u[1]+11.5" Port { PortNumber 1 Name "ox1" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Fcn Name "Oxygenlevel2" Position [370, 35, 430, 65] Expr "exp((71.68-u[1])/23.545)" SampleTime "TsMaaling" } Block { BlockType Fcn Name "mV" Position [180, 35, 240, 65] Expr "(u[1]/4.5)-31" Port { PortNumber 1 Name "mV" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Outport Name "Oxygen/Lambda" Position [470, 43, 500, 57] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { Name "Bit" Labels [0, 0] SrcBlock "Gain" SrcPort 1 DstBlock "mV" DstPort 1 } Line { Name "mV" Labels [0, 0] SrcBlock "mV" SrcPort 1 DstBlock "Oxygenlevel1" DstPort 1 } Line { Name "ox1" Labels [0, 0] SrcBlock "Oxygenlevel1" SrcPort 1 DstBlock "Oxygenlevel2" DstPort 1 } Line { SrcBlock "Oxygenlevel2" SrcPort 1 DstBlock "Oxygen/Lambda" DstPort 1 } Line { SrcBlock "In1" SrcPort 1 DstBlock "Gain" DstPort 1 } } } Block { BlockType SubSystem Name "NTC adjustment" Ports [1, 1] Position [390, 73, 515, 117] ShowPortLabels "SignalName" MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off Port { PortNumber 1 Name "boiler Temp" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } System { Name "NTC adjustment" Location [18, 261, 851, 388] Open off ModelBrowserVisibility on 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 "In1" Position [40, 43, 70, 57] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Omregning til bit" Position [105, 35, 150, 65] Gain "250" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off Port { PortNumber 1 Name "Bit val" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Fcn Name "R" Position [200, 35, 260, 65] Expr "(2048000/(1024-u)-1000)" Port { PortNumber 1 Name "Ohm" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Fcn Name "T" Position [440, 35, 500, 65] Expr "(3730/(12.51048130136-u))-273.15" } Block { BlockType Fcn Name "t1" Position [315, 34, 385, 66] Expr "log(12000/u)" } Block { BlockType Outport Name "Boiler Temp" Position [555, 43, 585, 57] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { Labels [0, 0] SrcBlock "T" SrcPort 1 DstBlock "Boiler Temp" DstPort 1 } Line { SrcBlock "In1" SrcPort 1 DstBlock "Omregning til bit" DstPort 1 } Line { SrcBlock "t1" SrcPort 1 DstBlock "T" DstPort 1 } Line { Name "Ohm" Labels [0, 0] SrcBlock "R" SrcPort 1 DstBlock "t1" DstPort 1 } Line { Name "Bit val" Labels [0, 0] SrcBlock "Omregning til bit" SrcPort 1 DstBlock "R" DstPort 1 } } } Block { BlockType SubSystem Name "NTC adjustments return SMD" Ports [1, 1] Position [385, 323, 510, 367] ShowPortLabels "SignalName" MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "NTC adjustments return SMD" Location [18, 261, 852, 439] Open off ModelBrowserVisibility on 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 "In1" Position [40, 43, 70, 57] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Omregning til bit" Position [105, 35, 150, 65] Gain "250" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off Port { PortNumber 1 Name "Bit val" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Fcn Name "R" Position [200, 35, 260, 65] Expr "(2048000/(1024-u)-1000)" Port { PortNumber 1 Name "Ohm" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Fcn Name "T" Position [430, 35, 490, 65] Expr "(3435/(11.5094642785-u))-273.15" Port { PortNumber 1 Name "temp" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Fcn Name "t1" Position [315, 34, 385, 66] Expr "log(10000/u)" } Block { BlockType Outport Name "Retur Temp" Position [555, 43, 585, 57] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { Name "temp" Labels [0, 0] SrcBlock "T" SrcPort 1 DstBlock "Retur Temp" DstPort 1 } Line { SrcBlock "In1" SrcPort 1 DstBlock "Omregning til bit" DstPort 1 } Line { SrcBlock "t1" SrcPort 1 DstBlock "T" DstPort 1 } Line { Name "Ohm" Labels [0, 0] SrcBlock "R" SrcPort 1 DstBlock "t1" DstPort 1 } Line { Name "Bit val" Labels [0, 0] SrcBlock "Omregning til bit" SrcPort 1 DstBlock "R" DstPort 1 } } } Block { BlockType SubSystem Name "PT1000 adjustment " Ports [1, 1] Position [390, 149, 500, 191] ShowPortLabels "SignalName" MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off Port { PortNumber 1 Name "smoke Temp" PropagatedSignals "Temp" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } System { Name "PT1000 adjustment " Location [426, 258, 919, 445] Open off ModelBrowserVisibility on 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 "In1" Position [40, 43, 70, 57] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Gain" Position [105, 35, 150, 65] Gain "250" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off Port { PortNumber 1 Name "Bit" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Mux Name "Mux" Ports [2, 1] Position [295, 31, 300, 109] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Fcn Name "R" Position [195, 35, 255, 65] Expr "(2048000/(1024-u)-1000)" Port { PortNumber 1 Name "Ohm" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Constant Name "Sensor offset: 1000-Rsensor" Position [165, 103, 240, 127] Value "0.1" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Fcn Name "T" Position [335, 55, 395, 85] Expr "((u[1]-1000+u[2])/3.85055e-1/10)" Port { PortNumber 1 Name "Temp" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Outport Name "Temp" Position [445, 63, 475, 77] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Sensor offset: 1000-Rsensor" SrcPort 1 Points [0, -25] DstBlock "Mux" DstPort 2 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "T" DstPort 1 } Line { Name "Bit" Labels [0, 0] SrcBlock "Gain" SrcPort 1 DstBlock "R" DstPort 1 } Line { Name "Ohm" Labels [0, 0] SrcBlock "R" SrcPort 1 DstBlock "Mux" DstPort 1 } Line { SrcBlock "In1" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { Name "Temp" Labels [0, 0] SrcBlock "T" SrcPort 1 DstBlock "Temp" DstPort 1 } } } Block { BlockType Outport Name "Boiler temp1" Position [620, 88, 650, 102] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Smoke temp" Position [620, 163, 650, 177] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "oxygen/Lambda" Position [620, 258, 650, 272] Port "3" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Boiler return temp" Position [620, 338, 650, 352] Port "4" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Water Flow" Position [620, 428, 650, 442] Port "5" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { Name "boiler Temp" Labels [0, 0] SrcBlock "NTC adjustment" SrcPort 1 DstBlock "Boiler temp1" DstPort 1 } Line { Name "smoke Temp" Labels [0, 0] SrcBlock "PT1000 adjustment " SrcPort 1 DstBlock "Smoke temp" DstPort 1 } Line { Name "Ana In 1" Labels [1, 0] SrcBlock "Analog Input" SrcPort 1 DstBlock "NTC adjustment" DstPort 1 } Line { Name "Ana In 2" Labels [3, 0] SrcBlock "Analog Input" SrcPort 2 Points [70, 0; 0, 55] DstBlock "PT1000 adjustment " DstPort 1 } Line { Name "Ana In 3" Labels [3, 0] SrcBlock "Analog Input" SrcPort 3 Points [60, 0; 0, 130] DstBlock "Lambda sonde adjustment" DstPort 1 } Line { SrcBlock "Analog Input" SrcPort 5 Points [45, 0; 0, 170] DstBlock "NTC adjustments return SMD" DstPort 1 } Line { Name "Ano In 6" Labels [3, 0] SrcBlock "Analog Input" SrcPort 6 Points [25, 0; 0, 240] DstBlock "Flow adjustments" DstPort 1 } Line { SrcBlock "Flow adjustments" SrcPort 1 DstBlock "Water Flow" DstPort 1 } Line { Name "oxygen/Lambda" Labels [0, 0] SrcBlock "Lambda sonde adjustment" SrcPort 1 DstBlock "oxygen/Lambda" DstPort 1 } Line { SrcBlock "NTC adjustments return SMD" SrcPort 1 DstBlock "Boiler return temp" DstPort 1 } Annotation { Name "Ana In 5" Position [298, 341] } } } Block { BlockType Reference Name "Manual Switch" Ports [2, 1] Position [320, 442, 350, 478] SourceBlock "simulink/Signal\nRouting/Manual Switch" SourceType "Manual Switch" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" sw "0" action "0" varsize off } Block { BlockType Reference Name "Manual Switch1" Ports [2, 1] Position [325, 597, 355, 633] SourceBlock "simulink/Signal\nRouting/Manual Switch" SourceType "Manual Switch" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" sw "1" action "0" varsize off } Block { BlockType Reference Name "PCL-812PG \nDigital Output" Ports [2] Position [390, 423, 470, 572] SourceBlock "xpcadvantechlib/Digital\nOutput/PCL-812PG " SourceType "doadvpcl812pg" channels "[3 4]" sample "TsPWM" baseaddr "0x220" } Block { BlockType SubSystem Name "Voltage to PWM\n0-100=0-100%" Ports [1, 1] Position [200, 445, 275, 485] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "Voltage to PWM\n0-100=0-100%" Location [832, 184, 1431, 508] Open off ModelBrowserVisibility on 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 "Analog" Position [35, 138, 65, 152] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" Port { PortNumber 1 Name "Ref" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Reference Name "Compare\nTo Zero" Ports [1, 1] Position [320, 120, 350, 150] SourceBlock "simulink/Logic and Bit\nOperations/Compare\nTo Zero" SourceType "Compare To Zero" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" relop ">" LogicOutDataTypeMode "uint8" ZeroCross off } Block { BlockType Reference Name "Counter\nLimited" Ports [0, 1] Position [100, 70, 130, 100] SourceBlock "simulink/Sources/Counter\nLimited" SourceType "Counter Limited" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" uplimit "BlowerStep-1" tsamp "-1" } Block { BlockType DataTypeConversion Name "Data Type\n Conversion1" Position [380, 120, 415, 150] OutDataTypeMode "double" OutDataType "sfix(16)" OutScaling "2^0" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType DataTypeConversion Name "Data Type \nConversion2" Position [150, 69, 195, 101] OutDataTypeMode "double" OutDataType "sfix(16)" OutScaling "2^0" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain" Position [210, 70, 240, 100] Gain "100/BlowerStep" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off Port { PortNumber 1 Name "trekant" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType RateTransition Name "Rate Transition" Position [120, 124, 160, 166] OutPortSampleTime "TsPWM" } Block { BlockType Scope Name "Scope" Ports [1] Position [455, 194, 485, 226] Floating off Location [372, 393, 696, 632] Open off NumInputPorts "1" ZoomMode "xonly" List { ListType AxesTitles axes1 "%" } SaveName "ScopeData2" DataFormat "StructureWithTime" SampleTime "0" } Block { BlockType Scope Name "Scope1" Ports [2] Position [270, 181, 300, 214] Floating off Location [280, 342, 916, 581] Open off NumInputPorts "2" ZoomMode "xonly" List { ListType AxesTitles axes1 "%" axes2 "%" } YMin "-5~-5" YMax "5~5" SaveName "ScopeData3" DataFormat "StructureWithTime" SampleTime "0" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [265, 117, 305, 153] ShowName off Inputs "-+" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Outport Name "PWM" Position [450, 128, 480, 142] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Data Type \nConversion2" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "Data Type\n Conversion1" SrcPort 1 Points [5, 0] Branch { DstBlock "PWM" DstPort 1 } Branch { Points [0, 75] DstBlock "Scope" DstPort 1 } } Line { SrcBlock "Compare\nTo Zero" SrcPort 1 DstBlock "Data Type\n Conversion1" DstPort 1 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Compare\nTo Zero" DstPort 1 } Line { SrcBlock "Counter\nLimited" SrcPort 1 DstBlock "Data Type \nConversion2" DstPort 1 } Line { Name "trekant" Labels [0, 0] SrcBlock "Gain" SrcPort 1 Points [0, 40] Branch { DstBlock "Sum" DstPort 1 } Branch { Points [0, 65] DstBlock "Scope1" DstPort 1 } } Line { SrcBlock "Rate Transition" SrcPort 1 Points [65, 0] Branch { DstBlock "Sum" DstPort 2 } Branch { Points [0, 60] DstBlock "Scope1" DstPort 2 } } Line { Name "Ref" Labels [0, 0] SrcBlock "Analog" SrcPort 1 DstBlock "Rate Transition" DstPort 1 } } } Block { BlockType SubSystem Name "Voltage to PWM\n0-100=0-100%2" Ports [1, 1] Position [170, 529, 270, 571] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "Voltage to PWM\n0-100=0-100%2" Location [826, 539, 1411, 950] Open off ModelBrowserVisibility on 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 "Analog" Position [35, 118, 65, 132] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" Port { PortNumber 1 Name "Ref" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Reference Name "Compare\nTo Zero" Ports [1, 1] Position [280, 120, 310, 150] SourceBlock "simulink/Logic and Bit\nOperations/Compare\nTo Zero" SourceType "Compare To Zero" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" relop ">" LogicOutDataTypeMode "uint8" ZeroCross off } Block { BlockType Reference Name "Counter\nLimited" Ports [0, 1] Position [25, 175, 55, 205] SourceBlock "simulink/Sources/Counter\nLimited" SourceType "Counter Limited" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" uplimit "Stokerstep-1" tsamp "TsStoker" } Block { BlockType DataTypeConversion Name "Data Type\n Conversion1" Position [345, 120, 380, 150] OutDataTypeMode "double" OutDataType "sfix(16)" OutScaling "2^0" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType DataTypeConversion Name "Data Type \nConversion3" Position [145, 174, 190, 206] OutMin "[100/Stokerstep]" OutMax "[100]" OutDataTypeMode "double" OutDataType "sfix(16)" OutScaling "2^0" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain" Position [70, 175, 100, 205] Gain "100/Stokerstep" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off Port { PortNumber 1 Name "trekant" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType RateTransition Name "Rate \nTransition1" Position [420, 113, 455, 157] Integrity off Deterministic off OutPortSampleTime "TsPWM" } Block { BlockType RateTransition Name "Rate Transition" Position [110, 104, 150, 146] OutPortSampleTime "TsStoker" } Block { BlockType Scope Name "Scope" Ports [1] Position [490, 189, 520, 221] Floating off Location [6, 308, 834, 750] Open off NumInputPorts "1" ZoomMode "xonly" List { ListType AxesTitles axes1 "%" } TimeRange "0.2806255310983801" YMin "0" YMax "1" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "Scope1" Ports [2] Position [255, 201, 285, 234] Floating off Location [245, 653, 881, 892] Open off NumInputPorts "2" ZoomMode "xonly" List { ListType AxesTitles axes1 "%" axes2 "%" } YMin "-5~-5" YMax "5~5" SaveName "ScopeData1" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [220, 117, 260, 153] ShowName off Inputs "+-" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" RndMeth "Nearest" SaturateOnIntegerOverflow off SampleTime "TsStoker" } Block { BlockType Outport Name "PWM slow" Position [475, 128, 505, 142] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { Name "Ref" Labels [0, 0] SrcBlock "Analog" SrcPort 1 DstBlock "Rate Transition" DstPort 1 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Compare\nTo Zero" DstPort 1 } Line { SrcBlock "Compare\nTo Zero" SrcPort 1 DstBlock "Data Type\n Conversion1" DstPort 1 } Line { SrcBlock "Data Type\n Conversion1" SrcPort 1 DstBlock "Rate \nTransition1" DstPort 1 } Line { Name "trekant" Labels [0, 0] SrcBlock "Gain" SrcPort 1 DstBlock "Data Type \nConversion3" DstPort 1 } Line { SrcBlock "Rate Transition" SrcPort 1 Points [45, 0] Branch { DstBlock "Sum" DstPort 1 } Branch { Points [0, 85] DstBlock "Scope1" DstPort 1 } } Line { SrcBlock "Rate \nTransition1" SrcPort 1 Points [0, 0] Branch { DstBlock "PWM slow" DstPort 1 } Branch { Points [0, 70] DstBlock "Scope" DstPort 1 } } Line { SrcBlock "Counter\nLimited" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "Data Type \nConversion3" SrcPort 1 Points [10, 0; 0, -15] Branch { DstBlock "Sum" DstPort 2 } Branch { Points [15, 0; 0, 50] DstBlock "Scope1" DstPort 2 } } } } Block { BlockType Outport Name "Boiler temp1" Position [725, 118, 755, 132] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Smoke temp" Position [725, 178, 755, 192] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Oxygen/Lambda" Position [725, 238, 755, 252] Port "3" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Boiler retur temp" Position [725, 298, 755, 312] Port "4" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "flow" Position [725, 358, 755, 372] Port "5" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Inputs / Sensor adjustments" SrcPort 1 DstBlock "Boiler temp1" DstPort 1 } Line { SrcBlock "Inputs / Sensor adjustments" SrcPort 2 DstBlock "Smoke temp" DstPort 1 } Line { SrcBlock "Inputs / Sensor adjustments" SrcPort 3 DstBlock "Oxygen/Lambda" DstPort 1 } Line { SrcBlock "Inputs / Sensor adjustments" SrcPort 4 DstBlock "Boiler retur temp" DstPort 1 } Line { SrcBlock " Blower\nPWM %" SrcPort 1 DstBlock "Voltage to PWM\n0-100=0-100%" DstPort 1 } Line { SrcBlock "Calorifier Hz" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "Voltage to PWM\n0-100=0-100%2" SrcPort 1 Points [0, 55] DstBlock "Manual Switch1" DstPort 1 } Line { SrcBlock "Voltage to PWM\n0-100=0-100%" SrcPort 1 Points [25, 0] DstBlock "Manual Switch" DstPort 2 } Line { SrcBlock "Manual Switch" SrcPort 1 DstBlock "PCL-812PG \nDigital Output" DstPort 1 } Line { SrcBlock "Manual Switch1" SrcPort 1 Points [15, 0] DstBlock "PCL-812PG \nDigital Output" DstPort 2 } Line { SrcBlock "Stoker engine" SrcPort 1 DstBlock "Voltage to PWM\n0-100=0-100%2" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Analog Out" DstPort 2 } Line { SrcBlock "Constant" SrcPort 1 DstBlock "Manual Switch1" DstPort 2 } Line { SrcBlock "Inputs / Sensor adjustments" SrcPort 5 DstBlock "flow" DstPort 1 } Line { SrcBlock "Constant3" SrcPort 1 Points [160, 0; 0, 70] DstBlock "Manual Switch" DstPort 1 } } } Block { BlockType SubSystem Name "Input Saturation wood" Ports [1, 1] Position [900, 373, 985, 437] Orientation "left" MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "Input Saturation wood" Location [705, 653, 945, 775] Open off ModelBrowserVisibility on 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 "In1" Position [25, 53, 55, 67] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Demux Name "Demux2" Ports [1, 2] Position [80, 41, 85, 79] BackgroundColor "black" ShowName off Outputs "2" DisplayOption "bar" } Block { BlockType Mux Name "Mux4" Ports [2, 1] Position [155, 41, 160, 79] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Saturate Name "Saturation" Position [105, 25, 135, 55] ShowName off UpperLimit "100*beta_motor_wood" LowerLimit "0.00000000001*beta_motor_wood" } Block { BlockType Saturate Name "Saturation1" Position [105, 65, 135, 95] ShowName off UpperLimit "beta_blower*100" LowerLimit "0.00000000001*beta_blower" } Block { BlockType Outport Name "Out1" Position [185, 53, 215, 67] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Demux2" SrcPort 1 DstBlock "Saturation" DstPort 1 } Line { SrcBlock "Demux2" SrcPort 2 DstBlock "Saturation1" DstPort 1 } Line { SrcBlock "Saturation" SrcPort 1 DstBlock "Mux4" DstPort 1 } Line { SrcBlock "Saturation1" SrcPort 1 DstBlock "Mux4" DstPort 2 } Line { SrcBlock "In1" SrcPort 1 Points [0, 0] DstBlock "Demux2" DstPort 1 } Line { SrcBlock "Mux4" SrcPort 1 Points [0, 0] DstBlock "Out1" DstPort 1 } } } Block { BlockType SubSystem Name "Input Saturation1" Ports [1, 1] Position [1190, 353, 1275, 417] Orientation "left" MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "Input Saturation1" Location [705, 653, 945, 775] Open off ModelBrowserVisibility on 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 "In1" Position [25, 53, 55, 67] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Demux Name "Demux2" Ports [1, 2] Position [80, 41, 85, 79] BackgroundColor "black" ShowName off Outputs "2" DisplayOption "bar" } Block { BlockType Mux Name "Mux4" Ports [2, 1] Position [155, 41, 160, 79] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Saturate Name "Saturation" Position [105, 25, 135, 55] ShowName off UpperLimit "100*beta_motor_wheat" LowerLimit "0.00000000001*beta_motor_wheat" } Block { BlockType Saturate Name "Saturation1" Position [105, 65, 135, 95] ShowName off UpperLimit "beta_blower*100" LowerLimit "0.00000000001*beta_blower" } Block { BlockType Outport Name "Out1" Position [185, 53, 215, 67] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Demux2" SrcPort 1 DstBlock "Saturation" DstPort 1 } Line { SrcBlock "Demux2" SrcPort 2 DstBlock "Saturation1" DstPort 1 } Line { SrcBlock "Saturation" SrcPort 1 DstBlock "Mux4" DstPort 1 } Line { SrcBlock "Saturation1" SrcPort 1 DstBlock "Mux4" DstPort 2 } Line { SrcBlock "In1" SrcPort 1 Points [0, 0] DstBlock "Demux2" DstPort 1 } Line { SrcBlock "Mux4" SrcPort 1 Points [0, 0] DstBlock "Out1" DstPort 1 } } } Block { BlockType Reference Name "Manual\nSwitch1" Ports [2, 1] Position [1355, 262, 1385, 298] ForegroundColor "blue" SourceBlock "simulink/Signal\nRouting/Manual Switch" SourceType "Manual Switch" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" sw "0" action "0" varsize off } Block { BlockType Reference Name "Manual \nStoker %" Ports [2, 1] Position [1225, 557, 1255, 593] ForegroundColor "blue" SourceBlock "simulink/Signal\nRouting/Manual Switch" SourceType "Manual Switch" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" sw "0" action "0" varsize off } Block { BlockType Reference Name "Manual \nStoker %1" Ports [2, 1] Position [1170, 242, 1200, 278] Orientation "left" ForegroundColor "blue" NamePlacement "alternate" SourceBlock "simulink/Signal\nRouting/Manual Switch" SourceType "Manual Switch" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" sw "0" action "0" varsize off } Block { BlockType Reference Name "Manual \nStoker %2" Ports [2, 1] Position [675, 232, 705, 268] ForegroundColor "blue" SourceBlock "simulink/Signal\nRouting/Manual Switch" SourceType "Manual Switch" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" sw "0" action "0" varsize off } Block { BlockType Constant Name "Manuel Stoker %" Position [1185, 610, 1215, 640] Value "0" OutDataType "sfix(16)" OutScaling "2^0" SampleTime "TsPWM" } Block { BlockType Constant Name "Manuel blower %" Position [1275, 285, 1305, 315] Value "0" OutDataType "sfix(16)" OutScaling "2^0" SampleTime "TsPWM" } Block { BlockType Mux Name "Mux" Ports [4, 1] Position [1955, 156, 1960, 209] ForegroundColor "red" ShowName off DisplayOption "bar" } Block { BlockType Mux Name "Mux1" Ports [9, 1] Position [2050, 738, 2065, 1012] ForegroundColor "red" ShowName off Inputs "9" DisplayOption "bar" } Block { BlockType Mux Name "Mux2" Ports [2, 1] Position [601, 475, 639, 480] Orientation "down" NamePlacement "alternate" ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Mux Name "Mux3" Ports [2, 1] Position [1175, 720, 1180, 760] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Product Name "Product" Ports [2, 1] Position [747, 205, 778, 235] Orientation "up" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product1" Ports [2, 1] Position [822, 205, 853, 235] Orientation "up" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product2" Ports [2, 1] Position [1042, 230, 1073, 260] Orientation "up" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product3" Ports [2, 1] Position [1117, 200, 1148, 230] Orientation "up" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType RateTransition Name "Rate Transition" Position [1690, 899, 1725, 941] ForegroundColor "red" OutPortSampleTime "TsMaaling" Port { PortNumber 1 Name "Stok" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType RateTransition Name "Rate Transition1" Position [1755, 864, 1790, 906] ForegroundColor "red" OutPortSampleTime "TsMaaling" Port { PortNumber 1 Name "Blow" PropagatedSignals "Blower" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType RateTransition Name "Rate Transition10" Position [1710, 959, 1745, 1001] ForegroundColor "red" OutPortSampleTime "TsMaaling" Port { PortNumber 1 Name "Fan" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType RateTransition Name "Rate Transition11" Position [599, 335, 641, 370] Orientation "down" ForegroundColor "red" NamePlacement "alternate" } Block { BlockType RateTransition Name "Rate Transition12" Position [514, 370, 556, 405] Orientation "down" ForegroundColor "red" NamePlacement "alternate" OutPortSampleTime "1" } Block { BlockType RateTransition Name "Rate Transition13" Position [1130, 904, 1165, 946] Orientation "left" ForegroundColor "red" NamePlacement "alternate" } Block { BlockType RateTransition Name "Rate Transition14" Position [1555, 984, 1590, 1026] ForegroundColor "red" OutPortSampleTime "TsMaaling" Port { PortNumber 1 Name "possiblility" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType RateTransition Name "Rate Transition15" Position [670, 34, 705, 76] Orientation "left" ForegroundColor "red" NamePlacement "alternate" } Block { BlockType RateTransition Name "Rate Transition16" Position [624, 400, 666, 435] Orientation "down" ForegroundColor "red" NamePlacement "alternate" OutPortSampleTime "1" } Block { BlockType RateTransition Name "Rate Transition17" Position [845, 384, 880, 426] Orientation "left" ForegroundColor "red" NamePlacement "alternate" } Block { BlockType RateTransition Name "Rate Transition18" Position [555, 434, 590, 476] ForegroundColor "red" OutPortSampleTime "1" } Block { BlockType RateTransition Name "Rate Transition19" Position [514, 515, 556, 550] Orientation "down" ForegroundColor "red" NamePlacement "alternate" } Block { BlockType RateTransition Name "Rate Transition2" Position [1830, 829, 1865, 871] ForegroundColor "red" OutPortSampleTime "TsMaaling" Port { PortNumber 1 Name "Lambda" PropagatedSignals "Lamda" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType RateTransition Name "Rate Transition20" Position [1155, 364, 1170, 406] Orientation "left" ForegroundColor "red" NamePlacement "alternate" } Block { BlockType RateTransition Name "Rate Transition3" Position [1940, 706, 1975, 734] ForegroundColor "red" OutPortSampleTime "TsMaaling" Port { PortNumber 1 Name "Temp" PropagatedSignals "Temp" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType RateTransition Name "Rate Transition4" Position [625, 549, 660, 591] Orientation "left" ForegroundColor "red" NamePlacement "alternate" } Block { BlockType RateTransition Name "Rate Transition5" Position [1875, 749, 1910, 791] ForegroundColor "red" OutPortSampleTime "TsMaaling" Port { PortNumber 1 Name "Retur" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType RateTransition Name "Rate Transition6" Position [1985, 794, 2020, 836] ForegroundColor "red" OutPortSampleTime "TsMaaling" Port { PortNumber 1 Name "Trøg" PropagatedSignals "Trøg" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType RateTransition Name "Rate Transition7" Position [715, 1019, 750, 1061] Orientation "left" ForegroundColor "red" NamePlacement "alternate" } Block { BlockType RateTransition Name "Rate Transition8" Position [2115, 789, 2150, 831] ForegroundColor "red" OutPortSampleTime "0.1" Port { PortNumber 1 PropagatedSignals "Temp, Retur, Trøg, Lambda, Blow, Stok, flow, Fan, possiblility" ShowPropagatedSignals "on" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType RateTransition Name "Rate Transition9" Position [1835, 924, 1870, 966] ForegroundColor "red" OutPortSampleTime "TsMaaling" Port { PortNumber 1 Name "flow" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Constant Name "Ref corn" Position [1085, 466, 1125, 504] Value "[70 12]" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Ref wood" Position [710, 491, 750, 529] Value "[60 6]" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType SubSystem Name "Safty" Ports [2, 1] Position [1345, 95, 1385, 155] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "Safty" Location [492, 350, 1571, 1055] Open off ModelBrowserVisibility on 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 "In1" Position [85, 178, 115, 192] IconDisplay "Port number" } Block { BlockType Inport Name "In2" Position [325, 313, 355, 327] Port "2" IconDisplay "Port number" } Block { BlockType Product Name "Divide" Ports [2, 1] Position [660, 462, 690, 493] Inputs "/*" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Divide1" Ports [2, 1] Position [780, 402, 810, 433] Inputs "*/" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType Constant Name "Fan Max Cool" Position [550, 75, 580, 105] Value "50" OutDataType "sfix(16)" OutScaling "2^0" SampleTime "TsPWM" } Block { BlockType Constant Name "Fan speed max" Position [315, 455, 345, 485] Value "50" OutDataType "sfix(16)" OutScaling "2^0" SampleTime "TsPWM" } Block { BlockType Constant Name "Fan speed min" Position [315, 525, 345, 555] Value "8" OutDataType "sfix(16)" OutScaling "2^0" SampleTime "TsPWM" } Block { BlockType Gain Name "Gain" Position [520, 450, 585, 490] Gain "1/10" 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 Constant Name "Max temp" Position [395, 210, 425, 240] Value "80" OutDataType "sfix(16)" OutScaling "2^0" SampleTime "TsPWM" } Block { BlockType RateTransition Name "Rate Transition" Position [135, 164, 175, 206] } Block { BlockType RateTransition Name "Rate Transition1" Position [430, 299, 470, 341] } Block { BlockType RelationalOperator Name "Relational\nOperator" Position [490, 164, 520, 246] InputSameDT off LogicOutDataTypeMode "boolean" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [460, 460, 480, 480] ShowName off IconShape "round" Inputs "|+-" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [835, 410, 855, 430] ShowName off IconShape "round" Inputs "|+-" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Switch Name "Switch" Position [625, 30, 685, 380] InputSameDT off OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Outport Name "Out1" Position [895, 413, 925, 427] IconDisplay "Port number" } Line { SrcBlock "Max temp" SrcPort 1 DstBlock "Relational\nOperator" DstPort 2 } Line { SrcBlock "Relational\nOperator" SrcPort 1 DstBlock "Switch" DstPort 2 } Line { SrcBlock "Fan Max Cool" SrcPort 1 DstBlock "Switch" DstPort 1 } Line { SrcBlock "In1" SrcPort 1 DstBlock "Rate Transition" DstPort 1 } Line { SrcBlock "Switch" SrcPort 1 Points [75, 0] DstBlock "Divide1" DstPort 1 } Line { SrcBlock "In2" SrcPort 1 DstBlock "Rate Transition1" DstPort 1 } Line { SrcBlock "Rate Transition" SrcPort 1 DstBlock "Relational\nOperator" DstPort 1 } Line { SrcBlock "Rate Transition1" SrcPort 1 DstBlock "Switch" DstPort 3 } Line { SrcBlock "Fan speed max" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Fan speed min" SrcPort 1 Points [120, 0] Branch { DstBlock "Sum" DstPort 2 } Branch { Points [175, 0] DstBlock "Divide" DstPort 2 } } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 Points [5, 0] Branch { DstBlock "Divide" DstPort 1 } Branch { Points [0, -45] DstBlock "Divide1" DstPort 2 } } Line { SrcBlock "Divide1" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Divide" SrcPort 1 Points [150, 0] DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Out1" DstPort 1 } } } Block { BlockType Reference Name "Scope (xPC) " Ports [1] Position [1980, 155, 2070, 215] ForegroundColor "red" SourceBlock "xpclib/Misc./Scope (xPC) " SourceType "xpcscopeblock" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" scopeno "1" scopetype "Target" autostart on viewmode "Graphical rolling" formatstr "'%15.6f'" grid on ylimits "[0,0]" nosamples "250*60" noprepostsamples "0" interleave "1" triggermode "FreeRun" triggersignal "1" triggerlevel "0.0" triggerslope "Either" triggerscope "1" triggersample "0" filename "data.dat" mode "Lazy" writesize "512" autorestart off } Block { BlockType Reference Name "Scope (xPC) 1" Ports [1] Position [2200, 850, 2290, 910] ForegroundColor "red" SourceBlock "xpclib/Misc./Scope (xPC) " SourceType "xpcscopeblock" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" scopeno "2" scopetype "Target" autostart on viewmode "Numerical" formatstr "'%15.6f'" grid on ylimits "[0,0]" nosamples "25" noprepostsamples "0" interleave "1" triggermode "FreeRun" triggersignal "1" triggerlevel "0.0" triggerslope "Either" triggerscope "1" triggersample "0" filename "Oldscope.dat" mode "Lazy" writesize "512" autorestart off } Block { BlockType Reference Name "Scope (xPC) 2" Ports [1] Position [2205, 705, 2295, 765] ForegroundColor "red" SourceBlock "xpclib/Misc./Scope (xPC) " SourceType "xpcscopeblock" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" scopeno "6" scopetype "File" autostart on viewmode "Graphical rolling" formatstr "'%15.6f'" grid on ylimits "[0,0]" nosamples "10*60*60*24" noprepostsamples "0" interleave "1" triggermode "FreeRun" triggersignal "1" triggerlevel "0.0" triggerslope "Either" triggerscope "1" triggersample "0" filename "step1.dat" mode "Commit" writesize "512" autorestart off } Block { BlockType SubSystem Name "Subsystem" Ports [5, 2] Position [700, 588, 900, 732] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "Subsystem" Location [522, 247, 1422, 745] Open off ModelBrowserVisibility on 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 "retur water temperature (disturbance)" Position [120, 68, 150, 82] NamePlacement "alternate" IconDisplay "Port number" } Block { BlockType Inport Name "Stoker in" Position [25, 118, 55, 132] NamePlacement "alternate" Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "Blower in" Position [25, 163, 55, 177] Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "Water temp in" Position [810, 148, 840, 162] Orientation "left" NamePlacement "alternate" Port "4" IconDisplay "Port number" } Block { BlockType Inport Name "oxygen level" Position [810, 168, 840, 182] Orientation "left" Port "5" IconDisplay "Port number" } Block { BlockType Gain Name "A" Position [410, 174, 450, 216] Orientation "left" Gain "A_wood" Multiplication "Matrix(K*u)" 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 "A'" Position [120, 299, 160, 341] Gain "A_wood'" Multiplication "Matrix(u*K)" 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 "A1" Position [65, 299, 105, 341] Gain "A_wood" Multiplication "Matrix(K*u)" 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 "A2" Position [85, 104, 125, 146] NamePlacement "alternate" Gain "beta_motor_wood" Multiplication "Matrix(K*u)" 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 "A3" Position [90, 149, 130, 191] Gain "beta_blower" Multiplication "Matrix(K*u)" 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 "B1" Position [305, 114, 345, 156] Gain "B_new_wood" Multiplication "Matrix(K*u)" 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 "C" Position [565, 114, 605, 156] NamePlacement "alternate" ShowName off Gain "C_wood" Multiplication "Matrix(K*u)" 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 "C'" Position [235, 299, 275, 341] Gain "C_wood'" Multiplication "Matrix(u*K)" 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 "C1" Position [315, 299, 355, 341] Gain "C_wood" Multiplication "Matrix(K*u)" 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 "C2" Position [270, 349, 310, 391] Gain "C_wood" Multiplication "Matrix(K*u)" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off Port { PortNumber 1 Name "CP" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Constant Name "Constant1" Position [218, 185, 312, 230] Orientation "up" ShowName off Value "u_bar_wood" OutDataType "sfix(16)" OutScaling "2^0" SampleTime "TsPWM" } Block { BlockType Constant Name "Constant2" Position [740, 213, 805, 237] Orientation "left" NamePlacement "alternate" ShowName off Value "y_bar_wood" OutDataType "sfix(16)" OutScaling "2^0" SampleTime "TsPWM" } Block { BlockType Constant Name "Constant6" Position [246, 25, 284, 65] Orientation "down" NamePlacement "alternate" ShowName off Value "d_bar_wood" OutDataType "sfix(16)" OutScaling "2^0" SampleTime "TsPWM" } Block { BlockType Product Name "Divide" Ports [2, 1] Position [460, 259, 490, 341] Inputs "*/" Multiplication "Matrix(*)" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" RndMeth "Floor" SaturateOnIntegerOverflow off Port { PortNumber 1 Name "K" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Integrator Name "Integrator1" Ports [1, 1] Position [425, 120, 455, 150] NamePlacement "alternate" ShowName off } Block { BlockType Mux Name "Mux1" Ports [2, 1] Position [155, 114, 160, 156] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Mux Name "Mux2" Ports [2, 1] Position [775, 144, 780, 186] Orientation "left" NamePlacement "alternate" ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Product Name "Product1" Ports [2, 1] Position [275, 402, 305, 473] Orientation "left" NamePlacement "alternate" ShowName off Multiplication "Matrix(*)" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product4" Ports [2, 1] Position [547, 205, 578, 235] Orientation "up" Multiplication "Matrix(*)" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Constant Name "Q" Position [170, 260, 200, 290] Orientation "down" NamePlacement "alternate" ShowName off Value "Q_wood" OutDataType "sfix(16)" OutScaling "2^0" SampleTime "TsPWM" } Block { BlockType Gain Name "Q1" Position [305, 69, 345, 111] Gain "E_wood" Multiplication "Matrix(K*u)" 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 Constant Name "R" Position [360, 349, 400, 391] Value "R_wood" OutDataType "sfix(16)" OutScaling "2^0" SampleTime "TsPWM" } Block { BlockType Sum Name "Sum" Ports [3, 1] Position [360, 125, 380, 145] ShowName off IconShape "round" Inputs "+++" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [610, 155, 630, 175] Orientation "down" ShowName off IconShape "round" Inputs "|-+" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off Port { PortNumber 1 Name "r" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Sum Name "Sum2" Ports [2, 1] Position [515, 125, 535, 145] ShowName off IconShape "round" Inputs "|++" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum3" Ports [2, 1] Position [175, 310, 195, 330] ShowName off IconShape "round" Inputs "++|" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum4" Ports [2, 1] Position [395, 310, 415, 330] ShowName off IconShape "round" Inputs "|++" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off Port { PortNumber 1 Name "S" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Sum Name "Sum5" Ports [2, 1] Position [200, 430, 220, 450] Orientation "left" ShowName off IconShape "round" Inputs "+-|" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum6" Ports [2, 1] Position [255, 125, 275, 145] ShowName off IconShape "round" Inputs "|+-" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off Port { PortNumber 1 Name "u" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Sum Name "Sum7" Ports [2, 1] Position [725, 155, 745, 175] Orientation "left" NamePlacement "alternate" ShowName off IconShape "round" Inputs "|+-" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum8" Ports [2, 1] Position [255, 80, 275, 100] ShowName off IconShape "round" Inputs "-+|" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType UnitDelay Name "Unit Delay1" Position [28, 360, 62, 395] Orientation "up" NamePlacement "alternate" ShowName off X0 "P0_wood" SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay3" Position [575, 258, 605, 292] Orientation "left" ShowName off SampleTime "-1" } Block { BlockType Outport Name "model error wood pills" Position [820, 260, 835, 290] NamePlacement "alternate" IconDisplay "Port number" } Block { BlockType Outport Name "S wood pills" Position [810, 368, 840, 382] Port "2" IconDisplay "Port number" } Line { Name "CP" Labels [0, 1] SrcBlock "C2" SrcPort 1 Points [25, 0; 0, 85] DstBlock "Product1" DstPort 2 } Line { SrcBlock "Sum5" SrcPort 1 Points [-150, 0] DstBlock "Unit Delay1" DstPort 1 } Line { SrcBlock "Unit Delay1" SrcPort 1 Points [0, -35] DstBlock "A1" DstPort 1 } Line { Name "S" Labels [0, 0] SrcBlock "Sum4" SrcPort 1 Points [15, 0] Branch { DstBlock "Divide" DstPort 2 } Branch { Points [0, 55] DstBlock "S wood pills" DstPort 1 } } Line { SrcBlock "R" SrcPort 1 DstBlock "Sum4" DstPort 2 } Line { SrcBlock "C1" SrcPort 1 DstBlock "Sum4" DstPort 1 } Line { Name "K" Labels [0, 0] SrcBlock "Divide" SrcPort 1 Points [20, 0] Branch { Labels [1, 0] Points [0, 120] DstBlock "Product1" DstPort 1 } Branch { Points [40, 0] DstBlock "Product4" DstPort 1 } } Line { SrcBlock "C'" SrcPort 1 Points [10, 0] Branch { Points [0, -40] DstBlock "Divide" DstPort 1 } Branch { DstBlock "C1" DstPort 1 } } Line { SrcBlock "Sum3" SrcPort 1 Points [10, 0] Branch { DstBlock "C'" DstPort 1 } Branch { Points [0, 50] Branch { DstBlock "C2" DstPort 1 } Branch { DstBlock "Sum5" DstPort 1 } } } Line { SrcBlock "Q" SrcPort 1 DstBlock "Sum3" DstPort 1 } Line { SrcBlock "A'" SrcPort 1 DstBlock "Sum3" DstPort 2 } Line { SrcBlock "A1" SrcPort 1 DstBlock "A'" DstPort 1 } Line { SrcBlock "B1" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Integrator1" DstPort 1 } Line { SrcBlock "Integrator1" SrcPort 1 Points [30, 0] Branch { Points [0, 60] DstBlock "A" DstPort 1 } Branch { DstBlock "Sum2" DstPort 1 } } Line { SrcBlock "Product1" SrcPort 1 DstBlock "Sum5" DstPort 2 } Line { SrcBlock "Constant2" SrcPort 1 DstBlock "Sum7" DstPort 2 } Line { SrcBlock "C" SrcPort 1 Points [10, 0] DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Sum7" SrcPort 1 DstBlock "Sum1" DstPort 2 } Line { Name "r" Labels [1, 0] SrcBlock "Sum1" SrcPort 1 Points [0, 95] Branch { DstBlock "Unit Delay3" DstPort 1 } Branch { DstBlock "model error wood pills" DstPort 1 } } Line { SrcBlock "Mux1" SrcPort 1 DstBlock "Sum6" DstPort 1 } Line { SrcBlock "Constant1" SrcPort 1 DstBlock "Sum6" DstPort 2 } Line { Name "u" Labels [0, 0] SrcBlock "Sum6" SrcPort 1 DstBlock "B1" DstPort 1 } Line { SrcBlock "retur water temperature (disturbance)" SrcPort 1 Points [80, 0; 0, 15] DstBlock "Sum8" DstPort 2 } Line { SrcBlock "Sum8" SrcPort 1 DstBlock "Q1" DstPort 1 } Line { SrcBlock "Constant6" SrcPort 1 DstBlock "Sum8" DstPort 1 } Line { SrcBlock "Q1" SrcPort 1 Points [20, 0] DstBlock "Sum" DstPort 1 } Line { SrcBlock "A" SrcPort 1 Points [-35, 0] DstBlock "Sum" DstPort 3 } Line { SrcBlock "Sum2" SrcPort 1 DstBlock "C" DstPort 1 } Line { SrcBlock "Product4" SrcPort 1 Points [0, -40] DstBlock "Sum2" DstPort 2 } Line { SrcBlock "Unit Delay3" SrcPort 1 DstBlock "Product4" DstPort 2 } Line { SrcBlock "Mux2" SrcPort 1 DstBlock "Sum7" DstPort 1 } Line { SrcBlock "Water temp in" SrcPort 1 DstBlock "Mux2" DstPort 1 } Line { SrcBlock "oxygen level" SrcPort 1 DstBlock "Mux2" DstPort 2 } Line { SrcBlock "Stoker in" SrcPort 1 DstBlock "A2" DstPort 1 } Line { SrcBlock "A2" SrcPort 1 DstBlock "Mux1" DstPort 1 } Line { SrcBlock "Blower in" SrcPort 1 DstBlock "A3" DstPort 1 } Line { SrcBlock "A3" SrcPort 1 Points [0, -25] DstBlock "Mux1" DstPort 2 } Annotation { Name "CPC'" Position [369, 308] } Annotation { Name "PC'" Position [287, 333] } Annotation { Name "P" Position [209, 307] } } } Block { BlockType SubSystem Name "Subsystem1" Ports [5, 2] Position [695, 753, 895, 897] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "Subsystem1" Location [427, 554, 1327, 1052] Open off ModelBrowserVisibility on 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 "retur water temperature (disturbance)" Position [120, 68, 150, 82] NamePlacement "alternate" IconDisplay "Port number" } Block { BlockType Inport Name "Stoker in" Position [25, 118, 55, 132] NamePlacement "alternate" Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "Blower in" Position [25, 163, 55, 177] Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "Water temp in" Position [810, 148, 840, 162] Orientation "left" NamePlacement "alternate" Port "4" IconDisplay "Port number" } Block { BlockType Inport Name "oxygen level" Position [810, 168, 840, 182] Orientation "left" Port "5" IconDisplay "Port number" } Block { BlockType Gain Name "A" Position [410, 174, 450, 216] Orientation "left" Gain "A_wheat" Multiplication "Matrix(K*u)" 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 "A'" Position [120, 299, 160, 341] Gain "A_wood'" Multiplication "Matrix(u*K)" 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 "A1" Position [65, 299, 105, 341] Gain "A_wood" Multiplication "Matrix(K*u)" 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 "A2" Position [85, 104, 125, 146] NamePlacement "alternate" Gain "beta_motor_wheat" Multiplication "Matrix(K*u)" 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 "A3" Position [85, 149, 125, 191] Gain "beta_blower" Multiplication "Matrix(K*u)" 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 "B1" Position [305, 114, 345, 156] Gain "B_new_wheat" Multiplication "Matrix(K*u)" 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 "C" Position [565, 114, 605, 156] NamePlacement "alternate" ShowName off Gain "C_wheat" Multiplication "Matrix(K*u)" 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 "C'" Position [235, 299, 275, 341] Gain "C_wood'" Multiplication "Matrix(u*K)" 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 "C1" Position [315, 299, 355, 341] Gain "C_wood" Multiplication "Matrix(K*u)" 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 "C2" Position [270, 349, 310, 391] Gain "C_wood" Multiplication "Matrix(K*u)" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off Port { PortNumber 1 Name "CP" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Constant Name "Constant1" Position [218, 185, 312, 230] Orientation "up" ShowName off Value "u_bar_wheat" OutDataType "sfix(16)" OutScaling "2^0" SampleTime "TsPWM" } Block { BlockType Constant Name "Constant2" Position [740, 213, 805, 237] Orientation "left" NamePlacement "alternate" ShowName off Value "y_bar_wood" OutDataType "sfix(16)" OutScaling "2^0" SampleTime "TsPWM" } Block { BlockType Constant Name "Constant6" Position [246, 25, 284, 65] Orientation "down" NamePlacement "alternate" ShowName off Value "d_bar_wood" OutDataType "sfix(16)" OutScaling "2^0" SampleTime "TsPWM" } Block { BlockType Product Name "Divide" Ports [2, 1] Position [460, 259, 490, 341] Inputs "*/" Multiplication "Matrix(*)" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" RndMeth "Floor" SaturateOnIntegerOverflow off Port { PortNumber 1 Name "K" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Integrator Name "Integrator1" Ports [1, 1] Position [425, 120, 455, 150] NamePlacement "alternate" ShowName off } Block { BlockType Mux Name "Mux1" Ports [2, 1] Position [155, 114, 160, 156] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Mux Name "Mux2" Ports [2, 1] Position [775, 144, 780, 186] Orientation "left" NamePlacement "alternate" ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Product Name "Product1" Ports [2, 1] Position [275, 402, 305, 473] Orientation "left" NamePlacement "alternate" ShowName off Multiplication "Matrix(*)" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product4" Ports [2, 1] Position [547, 205, 578, 235] Orientation "up" Multiplication "Matrix(*)" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Constant Name "Q" Position [170, 260, 200, 290] Orientation "down" NamePlacement "alternate" ShowName off Value "Q_wood" OutDataType "sfix(16)" OutScaling "2^0" SampleTime "TsPWM" } Block { BlockType Gain Name "Q1" Position [305, 69, 345, 111] Gain "E_wheat" Multiplication "Matrix(K*u)" 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 Constant Name "R" Position [360, 349, 400, 391] Value "R_wood" OutDataType "sfix(16)" OutScaling "2^0" SampleTime "TsPWM" } Block { BlockType Sum Name "Sum" Ports [3, 1] Position [360, 125, 380, 145] ShowName off IconShape "round" Inputs "+++" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [610, 155, 630, 175] Orientation "down" ShowName off IconShape "round" Inputs "|-+" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off Port { PortNumber 1 Name "r" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Sum Name "Sum2" Ports [2, 1] Position [515, 125, 535, 145] ShowName off IconShape "round" Inputs "|++" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum3" Ports [2, 1] Position [175, 310, 195, 330] ShowName off IconShape "round" Inputs "++|" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum4" Ports [2, 1] Position [395, 310, 415, 330] ShowName off IconShape "round" Inputs "|++" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off Port { PortNumber 1 Name "S" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Sum Name "Sum5" Ports [2, 1] Position [200, 430, 220, 450] Orientation "left" ShowName off IconShape "round" Inputs "+-|" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum6" Ports [2, 1] Position [255, 125, 275, 145] ShowName off IconShape "round" Inputs "|+-" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off Port { PortNumber 1 Name "u" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Sum Name "Sum7" Ports [2, 1] Position [725, 155, 745, 175] Orientation "left" NamePlacement "alternate" ShowName off IconShape "round" Inputs "|+-" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum8" Ports [2, 1] Position [255, 80, 275, 100] ShowName off IconShape "round" Inputs "-+|" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType UnitDelay Name "Unit Delay1" Position [28, 360, 62, 395] Orientation "up" NamePlacement "alternate" ShowName off X0 "P0_wood" SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay3" Position [575, 258, 605, 292] Orientation "left" ShowName off SampleTime "-1" } Block { BlockType Outport Name "model error wheat" Position [820, 260, 835, 290] NamePlacement "alternate" IconDisplay "Port number" } Block { BlockType Outport Name "S wheat" Position [810, 368, 840, 382] Port "2" IconDisplay "Port number" } Line { Name "CP" Labels [0, 1] SrcBlock "C2" SrcPort 1 Points [25, 0; 0, 85] DstBlock "Product1" DstPort 2 } Line { SrcBlock "Sum5" SrcPort 1 Points [-150, 0] DstBlock "Unit Delay1" DstPort 1 } Line { SrcBlock "Unit Delay1" SrcPort 1 Points [0, -35] DstBlock "A1" DstPort 1 } Line { Name "S" Labels [0, 0] SrcBlock "Sum4" SrcPort 1 Points [15, 0] Branch { DstBlock "Divide" DstPort 2 } Branch { Points [0, 55] DstBlock "S wheat" DstPort 1 } } Line { SrcBlock "R" SrcPort 1 DstBlock "Sum4" DstPort 2 } Line { SrcBlock "C1" SrcPort 1 DstBlock "Sum4" DstPort 1 } Line { Name "K" Labels [0, 0] SrcBlock "Divide" SrcPort 1 Points [20, 0] Branch { Labels [1, 0] Points [0, 120] DstBlock "Product1" DstPort 1 } Branch { Points [40, 0] DstBlock "Product4" DstPort 1 } } Line { SrcBlock "C'" SrcPort 1 Points [10, 0] Branch { Points [0, -40] DstBlock "Divide" DstPort 1 } Branch { DstBlock "C1" DstPort 1 } } Line { SrcBlock "Sum3" SrcPort 1 Points [10, 0] Branch { DstBlock "C'" DstPort 1 } Branch { Points [0, 50] Branch { DstBlock "C2" DstPort 1 } Branch { DstBlock "Sum5" DstPort 1 } } } Line { SrcBlock "Q" SrcPort 1 DstBlock "Sum3" DstPort 1 } Line { SrcBlock "A'" SrcPort 1 DstBlock "Sum3" DstPort 2 } Line { SrcBlock "A1" SrcPort 1 DstBlock "A'" DstPort 1 } Line { SrcBlock "B1" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Integrator1" DstPort 1 } Line { SrcBlock "Integrator1" SrcPort 1 Points [30, 0] Branch { Points [0, 60] DstBlock "A" DstPort 1 } Branch { DstBlock "Sum2" DstPort 1 } } Line { SrcBlock "Product1" SrcPort 1 DstBlock "Sum5" DstPort 2 } Line { SrcBlock "Constant2" SrcPort 1 DstBlock "Sum7" DstPort 2 } Line { SrcBlock "C" SrcPort 1 Points [10, 0] DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Sum7" SrcPort 1 DstBlock "Sum1" DstPort 2 } Line { Name "r" Labels [1, 0] SrcBlock "Sum1" SrcPort 1 Points [0, 95] Branch { DstBlock "Unit Delay3" DstPort 1 } Branch { DstBlock "model error wheat" DstPort 1 } } Line { SrcBlock "Mux1" SrcPort 1 DstBlock "Sum6" DstPort 1 } Line { SrcBlock "Constant1" SrcPort 1 DstBlock "Sum6" DstPort 2 } Line { Name "u" Labels [0, 0] SrcBlock "Sum6" SrcPort 1 DstBlock "B1" DstPort 1 } Line { SrcBlock "retur water temperature (disturbance)" SrcPort 1 Points [80, 0; 0, 15] DstBlock "Sum8" DstPort 2 } Line { SrcBlock "Sum8" SrcPort 1 DstBlock "Q1" DstPort 1 } Line { SrcBlock "Constant6" SrcPort 1 DstBlock "Sum8" DstPort 1 } Line { SrcBlock "Q1" SrcPort 1 Points [20, 0] DstBlock "Sum" DstPort 1 } Line { SrcBlock "A" SrcPort 1 Points [-35, 0] DstBlock "Sum" DstPort 3 } Line { SrcBlock "Sum2" SrcPort 1 DstBlock "C" DstPort 1 } Line { SrcBlock "Product4" SrcPort 1 Points [0, -40] DstBlock "Sum2" DstPort 2 } Line { SrcBlock "Unit Delay3" SrcPort 1 DstBlock "Product4" DstPort 2 } Line { SrcBlock "Mux2" SrcPort 1 DstBlock "Sum7" DstPort 1 } Line { SrcBlock "Water temp in" SrcPort 1 DstBlock "Mux2" DstPort 1 } Line { SrcBlock "oxygen level" SrcPort 1 DstBlock "Mux2" DstPort 2 } Line { SrcBlock "Stoker in" SrcPort 1 DstBlock "A2" DstPort 1 } Line { SrcBlock "A2" SrcPort 1 DstBlock "Mux1" DstPort 1 } Line { SrcBlock "Blower in" SrcPort 1 DstBlock "A3" DstPort 1 } Line { SrcBlock "A3" SrcPort 1 Points [0, -25] DstBlock "Mux1" DstPort 2 } Annotation { Name "CPC'" Position [369, 308] } Annotation { Name "PC'" Position [287, 333] } Annotation { Name "P" Position [209, 307] } } } Block { BlockType ZeroOrderHold Name "Zero-Order\nHold" Position [780, 460, 815, 490] } Block { BlockType ZeroOrderHold Name "Zero-Order\nHold1" Position [995, 420, 1025, 455] Orientation "up" } Block { BlockType SubSystem Name "calculate possibility output" Ports [4, 2] Position [940, 603, 1135, 877] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "calculate possibility output" Location [196, 285, 1462, 929] Open off ModelBrowserVisibility on 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 "Error wood pills model" Position [340, 25, 355, 55] IconDisplay "Port number" } Block { BlockType Inport Name "S wood pills" Position [30, 123, 60, 137] Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "error wheat model" Position [220, 438, 250, 452] Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "S wheat" Position [20, 538, 50, 552] Port "4" IconDisplay "Port number" } Block { BlockType Constant Name "Constant" Position [180, 588, 260, 622] Value "2*pi^(2/2)" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant10" Position [160, 188, 240, 222] Value "2*pi^(2/2)" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant11" Position [325, 94, 360, 126] OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant13" Position [610, 86, 635, 114] Value "-0.5" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant14" Position [500, 199, 535, 231] Value "0.5" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant15" Position [475, 329, 510, 361] Value "0.5" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant7" Position [325, 494, 360, 526] OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant9" Position [635, 551, 660, 579] Orientation "left" NamePlacement "alternate" Value "-0.5" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Product Name "Divide2" Ports [2, 1] Position [400, 532, 430, 563] Inputs "*/" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Divide3" Ports [1, 1] Position [215, 472, 245, 508] Inputs "/" Multiplication "Matrix(*)" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Divide4" Ports [2, 1] Position [410, 117, 440, 148] Inputs "*/" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Divide5" Ports [1, 1] Position [250, 62, 280, 98] Inputs "/" Multiplication "Matrix(*)" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Divide6" Ports [2, 1] Position [750, 202, 780, 233] Inputs "*/" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Divide7" Ports [2, 1] Position [740, 307, 770, 338] Inputs "/*" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType Math Name "Math\nFunction" Ports [1, 1] Position [200, 530, 230, 560] Operator "sqrt" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Math Name "Math\nFunction1" Ports [1, 1] Position [685, 485, 715, 515] OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Math Name "Math\nFunction2" Ports [1, 1] Position [210, 115, 240, 145] Operator "sqrt" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Math Name "Math\nFunction3" Ports [1, 1] Position [715, 75, 745, 105] OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Product Name "Product10" Ports [2, 1] Position [660, 72, 690, 103] CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product11" Ports [2, 1] Position [505, 127, 535, 158] CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product12" Ports [2, 1] Position [595, 192, 625, 223] CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product13" Ports [2, 1] Position [550, 337, 580, 368] CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product14" Ports [3, 1] Position [555, 446, 590, 534] ShowName off Inputs "3" Multiplication "Matrix(*)" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product5" Ports [2, 1] Position [290, 537, 320, 568] CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product6" Ports [2, 1] Position [630, 482, 660, 513] CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product7" Ports [2, 1] Position [490, 542, 520, 573] CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product8" Ports [3, 1] Position [560, 44, 590, 116] ShowName off Inputs "3" Multiplication "Matrix(*)" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product9" Ports [2, 1] Position [270, 122, 300, 153] CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum18" Ports [2, 1] Position [675, 252, 710, 283] ShowName off CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Reference Name "Transpose" Ports [1, 1] Position [425, 440, 480, 480] SourceBlock "dspmtrx3/Transpose" SourceType "Transpose" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" Hermitian off overflowFlag off } Block { BlockType Reference Name "Transpose1" Ports [1, 1] Position [435, 35, 490, 75] SourceBlock "dspmtrx3/Transpose" SourceType "Transpose" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" Hermitian off overflowFlag off } Block { BlockType SubSystem Name "determinant" Ports [1, 1] Position [100, 526, 155, 564] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "determinant" Location [928, 349, 1377, 560] Open off ModelBrowserVisibility on 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 "2x2" Position [25, 43, 55, 57] IconDisplay "Port number" } Block { BlockType Gain Name "A4" Position [120, 29, 160, 71] Gain "[1;0]" Multiplication "Matrix(u*K)" 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 "A5" Position [120, 94, 160, 136] Gain "[0;1]" Multiplication "Matrix(u*K)" 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 Sum Name "Add" Ports [2, 1] Position [335, 62, 365, 93] Inputs "+-" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" SaturateOnIntegerOverflow off } Block { BlockType Demux Name "Demux5" Ports [1, 2] Position [185, 31, 190, 69] BackgroundColor "black" ShowName off Outputs "2" DisplayOption "bar" } Block { BlockType Demux Name "Demux6" Ports [1, 2] Position [185, 96, 190, 134] BackgroundColor "black" ShowName off Outputs "2" DisplayOption "bar" } Block { BlockType Product Name "Product4" Ports [2, 1] Position [270, 32, 300, 63] CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product5" Ports [2, 1] Position [270, 82, 300, 113] CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Outport Name "DET(A)" Position [390, 73, 420, 87] IconDisplay "Port number" } Line { SrcBlock "A4" SrcPort 1 DstBlock "Demux5" DstPort 1 } Line { SrcBlock "A5" SrcPort 1 DstBlock "Demux6" DstPort 1 } Line { SrcBlock "Demux5" SrcPort 1 DstBlock "Product4" DstPort 1 } Line { SrcBlock "Demux6" SrcPort 2 Points [40, 0; 0, -70] DstBlock "Product4" DstPort 2 } Line { SrcBlock "Demux5" SrcPort 2 Points [25, 0; 0, 30] DstBlock "Product5" DstPort 1 } Line { SrcBlock "Demux6" SrcPort 1 DstBlock "Product5" DstPort 2 } Line { SrcBlock "Product4" SrcPort 1 Points [5, 0; 0, 20] DstBlock "Add" DstPort 1 } Line { SrcBlock "Product5" SrcPort 1 Points [5, 0; 0, -15] DstBlock "Add" DstPort 2 } Line { SrcBlock "2x2" SrcPort 1 Points [15, 0] Branch { DstBlock "A4" DstPort 1 } Branch { Points [0, 65] DstBlock "A5" DstPort 1 } } Line { SrcBlock "Add" SrcPort 1 DstBlock "DET(A)" DstPort 1 } } } Block { BlockType SubSystem Name "determinant1" Ports [1, 1] Position [100, 111, 155, 149] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "determinant1" Location [928, 349, 1377, 560] Open off ModelBrowserVisibility on 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 "2x2" Position [25, 43, 55, 57] IconDisplay "Port number" } Block { BlockType Gain Name "A4" Position [120, 29, 160, 71] Gain "[1;0]" Multiplication "Matrix(u*K)" 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 "A5" Position [120, 94, 160, 136] Gain "[0;1]" Multiplication "Matrix(u*K)" 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 Sum Name "Add" Ports [2, 1] Position [335, 62, 365, 93] Inputs "+-" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" SaturateOnIntegerOverflow off } Block { BlockType Demux Name "Demux5" Ports [1, 2] Position [185, 31, 190, 69] BackgroundColor "black" ShowName off Outputs "2" DisplayOption "bar" } Block { BlockType Demux Name "Demux6" Ports [1, 2] Position [185, 96, 190, 134] BackgroundColor "black" ShowName off Outputs "2" DisplayOption "bar" } Block { BlockType Product Name "Product4" Ports [2, 1] Position [270, 32, 300, 63] CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product5" Ports [2, 1] Position [270, 82, 300, 113] CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Outport Name "DET(A)" Position [390, 73, 420, 87] IconDisplay "Port number" } Line { SrcBlock "A4" SrcPort 1 DstBlock "Demux5" DstPort 1 } Line { SrcBlock "A5" SrcPort 1 DstBlock "Demux6" DstPort 1 } Line { SrcBlock "Demux5" SrcPort 1 DstBlock "Product4" DstPort 1 } Line { SrcBlock "Demux6" SrcPort 2 Points [40, 0; 0, -70] DstBlock "Product4" DstPort 2 } Line { SrcBlock "Demux5" SrcPort 2 Points [25, 0; 0, 30] DstBlock "Product5" DstPort 1 } Line { SrcBlock "Demux6" SrcPort 1 DstBlock "Product5" DstPort 2 } Line { SrcBlock "Product4" SrcPort 1 Points [5, 0; 0, 20] DstBlock "Add" DstPort 1 } Line { SrcBlock "Product5" SrcPort 1 Points [5, 0; 0, -15] DstBlock "Add" DstPort 2 } Line { SrcBlock "2x2" SrcPort 1 Points [15, 0] Branch { DstBlock "A4" DstPort 1 } Branch { Points [0, 65] DstBlock "A5" DstPort 1 } } Line { SrcBlock "Add" SrcPort 1 DstBlock "DET(A)" DstPort 1 } } } Block { BlockType Outport Name "posibility wood pills" Position [835, 213, 865, 227] IconDisplay "Port number" } Block { BlockType Outport Name "possibility wheat" Position [835, 318, 865, 332] Port "2" IconDisplay "Port number" } Line { SrcBlock "determinant" SrcPort 1 DstBlock "Math\nFunction" DstPort 1 } Line { SrcBlock "Math\nFunction" SrcPort 1 DstBlock "Product5" DstPort 1 } Line { SrcBlock "Constant" SrcPort 1 Points [0, -45] DstBlock "Product5" DstPort 2 } Line { SrcBlock "Product5" SrcPort 1 DstBlock "Divide2" DstPort 2 } Line { SrcBlock "Constant7" SrcPort 1 Points [0, 30] DstBlock "Divide2" DstPort 1 } Line { SrcBlock "Transpose" SrcPort 1 DstBlock "Product14" DstPort 1 } Line { SrcBlock "Constant9" SrcPort 1 Points [-15, 0] DstBlock "Product6" DstPort 2 } Line { SrcBlock "Product6" SrcPort 1 DstBlock "Math\nFunction1" DstPort 1 } Line { SrcBlock "Divide2" SrcPort 1 DstBlock "Product7" DstPort 1 } Line { SrcBlock "Math\nFunction1" SrcPort 1 Points [10, 0; 0, 95; -255, 0] DstBlock "Product7" DstPort 2 } Line { SrcBlock "determinant1" SrcPort 1 DstBlock "Math\nFunction2" DstPort 1 } Line { SrcBlock "Math\nFunction2" SrcPort 1 DstBlock "Product9" DstPort 1 } Line { SrcBlock "Constant10" SrcPort 1 Points [0, -60] DstBlock "Product9" DstPort 2 } Line { SrcBlock "Product9" SrcPort 1 DstBlock "Divide4" DstPort 2 } Line { SrcBlock "Constant11" SrcPort 1 Points [15, 0; 0, 15] DstBlock "Divide4" DstPort 1 } Line { SrcBlock "Transpose1" SrcPort 1 DstBlock "Product8" DstPort 1 } Line { SrcBlock "Divide5" SrcPort 1 DstBlock "Product8" DstPort 2 } Line { SrcBlock "Product8" SrcPort 1 DstBlock "Product10" DstPort 1 } Line { SrcBlock "Constant13" SrcPort 1 Points [0, -5] DstBlock "Product10" DstPort 2 } Line { SrcBlock "Product10" SrcPort 1 DstBlock "Math\nFunction3" DstPort 1 } Line { SrcBlock "Divide4" SrcPort 1 DstBlock "Product11" DstPort 1 } Line { SrcBlock "Math\nFunction3" SrcPort 1 Points [10, 0; 0, 90; -270, 0] DstBlock "Product11" DstPort 2 } Line { SrcBlock "Product11" SrcPort 1 Points [40, 0] DstBlock "Product12" DstPort 1 } Line { SrcBlock "Constant14" SrcPort 1 DstBlock "Product12" DstPort 2 } Line { SrcBlock "Constant15" SrcPort 1 DstBlock "Product13" DstPort 1 } Line { SrcBlock "Product7" SrcPort 1 Points [0, -200] DstBlock "Product13" DstPort 2 } Line { SrcBlock "Product13" SrcPort 1 Points [5, 0; 0, -25; 70, 0] Branch { DstBlock "Divide7" DstPort 2 } Branch { DstBlock "Sum18" DstPort 2 } } Line { SrcBlock "Product12" SrcPort 1 Points [25, 0] Branch { DstBlock "Divide6" DstPort 1 } Branch { Points [0, 50] DstBlock "Sum18" DstPort 1 } } Line { SrcBlock "Sum18" SrcPort 1 Points [10, 0] Branch { Points [0, -45] DstBlock "Divide6" DstPort 2 } Branch { DstBlock "Divide7" DstPort 1 } } Line { SrcBlock "Product14" SrcPort 1 DstBlock "Product6" DstPort 1 } Line { SrcBlock "Divide3" SrcPort 1 DstBlock "Product14" DstPort 2 } Line { SrcBlock "Error wood pills model" SrcPort 1 Points [45, 0; 0, 15] Branch { Points [0, 50] DstBlock "Product8" DstPort 3 } Branch { DstBlock "Transpose1" DstPort 1 } } Line { SrcBlock "S wood pills" SrcPort 1 Points [10, 0] Branch { Points [0, -50] DstBlock "Divide5" DstPort 1 } Branch { DstBlock "determinant1" DstPort 1 } } Line { SrcBlock "error wheat model" SrcPort 1 Points [140, 0; 0, 15] Branch { Points [0, 60] DstBlock "Product14" DstPort 3 } Branch { DstBlock "Transpose" DstPort 1 } } Line { SrcBlock "S wheat" SrcPort 1 Points [10, 0] Branch { Points [0, -55] DstBlock "Divide3" DstPort 1 } Branch { DstBlock "determinant" DstPort 1 } } Line { SrcBlock "Divide6" SrcPort 1 DstBlock "posibility wood pills" DstPort 1 } Line { SrcBlock "Divide7" SrcPort 1 DstBlock "possibility wheat" DstPort 1 } } } Block { BlockType Constant Name "wheat %" Position [1175, 145, 1205, 175] Value "0" OutDataType "sfix(16)" OutScaling "2^0" SampleTime "TsPWM" } Block { BlockType Constant Name "wood %" Position [675, 185, 705, 215] Orientation "left" NamePlacement "alternate" OutDataType "sfix(16)" OutScaling "2^0" SampleTime "TsPWM" } Line { Name "Temp" Labels [0, 0] SrcBlock "IO card " SrcPort 1 Points [135, 0; 0, -20; 95, 0] Branch { Labels [1, 0] Points [0, 40] DstBlock "Mux" DstPort 1 } Branch { Points [0, 0] Branch { Labels [3, 0] Points [545, 0; 0, 915; -450, 0] DstBlock "Rate Transition3" DstPort 1 } Branch { Labels [3, 0] Points [0, -80; -560, 0; 0, 40] Branch { Points [0, 30] DstBlock "Safty" DstPort 1 } Branch { Points [-735, 0] DstBlock "Rate Transition12" DstPort 1 } } } } Line { SrcBlock "Manuel Stoker %" SrcPort 1 Points [-10, 0] DstBlock "Manual \nStoker %" DstPort 2 } Line { SrcBlock "Manual \nStoker %" SrcPort 1 Points [0, -105; 105, 0] Branch { Points [0, 0] Branch { Points [0, 450] DstBlock "Rate Transition" DstPort 1 } Branch { Points [45, 0] DstBlock "IO card " DstPort 3 } } Branch { Points [0, 90; -690, 0] DstBlock "Rate Transition4" DstPort 1 } } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Scope (xPC) " DstPort 1 } Line { SrcBlock "Mux1" SrcPort 1 Points [20, 0] Branch { Points [95, 0] DstBlock "Scope (xPC) 1" DstPort 1 } Branch { Points [0, -65] DstBlock "Rate Transition8" DstPort 1 } } Line { Name "Lambda" Labels [0, 0] SrcBlock "Rate Transition2" SrcPort 1 Points [165, 0] DstBlock "Mux1" DstPort 4 } Line { Name "Lamda" Labels [0, 0] SrcBlock "IO card " SrcPort 3 Points [10, 0] Branch { Labels [3, 0] Points [125, 0; 0, -30; 120, 0] Branch { Points [0, -15] DstBlock "Mux" DstPort 4 } Branch { Labels [1, 0] Points [0, 505; -75, 0; 0, 70] Branch { Labels [1, 0] Points [0, 55] DstBlock "Rate Transition2" DstPort 1 } Branch { Points [-255, 0; 0, 130] DstBlock "Rate Transition13" DstPort 1 } } } Branch { Points [0, -220; -890, 0] DstBlock "Rate Transition15" DstPort 1 } } Line { Name "Trøg" Labels [3, 0] SrcBlock "IO card " SrcPort 2 Points [0, -15; 195, 0; 0, 10; 115, 0] Branch { DstBlock "Mux" DstPort 3 } Branch { Labels [4, 0] Points [0, -55; 450, 0; 0, 880; -400, 0; 0, -200] DstBlock "Rate Transition6" DstPort 1 } } Line { SrcBlock "Fan Speed Hz" SrcPort 1 Points [20, 0] Branch { DstBlock "Safty" DstPort 2 } Branch { Points [0, 840] DstBlock "Rate Transition10" DstPort 1 } } Line { SrcBlock "Safty" SrcPort 1 Points [20, 0] DstBlock "IO card " DstPort 1 } Line { Name "Retur" Labels [3, 0] SrcBlock "IO card " SrcPort 4 Points [0, -25; 195, 0; 0, -10; 85, 0] Branch { Points [25, 0] Branch { Points [30, 0; 0, -95] DstBlock "Mux" DstPort 2 } Branch { Labels [1, 0] Points [0, 460; -45, 0] DstBlock "Rate Transition5" DstPort 1 } } Branch { Points [0, -260; -1260, 0] DstBlock "Rate Transition11" DstPort 1 } } Line { Name "Temp" Labels [0, 0] SrcBlock "Rate Transition3" SrcPort 1 Points [55, 0] DstBlock "Mux1" DstPort 1 } Line { Name "Retur" Labels [0, 0] SrcBlock "Rate Transition5" SrcPort 1 Points [120, 0] DstBlock "Mux1" DstPort 2 } Line { Name "Trøg" Labels [0, 0] SrcBlock "Rate Transition6" SrcPort 1 DstBlock "Mux1" DstPort 3 } Line { Name "Blow" Labels [0, 0] SrcBlock "Rate Transition1" SrcPort 1 Points [240, 0] DstBlock "Mux1" DstPort 5 } Line { Name "Stok" Labels [0, 0] SrcBlock "Rate Transition" SrcPort 1 Points [305, 0] DstBlock "Mux1" DstPort 6 } Line { Labels [0, 0] SrcBlock "Rate Transition8" SrcPort 1 Points [35, 0] DstBlock "Scope (xPC) 2" DstPort 1 } Line { SrcBlock "IO card " SrcPort 5 Points [745, 0; 0, 705; -560, 0; 0, -120] DstBlock "Rate Transition9" DstPort 1 } Line { SrcBlock "Manuel blower %" SrcPort 1 Points [0, -10] DstBlock "Manual\nSwitch1" DstPort 2 } Line { SrcBlock "Manual\nSwitch1" SrcPort 1 Points [0, 15; 20, 0] Branch { Points [0, 25] Branch { DstBlock "IO card " DstPort 2 } Branch { Points [-5, 0; 0, 565] DstBlock "Rate Transition1" DstPort 1 } } Branch { Points [-10, 0; 0, 745] DstBlock "Rate Transition7" DstPort 1 } } Line { SrcBlock "Subsystem" SrcPort 1 Points [20, 0] DstBlock "calculate possibility output" DstPort 1 } Line { SrcBlock "Subsystem" SrcPort 2 Points [20, 0] DstBlock "calculate possibility output" DstPort 2 } Line { SrcBlock "Subsystem1" SrcPort 2 Points [35, 0; 0, -15] DstBlock "calculate possibility output" DstPort 4 } Line { SrcBlock "calculate possibility output" SrcPort 1 Points [10, 0] Branch { Points [0, 55] DstBlock "Mux3" DstPort 1 } Branch { Points [85, 0; 0, 285; -765, 0; 0, -700] DstBlock "Manual \nStoker %2" DstPort 2 } } Line { SrcBlock "calculate possibility output" SrcPort 2 Points [10, 0] Branch { Points [0, -60] DstBlock "Mux3" DstPort 2 } Branch { Points [145, 0; 0, -470; -80, 0] DstBlock "Manual \nStoker %1" DstPort 2 } } Line { Name "flow" Labels [0, 0] SrcBlock "Rate Transition9" SrcPort 1 Points [160, 0] DstBlock "Mux1" DstPort 7 } Line { Name "Fan" Labels [0, 0] SrcBlock "Rate Transition10" SrcPort 1 Points [285, 0] DstBlock "Mux1" DstPort 8 } Line { SrcBlock "Subsystem1" SrcPort 1 Points [10, 0; 0, -15] DstBlock "calculate possibility output" DstPort 3 } Line { SrcBlock "Rate Transition4" SrcPort 1 Points [-15, 0; 0, 60] Branch { DstBlock "Subsystem" DstPort 2 } Branch { Points [0, 165] DstBlock "Subsystem1" DstPort 2 } } Line { SrcBlock "Rate Transition7" SrcPort 1 Points [-145, 0; 0, -380] Branch { DstBlock "Subsystem" DstPort 3 } Branch { Points [0, 165] DstBlock "Subsystem1" DstPort 3 } } Line { SrcBlock "Rate Transition11" SrcPort 1 Points [65, 0; 0, 160] Branch { Points [0, 65] Branch { Points [-5, 0] DstBlock "Subsystem1" DstPort 1 } Branch { DstBlock "Subsystem" DstPort 1 } } Branch { Points [195, 0] Branch { DstBlock "Controller" DstPort 3 } Branch { Points [0, 45; 240, 0; 0, -70] DstBlock "Controller1" DstPort 3 } } } Line { SrcBlock "Rate Transition12" SrcPort 1 Points [0, 45] Branch { DstBlock "Rate Transition18" DstPort 1 } Branch { DstBlock "Rate Transition19" DstPort 1 } } Line { SrcBlock "Rate Transition13" SrcPort 1 Points [-445, 0] Branch { DstBlock "Subsystem1" DstPort 5 } Branch { Points [-175, 0; 0, -205] DstBlock "Subsystem" DstPort 5 } } Line { Name "possiblility" Labels [3, 0] SrcBlock "Rate Transition14" SrcPort 1 Points [85, 0; 0, 15; 355, 0] DstBlock "Mux1" DstPort 9 } Line { SrcBlock "Mux3" SrcPort 1 Points [355, 0] DstBlock "Rate Transition14" DstPort 1 } Line { SrcBlock "Controller" SrcPort 1 Points [20, 0] DstBlock "Zero-Order\nHold1" DstPort 1 } Line { SrcBlock "Input Saturation wood" SrcPort 1 DstBlock "Rate Transition17" DstPort 1 } Line { SrcBlock "Demux" SrcPort 1 Points [0, -40] DstBlock "Gain5" DstPort 1 } Line { SrcBlock "Demux" SrcPort 2 Points [-30, 0] DstBlock "Gain1" DstPort 1 } Line { SrcBlock "Product" SrcPort 1 Points [0, -20] DstBlock "Add" DstPort 1 } Line { SrcBlock "Ref wood" SrcPort 1 DstBlock "Controller" DstPort 2 } Line { SrcBlock "Mux2" SrcPort 1 Points [145, 0] DstBlock "Zero-Order\nHold" DstPort 1 } Line { SrcBlock "Add" SrcPort 1 Points [0, -70; 325, 0; 0, 210] DstBlock "Manual\nSwitch1" DstPort 1 } Line { SrcBlock "Input Saturation1" SrcPort 1 DstBlock "Rate Transition20" DstPort 1 } Line { SrcBlock "Demux1" SrcPort 1 DstBlock "Gain3" DstPort 1 } Line { SrcBlock "Demux1" SrcPort 2 Points [0, -5] DstBlock "Gain2" DstPort 1 } Line { SrcBlock "Ref corn" SrcPort 1 DstBlock "Controller1" DstPort 2 } Line { SrcBlock "Product3" SrcPort 1 Points [0, -35; -145, 0] DstBlock "Add1" DstPort 2 } Line { SrcBlock "Product2" SrcPort 1 Points [0, -45] DstBlock "Add" DstPort 2 } Line { SrcBlock "Product1" SrcPort 1 Points [0, -15; 135, 0] DstBlock "Add1" DstPort 1 } Line { SrcBlock "Add1" SrcPort 1 Points [45, 0; 0, 180; -35, 0; 0, 115; 60, 0; 0, 170] DstBlock "Manual \nStoker %" DstPort 1 } Line { SrcBlock "Controller1" SrcPort 1 Points [40, 0] DstBlock "Input Saturation1" DstPort 1 } Line { SrcBlock "wheat %" SrcPort 1 Points [30, 0; 0, 90] DstBlock "Manual \nStoker %1" DstPort 1 } Line { SrcBlock "Manual \nStoker %1" SrcPort 1 Points [-25, 0] Branch { DstBlock "Product3" DstPort 2 } Branch { Points [0, 15] DstBlock "Product2" DstPort 1 } } Line { SrcBlock "Manual \nStoker %2" SrcPort 1 Points [45, 0] Branch { DstBlock "Product" DstPort 1 } Branch { DstBlock "Product1" DstPort 2 } } Line { SrcBlock "wood %" SrcPort 1 Points [-20, 0; 0, 40] DstBlock "Manual \nStoker %2" DstPort 1 } Line { SrcBlock "Rate Transition15" SrcPort 1 Points [-20, 0] DstBlock "Rate Transition16" DstPort 1 } Line { SrcBlock "Gain1" SrcPort 1 DstBlock "Product" DstPort 2 } Line { SrcBlock "Gain5" SrcPort 1 DstBlock "Product1" DstPort 1 } Line { SrcBlock "Gain2" SrcPort 1 DstBlock "Product2" DstPort 2 } Line { SrcBlock "Gain3" SrcPort 1 DstBlock "Product3" DstPort 1 } Line { SrcBlock "Zero-Order\nHold" SrcPort 1 Points [0, 10; 50, 0] Branch { DstBlock "Controller" DstPort 1 } Branch { Points [0, -25] DstBlock "Controller1" DstPort 1 } } Line { SrcBlock "Zero-Order\nHold1" SrcPort 1 Points [0, -10] DstBlock "Input Saturation wood" DstPort 1 } Line { SrcBlock "Rate Transition17" SrcPort 1 DstBlock "Demux" DstPort 1 } Line { SrcBlock "Rate Transition16" SrcPort 1 Points [0, 20] DstBlock "Mux2" DstPort 2 } Line { SrcBlock "Rate Transition18" SrcPort 1 Points [15, 0] DstBlock "Mux2" DstPort 1 } Line { SrcBlock "Rate Transition19" SrcPort 1 Points [0, 135] Branch { Points [0, 165] DstBlock "Subsystem1" DstPort 4 } Branch { DstBlock "Subsystem" DstPort 4 } } Line { SrcBlock "Rate Transition20" SrcPort 1 DstBlock "Demux1" DstPort 1 } } } # Finite State Machines # # Stateflow Version 6.7 (R2007b) dated Aug 7 2007, 16:48:14 # # Stateflow { machine { id 1 name "final_controller_dis" created "31-Jul-2007 12:27:28" isLibrary 0 firstTarget 2 sfVersion 67014000.000001 } target { id 2 name "sfun" description "Default Simulink S-Function Target." machine 1 linkNode [1 0 3] } target { id 3 name "rtw" codeFlags " comments=1 statebitsets=1 databitsets=1 emitlogicalops=1 elseifdetection=1 constantfolding=1 redundantloadelimination=0 preservenames=0 preservenameswithparent=0 exportcharts=0" machine 1 linkNode [1 2 0] } }