Model { Name "TAL8" Version 6.1 MdlSubVersion 0 GraphicalInterface { NumRootInports 16 Inport { Name "In1" } Inport { Name "In2" } Inport { Name "In11" } Inport { Name "In12" } Inport { Name "In13" } Inport { Name "In14" } Inport { Name "In15" } Inport { Name "In16" } Inport { Name "In3" } Inport { Name "In4" } Inport { Name "In5" } Inport { Name "In6" } Inport { Name "In7" } Inport { Name "In8" } Inport { Name "In9" } Inport { Name "In10" } NumRootOutports 0 ParameterArgumentNames "" ComputedModelVersion "1.19" NumModelReferences 0 NumTestPointedSignals 0 } SavedCharacterEncoding "ibm-5348_P100-1997" 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 RecordCoverage off CovPath "/" CovSaveName "covdata" CovMetricSettings "dw" CovNameIncrementing off CovHtmlReporting on covSaveCumulativeToWorkspaceVar on CovSaveSingleToWorkspaceVar on CovCumulativeVarName "covCumulativeData" CovCumulativeReport off CovReportOnPause on ScopeRefreshTime 0.035000 OverrideScopeRefreshTime on DisableAllScopes off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" MinMaxOverflowArchiveMode "Overwrite" BlockNameDataTip off BlockParametersDataTip off BlockDescriptionStringDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off Created "Fri Jan 13 17:04:28 2006" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%<Auto>" LastModifiedBy "marco" ModifiedDateFormat "%<Auto>" LastModifiedDate "Wed Mar 08 12:08:20 2006" ModelVersionFormat "1.%<AutoIncrement:19>" ConfigurationManager "None" LinearizationMsg "none" Profile off ParamWorkspaceSource "MATLABWorkspace" AccelSystemTargetFile "accel.tlc" AccelTemplateMakefile "accel_default_tmf" AccelMakeCommand "make_rtw" TryForcingSFcnDF off ExtModeBatchMode off ExtModeEnableFloating on ExtModeTrigType "manual" ExtModeTrigMode "normal" ExtModeTrigPort "1" ExtModeTrigElement "any" ExtModeTrigDuration 1000 ExtModeTrigDurationFloating "auto" ExtModeTrigHoldOff 0 ExtModeTrigDelay 0 ExtModeTrigDirection "rising" ExtModeTrigLevel 0 ExtModeArchiveMode "off" ExtModeAutoIncOneShot off ExtModeIncDirWhenArm off ExtModeAddSuffixToVar off ExtModeWriteAllDataToWs off ExtModeArmWhenConnect on ExtModeSkipDownloadWhenConnect off ExtModeLogAll on ExtModeAutoUpdateStatusClock on BufferReuse on StrictBusMsg "None" ProdHWDeviceType "32-bit Generic" ShowModelReferenceBlockVersion off ShowModelReferenceBlockIO off Array { Type "Handle" Dimension 1 Simulink.ConfigSet { $ObjectID 1 Version "1.0.4" Array { Type "Handle" Dimension 7 Simulink.SolverCC { $ObjectID 2 Version "1.0.4" StartTime "0.0" StopTime "1000.0" AbsTol "auto" FixedStep "auto" InitialStep "auto" MaxNumMinSteps "-1" MaxOrder 5 ExtrapolationOrder 4 NumberNewtonIterations 1 MaxStep "auto" MinStep "auto" RelTol "1e-3" SolverMode "Auto" Solver "ode45" SolverName "ode45" ZeroCrossControl "UseLocalSettings" PositivePriorityOrder off AutoInsertRateTranBlk off SampleTimeConstraint "Unconstrained" RateTranMode "Deterministic" } Simulink.DataIOCC { $ObjectID 3 Version "1.0.4" Decimation "1" ExternalInput "[t2, u2]" FinalStateName "xFinal" InitialState "xInitial" LimitDataPoints on MaxDataPoints "1000" LoadExternalInput on LoadInitialState off SaveFinalState off SaveFormat "Array" SaveOutput on SaveState off SignalLogging on 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.0.4" BlockReduction on BooleanDataType on ConditionallyExecuteInputs on ConditionalExecOptimization "on_for_testing" InlineParams off InlineInvariantSignals off OptimizeBlockIOStorage on BufferReuse on EnforceIntegerDowncast on ExpressionFolding on FoldNonRolledExpr on LocalBlockOutputs on ParameterPooling on RollThreshold 5 SystemCodeInlineAuto off StateBitsets off DataBitsets off UseTempVars off ZeroExternalMemoryAtStartup on ZeroInternalMemoryAtStartup on InitFltsAndDblsToZero on NoFixptDivByZeroProtection off OptimizeModelRefInitCode off LifeSpan "inf" } Simulink.DebuggingCC { $ObjectID 5 Version "1.0.4" RTPrefix "error" ConsistencyChecking "none" ArrayBoundsChecking "none" AlgebraicLoopMsg "warning" ArtificialAlgebraicLoopMsg "warning" CheckSSInitialOutputMsg on CheckExecutionContextPreStartOutputMsg off CheckExecutionContextRuntimeOutputMsg off SignalResolutionControl "TryResolveAllWithWarning" BlockPriorityViolationMsg "warning" MinStepSizeMsg "warning" SolverPrmCheckMsg "warning" InheritedTsInSrcMsg "warning" DiscreteInheritContinuousMsg "warning" MultiTaskDSMMsg "warning" MultiTaskRateTransMsg "error" SingleTaskRateTransMsg "none" TasksWithSamePriorityMsg "warning" CheckMatrixSingularityMsg "none" IntegerOverflowMsg "warning" Int32ToFloatConvMsg "warning" ParameterDowncastMsg "error" ParameterOverflowMsg "error" ParameterPrecisionLossMsg "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" RootOutportRequireBusObject "warning" AssertControl "UseLocalSettings" EnableOverflowDetection off ModelReferenceIOMsg "none" ModelReferenceVersionMismatchMessage "none" ModelReferenceIOMismatchMessage "none" ModelReferenceCSMismatchMessage "none" ModelReferenceSimTargetVerbose off UnknownTsInhSupMsg "warning" ModelReferenceDataLoggingMessage "warning" ModelReferenceSymbolNameMessage "warning" } Simulink.HardwareCC { $ObjectID 6 Version "1.0.4" ProdBitPerChar 8 ProdBitPerShort 16 ProdBitPerInt 32 ProdBitPerLong 32 ProdIntDivRoundTo "Undefined" ProdEndianess "Unspecified" ProdWordSize 32 ProdShiftRightIntArith on ProdHWDeviceType "32-bit Generic" TargetBitPerChar 8 TargetBitPerShort 16 TargetBitPerInt 32 TargetBitPerLong 32 TargetShiftRightIntArith on TargetIntDivRoundTo "Undefined" TargetEndianess "Unspecified" TargetWordSize 32 TargetTypeEmulationWarnSuppressLevel 0 TargetPreprocMaxBitsSint 32 TargetPreprocMaxBitsUint 32 TargetHWDeviceType "Specified" TargetUnknown off ProdEqTarget on } Simulink.ModelReferenceCC { $ObjectID 7 Version "1.0.4" UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange" CheckModelReferenceTargetMessage "error" ModelReferenceNumInstancesAllowed "Multi" ModelReferencePassRootInputsByReference on ModelReferenceMinAlgLoopOccurrences off } Simulink.RTWCC { $BackupClass "Simulink.RTWCC" $ObjectID 8 Array { Type "Cell" Dimension 1 Cell "IncludeHyperlinkInReport" PropName "DisabledProps" } Version "1.0.4" SystemTargetFile "grt.tlc" GenCodeOnly off MakeCommand "make_rtw" TemplateMakefile "grt_default_tmf" GenerateReport off SaveLog off RTWVerbose on RetainRTWFile off ProfileTLC off TLCDebug off TLCCoverage off TLCAssert off ProcessScriptMode "Default" ConfigurationMode "Optimized" ConfigAtBuild off IncludeHyperlinkInReport off LaunchReport off Array { Type "Handle" Dimension 2 Simulink.CodeAppCC { $ObjectID 9 Array { Type "Cell" Dimension 9 Cell "IgnoreCustomStorageClasses" Cell "InsertBlockDesc" Cell "SFDataObjDesc" Cell "SimulinkDataObjDesc" Cell "DefineNamingRule" Cell "SignalNamingRule" Cell "ParamNamingRule" Cell "InlinedPrmAccess" Cell "CustomSymbolStr" PropName "DisabledProps" } Version "1.0.4" ForceParamTrailComments off GenerateComments on IgnoreCustomStorageClasses on IncHierarchyInIds off MaxIdLength 31 PreserveName off PreserveNameWithParent off ShowEliminatedStatement off IncAutoGenComments off SimulinkDataObjDesc off SFDataObjDesc off IncDataTypeInIds off PrefixModelToSubsysFcnNames on CustomSymbolStr "$R$N$M" MangleLength 1 DefineNamingRule "None" ParamNamingRule "None" SignalNamingRule "None" InsertBlockDesc off SimulinkBlockComments on EnableCustomComments off InlinedPrmAccess "Literals" ReqsInCode off } Simulink.GRTTargetCC { $BackupClass "Simulink.TargetCC" $ObjectID 10 Array { Type "Cell" Dimension 12 Cell "IncludeMdlTerminateFcn" Cell "CombineOutputUpdateFcns" Cell "SuppressErrorStatus" Cell "ERTCustomFileBanners" Cell "GenerateSampleERTMain" Cell "MultiInstanceERTCode" Cell "PurelyIntegerCode" Cell "SupportNonFinite" Cell "SupportComplex" Cell "SupportAbsoluteTime" Cell "SupportContinuousTime" Cell "SupportNonInlinedSFcns" PropName "DisabledProps" } Version "1.0.4" TargetFcnLib "ansi_tfl_tmw.mat" GenFloatMathFcnCalls "ANSI_C" UtilityFuncGeneration "Auto" GenerateFullHeader on GenerateSampleERTMain off IsPILTarget off ModelReferenceCompliant on IncludeMdlTerminateFcn on CombineOutputUpdateFcns off SuppressErrorStatus off IncludeFileDelimiter "Auto" ERTCustomFileBanners off SupportAbsoluteTime on LogVarNameModifier "rt_" MatFileLogging on MultiInstanceERTCode off SupportNonFinite on SupportComplex on PurelyIntegerCode off SupportContinuousTime on SupportNonInlinedSFcns on ExtMode off ExtModeStaticAlloc off ExtModeTesting off ExtModeStaticAllocSize 1000000 ExtModeTransport 0 ExtModeMexFile "ext_comm" RTWCAPISignals off RTWCAPIParams off RTWCAPIStates off GenerateASAP2 off } PropName "Components" } } PropName "Components" } Name "Configuration" SimulationMode "normal" CurrentDlgPage "Data Import//Export" } PropName "ConfigurationSets" } Simulink.ConfigSet { $PropName "ActiveConfigurationSet" $ObjectID 1 } BlockDefaults { Orientation "right" ForegroundColor "black" BackgroundColor "white" DropShadow off NamePlacement "normal" FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" ShowName on } BlockParameterDefaults { Block { BlockType Clock DisplayTime off } Block { BlockType Constant Value "1" VectorParams1D on OutDataTypeMode "Inherit from 'Constant value'" OutDataType "sfix(16)" ConRadixGroup "Use specified scaling" OutScaling "2^0" SampleTime "inf" } Block { BlockType From IconDisplay "Tag" } Block { BlockType FromWorkspace VariableName "simulink_input" SampleTime "-1" Interpolate on OutputAfterFinalValue "Extrapolation" } Block { BlockType Fcn Expr "sin(u[1])" SampleTime "-1" } Block { BlockType Gain Gain "1" Multiplication "Element-wise(K.*u)" ParameterDataTypeMode "Same as input" ParameterDataType "sfix(16)" ParameterScalingMode "Best Precision: Matrix-wise" ParameterScaling "2^0" OutDataTypeMode "Same as input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType Goto IconDisplay "Tag" } Block { BlockType Inport BusObject "BusObject" BusOutputAsStruct off PortDimensions "-1" SampleTime "-1" DataType "auto" OutDataType "sfix(16)" OutScaling "2^0" SignalType "auto" SamplingMode "auto" 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 } Block { BlockType Mux Inputs "4" DisplayOption "none" BusObject "BusObject" NonVirtualBus off } Block { BlockType Outport Port "1" BusObject "BusObject" BusOutputAsStruct off PortDimensions "-1" SampleTime "-1" DataType "auto" OutDataType "sfix(16)" OutScaling "2^0" SignalType "auto" SamplingMode "auto" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType Product Inputs "2" Multiplication "Element-wise(.*)" InputSameDT on OutDataTypeMode "Same as first input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Zero" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType Selector InputType "Vector" IndexMode "One-based" ElementSrc "Internal" Elements "1" RowSrc "Internal" Rows "1" ColumnSrc "Internal" Columns "1" InputPortWidth "-1" IndexIsStartValue off OutputPortSize "1" } Block { BlockType SubSystem ShowPortLabels on Permissions "ReadWrite" PermitHierarchicalResolution "All" SystemSampleTime "-1" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" SimViewingDevice off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" } Block { BlockType Sum IconShape "rectangular" Inputs "++" InputSameDT on OutDataTypeMode "Same as first input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType ToWorkspace VariableName "simulink_output" MaxDataPoints "1000" Decimation "1" SampleTime "0" FixptAsFi off } } AnnotationDefaults { HorizontalAlignment "center" VerticalAlignment "middle" ForegroundColor "black" BackgroundColor "white" DropShadow off FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" } LineDefaults { FontName "Helvetica" FontSize 9 FontWeight "normal" FontAngle "normal" } System { Name "TAL8" Location [2, 82, 1253, 754] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" ReportName "simulink-default.rpt" Block { BlockType Inport Name "In1" Position [380, 38, 410, 52] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In2" Position [380, 68, 410, 82] Port "2" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In11" Position [325, 658, 355, 672] Port "3" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In12" Position [325, 683, 355, 697] Port "4" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In13" Position [380, 98, 410, 112] Port "5" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In14" Position [335, 123, 365, 137] Port "6" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In15" Position [320, 713, 350, 727] Port "7" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In16" Position [320, 738, 350, 752] Port "8" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In3" Position [335, 153, 365, 167] Port "9" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In4" Position [340, 183, 370, 197] Port "10" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In5" Position [320, 768, 350, 782] Port "11" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In6" Position [315, 793, 345, 807] Port "12" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In7" Position [345, 213, 375, 227] Port "13" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In8" Position [345, 243, 375, 257] Port "14" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In9" Position [310, 823, 340, 837] Port "15" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In10" Position [315, 848, 345, 862] Port "16" IconDisplay "Port number" LatchInput off } Block { BlockType Clock Name "Clock" Position [80, 55, 100, 75] Decimation "10" } Block { BlockType Constant Name "Constant1" Position [565, 950, 595, 980] Orientation "left" ForegroundColor "green" } Block { BlockType Constant Name "Constant16" Position [545, 430, 575, 460] Orientation "left" ForegroundColor "green" Value "0" } Block { BlockType From Name "From1" Position [50, 322, 115, 338] ForegroundColor "green" DialogController "Simulink.DDGSource" CloseFcn "tagdialog Close" GotoTag "outtal1" } Block { BlockType From Name "From2" Position [45, 592, 110, 608] ForegroundColor "green" DialogController "Simulink.DDGSource" CloseFcn "tagdialog Close" GotoTag "igptal1" } Block { BlockType From Name "From200" Position [45, 222, 110, 238] ForegroundColor "green" DialogController "Simulink.DDGSource" CloseFcn "tagdialog Close" GotoTag "outtal0" } Block { BlockType From Name "From227" Position [45, 477, 110, 493] ForegroundColor "green" DialogController "Simulink.DDGSource" CloseFcn "tagdialog Close" GotoTag "igptal0" } Block { BlockType From Name "From3" Position [50, 897, 115, 913] ForegroundColor "green" DialogController "Simulink.DDGSource" CloseFcn "tagdialog Close" GotoTag "outhtal1" } Block { BlockType From Name "From4" Position [50, 782, 115, 798] ForegroundColor "green" DialogController "Simulink.DDGSource" CloseFcn "tagdialog Close" GotoTag "outhtal0" } Block { BlockType From Name "From5" Position [55, 1192, 120, 1208] ForegroundColor "green" DialogController "Simulink.DDGSource" CloseFcn "tagdialog Close" GotoTag "outrtal1" } Block { BlockType From Name "From6" Position [55, 1077, 120, 1093] ForegroundColor "green" DialogController "Simulink.DDGSource" CloseFcn "tagdialog Close" GotoTag "outrtal0" } Block { BlockType Goto Name "Goto1" Position [660, 672, 725, 688] ForegroundColor "green" DialogController "Simulink.DDGSource" GotoTag "outtal1" TagVisibility "local" } Block { BlockType Goto Name "Goto2" Position [660, 762, 725, 778] ForegroundColor "green" DialogController "Simulink.DDGSource" GotoTag "igptal1" TagVisibility "local" } Block { BlockType Goto Name "Goto3" Position [620, 107, 685, 123] ForegroundColor "green" DialogController "Simulink.DDGSource" GotoTag "outhtal0" TagVisibility "local" } Block { BlockType Goto Name "Goto4" Position [620, 137, 685, 153] ForegroundColor "green" DialogController "Simulink.DDGSource" GotoTag "outrtal0" TagVisibility "local" } Block { BlockType Goto Name "Goto5" Position [660, 702, 725, 718] ForegroundColor "green" DialogController "Simulink.DDGSource" GotoTag "outhtal1" TagVisibility "local" } Block { BlockType Goto Name "Goto6" Position [660, 732, 725, 748] ForegroundColor "green" DialogController "Simulink.DDGSource" GotoTag "outrtal1" TagVisibility "local" } Block { BlockType Goto Name "Goto97" Position [620, 77, 685, 93] ForegroundColor "green" DialogController "Simulink.DDGSource" GotoTag "outtal0" TagVisibility "local" } Block { BlockType Goto Name "Goto99" Position [625, 167, 690, 183] ForegroundColor "green" DialogController "Simulink.DDGSource" GotoTag "igptal0" TagVisibility "local" } Block { BlockType Mux Name "Mux1" Ports [2, 1] Position [165, 726, 175, 959] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Mux Name "Mux2" Ports [2, 1] Position [170, 1021, 180, 1254] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Mux Name "Mux3" Ports [2, 1] Position [160, 178, 170, 382] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Mux Name "Mux4" Ports [2, 1] Position [160, 421, 170, 654] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType ToWorkspace Name "To Workspace1" Position [135, 50, 195, 80] VariableName "t_TAL" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType FromWorkspace Name "iEccit" Position [545, 1008, 610, 1032] Orientation "left" BackgroundColor "yellow" NamePlacement "alternate" VariableName "input6" SampleTime "1" } Block { BlockType SubSystem Name "thalcomp1" Ports [10, 4] Position [535, 667, 605, 783] BackgroundColor "green" TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" System { Name "thalcomp1" Location [0, 88, 1268, 774] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "In1" Position [15, 63, 45, 77] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In2" Position [20, 88, 50, 102] Port "2" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In3" Position [15, 113, 45, 127] Port "3" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In4" Position [15, 138, 45, 152] Port "4" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In7" Position [20, 163, 50, 177] Port "5" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In5" Position [25, 188, 55, 202] Port "6" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In6" Position [25, 213, 55, 227] Port "7" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In8" Position [20, 238, 50, 252] Port "8" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In9" Position [175, 13, 205, 27] Port "9" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In10" Position [380, 173, 410, 187] Port "10" IconDisplay "Port number" LatchInput off } Block { BlockType Fcn Name "Fcn" Position [80, 275, 140, 305] Expr "ggpith*(u-egpith)" } Block { BlockType Product Name "Product" Ports [2, 1] Position [195, 136, 240, 189] RndMeth "Floor" } Block { BlockType SubSystem Name "Subsystem" Ports [3, 3] Position [525, 130, 565, 190] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" System { Name "Subsystem" Location [2, 82, 1253, 772] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "In1" Position [285, 408, 315, 422] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In2" Position [285, 438, 315, 452] Port "2" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In3" Position [15, 668, 45, 682] Port "3" IconDisplay "Port number" LatchInput off } Block { BlockType Constant Name "Constant" Position [70, 370, 100, 400] Value "vt0" } Block { BlockType Constant Name "Constant1" Position [80, 505, 110, 535] Value "ht0" } Block { BlockType Constant Name "Constant2" Position [85, 600, 115, 630] Value "rt0" } Block { BlockType SubSystem Name "Ik_tal" Ports [2, 1] Position [615, 170, 655, 230] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" System { Name "Ik_tal" Location [62, 316, 738, 559] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "In1" Position [25, 53, 55, 67] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In2" Position [25, 158, 55, 172] Port "2" IconDisplay "Port number" LatchInput off } Block { BlockType Fcn Name "Fcn" Position [90, 44, 235, 76] Expr "gk_tal * ((0.75 * (1-u)) ^ 4)" } Block { BlockType Fcn Name "Fcn1" Position [90, 150, 220, 180] Expr "u - ek_tal" } Block { BlockType Product Name "Product" Ports [2, 1] Position [325, 96, 370, 129] RndMeth "Floor" } Block { BlockType Outport Name "Out1" Position [445, 108, 475, 122] IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "Fcn" SrcPort 1 Points [40, 0; 0, 45] DstBlock "Product" DstPort 1 } Line { SrcBlock "Fcn1" SrcPort 1 Points [55, 0; 0, -45] DstBlock "Product" DstPort 2 } Line { SrcBlock "In1" SrcPort 1 DstBlock "Fcn" DstPort 1 } Line { SrcBlock "In2" SrcPort 1 DstBlock "Fcn1" DstPort 1 } Line { SrcBlock "Product" SrcPort 1 DstBlock "Out1" DstPort 1 } } } Block { BlockType Fcn Name "Il_tal" Position [320, 133, 410, 167] Orientation "left" NamePlacement "alternate" Expr "(u - el_tal) * gl_tal" } Block { BlockType SubSystem Name "Ina_tal" Ports [2, 1] Position [615, 90, 655, 150] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" System { Name "Ina_tal" Location [2, 82, 1014, 732] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "In1" Position [15, 50, 45, 70] NamePlacement "alternate" Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In2" Position [335, 118, 365, 132] Port "2" IconDisplay "Port number" LatchInput off } Block { BlockType Fcn Name "Fcn1" Position [300, 37, 480, 83] Expr "gna_tal * (u - ena_tal)" } Block { BlockType Product Name "Product" Ports [2, 1] Position [390, 111, 475, 164] RndMeth "Floor" } Block { BlockType Product Name "Product1" Ports [2, 1] Position [535, 71, 580, 104] RndMeth "Floor" } Block { BlockType Fcn Name "minf_tal^3" Position [70, 115, 230, 185] Expr "(1/(1 + exp ( - (u + 37)/7)))^3" } Block { BlockType Outport Name "Out1" Position [605, 83, 635, 97] IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "minf_tal^3" SrcPort 1 DstBlock "Product" DstPort 2 } Line { SrcBlock "Product" SrcPort 1 Points [20, 0; 0, -45] DstBlock "Product1" DstPort 2 } Line { SrcBlock "Fcn1" SrcPort 1 Points [15, 0; 0, 20] DstBlock "Product1" DstPort 1 } Line { SrcBlock "In2" SrcPort 1 DstBlock "Product" DstPort 1 } Line { SrcBlock "Product1" SrcPort 1 DstBlock "Out1" DstPort 1 } Line { SrcBlock "In1" SrcPort 1 Points [5, 0] Branch { DstBlock "minf_tal^3" DstPort 1 } Branch { DstBlock "Fcn1" DstPort 1 } } } } Block { BlockType SubSystem Name "It_tal" Ports [2, 1] Position [615, 250, 655, 310] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" System { Name "It_tal" Location [103, 412, 848, 681] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "In1" Position [15, 93, 45, 107] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In2" Position [355, 193, 385, 207] Port "2" IconDisplay "Port number" LatchInput off } Block { BlockType Fcn Name "Fcn" Position [350, 12, 465, 68] Expr "gt_tal * (u - et_tal)" } Block { BlockType Product Name "Product" Ports [3, 1] Position [570, 3, 660, 237] Inputs "3" RndMeth "Floor" } Block { BlockType Fcn Name "pinf_tal ^ 2" Position [160, 63, 340, 177] Expr "(1 / (1 + exp ( - (u + 60) / 6.2)))" "^2" } Block { BlockType Outport Name "Out1" Position [680, 113, 710, 127] IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "In1" SrcPort 1 Points [25, 0] Branch { Points [0, -60] DstBlock "Fcn" DstPort 1 } Branch { Points [0, 20] DstBlock "pinf_tal ^ 2" DstPort 1 } } Line { SrcBlock "In2" SrcPort 1 DstBlock "Product" DstPort 3 } Line { SrcBlock "pinf_tal ^ 2" SrcPort 1 DstBlock "Product" DstPort 2 } Line { SrcBlock "Fcn" SrcPort 1 DstBlock "Product" DstPort 1 } Line { SrcBlock "Product" SrcPort 1 DstBlock "Out1" DstPort 1 } } } Block { BlockType Selector Name "Selector" Ports [2, 1] Position [165, 461, 205, 499] IndexMode "Zero-based" ElementSrc "External" Elements "[1 3]" } Block { BlockType Selector Name "Selector1" Ports [2, 1] Position [165, 561, 205, 599] IndexMode "Zero-based" ElementSrc "External" Elements "[1 3]" } Block { BlockType Selector Name "Selector2" Ports [2, 1] Position [170, 646, 210, 684] IndexMode "Zero-based" ElementSrc "External" Elements "[1 3]" } Block { BlockType SubSystem Name "h_tal" Ports [2, 1] Position [465, 285, 565, 345] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" System { Name "h_tal" Location [0, 88, 1268, 774] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "In1" Position [125, 318, 155, 332] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In2" Position [600, 538, 630, 552] Port "2" IconDisplay "Port number" LatchInput off } Block { BlockType Gain Name "Gain" Position [535, 336, 605, 374] Gain "tadj" ParameterDataTypeMode "Inherit via internal rule" OutDataTypeMode "Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Integrator Name "Integrator1" Ports [2, 1] Position [625, 347, 655, 378] InitialConditionSource "external" IgnoreLimit off } Block { BlockType Product Name "Product" Ports [2, 1] Position [475, 331, 520, 389] RndMeth "Floor" } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [410, 365, 430, 385] ShowName off IconShape "round" Inputs "|+-" } Block { BlockType Sum Name "Sum2" Ports [2, 1] Position [410, 265, 430, 285] ShowName off IconShape "round" Inputs "|++" Port { PortNumber 1 Name "1/tauh_tal" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" ShowSigGenPortName on } } Block { BlockType Fcn Name "a_tal" Position [240, 259, 385, 291] Expr "0.128 * exp ( - (u + 46)/18)" } Block { BlockType Fcn Name "b_tal" Position [240, 310, 385, 340] Expr "apr / (1 + exp ( - (u + 23) / 5))" } Block { BlockType Fcn Name "hinf_tal" Position [240, 359, 385, 391] Expr "1/(1 + exp ( (u + 41) / 4)) " } Block { BlockType Outport Name "Out1" Position [705, 353, 735, 367] IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "In1" SrcPort 1 Points [0, 0; 15, 0] Branch { Points [0, -50] DstBlock "a_tal" DstPort 1 } Branch { Points [0, 50] DstBlock "hinf_tal" DstPort 1 } Branch { DstBlock "b_tal" DstPort 1 } } Line { SrcBlock "a_tal" SrcPort 1 DstBlock "Sum2" DstPort 1 } Line { SrcBlock "b_tal" SrcPort 1 Points [30, 0] DstBlock "Sum2" DstPort 2 } Line { Name "1/tauh_tal" Labels [0, 0] SrcBlock "Sum2" SrcPort 1 Points [30, 0; 0, 70] DstBlock "Product" DstPort 1 } Line { SrcBlock "Integrator1" SrcPort 1 Points [0, -5] Branch { Points [0, 55; -240, 0] DstBlock "Sum1" DstPort 2 } Branch { DstBlock "Out1" DstPort 1 } } Line { SrcBlock "hinf_tal" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Product" DstPort 2 } Line { SrcBlock "In2" SrcPort 1 Points [10, 0; 0, -90; -35, 0] DstBlock "Integrator1" DstPort 2 } Line { SrcBlock "Product" SrcPort 1 Points [-5, 0] DstBlock "Gain" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Integrator1" DstPort 1 } } } Block { BlockType SubSystem Name "r_tal" Ports [2, 1] Position [465, 384, 565, 446] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" System { Name "r_tal" Location [2, 82, 1270, 772] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "In2" Position [15, 52, 45, 68] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In1" Position [570, 222, 600, 238] Port "2" IconDisplay "Port number" LatchInput off } Block { BlockType Fcn Name "Fcn" Position [475, 155, 535, 185] Expr "1/u" } Block { BlockType Gain Name "Gain" Position [415, 31, 515, 89] Gain "qht" ParameterDataTypeMode "Inherit via internal rule" OutDataTypeMode "Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Integrator Name "Integrator1" Ports [2, 1] Position [745, 62, 775, 93] InitialConditionSource "external" IgnoreLimit off } Block { BlockType Product Name "Product" Ports [2, 1] Position [565, 50, 625, 85] RndMeth "Floor" } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [360, 50, 380, 70] ShowName off IconShape "round" Inputs "-+|" } Block { BlockType Fcn Name "rinf_tal" Position [75, 43, 245, 77] Expr "1 / (1 + exp ( (u+84)/4))" } Block { BlockType Fcn Name "taur_tal" Position [70, 149, 235, 181] Expr "28 + apt*exp( - (u + 25) / 10.5)" } Block { BlockType Outport Name "Out1" Position [890, 73, 920, 87] IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "rinf_tal" SrcPort 1 DstBlock "Sum1" DstPort 2 } Line { SrcBlock "taur_tal" SrcPort 1 Points [220, 0] DstBlock "Fcn" DstPort 1 } Line { SrcBlock "Fcn" SrcPort 1 Points [5, 0; 0, -95] DstBlock "Product" DstPort 2 } Line { SrcBlock "Product" SrcPort 1 DstBlock "Integrator1" DstPort 1 } Line { SrcBlock "Integrator1" SrcPort 1 Points [35, 0] Branch { DstBlock "Out1" DstPort 1 } Branch { Points [0, -65; -445, 0] DstBlock "Sum1" DstPort 1 } } Line { SrcBlock "In2" SrcPort 1 Points [5, 0] Branch { DstBlock "rinf_tal" DstPort 1 } Branch { DstBlock "taur_tal" DstPort 1 } } Line { SrcBlock "In1" SrcPort 1 Points [105, 0; 0, -145] DstBlock "Integrator1" DstPort 2 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Product" DstPort 1 } } } Block { BlockType SubSystem Name "v_tal" Ports [7, 1] Position [340, 287, 400, 483] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" System { Name "v_tal" Location [2, 82, 1014, 752] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "In1" Position [25, 33, 55, 47] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In2" Position [25, 73, 55, 87] Port "2" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In3" Position [25, 113, 55, 127] Port "3" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In4" Position [25, 153, 55, 167] Port "4" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In5" Position [20, 223, 50, 237] Port "5" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In6" Position [20, 268, 50, 282] Port "6" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In7" Position [45, 328, 75, 342] Port "7" IconDisplay "Port number" LatchInput off } Block { BlockType Gain Name "Gain" Position [155, 121, 225, 159] Gain "1/c_tal" } Block { BlockType Integrator Name "Integrator" Ports [2, 1] Position [255, 162, 285, 193] InitialConditionSource "external" InitialCondition "-80" LimitOutput on UpperSaturationLimit "80" IgnoreLimit off } Block { BlockType Sum Name "Sum" Ports [6, 1] Position [80, 28, 125, 297] ShowName off Inputs "----+-" } Block { BlockType Outport Name "Out1" Position [310, 133, 340, 147] IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "Sum" SrcPort 1 Points [0, -25] DstBlock "Gain" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 Points [10, 0] DstBlock "Integrator" DstPort 1 } Line { SrcBlock "In1" SrcPort 1 Points [5, 0] DstBlock "Sum" DstPort 1 } Line { SrcBlock "In2" SrcPort 1 Points [5, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "In3" SrcPort 1 Points [5, 0] DstBlock "Sum" DstPort 3 } Line { SrcBlock "Integrator" SrcPort 1 Points [0, -40] DstBlock "Out1" DstPort 1 } Line { SrcBlock "In4" SrcPort 1 Points [5, 0] DstBlock "Sum" DstPort 4 } Line { SrcBlock "In5" SrcPort 1 DstBlock "Sum" DstPort 5 } Line { SrcBlock "In6" SrcPort 1 DstBlock "Sum" DstPort 6 } Line { SrcBlock "In7" SrcPort 1 Points [65, 0; 0, -150] DstBlock "Integrator" DstPort 2 } } } Block { BlockType Outport Name "Out1" Position [485, 518, 515, 532] IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "Out2" Position [755, 338, 785, 352] Port "2" IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "Out3" Position [760, 448, 790, 462] Port "3" IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "Il_tal" SrcPort 1 Points [-10, 0; 0, 145] DstBlock "v_tal" DstPort 1 } Line { SrcBlock "Ina_tal" SrcPort 1 Points [15, 0; 0, -50; -385, 0; 0, 255] DstBlock "v_tal" DstPort 2 } Line { SrcBlock "Ik_tal" SrcPort 1 Points [45, 0; 0, -150; -435, 0; 0, 305] DstBlock "v_tal" DstPort 3 } Line { SrcBlock "h_tal" SrcPort 1 Points [5, 0] Branch { Points [0, -130] Branch { DstBlock "Ik_tal" DstPort 1 } Branch { Points [0, -50] DstBlock "Ina_tal" DstPort 2 } } Branch { Points [0, 40; 80, 0; 0, -10] DstBlock "Out2" DstPort 1 } } Line { SrcBlock "r_tal" SrcPort 1 Points [20, 0] Branch { Points [0, -120] DstBlock "It_tal" DstPort 2 } Branch { Points [0, 30; 80, 0; 0, 10] DstBlock "Out3" DstPort 1 } } Line { SrcBlock "It_tal" SrcPort 1 Points [60, 0; 0, -245; -470, 0; 0, 350] DstBlock "v_tal" DstPort 4 } Line { SrcBlock "v_tal" SrcPort 1 Points [0, 0; 30, 0] Branch { Points [0, -85] Branch { Points [0, -35] Branch { Points [0, -50] Branch { Points [0, -65] Branch { DstBlock "Il_tal" DstPort 1 } Branch { Points [0, -45] DstBlock "Ina_tal" DstPort 1 } } Branch { DstBlock "Ik_tal" DstPort 2 } } Branch { DstBlock "It_tal" DstPort 1 } } Branch { DstBlock "h_tal" DstPort 1 } } Branch { Points [0, 15] Branch { DstBlock "r_tal" DstPort 1 } Branch { Points [0, 125] DstBlock "Out1" DstPort 1 } } } Line { SrcBlock "In1" SrcPort 1 DstBlock "v_tal" DstPort 5 } Line { SrcBlock "In2" SrcPort 1 DstBlock "v_tal" DstPort 6 } Line { SrcBlock "In3" SrcPort 1 Points [25, 0] Branch { DstBlock "Selector2" DstPort 2 } Branch { Points [-20, 0; 0, -85; 20, 0] Branch { DstBlock "Selector1" DstPort 2 } Branch { Points [0, -100] DstBlock "Selector" DstPort 2 } } } Line { SrcBlock "Constant" SrcPort 1 Points [10, 0; 0, 60; 15, 0; 0, 25] DstBlock "Selector" DstPort 1 } Line { SrcBlock "Selector" SrcPort 1 Points [55, 0; 0, -5] DstBlock "v_tal" DstPort 7 } Line { SrcBlock "Constant1" SrcPort 1 Points [25, 0; 0, 35; 5, 0; 0, 15] DstBlock "Selector1" DstPort 1 } Line { SrcBlock "Selector1" SrcPort 1 Points [230, 0; 0, -250] DstBlock "h_tal" DstPort 2 } Line { SrcBlock "Constant2" SrcPort 1 Points [20, 0; 0, 30; 5, 0; 0, 10] DstBlock "Selector2" DstPort 1 } Line { SrcBlock "Selector2" SrcPort 1 Points [235, 0] DstBlock "r_tal" DstPort 2 } } } Block { BlockType Sum Name "Sum" Ports [8, 1] Position [95, 63, 115, 237] ShowName off Inputs "++++++++" } Block { BlockType Outport Name "Out1" Position [625, 133, 655, 147] IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "Out2" Position [700, 153, 730, 167] Port "2" IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "Out3" Position [700, 173, 730, 187] Port "3" IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "Out4" Position [620, 83, 650, 97] Port "4" IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "Sum" SrcPort 1 Points [15, 0] Branch { DstBlock "Product" DstPort 1 } Branch { Points [0, -60] DstBlock "Out4" DstPort 1 } } Line { SrcBlock "Fcn" SrcPort 1 Points [15, 0; 0, -115] DstBlock "Product" DstPort 2 } Line { SrcBlock "In1" SrcPort 1 Points [30, 0] DstBlock "Sum" DstPort 1 } Line { SrcBlock "In2" SrcPort 1 Points [25, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Product" SrcPort 1 Points [0, -5] DstBlock "Subsystem" DstPort 2 } Line { SrcBlock "In9" SrcPort 1 Points [55, 0; 0, 120] DstBlock "Subsystem" DstPort 1 } Line { SrcBlock "Subsystem" SrcPort 1 Points [20, 0] Branch { Points [0, 195; -545, 0; 0, -45] DstBlock "Fcn" DstPort 1 } Branch { DstBlock "Out1" DstPort 1 } } Line { SrcBlock "In10" SrcPort 1 DstBlock "Subsystem" DstPort 3 } Line { SrcBlock "In4" SrcPort 1 DstBlock "Sum" DstPort 4 } Line { SrcBlock "In3" SrcPort 1 DstBlock "Sum" DstPort 3 } Line { SrcBlock "In8" SrcPort 1 Points [10, 0; 0, -25] DstBlock "Sum" DstPort 8 } Line { SrcBlock "In6" SrcPort 1 Points [15, 0; 0, -20] DstBlock "Sum" DstPort 7 } Line { SrcBlock "In5" SrcPort 1 Points [5, 0; 0, -15] DstBlock "Sum" DstPort 6 } Line { SrcBlock "In7" SrcPort 1 Points [10, 0; 0, -10] DstBlock "Sum" DstPort 5 } Line { SrcBlock "Subsystem" SrcPort 2 DstBlock "Out2" DstPort 1 } Line { SrcBlock "Subsystem" SrcPort 3 DstBlock "Out3" DstPort 1 } } } Block { BlockType SubSystem Name "thalcomp2" Ports [10, 4] Position [510, 72, 580, 188] BackgroundColor "green" TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" System { Name "thalcomp2" Location [0, 88, 1268, 774] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "In1" Position [15, 63, 45, 77] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In2" Position [20, 88, 50, 102] Port "2" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In3" Position [15, 113, 45, 127] Port "3" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In4" Position [15, 138, 45, 152] Port "4" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In7" Position [20, 163, 50, 177] Port "5" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In5" Position [25, 188, 55, 202] Port "6" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In6" Position [25, 213, 55, 227] Port "7" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In8" Position [20, 238, 50, 252] Port "8" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In9" Position [175, 13, 205, 27] Port "9" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In10" Position [380, 173, 410, 187] Port "10" IconDisplay "Port number" LatchInput off } Block { BlockType Fcn Name "Fcn" Position [80, 275, 140, 305] Expr "ggpith*(u-egpith)" } Block { BlockType Product Name "Product" Ports [2, 1] Position [195, 136, 240, 189] RndMeth "Floor" } Block { BlockType SubSystem Name "Subsystem" Ports [3, 3] Position [525, 130, 565, 190] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" System { Name "Subsystem" Location [2, 82, 1253, 772] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "In1" Position [285, 408, 315, 422] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In2" Position [285, 438, 315, 452] Port "2" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In3" Position [15, 668, 45, 682] Port "3" IconDisplay "Port number" LatchInput off } Block { BlockType Constant Name "Constant" Position [70, 370, 100, 400] Value "vt0" } Block { BlockType Constant Name "Constant1" Position [80, 505, 110, 535] Value "ht0" } Block { BlockType Constant Name "Constant2" Position [85, 600, 115, 630] Value "rt0" } Block { BlockType SubSystem Name "Ik_tal" Ports [2, 1] Position [615, 170, 655, 230] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" System { Name "Ik_tal" Location [62, 316, 738, 559] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "In1" Position [25, 53, 55, 67] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In2" Position [25, 158, 55, 172] Port "2" IconDisplay "Port number" LatchInput off } Block { BlockType Fcn Name "Fcn" Position [90, 44, 235, 76] Expr "gk_tal * ((0.75 * (1-u)) ^ 4)" } Block { BlockType Fcn Name "Fcn1" Position [90, 150, 220, 180] Expr "u - ek_tal" } Block { BlockType Product Name "Product" Ports [2, 1] Position [325, 96, 370, 129] RndMeth "Floor" } Block { BlockType Outport Name "Out1" Position [445, 108, 475, 122] IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "Fcn" SrcPort 1 Points [40, 0; 0, 45] DstBlock "Product" DstPort 1 } Line { SrcBlock "Fcn1" SrcPort 1 Points [55, 0; 0, -45] DstBlock "Product" DstPort 2 } Line { SrcBlock "In1" SrcPort 1 DstBlock "Fcn" DstPort 1 } Line { SrcBlock "In2" SrcPort 1 DstBlock "Fcn1" DstPort 1 } Line { SrcBlock "Product" SrcPort 1 DstBlock "Out1" DstPort 1 } } } Block { BlockType Fcn Name "Il_tal" Position [320, 133, 410, 167] Orientation "left" NamePlacement "alternate" Expr "(u - el_tal) * gl_tal" } Block { BlockType SubSystem Name "Ina_tal" Ports [2, 1] Position [615, 90, 655, 150] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" System { Name "Ina_tal" Location [2, 82, 1014, 732] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "In1" Position [15, 50, 45, 70] NamePlacement "alternate" Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In2" Position [335, 118, 365, 132] Port "2" IconDisplay "Port number" LatchInput off } Block { BlockType Fcn Name "Fcn1" Position [300, 37, 480, 83] Expr "gna_tal * (u - ena_tal)" } Block { BlockType Product Name "Product" Ports [2, 1] Position [390, 111, 475, 164] RndMeth "Floor" } Block { BlockType Product Name "Product1" Ports [2, 1] Position [535, 71, 580, 104] RndMeth "Floor" } Block { BlockType Fcn Name "minf_tal^3" Position [70, 115, 230, 185] Expr "(1/(1 + exp ( - (u + 37)/7)))^3" } Block { BlockType Outport Name "Out1" Position [605, 83, 635, 97] IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "minf_tal^3" SrcPort 1 DstBlock "Product" DstPort 2 } Line { SrcBlock "Product" SrcPort 1 Points [20, 0; 0, -45] DstBlock "Product1" DstPort 2 } Line { SrcBlock "Fcn1" SrcPort 1 Points [15, 0; 0, 20] DstBlock "Product1" DstPort 1 } Line { SrcBlock "In2" SrcPort 1 DstBlock "Product" DstPort 1 } Line { SrcBlock "Product1" SrcPort 1 DstBlock "Out1" DstPort 1 } Line { SrcBlock "In1" SrcPort 1 Points [5, 0] Branch { DstBlock "minf_tal^3" DstPort 1 } Branch { DstBlock "Fcn1" DstPort 1 } } } } Block { BlockType SubSystem Name "It_tal" Ports [2, 1] Position [615, 250, 655, 310] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" System { Name "It_tal" Location [103, 412, 848, 681] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "In1" Position [15, 93, 45, 107] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In2" Position [355, 193, 385, 207] Port "2" IconDisplay "Port number" LatchInput off } Block { BlockType Fcn Name "Fcn" Position [350, 12, 465, 68] Expr "gt_tal * (u - et_tal)" } Block { BlockType Product Name "Product" Ports [3, 1] Position [570, 3, 660, 237] Inputs "3" RndMeth "Floor" } Block { BlockType Fcn Name "pinf_tal ^ 2" Position [160, 63, 340, 177] Expr "(1 / (1 + exp ( - (u + 60) / 6.2)))" "^2" } Block { BlockType Outport Name "Out1" Position [680, 113, 710, 127] IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "In1" SrcPort 1 Points [25, 0] Branch { Points [0, -60] DstBlock "Fcn" DstPort 1 } Branch { Points [0, 20] DstBlock "pinf_tal ^ 2" DstPort 1 } } Line { SrcBlock "In2" SrcPort 1 DstBlock "Product" DstPort 3 } Line { SrcBlock "pinf_tal ^ 2" SrcPort 1 DstBlock "Product" DstPort 2 } Line { SrcBlock "Fcn" SrcPort 1 DstBlock "Product" DstPort 1 } Line { SrcBlock "Product" SrcPort 1 DstBlock "Out1" DstPort 1 } } } Block { BlockType Selector Name "Selector" Ports [2, 1] Position [165, 461, 205, 499] IndexMode "Zero-based" ElementSrc "External" Elements "[1 3]" } Block { BlockType Selector Name "Selector1" Ports [2, 1] Position [165, 561, 205, 599] IndexMode "Zero-based" ElementSrc "External" Elements "[1 3]" } Block { BlockType Selector Name "Selector2" Ports [2, 1] Position [170, 646, 210, 684] IndexMode "Zero-based" ElementSrc "External" Elements "[1 3]" } Block { BlockType SubSystem Name "h_tal" Ports [2, 1] Position [465, 285, 565, 345] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" System { Name "h_tal" Location [0, 88, 1268, 774] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "In1" Position [125, 318, 155, 332] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In2" Position [600, 538, 630, 552] Port "2" IconDisplay "Port number" LatchInput off } Block { BlockType Gain Name "Gain" Position [535, 336, 605, 374] Gain "tadj" ParameterDataTypeMode "Inherit via internal rule" OutDataTypeMode "Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Integrator Name "Integrator1" Ports [2, 1] Position [625, 347, 655, 378] InitialConditionSource "external" IgnoreLimit off } Block { BlockType Product Name "Product" Ports [2, 1] Position [475, 331, 520, 389] RndMeth "Floor" } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [410, 365, 430, 385] ShowName off IconShape "round" Inputs "|+-" } Block { BlockType Sum Name "Sum2" Ports [2, 1] Position [410, 265, 430, 285] ShowName off IconShape "round" Inputs "|++" Port { PortNumber 1 Name "1/tauh_tal" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" ShowSigGenPortName on } } Block { BlockType Fcn Name "a_tal" Position [240, 259, 385, 291] Expr "0.128 * exp ( - (u + 46)/18)" } Block { BlockType Fcn Name "b_tal" Position [240, 310, 385, 340] Expr "apr / (1 + exp ( - (u + 23) / 5))" } Block { BlockType Fcn Name "hinf_tal" Position [240, 359, 385, 391] Expr "1/(1 + exp ( (u + 41) / 4)) " } Block { BlockType Outport Name "Out1" Position [705, 353, 735, 367] IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "In1" SrcPort 1 Points [0, 0; 15, 0] Branch { Points [0, -50] DstBlock "a_tal" DstPort 1 } Branch { Points [0, 50] DstBlock "hinf_tal" DstPort 1 } Branch { DstBlock "b_tal" DstPort 1 } } Line { SrcBlock "a_tal" SrcPort 1 DstBlock "Sum2" DstPort 1 } Line { SrcBlock "b_tal" SrcPort 1 Points [30, 0] DstBlock "Sum2" DstPort 2 } Line { Name "1/tauh_tal" Labels [0, 0] SrcBlock "Sum2" SrcPort 1 Points [30, 0; 0, 70] DstBlock "Product" DstPort 1 } Line { SrcBlock "Integrator1" SrcPort 1 Points [0, -5] Branch { Points [0, 55; -240, 0] DstBlock "Sum1" DstPort 2 } Branch { DstBlock "Out1" DstPort 1 } } Line { SrcBlock "hinf_tal" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Product" DstPort 2 } Line { SrcBlock "In2" SrcPort 1 Points [10, 0; 0, -90; -35, 0] DstBlock "Integrator1" DstPort 2 } Line { SrcBlock "Product" SrcPort 1 Points [-5, 0] DstBlock "Gain" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Integrator1" DstPort 1 } } } Block { BlockType SubSystem Name "r_tal" Ports [2, 1] Position [465, 384, 565, 446] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" System { Name "r_tal" Location [2, 82, 1270, 772] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "In2" Position [15, 52, 45, 68] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In1" Position [570, 222, 600, 238] Port "2" IconDisplay "Port number" LatchInput off } Block { BlockType Fcn Name "Fcn" Position [475, 155, 535, 185] Expr "1/u" } Block { BlockType Gain Name "Gain" Position [415, 31, 515, 89] Gain "qht" ParameterDataTypeMode "Inherit via internal rule" OutDataTypeMode "Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Integrator Name "Integrator1" Ports [2, 1] Position [745, 62, 775, 93] InitialConditionSource "external" IgnoreLimit off } Block { BlockType Product Name "Product" Ports [2, 1] Position [565, 50, 625, 85] RndMeth "Floor" } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [360, 50, 380, 70] ShowName off IconShape "round" Inputs "-+|" } Block { BlockType Fcn Name "rinf_tal" Position [75, 43, 245, 77] Expr "1 / (1 + exp ( (u+84)/4))" } Block { BlockType Fcn Name "taur_tal" Position [70, 149, 235, 181] Expr "28 + apt*exp( - (u + 25) / 10.5)" } Block { BlockType Outport Name "Out1" Position [890, 73, 920, 87] IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "rinf_tal" SrcPort 1 DstBlock "Sum1" DstPort 2 } Line { SrcBlock "taur_tal" SrcPort 1 Points [220, 0] DstBlock "Fcn" DstPort 1 } Line { SrcBlock "Fcn" SrcPort 1 Points [5, 0; 0, -95] DstBlock "Product" DstPort 2 } Line { SrcBlock "Product" SrcPort 1 DstBlock "Integrator1" DstPort 1 } Line { SrcBlock "Integrator1" SrcPort 1 Points [35, 0] Branch { DstBlock "Out1" DstPort 1 } Branch { Points [0, -65; -445, 0] DstBlock "Sum1" DstPort 1 } } Line { SrcBlock "In2" SrcPort 1 Points [5, 0] Branch { DstBlock "rinf_tal" DstPort 1 } Branch { DstBlock "taur_tal" DstPort 1 } } Line { SrcBlock "In1" SrcPort 1 Points [105, 0; 0, -145] DstBlock "Integrator1" DstPort 2 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Product" DstPort 1 } } } Block { BlockType SubSystem Name "v_tal" Ports [7, 1] Position [340, 287, 400, 483] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" System { Name "v_tal" Location [2, 82, 1014, 752] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "In1" Position [25, 33, 55, 47] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In2" Position [25, 73, 55, 87] Port "2" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In3" Position [25, 113, 55, 127] Port "3" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In4" Position [25, 153, 55, 167] Port "4" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In5" Position [20, 223, 50, 237] Port "5" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In6" Position [20, 268, 50, 282] Port "6" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "In7" Position [45, 328, 75, 342] Port "7" IconDisplay "Port number" LatchInput off } Block { BlockType Gain Name "Gain" Position [155, 121, 225, 159] Gain "1/c_tal" } Block { BlockType Integrator Name "Integrator" Ports [2, 1] Position [255, 162, 285, 193] InitialConditionSource "external" InitialCondition "-80" LimitOutput on UpperSaturationLimit "80" IgnoreLimit off } Block { BlockType Sum Name "Sum" Ports [6, 1] Position [80, 28, 125, 297] ShowName off Inputs "----+-" } Block { BlockType Outport Name "Out1" Position [310, 133, 340, 147] IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "Sum" SrcPort 1 Points [0, -25] DstBlock "Gain" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 Points [10, 0] DstBlock "Integrator" DstPort 1 } Line { SrcBlock "In1" SrcPort 1 Points [5, 0] DstBlock "Sum" DstPort 1 } Line { SrcBlock "In2" SrcPort 1 Points [5, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "In3" SrcPort 1 Points [5, 0] DstBlock "Sum" DstPort 3 } Line { SrcBlock "Integrator" SrcPort 1 Points [0, -40] DstBlock "Out1" DstPort 1 } Line { SrcBlock "In4" SrcPort 1 Points [5, 0] DstBlock "Sum" DstPort 4 } Line { SrcBlock "In5" SrcPort 1 DstBlock "Sum" DstPort 5 } Line { SrcBlock "In6" SrcPort 1 DstBlock "Sum" DstPort 6 } Line { SrcBlock "In7" SrcPort 1 Points [65, 0; 0, -150] DstBlock "Integrator" DstPort 2 } } } Block { BlockType Outport Name "Out1" Position [485, 518, 515, 532] IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "Out2" Position [755, 338, 785, 352] Port "2" IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "Out3" Position [760, 448, 790, 462] Port "3" IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "Il_tal" SrcPort 1 Points [-10, 0; 0, 145] DstBlock "v_tal" DstPort 1 } Line { SrcBlock "Ina_tal" SrcPort 1 Points [15, 0; 0, -50; -385, 0; 0, 255] DstBlock "v_tal" DstPort 2 } Line { SrcBlock "Ik_tal" SrcPort 1 Points [45, 0; 0, -150; -435, 0; 0, 305] DstBlock "v_tal" DstPort 3 } Line { SrcBlock "h_tal" SrcPort 1 Points [5, 0] Branch { Points [0, -130] Branch { DstBlock "Ik_tal" DstPort 1 } Branch { Points [0, -50] DstBlock "Ina_tal" DstPort 2 } } Branch { Points [0, 40; 80, 0; 0, -10] DstBlock "Out2" DstPort 1 } } Line { SrcBlock "r_tal" SrcPort 1 Points [20, 0] Branch { Points [0, -120] DstBlock "It_tal" DstPort 2 } Branch { Points [0, 30; 80, 0; 0, 10] DstBlock "Out3" DstPort 1 } } Line { SrcBlock "It_tal" SrcPort 1 Points [60, 0; 0, -245; -470, 0; 0, 350] DstBlock "v_tal" DstPort 4 } Line { SrcBlock "v_tal" SrcPort 1 Points [0, 0; 30, 0] Branch { Points [0, -85] Branch { Points [0, -35] Branch { Points [0, -50] Branch { Points [0, -65] Branch { DstBlock "Il_tal" DstPort 1 } Branch { Points [0, -45] DstBlock "Ina_tal" DstPort 1 } } Branch { DstBlock "Ik_tal" DstPort 2 } } Branch { DstBlock "It_tal" DstPort 1 } } Branch { DstBlock "h_tal" DstPort 1 } } Branch { Points [0, 15] Branch { DstBlock "r_tal" DstPort 1 } Branch { Points [0, 125] DstBlock "Out1" DstPort 1 } } } Line { SrcBlock "In1" SrcPort 1 DstBlock "v_tal" DstPort 5 } Line { SrcBlock "In2" SrcPort 1 DstBlock "v_tal" DstPort 6 } Line { SrcBlock "In3" SrcPort 1 Points [25, 0] Branch { DstBlock "Selector2" DstPort 2 } Branch { Points [-20, 0; 0, -85; 20, 0] Branch { DstBlock "Selector1" DstPort 2 } Branch { Points [0, -100] DstBlock "Selector" DstPort 2 } } } Line { SrcBlock "Constant" SrcPort 1 Points [10, 0; 0, 60; 15, 0; 0, 25] DstBlock "Selector" DstPort 1 } Line { SrcBlock "Selector" SrcPort 1 Points [55, 0; 0, -5] DstBlock "v_tal" DstPort 7 } Line { SrcBlock "Constant1" SrcPort 1 Points [25, 0; 0, 35; 5, 0; 0, 15] DstBlock "Selector1" DstPort 1 } Line { SrcBlock "Selector1" SrcPort 1 Points [230, 0; 0, -250] DstBlock "h_tal" DstPort 2 } Line { SrcBlock "Constant2" SrcPort 1 Points [20, 0; 0, 30; 5, 0; 0, 10] DstBlock "Selector2" DstPort 1 } Line { SrcBlock "Selector2" SrcPort 1 Points [235, 0] DstBlock "r_tal" DstPort 2 } } } Block { BlockType Sum Name "Sum" Ports [8, 1] Position [95, 63, 115, 237] ShowName off Inputs "++++++++" } Block { BlockType Outport Name "Out1" Position [625, 133, 655, 147] IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "Out2" Position [700, 153, 730, 167] Port "2" IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "Out3" Position [700, 173, 730, 187] Port "3" IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "Out4" Position [620, 83, 650, 97] Port "4" IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "Sum" SrcPort 1 Points [15, 0] Branch { DstBlock "Product" DstPort 1 } Branch { Points [0, -60] DstBlock "Out4" DstPort 1 } } Line { SrcBlock "Fcn" SrcPort 1 Points [15, 0; 0, -115] DstBlock "Product" DstPort 2 } Line { SrcBlock "In1" SrcPort 1 Points [30, 0] DstBlock "Sum" DstPort 1 } Line { SrcBlock "In2" SrcPort 1 Points [25, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Product" SrcPort 1 Points [0, -5] DstBlock "Subsystem" DstPort 2 } Line { SrcBlock "In9" SrcPort 1 Points [55, 0; 0, 120] DstBlock "Subsystem" DstPort 1 } Line { SrcBlock "Subsystem" SrcPort 1 Points [20, 0] Branch { Points [0, 195; -545, 0; 0, -45] DstBlock "Fcn" DstPort 1 } Branch { DstBlock "Out1" DstPort 1 } } Line { SrcBlock "In10" SrcPort 1 DstBlock "Subsystem" DstPort 3 } Line { SrcBlock "In4" SrcPort 1 DstBlock "Sum" DstPort 4 } Line { SrcBlock "In3" SrcPort 1 DstBlock "Sum" DstPort 3 } Line { SrcBlock "In8" SrcPort 1 Points [10, 0; 0, -25] DstBlock "Sum" DstPort 8 } Line { SrcBlock "In6" SrcPort 1 Points [15, 0; 0, -20] DstBlock "Sum" DstPort 7 } Line { SrcBlock "In5" SrcPort 1 Points [5, 0; 0, -15] DstBlock "Sum" DstPort 6 } Line { SrcBlock "In7" SrcPort 1 Points [10, 0; 0, -10] DstBlock "Sum" DstPort 5 } Line { SrcBlock "Subsystem" SrcPort 2 DstBlock "Out2" DstPort 1 } Line { SrcBlock "Subsystem" SrcPort 3 DstBlock "Out3" DstPort 1 } } } Block { BlockType ToWorkspace Name "vtal" Position [205, 265, 265, 295] VariableName "VTAL" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "vtal1" Position [205, 520, 265, 550] VariableName "IGPTAL" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "vtal2" Position [210, 825, 270, 855] VariableName "HTAL" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "vtal3" Position [215, 1120, 275, 1150] VariableName "RTAL" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Line { SrcBlock "Clock" SrcPort 1 DstBlock "To Workspace1" DstPort 1 } Line { SrcBlock "thalcomp2" SrcPort 1 DstBlock "Goto97" DstPort 1 } Line { SrcBlock "In2" SrcPort 1 Points [0, 20] DstBlock "thalcomp2" DstPort 2 } Line { SrcBlock "thalcomp2" SrcPort 4 DstBlock "Goto99" DstPort 1 } Line { SrcBlock "In1" SrcPort 1 Points [75, 0; 0, 40] DstBlock "thalcomp2" DstPort 1 } Line { SrcBlock "Mux3" SrcPort 1 Points [0, 0] DstBlock "vtal" DstPort 1 } Line { SrcBlock "From200" SrcPort 1 DstBlock "Mux3" DstPort 1 } Line { SrcBlock "Mux4" SrcPort 1 Points [0, -5] DstBlock "vtal1" DstPort 1 } Line { SrcBlock "From227" SrcPort 1 Points [30, 0] DstBlock "Mux4" DstPort 1 } Line { SrcBlock "In13" SrcPort 1 DstBlock "thalcomp2" DstPort 3 } Line { SrcBlock "In14" SrcPort 1 Points [80, 0; 0, -15] DstBlock "thalcomp2" DstPort 4 } Line { SrcBlock "Constant16" SrcPort 1 Points [-55, 0; 0, -270] DstBlock "thalcomp2" DstPort 10 } Line { SrcBlock "iEccit" SrcPort 1 Points [-65, 0; 0, -260] Branch { Points [0, -595] DstBlock "thalcomp2" DstPort 9 } Branch { DstBlock "thalcomp1" DstPort 9 } } Line { SrcBlock "In3" SrcPort 1 Points [85, 0; 0, -35] DstBlock "thalcomp2" DstPort 5 } Line { SrcBlock "In4" SrcPort 1 Points [90, 0; 0, -55] DstBlock "thalcomp2" DstPort 6 } Line { SrcBlock "In7" SrcPort 1 Points [110, 0; 0, -75] DstBlock "thalcomp2" DstPort 7 } Line { SrcBlock "In8" SrcPort 1 Points [90, 0; 0, -95] DstBlock "thalcomp2" DstPort 8 } Line { SrcBlock "Constant1" SrcPort 1 Points [-45, 0; 0, -195] DstBlock "thalcomp1" DstPort 10 } Line { SrcBlock "In11" SrcPort 1 Points [165, 0; 0, 15] DstBlock "thalcomp1" DstPort 1 } Line { SrcBlock "In12" SrcPort 1 DstBlock "thalcomp1" DstPort 2 } Line { SrcBlock "In15" SrcPort 1 Points [25, 0; 0, -20] DstBlock "thalcomp1" DstPort 3 } Line { SrcBlock "In16" SrcPort 1 Points [25, 0; 0, -35] DstBlock "thalcomp1" DstPort 4 } Line { SrcBlock "In5" SrcPort 1 Points [35, 0; 0, -55] DstBlock "thalcomp1" DstPort 5 } Line { SrcBlock "In6" SrcPort 1 Points [45, 0; 0, -70] DstBlock "thalcomp1" DstPort 6 } Line { SrcBlock "In9" SrcPort 1 Points [55, 0; 0, -90] DstBlock "thalcomp1" DstPort 7 } Line { SrcBlock "In10" SrcPort 1 Points [55, 0; 0, -105] DstBlock "thalcomp1" DstPort 8 } Line { SrcBlock "thalcomp1" SrcPort 1 DstBlock "Goto1" DstPort 1 } Line { SrcBlock "thalcomp1" SrcPort 4 DstBlock "Goto2" DstPort 1 } Line { SrcBlock "From1" SrcPort 1 DstBlock "Mux3" DstPort 2 } Line { SrcBlock "From2" SrcPort 1 Points [15, 0; 0, -5] DstBlock "Mux4" DstPort 2 } Line { SrcBlock "thalcomp2" SrcPort 2 DstBlock "Goto3" DstPort 1 } Line { SrcBlock "thalcomp2" SrcPort 3 DstBlock "Goto4" DstPort 1 } Line { SrcBlock "thalcomp1" SrcPort 2 DstBlock "Goto5" DstPort 1 } Line { SrcBlock "thalcomp1" SrcPort 3 DstBlock "Goto6" DstPort 1 } Line { SrcBlock "Mux1" SrcPort 1 Points [0, -5] DstBlock "vtal2" DstPort 1 } Line { SrcBlock "From4" SrcPort 1 Points [30, 0] DstBlock "Mux1" DstPort 1 } Line { SrcBlock "From3" SrcPort 1 Points [15, 0; 0, -5] DstBlock "Mux1" DstPort 2 } Line { SrcBlock "Mux2" SrcPort 1 Points [0, -5] DstBlock "vtal3" DstPort 1 } Line { SrcBlock "From6" SrcPort 1 Points [30, 0] DstBlock "Mux2" DstPort 1 } Line { SrcBlock "From5" SrcPort 1 Points [15, 0; 0, -5] DstBlock "Mux2" DstPort 2 } } }