Model { Name "equalspiralband300" Version 4.00 SampleTimeColors off LibraryLinkDisplay "none" WideLines off ShowLineDimensions off ShowPortDataTypes off RecordCoverage off CovPath "/" CovSaveName "covdata" CovNameIncrementing off CovHtmlReporting on BlockNameDataTip off BlockParametersDataTip off BlockDescriptionStringDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off Created "Fri Nov 30 07:14:05 2001" Creator "kevin" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "kevin" ModifiedDateFormat "%" LastModifiedDate "Fri Feb 1 17:05:24 2002" ModelVersionFormat "1.%" ConfigurationManager "none" SimParamPage "Solver" StartTime "0.0" StopTime "5000" SolverMode "Auto" Solver "ode45" RelTol "1e-5" AbsTol "1e-4" Refine "1" MaxStep "auto" MinStep "auto" MaxNumMinSteps "-1" InitialStep "auto" FixedStep "auto" MaxOrder 5 OutputOption "RefineOutputTimes" OutputTimes "[]" LoadExternalInput off ExternalInput "[t, u]" SaveTime off TimeSaveName "tout" SaveState on StateSaveName "xout" SaveOutput off OutputSaveName "yout" LoadInitialState off InitialState "xFinal" SaveFinalState off FinalStateName "xFinal" SaveFormat "StructureWithTime" LimitDataPoints off MaxDataPoints "1000" Decimation "1" AlgebraicLoopMsg "warning" MinStepSizeMsg "warning" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" InheritedTsInSrcMsg "warning" SingleTaskRateTransMsg "none" MultiTaskRateTransMsg "error" IntegerOverflowMsg "warning" CheckForMatrixSingularity "none" UnnecessaryDatatypeConvMsg "none" Int32ToFloatConvMsg "warning" SignalLabelMismatchMsg "none" LinearizationMsg "none" VectorMatrixConversionMsg "none" SfunCompatibilityCheckMsg "none" BlockPriorityViolationMsg "warning" ArrayBoundsChecking "none" ConsistencyChecking "none" ZeroCross on Profile off SimulationMode "accelerator" RTWSystemTargetFile "grt.tlc" RTWInlineParameters off RTWRetainRTWFile off RTWTemplateMakefile "grt_default_tmf" RTWMakeCommand "make_rtw" RTWGenerateCodeOnly off TLCProfiler off TLCDebug off TLCCoverage off AccelSystemTargetFile "accel.tlc" AccelTemplateMakefile "accel_default_tmf" AccelMakeCommand "make_rtw" ExtModeMexFile "ext_comm" ExtModeBatchMode off ExtModeTrigType "manual" ExtModeTrigMode "normal" ExtModeTrigPort "1" ExtModeTrigElement "any" ExtModeTrigDuration 1000 ExtModeTrigHoldOff 0 ExtModeTrigDelay 0 ExtModeTrigDirection "rising" ExtModeTrigLevel 0 ExtModeArchiveMode "off" ExtModeAutoIncOneShot off ExtModeIncDirWhenArm off ExtModeAddSuffixToVar off ExtModeWriteAllDataToWs off ExtModeArmWhenConnect on ExtModeLogAll on OptimizeBlockIOStorage on BufferReuse on ParameterPooling on BlockReductionOpt off BooleanDataType off BlockDefaults { Orientation "right" ForegroundColor "black" BackgroundColor "white" DropShadow off NamePlacement "normal" FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" ShowName on } AnnotationDefaults { HorizontalAlignment "center" VerticalAlignment "middle" ForegroundColor "black" BackgroundColor "white" DropShadow off FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" } LineDefaults { FontName "Helvetica" FontSize 9 FontWeight "normal" FontAngle "normal" } System { Name "equalspiralband300" Location [48, 50, 828, 1166] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on ReportName "simulink-default.rpt" Block { BlockType SubSystem Name "Ca" Ports [3, 2] Position [180, 765, 270, 845] Orientation "left" ForegroundColor "orange" ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "Ca" Location [299, 763, 797, 1063] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "I_L" Position [60, 188, 90, 202] Port "1" Interpolate on } Block { BlockType Inport Name "I_T" Position [60, 113, 90, 127] Port "2" Interpolate on } Block { BlockType Inport Name "VmIn" Position [65, 58, 95, 72] Port "3" Interpolate on } Block { BlockType SubSystem Name "Drive" Ports [2, 2] Position [210, 124, 310, 191] ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "Drive" Location [115, 732, 809, 1230] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "VmIn" Position [15, 138, 45, 152] Port "1" Interpolate on } Block { BlockType Inport Name "AllCa Curr In" Position [60, 278, 90, 292] Port "2" Interpolate on } Block { BlockType Integrator Name "Ca" Ports [2, 1] Position [455, 327, 485, 358] ExternalReset "none" InitialConditionSource "external" InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Scope Name "Ca Test Scope" Ports [1] Position [555, 399, 585, 431] Floating off Location [839, 99, 1593, 557] Open off NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "yonly" List { ListType AxesTitles axes1 "%" } Grid "on" TimeRange "2000" YMin "2.99e-08" YMax "3.15e-08" SaveToWorkspace off SaveName "ScopeData25" DataFormat "StructureWithTime" LimitDataPoints on MaxDataPoints "100000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Constant Name "Ca_i_inf" Position [125, 421, 180, 449] Value "3e-8" VectorParams1D on } Block { BlockType Constant Name "Ca_i_tau" Position [155, 350, 185, 380] Value "2" VectorParams1D on } Block { BlockType Constant Name "Cao" Position [60, 19, 120, 51] Value "0.003" VectorParams1D on } Block { BlockType Fcn Name "Fcn" Position [75, 127, 235, 163] Expr "exp(-75.3903*u/1000)" } Block { BlockType Gain Name "Gain" Position [150, 252, 265, 318] Gain "-1.78e-6" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on } Block { BlockType Reference Name "Model Info1" Ports [] Position [224, 224, 278, 264] ShowName off FontName "Arial" SourceBlock "simulink3/Signals\n& Systems/Model Info" SourceType "CMBlock" InitialBlockCM "none" BlockCM "none" Frame "on" DisplayStringWithTags "na -> M" MaskDisplayString "na -> M" HorizontalTextAlignment "Center" LeftAlignmentValue "0.5" SourceBlockDiagram "equalspiralband500" TagMaxNumber "20" } Block { BlockType Product Name "Product" Ports [2, 1] Position [300, 91, 345, 124] Inputs "2" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Product Name "Product1" Ports [2, 1] Position [285, 356, 330, 389] Inputs "/*" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [515, 190, 535, 210] ShowName off IconShape "round" Inputs "|-+" SaturateOnIntegerOverflow on } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [340, 275, 360, 295] ShowName off IconShape "round" Inputs "|++" SaturateOnIntegerOverflow on } Block { BlockType Sum Name "Sum2" Ports [2, 1] Position [230, 400, 250, 420] ShowName off IconShape "round" Inputs "|+-" SaturateOnIntegerOverflow on } Block { BlockType Outport Name "Ca Drive Out" Position [610, 193, 640, 207] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType Outport Name "Ca_i Out" Position [575, 323, 605, 337] Port "2" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "VmIn" SrcPort 1 DstBlock "Fcn" DstPort 1 } Line { SrcBlock "Fcn" SrcPort 1 Points [45, 0] DstBlock "Product" DstPort 2 } Line { SrcBlock "Cao" SrcPort 1 Points [160, 0] DstBlock "Product" DstPort 1 } Line { SrcBlock "Product" SrcPort 1 Points [150, 0] DstBlock "Sum" DstPort 1 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Ca Drive Out" DstPort 1 } Line { SrcBlock "AllCa Curr In" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Sum1" SrcPort 1 Points [75, 0] DstBlock "Ca" DstPort 1 } Line { SrcBlock "Product1" SrcPort 1 Points [15, 0] DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Ca_i_tau" SrcPort 1 DstBlock "Product1" DstPort 1 } Line { SrcBlock "Ca" SrcPort 1 Points [0, -5; 5, 0] Branch { Points [30, 0; 0, -10] Branch { DstBlock "Sum" DstPort 2 } Branch { Points [15, 0] Branch { DstBlock "Ca_i Out" DstPort 1 } Branch { DstBlock "Ca Test Scope" DstPort 1 } } } Branch { Points [0, 125; -255, 0] DstBlock "Sum2" DstPort 2 } } Line { SrcBlock "Sum2" SrcPort 1 Points [15, 0] DstBlock "Product1" DstPort 2 } Line { SrcBlock "Ca_i_inf" SrcPort 1 Points [30, 0] Branch { DstBlock "Sum2" DstPort 1 } Branch { Points [0, 15; 225, 0] DstBlock "Ca" DstPort 2 } } } } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [130, 145, 150, 165] ShowName off IconShape "round" Inputs "|++" SaturateOnIntegerOverflow on } Block { BlockType Outport Name "Ca_iOut" Position [425, 183, 455, 197] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType Outport Name "CaDriveOut" Position [420, 133, 450, 147] Port "2" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "VmIn" SrcPort 1 Points [95, 0] DstBlock "Drive" DstPort 1 } Line { SrcBlock "Sum" SrcPort 1 Points [40, 0] DstBlock "Drive" DstPort 2 } Line { SrcBlock "I_T" SrcPort 1 Points [20, 0] DstBlock "Sum" DstPort 1 } Line { SrcBlock "I_L" SrcPort 1 Points [45, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Drive" SrcPort 1 DstBlock "CaDriveOut" DstPort 1 } Line { SrcBlock "Drive" SrcPort 2 Points [95, 0] DstBlock "Ca_iOut" DstPort 1 } } } Block { BlockType Scope Name "Ca Scope" Ports [1] Position [350, 739, 380, 771] Floating off Location [852, 258, 1582, 716] Open off NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "yonly" List { ListType AxesTitles axes1 "%" } Grid "on" TimeRange "2000" YMin "0" YMax "4.91192e-07" SaveToWorkspace off SaveName "ScopeData2" DataFormat "StructureWithTime" LimitDataPoints on MaxDataPoints "100000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType SubSystem Name "I_A" Ports [2, 1] Position [200, 149, 250, 196] ForegroundColor "green" ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "I_A" Location [313, 107, 791, 412] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom off Block { BlockType Inport Name "Vm" Position [15, 18, 45, 32] Port "1" Interpolate on } Block { BlockType Inport Name "VRKIn" Position [90, 98, 120, 112] Port "2" Interpolate on } Block { BlockType SubSystem Name "Gates" Ports [1, 1] Position [130, 195, 210, 235] ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "Gates" Location [216, 130, 788, 337] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "VmIn" Position [15, 53, 45, 67] Port "1" Interpolate on } Block { BlockType Scope Name "I_A Gate Scope" Ports [1] Position [465, 129, 495, 161] Floating off Location [841, 113, 1595, 573] Open off NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "xonly" List { ListType AxesTitles axes1 "%" } Grid "on" TimeRange "4000" YMin "0" YMax "1" SaveToWorkspace off SaveName "ScopeData7" DataFormat "StructureWithTime" LimitDataPoints on MaxDataPoints "100000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Mux Name "Mux" Ports [3, 1] Position [410, 123, 415, 167] ShowName off Inputs "3" DisplayOption "bar" } Block { BlockType Product Name "Product" Ports [4, 1] Position [300, 15, 345, 80] Inputs "4" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType SubSystem Name "a" Ports [1, 1] Position [145, 24, 185, 56] ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "a" Location [82, 152, 788, 448] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "VmIn" Position [20, 143, 50, 157] Port "1" Interpolate on } Block { BlockType Product Name "Product" Ports [2, 1] Position [465, 96, 510, 129] Inputs "*/" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Product Name "Product1" Ports [2, 1] Position [400, 186, 445, 219] Inputs "2" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Constant Name "Q10" Position [285, 234, 375, 266] Value "GlobalQ10*3" VectorParams1D on } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [260, 95, 280, 115] ShowName off IconShape "round" Inputs "|-+" SaturateOnIntegerOverflow on } Block { BlockType Integrator Name "a" Ports [2, 1] Position [565, 102, 595, 133] ExternalReset "none" InitialConditionSource "external" InitialCondition "0.238773" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Fcn Name "a_inf" Position [105, 117, 230, 153] Expr "1/(1+exp((u+36)/-20))" } Block { BlockType Fcn Name "a_tau" Position [105, 171, 375, 219] Expr "1/(exp((u+35.82)/19.69)+exp((u+79.6" "9)/-12.7))+0.37" } Block { BlockType Outport Name "aOut" Position [650, 108, 680, 122] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "a" SrcPort 1 Points [0, -5; 5, 0] Branch { DstBlock "aOut" DstPort 1 } Branch { Points [0, -40; -375, 0; 0, 30] DstBlock "Sum" DstPort 1 } } Line { SrcBlock "Product" SrcPort 1 Points [35, 0] DstBlock "a" DstPort 1 } Line { SrcBlock "a_inf" SrcPort 1 Points [35, 0] Branch { DstBlock "Sum" DstPort 2 } Branch { Points [0, 15; 275, 0; 0, -25] DstBlock "a" DstPort 2 } } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Product" DstPort 1 } Line { SrcBlock "VmIn" SrcPort 1 Points [30, 0] Branch { Points [0, -15] DstBlock "a_inf" DstPort 1 } Branch { Points [0, 45] DstBlock "a_tau" DstPort 1 } } Line { SrcBlock "Product1" SrcPort 1 DstBlock "Product" DstPort 2 } Line { SrcBlock "a_tau" SrcPort 1 DstBlock "Product1" DstPort 1 } Line { SrcBlock "Q10" SrcPort 1 Points [5, 0] DstBlock "Product1" DstPort 2 } } } Block { BlockType SubSystem Name "b" Ports [1, 1] Position [145, 103, 185, 137] ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "b" Location [109, 174, 788, 422] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "VmIn" Position [15, 73, 45, 87] Port "1" Interpolate on } Block { BlockType Mux Name "Mux" Ports [2, 1] Position [595, 151, 600, 189] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Product Name "Product" Ports [2, 1] Position [390, 26, 435, 59] Inputs "*/" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Product Name "Product1" Ports [2, 1] Position [315, 126, 360, 159] Inputs "2" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Constant Name "Q10" Position [120, 185, 235, 215] Value "GlobalQ10 *3" VectorParams1D on } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [325, 15, 345, 35] ShowName off IconShape "round" Inputs "|-+" SaturateOnIntegerOverflow on } Block { BlockType Integrator Name "b" Ports [2, 1] Position [490, 32, 520, 63] ExternalReset "none" InitialConditionSource "external" InitialCondition "0.0416757" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Scope Name "bScope" Ports [1] Position [620, 154, 650, 186] Floating off Location [842, 92, 1595, 550] Open off NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "xonly" List { ListType AxesTitles axes1 "%" } Grid "on" TimeRange "4000" YMin "0" YMax "1" SaveToWorkspace off SaveName "ScopeData3" DataFormat "StructureWithTime" LimitDataPoints on MaxDataPoints "100000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Fcn Name "b_inf" Position [95, 49, 215, 81] Expr "1/(1+exp((u+68)/4))" } Block { BlockType SubSystem Name "b_tau" Ports [1, 1] Position [120, 119, 205, 151] ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "b_tau" Location [120, 362, 800, 652] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "VmIn" Position [15, 68, 45, 82] Port "1" Interpolate on } Block { BlockType Constant Name "Constant" Position [90, 140, 120, 170] Value "-60" VectorParams1D on } Block { BlockType Constant Name "Constant1" Position [305, 15, 335, 45] Value "20" VectorParams1D on } Block { BlockType Fcn Name "Fcn" Position [100, 224, 335, 256] Expr "500/(exp((u+60)/2)+exp((u+80)/-20" "))" } Block { BlockType Logic Name "Logical\nOperator" Ports [1, 1] Position [220, 129, 250, 161] Operator "NOT" Inputs "2" } Block { BlockType Product Name "Product" Ports [2, 1] Position [405, 61, 450, 94] Inputs "2" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Product Name "Product1" Ports [2, 1] Position [405, 136, 450, 169] Inputs "2" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType RelationalOperator Name "Relational\nOperator" Position [150, 66, 180, 104] Operator ">=" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [540, 100, 560, 120] ShowName off IconShape "round" Inputs "|++" SaturateOnIntegerOverflow on } Block { BlockType Outport Name "b_tauOut" Position [595, 103, 625, 117] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "VmIn" SrcPort 1 Points [0, 0; 10, 0] Branch { DstBlock "Relational\nOperator" DstPort 1 } Branch { Points [0, 165] DstBlock "Fcn" DstPort 1 } } Line { SrcBlock "Constant" SrcPort 1 Points [10, 0] DstBlock "Relational\nOperator" DstPort 2 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "b_tauOut" DstPort 1 } Line { SrcBlock "Relational\nOperator" SrcPort 1 Points [0, 0; 15, 0] Branch { Points [0, 60] DstBlock "Logical\nOperator" DstPort 1 } Branch { DstBlock "Product" DstPort 2 } } Line { SrcBlock "Constant1" SrcPort 1 Points [50, 0] DstBlock "Product" DstPort 1 } Line { SrcBlock "Product1" SrcPort 1 Points [95, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Product" SrcPort 1 Points [70, 0] DstBlock "Sum" DstPort 1 } Line { SrcBlock "Logical\nOperator" SrcPort 1 DstBlock "Product1" DstPort 1 } Line { SrcBlock "Fcn" SrcPort 1 Points [50, 0] DstBlock "Product1" DstPort 2 } } } Block { BlockType Outport Name "bOut" Position [575, 38, 605, 52] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "b" SrcPort 1 Points [0, -5; 5, 0] Branch { Points [0, -40; -220, 0] DstBlock "Sum" DstPort 1 } Branch { Points [25, 0] Branch { DstBlock "bOut" DstPort 1 } Branch { Points [0, 115] DstBlock "Mux" DstPort 1 } } } Line { SrcBlock "Product" SrcPort 1 Points [35, 0] DstBlock "b" DstPort 1 } Line { SrcBlock "b_inf" SrcPort 1 Points [90, 0] Branch { Points [25, 0] DstBlock "Sum" DstPort 2 } Branch { Points [0, 25; 130, 0] Branch { Points [35, 0] DstBlock "b" DstPort 2 } Branch { Points [0, 90] DstBlock "Mux" DstPort 2 } } } Line { SrcBlock "Sum" SrcPort 1 Points [25, 0] DstBlock "Product" DstPort 1 } Line { SrcBlock "VmIn" SrcPort 1 Points [0, 0; 30, 0] Branch { DstBlock "b_inf" DstPort 1 } Branch { Points [0, 55] DstBlock "b_tau" DstPort 1 } } Line { SrcBlock "b_tau" SrcPort 1 DstBlock "Product1" DstPort 1 } Line { SrcBlock "Product1" SrcPort 1 Points [10, 0] DstBlock "Product" DstPort 2 } Line { SrcBlock "Q10" SrcPort 1 Points [60, 0] DstBlock "Product1" DstPort 2 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "bScope" DstPort 1 } } } Block { BlockType Outport Name "GatesOut" Position [385, 43, 415, 57] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "Product" SrcPort 1 Points [10, 0] Branch { DstBlock "GatesOut" DstPort 1 } Branch { Points [0, 80] DstBlock "Mux" DstPort 1 } } Line { SrcBlock "b" SrcPort 1 Points [20, 0] Branch { Points [75, 0] DstBlock "Product" DstPort 4 } Branch { Points [0, 40] DstBlock "Mux" DstPort 3 } } Line { SrcBlock "a" SrcPort 1 Points [40, 0] Branch { Points [50, 0] Branch { DstBlock "Product" DstPort 2 } Branch { Points [0, -15] DstBlock "Product" DstPort 1 } Branch { Points [0, 15] DstBlock "Product" DstPort 3 } } Branch { Points [0, 105] DstBlock "Mux" DstPort 2 } } Line { SrcBlock "VmIn" SrcPort 1 Points [0, 0; 80, 0] Branch { DstBlock "a" DstPort 1 } Branch { DstBlock "b" DstPort 1 } } Line { SrcBlock "Mux" SrcPort 1 DstBlock "I_A Gate Scope" DstPort 1 } Annotation { Position [383, 115] Text "yellow" } Annotation { Position [320, 132] Text "purple" } Annotation { Position [321, 173] Text "blue" } } } Block { BlockType Product Name "Product" Ports [3, 1] Position [300, 80, 345, 140] Inputs "3" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [115, 15, 135, 35] ShowName off IconShape "round" Inputs "|+-" SaturateOnIntegerOverflow on } Block { BlockType Constant Name "gbarI_A" Position [140, 90, 280, 120] Value "0.129525" VectorParams1D on } Block { BlockType Outport Name "I_A" Position [385, 103, 415, 117] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "Vm" SrcPort 1 Points [10, 0] Branch { DstBlock "Sum" DstPort 1 } Branch { Points [0, 190] DstBlock "Gates" DstPort 1 } } Line { SrcBlock "VRKIn" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { SrcBlock "Product" SrcPort 1 DstBlock "I_A" DstPort 1 } Line { SrcBlock "Sum" SrcPort 1 Points [145, 0] DstBlock "Product" DstPort 1 } Line { SrcBlock "gbarI_A" SrcPort 1 DstBlock "Product" DstPort 2 } Line { SrcBlock "Gates" SrcPort 1 Points [70, 0] DstBlock "Product" DstPort 3 } } } Block { BlockType Scope Name "I_A Scope" Ports [1] Position [350, 129, 380, 161] NamePlacement "alternate" Floating off Location [841, 70, 1595, 528] Open off NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "xonly" List { ListType AxesTitles axes1 "%" } Grid "on" TimeRange "4000" YMin "0" YMax "1.2" SaveToWorkspace off SaveName "ScopeData18" DataFormat "StructureWithTime" LimitDataPoints on MaxDataPoints "100000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Scope Name "I_A red book Scope" Ports [1] Position [320, 389, 350, 421] Floating off Location [796, 119, 1526, 577] Open off NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "yonly" List { ListType AxesTitles axes1 "%" } Grid "on" TimeRange "1198.298467455276" YMin "-8.569854804239085" YMax "1.357216824200776" SaveToWorkspace off SaveName "ScopeData26" DataFormat "StructureWithTime" LimitDataPoints on MaxDataPoints "100000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Scope Name "I_A slow Scope1" Ports [1] Position [485, 159, 515, 191] NamePlacement "alternate" Floating off Location [841, 70, 1595, 528] Open off NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "xonly" List { ListType AxesTitles axes1 "%" } Grid "on" TimeRange "4000" YMin "0" YMax "1.2" SaveToWorkspace off SaveName "ScopeData30" DataFormat "StructureWithTime" LimitDataPoints on MaxDataPoints "100000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType SubSystem Name "I_Aslow" Ports [2, 1] Position [315, 189, 365, 236] ForegroundColor "green" ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "I_Aslow" Location [312, 140, 790, 445] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "Vm" Position [15, 18, 45, 32] Port "1" Interpolate on } Block { BlockType Inport Name "VRKIn" Position [90, 98, 120, 112] Port "2" Interpolate on } Block { BlockType SubSystem Name "Gates" Ports [1, 1] Position [130, 195, 210, 235] ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "Gates" Location [214, 251, 786, 458] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "VmIn" Position [15, 53, 45, 67] Port "1" Interpolate on } Block { BlockType Scope Name "I_A Slow Gate Scope" Ports [1] Position [465, 129, 495, 161] Floating off Location [841, 47, 1595, 507] Open off NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "xonly" List { ListType AxesTitles axes1 "%" } Grid "on" TimeRange "3500" YMin "0" YMax "0.9" SaveToWorkspace off SaveName "ScopeData7" DataFormat "StructureWithTime" LimitDataPoints on MaxDataPoints "100000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Mux Name "Mux" Ports [3, 1] Position [410, 123, 415, 167] ShowName off Inputs "3" DisplayOption "bar" } Block { BlockType Product Name "Product" Ports [4, 1] Position [300, 15, 345, 80] Inputs "4" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType SubSystem Name "a" Ports [1, 1] Position [145, 24, 185, 56] ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "a" Location [81, 273, 787, 569] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "VmIn" Position [20, 143, 50, 157] Port "1" Interpolate on } Block { BlockType Product Name "Product" Ports [2, 1] Position [465, 96, 510, 129] Inputs "*/" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Product Name "Product1" Ports [2, 1] Position [400, 186, 445, 219] Inputs "2" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Constant Name "Q10" Position [285, 234, 375, 266] Value "GlobalQ10*10" VectorParams1D on } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [260, 95, 280, 115] ShowName off IconShape "round" Inputs "|-+" SaturateOnIntegerOverflow on } Block { BlockType Integrator Name "a" Ports [2, 1] Position [565, 102, 595, 133] ExternalReset "none" InitialConditionSource "external" InitialCondition "0.238773" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Fcn Name "a_inf" Position [105, 117, 230, 153] Expr "1/(1+exp((u+36)/-20))" } Block { BlockType Fcn Name "a_tau" Position [105, 171, 375, 219] Expr "1/(exp((u+35.82)/19.69)+exp((u+79.6" "9)/-12.7))+0.37" } Block { BlockType Outport Name "aOut" Position [650, 108, 680, 122] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "a" SrcPort 1 Points [0, -5; 5, 0] Branch { DstBlock "aOut" DstPort 1 } Branch { Points [0, -40; -375, 0; 0, 30] DstBlock "Sum" DstPort 1 } } Line { SrcBlock "Product" SrcPort 1 Points [35, 0] DstBlock "a" DstPort 1 } Line { SrcBlock "a_inf" SrcPort 1 Points [35, 0] Branch { DstBlock "Sum" DstPort 2 } Branch { Points [0, 15; 275, 0; 0, -25] DstBlock "a" DstPort 2 } } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Product" DstPort 1 } Line { SrcBlock "VmIn" SrcPort 1 Points [30, 0] Branch { Points [0, -15] DstBlock "a_inf" DstPort 1 } Branch { Points [0, 45] DstBlock "a_tau" DstPort 1 } } Line { SrcBlock "Product1" SrcPort 1 DstBlock "Product" DstPort 2 } Line { SrcBlock "a_tau" SrcPort 1 DstBlock "Product1" DstPort 1 } Line { SrcBlock "Q10" SrcPort 1 Points [5, 0] DstBlock "Product1" DstPort 2 } } } Block { BlockType SubSystem Name "b" Ports [1, 1] Position [145, 103, 185, 137] ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "b" Location [108, 295, 787, 543] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "VmIn" Position [15, 73, 45, 87] Port "1" Interpolate on } Block { BlockType Mux Name "Mux" Ports [2, 1] Position [595, 151, 600, 189] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Product Name "Product" Ports [2, 1] Position [390, 26, 435, 59] Inputs "*/" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Product Name "Product1" Ports [2, 1] Position [315, 126, 360, 159] Inputs "2" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Constant Name "Q10" Position [120, 185, 235, 215] Value "GlobalQ10 *10" VectorParams1D on } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [325, 15, 345, 35] ShowName off IconShape "round" Inputs "|-+" SaturateOnIntegerOverflow on } Block { BlockType Integrator Name "b" Ports [2, 1] Position [490, 32, 520, 63] ExternalReset "none" InitialConditionSource "external" InitialCondition "0.0416757" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Scope Name "bScope" Ports [1] Position [620, 154, 650, 186] Floating off Location [842, 92, 1595, 550] Open off NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "xonly" List { ListType AxesTitles axes1 "%" } Grid "on" TimeRange "4000" YMin "0" YMax "1" SaveToWorkspace off SaveName "ScopeData3" DataFormat "StructureWithTime" LimitDataPoints on MaxDataPoints "100000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Fcn Name "b_inf" Position [95, 49, 215, 81] Expr "1/(1+exp((u+68)/4))" } Block { BlockType SubSystem Name "b_tau" Ports [1, 1] Position [120, 119, 205, 151] ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "b_tau" Location [111, 499, 791, 789] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "VmIn" Position [15, 68, 45, 82] Port "1" Interpolate on } Block { BlockType Constant Name "Constant" Position [90, 140, 120, 170] Value "-60" VectorParams1D on } Block { BlockType Constant Name "Constant1" Position [305, 15, 335, 45] Value "20" VectorParams1D on } Block { BlockType Fcn Name "Fcn" Position [100, 224, 335, 256] Expr "500/(exp((u+60)/2)+exp((u+80)/-20" "))" } Block { BlockType Logic Name "Logical\nOperator" Ports [1, 1] Position [220, 129, 250, 161] Operator "NOT" Inputs "2" } Block { BlockType Product Name "Product" Ports [2, 1] Position [405, 61, 450, 94] Inputs "2" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Product Name "Product1" Ports [2, 1] Position [405, 136, 450, 169] Inputs "2" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType RelationalOperator Name "Relational\nOperator" Position [150, 66, 180, 104] Operator ">=" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [540, 100, 560, 120] ShowName off IconShape "round" Inputs "|++" SaturateOnIntegerOverflow on } Block { BlockType Outport Name "b_tauOut" Position [595, 103, 625, 117] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "VmIn" SrcPort 1 Points [0, 0; 10, 0] Branch { DstBlock "Relational\nOperator" DstPort 1 } Branch { Points [0, 165] DstBlock "Fcn" DstPort 1 } } Line { SrcBlock "Constant" SrcPort 1 Points [10, 0] DstBlock "Relational\nOperator" DstPort 2 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "b_tauOut" DstPort 1 } Line { SrcBlock "Relational\nOperator" SrcPort 1 Points [0, 0; 15, 0] Branch { Points [0, 60] DstBlock "Logical\nOperator" DstPort 1 } Branch { DstBlock "Product" DstPort 2 } } Line { SrcBlock "Constant1" SrcPort 1 Points [50, 0] DstBlock "Product" DstPort 1 } Line { SrcBlock "Product1" SrcPort 1 Points [95, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Product" SrcPort 1 Points [70, 0] DstBlock "Sum" DstPort 1 } Line { SrcBlock "Logical\nOperator" SrcPort 1 DstBlock "Product1" DstPort 1 } Line { SrcBlock "Fcn" SrcPort 1 Points [50, 0] DstBlock "Product1" DstPort 2 } } } Block { BlockType Outport Name "bOut" Position [575, 38, 605, 52] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "b" SrcPort 1 Points [0, -5; 5, 0] Branch { Points [0, -40; -220, 0] DstBlock "Sum" DstPort 1 } Branch { Points [25, 0] Branch { DstBlock "bOut" DstPort 1 } Branch { Points [0, 115] DstBlock "Mux" DstPort 1 } } } Line { SrcBlock "Product" SrcPort 1 Points [35, 0] DstBlock "b" DstPort 1 } Line { SrcBlock "b_inf" SrcPort 1 Points [90, 0] Branch { Points [25, 0] DstBlock "Sum" DstPort 2 } Branch { Points [0, 25; 130, 0] Branch { Points [35, 0] DstBlock "b" DstPort 2 } Branch { Points [0, 90] DstBlock "Mux" DstPort 2 } } } Line { SrcBlock "Sum" SrcPort 1 Points [25, 0] DstBlock "Product" DstPort 1 } Line { SrcBlock "VmIn" SrcPort 1 Points [0, 0; 30, 0] Branch { DstBlock "b_inf" DstPort 1 } Branch { Points [0, 55] DstBlock "b_tau" DstPort 1 } } Line { SrcBlock "b_tau" SrcPort 1 DstBlock "Product1" DstPort 1 } Line { SrcBlock "Product1" SrcPort 1 Points [10, 0] DstBlock "Product" DstPort 2 } Line { SrcBlock "Q10" SrcPort 1 Points [60, 0] DstBlock "Product1" DstPort 2 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "bScope" DstPort 1 } } } Block { BlockType Outport Name "GatesOut" Position [385, 43, 415, 57] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "Product" SrcPort 1 Points [10, 0] Branch { DstBlock "GatesOut" DstPort 1 } Branch { Points [0, 80] DstBlock "Mux" DstPort 1 } } Line { SrcBlock "b" SrcPort 1 Points [20, 0] Branch { Points [75, 0] DstBlock "Product" DstPort 4 } Branch { Points [0, 40] DstBlock "Mux" DstPort 3 } } Line { SrcBlock "a" SrcPort 1 Points [40, 0] Branch { Points [50, 0] Branch { DstBlock "Product" DstPort 2 } Branch { Points [0, -15] DstBlock "Product" DstPort 1 } Branch { Points [0, 15] DstBlock "Product" DstPort 3 } } Branch { Points [0, 105] DstBlock "Mux" DstPort 2 } } Line { SrcBlock "VmIn" SrcPort 1 Points [0, 0; 80, 0] Branch { DstBlock "a" DstPort 1 } Branch { DstBlock "b" DstPort 1 } } Line { SrcBlock "Mux" SrcPort 1 DstBlock "I_A Slow Gate Scope" DstPort 1 } Annotation { Position [383, 115] Text "yellow" } Annotation { Position [320, 132] Text "purple" } Annotation { Position [321, 173] Text "blue" } } } Block { BlockType Product Name "Product" Ports [3, 1] Position [300, 80, 345, 140] Inputs "3" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [115, 15, 135, 35] ShowName off IconShape "round" Inputs "|+-" SaturateOnIntegerOverflow on } Block { BlockType Constant Name "gbarI_A" Position [130, 90, 270, 120] Value "0.0254477" VectorParams1D on } Block { BlockType Outport Name "I_A" Position [385, 103, 415, 117] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "Vm" SrcPort 1 Points [10, 0] Branch { DstBlock "Sum" DstPort 1 } Branch { Points [0, 190] DstBlock "Gates" DstPort 1 } } Line { SrcBlock "VRKIn" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { SrcBlock "Product" SrcPort 1 DstBlock "I_A" DstPort 1 } Line { SrcBlock "Sum" SrcPort 1 Points [145, 0] DstBlock "Product" DstPort 1 } Line { SrcBlock "gbarI_A" SrcPort 1 Points [10, 0] DstBlock "Product" DstPort 2 } Line { SrcBlock "Gates" SrcPort 1 Points [70, 0] DstBlock "Product" DstPort 3 } } } Block { BlockType SubSystem Name "I_C" Ports [3, 1, 1] Position [200, 502, 295, 558] ForegroundColor "green" ShowPortLabels on TreatAsAtomicUnit on RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "I_C" Location [312, 724, 810, 1024] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "VRKIn" Position [40, 233, 70, 247] Port "1" Interpolate on } Block { BlockType Inport Name "VmIn" Position [35, 128, 65, 142] Port "2" Interpolate on } Block { BlockType Inport Name "Ca_iIn" Position [45, 63, 75, 77] Port "3" Interpolate on } Block { BlockType EnablePort Name "Enable" Ports [] Position [365, 45, 385, 65] StatesWhenEnabling "held" ShowOutputPort off } Block { BlockType Scope Name "I_C m Scope" Ports [1] Position [365, 229, 395, 261] Floating off Location [865, 213, 1595, 670] Open off NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "on" List { ListType AxesTitles axes1 "%" } Grid "on" TimeRange "3000" YMin "0" YMax "1" SaveToWorkspace off SaveName "ScopeData11" DataFormat "StructureWithTime" LimitDataPoints off MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Product Name "Product" Ports [3, 1] Position [345, 101, 390, 149] Inputs "3" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [215, 205, 235, 225] ShowName off IconShape "round" Inputs "|+-" SaturateOnIntegerOverflow on } Block { BlockType Constant Name "gbarI_C" Position [245, 14, 300, 46] Value "0" VectorParams1D on } Block { BlockType SubSystem Name "m" Ports [2, 1] Position [200, 104, 280, 146] ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "m" Location [20, 467, 926, 846] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "Ca_i In" Position [40, 23, 70, 37] Port "1" Interpolate on } Block { BlockType Inport Name "Vm In" Position [15, 133, 45, 147] Port "2" Interpolate on } Block { BlockType Fcn Name "Fcn" Position [115, 63, 205, 97] Expr "2.5e5*exp(u/24)" } Block { BlockType Product Name "Product" Ports [3, 1] Position [650, 117, 695, 193] Inputs "/**" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Product Name "Product1" Ports [2, 1] Position [505, 151, 550, 184] Inputs "*/" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Constant Name "Q10" Position [560, 15, 615, 45] Value "GlobalQ10" VectorParams1D on } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [420, 75, 450, 105] ShowName off IconShape "round" Inputs "|+|+|" SaturateOnIntegerOverflow on } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [590, 200, 620, 230] ShowName off IconShape "round" Inputs "|+|-|" SaturateOnIntegerOverflow on } Block { BlockType Product Name "alpha" Ports [2, 1] Position [240, 36, 285, 69] Inputs "2" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Fcn Name "beta" Position [165, 137, 250, 163] Expr "0.1*exp(-u/24)" } Block { BlockType Integrator Name "m" Ports [2, 1] Position [755, 162, 785, 193] ExternalReset "none" InitialConditionSource "external" InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Outport Name "mout" Position [855, 168, 885, 182] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "m" SrcPort 1 Points [0, -5; 15, 0] Branch { DstBlock "mout" DstPort 1 } Branch { Points [0, 81; -221, 0] DstBlock "Sum1" DstPort 2 } } Line { SrcBlock "Ca_i In" SrcPort 1 Points [150, 0] DstBlock "alpha" DstPort 1 } Line { SrcBlock "Fcn" SrcPort 1 Points [15, 0] DstBlock "alpha" DstPort 2 } Line { SrcBlock "Vm In" SrcPort 1 Points [0, 0; 50, 0] Branch { DstBlock "Fcn" DstPort 1 } Branch { Points [0, 10] DstBlock "beta" DstPort 1 } } Line { SrcBlock "Product1" SrcPort 1 Points [10, 0] Branch { Points [19, 0] DstBlock "Sum1" DstPort 1 } Branch { Points [0, 115; 175, 0] DstBlock "m" DstPort 2 } } Line { SrcBlock "Sum" SrcPort 1 Points [5, 0; 0, 85] DstBlock "Product1" DstPort 2 } Line { SrcBlock "beta" SrcPort 1 Points [144, 0; 0, -39] DstBlock "Sum" DstPort 2 } Line { SrcBlock "alpha" SrcPort 1 Points [90, 0] Branch { Points [0, 9; 34, 0] DstBlock "Sum" DstPort 1 } Branch { Points [105, 0] Branch { Points [0, 105] DstBlock "Product1" DstPort 1 } Branch { Points [80, 0; 0, 100] DstBlock "Product" DstPort 2 } } } Line { SrcBlock "Product" SrcPort 1 Points [40, 0] DstBlock "m" DstPort 1 } Line { SrcBlock "Sum1" SrcPort 1 Points [10, 0] DstBlock "Product" DstPort 3 } Line { SrcBlock "Q10" SrcPort 1 Points [15, 0] DstBlock "Product" DstPort 1 } } } Block { BlockType Outport Name "I_C" Position [425, 118, 455, 132] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "Product" SrcPort 1 DstBlock "I_C" DstPort 1 } Line { SrcBlock "Sum" SrcPort 1 Points [90, 0] DstBlock "Product" DstPort 3 } Line { SrcBlock "VRKIn" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { SrcBlock "gbarI_C" SrcPort 1 Points [25, 0] DstBlock "Product" DstPort 1 } Line { SrcBlock "Ca_iIn" SrcPort 1 Points [105, 0] DstBlock "m" DstPort 1 } Line { SrcBlock "m" SrcPort 1 Points [15, 0] Branch { DstBlock "Product" DstPort 2 } Branch { Points [0, 120] DstBlock "I_C m Scope" DstPort 1 } } Line { SrcBlock "VmIn" SrcPort 1 Points [90, 0] Branch { DstBlock "m" DstPort 2 } Branch { Points [0, 80] DstBlock "Sum" DstPort 1 } } } } Block { BlockType Scope Name "I_C Scope" Ports [1] Position [350, 479, 380, 511] Floating off Location [865, 69, 1595, 527] Open off NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "on" List { ListType AxesTitles axes1 "%" } Grid "on" TimeRange "2000" YMin "-1" YMax "1" SaveToWorkspace off SaveName "ScopeData8" DataFormat "StructureWithTime" LimitDataPoints on MaxDataPoints "100000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType SubSystem Name "I_H Einat" Ports [1, 1] Position [205, 889, 245, 921] ForegroundColor "magenta" ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "I_H Einat" Location [289, 672, 751, 935] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "Vm In" Position [25, 113, 55, 127] Port "1" Interpolate on } Block { BlockType Scope Name "Einat a Scope" Ports [1] Position [250, 194, 280, 226] Floating off Location [836, 100, 1590, 559] Open off NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "xonly" List { ListType AxesTitles axes1 "%" } Grid "on" TimeRange "4000" YMin "0" YMax "0.5" SaveToWorkspace off SaveName "ScopeData1" DataFormat "StructureWithTime" LimitDataPoints off MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Product Name "Product" Ports [3, 1] Position [270, 86, 315, 134] Inputs "3" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [120, 150, 140, 170] ShowName off IconShape "round" Inputs "|+-" SaturateOnIntegerOverflow on } Block { BlockType Constant Name "VR IH" Position [35, 175, 65, 205] Value "-30" VectorParams1D on } Block { BlockType SubSystem Name "a" Ports [1, 1] Position [105, 94, 145, 126] ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "a" Location [162, 406, 817, 733] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "Vm In" Position [40, 108, 70, 122] Port "1" Interpolate on } Block { BlockType Product Name "Product" Ports [3, 1] Position [440, 93, 485, 147] Inputs "//*" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Constant Name "Q10" Position [210, 15, 265, 45] Value "1" VectorParams1D on } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [340, 140, 360, 160] ShowName off IconShape "round" Inputs "|+-" SaturateOnIntegerOverflow on } Block { BlockType Integrator Name "a" Ports [2, 1] Position [520, 112, 550, 143] ExternalReset "none" InitialConditionSource "external" InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Fcn Name "a_{inf}" Position [145, 132, 290, 168] Expr "1 / (1 + exp((u + 75) / 5.5))" } Block { BlockType Fcn Name "a_{tau}" Position [100, 65, 345, 105] Expr "270 / (exp(-(u + 90) / 12.5) + exp((u +" " 75) / 5))" } Block { BlockType Outport Name "a Out" Position [575, 123, 605, 137] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "a" SrcPort 1 Points [5, 0] Branch { DstBlock "a Out" DstPort 1 } Branch { Points [0, 45] DstBlock "Sum" DstPort 2 } } Line { SrcBlock "Product" SrcPort 1 DstBlock "a" DstPort 1 } Line { SrcBlock "Vm In" SrcPort 1 Points [5, 0] Branch { Points [0, -30] DstBlock "a_{tau}" DstPort 1 } Branch { Points [0, 35] DstBlock "a_{inf}" DstPort 1 } } Line { SrcBlock "a_{inf}" SrcPort 1 Points [0, 0] Branch { Points [5, 0; 0, 60; 205, 0] DstBlock "a" DstPort 2 } Branch { DstBlock "Sum" DstPort 1 } } Line { SrcBlock "a_{tau}" SrcPort 1 Points [20, 0; 0, 35] DstBlock "Product" DstPort 2 } Line { SrcBlock "Q10" SrcPort 1 Points [155, 0] DstBlock "Product" DstPort 1 } Line { SrcBlock "Sum" SrcPort 1 Points [60, 0] DstBlock "Product" DstPort 3 } } } Block { BlockType Constant Name "gbarH" Position [35, 17, 125, 53] Value "0" VectorParams1D on } Block { BlockType Outport Name "I_H Out" Position [350, 103, 380, 117] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "VR IH" SrcPort 1 Points [60, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Vm In" SrcPort 1 Points [15, 0] Branch { Points [0, 40] DstBlock "Sum" DstPort 1 } Branch { Points [0, -10] DstBlock "a" DstPort 1 } } Line { SrcBlock "Product" SrcPort 1 DstBlock "I_H Out" DstPort 1 } Line { SrcBlock "gbarH" SrcPort 1 Points [125, 0] DstBlock "Product" DstPort 1 } Line { SrcBlock "a" SrcPort 1 Points [55, 0] Branch { DstBlock "Product" DstPort 2 } Branch { Points [0, 100] DstBlock "Einat a Scope" DstPort 1 } } Line { SrcBlock "Sum" SrcPort 1 Points [110, 0] DstBlock "Product" DstPort 3 } } } Block { BlockType Scope Name "I_H Einat Scope" Ports [1] Position [350, 854, 380, 886] Floating off Location [833, 75, 1587, 533] Open off NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "xonly" List { ListType AxesTitles axes1 "%" } Grid "on" TimeRange "4000" YMin "-2" YMax "0.5" SaveToWorkspace off SaveName "ScopeData21" DataFormat "StructureWithTime" LimitDataPoints on MaxDataPoints "100000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType SubSystem Name "I_H red book" Ports [1, 1] Position [205, 964, 245, 996] ForegroundColor "magenta" ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "I_H red book" Location [325, 369, 787, 632] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "Vm In" Position [25, 113, 55, 127] Port "1" Interpolate on } Block { BlockType Product Name "Product" Ports [3, 1] Position [270, 86, 315, 134] Inputs "3" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [120, 150, 140, 170] ShowName off IconShape "round" Inputs "|+-" SaturateOnIntegerOverflow on } Block { BlockType Constant Name "VR IH" Position [35, 175, 65, 205] Value "43" VectorParams1D on } Block { BlockType SubSystem Name "a" Ports [1, 1] Position [105, 94, 145, 126] ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "a" Location [168, 466, 823, 793] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "Vm In" Position [15, 108, 45, 122] Port "1" Interpolate on } Block { BlockType Product Name "Product" Ports [3, 1] Position [440, 93, 485, 147] Inputs "//*" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Constant Name "Q10" Position [165, 16, 265, 44] Value "GlobalQ10" VectorParams1D on } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [340, 140, 360, 160] ShowName off IconShape "round" Inputs "|+-" SaturateOnIntegerOverflow on } Block { BlockType Integrator Name "a" Ports [2, 1] Position [520, 112, 550, 143] ExternalReset "none" InitialConditionSource "external" InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Fcn Name "a_{inf}" Position [145, 132, 290, 168] Expr "1 / (1 + exp((u + 75) / 5.5))" } Block { BlockType Fcn Name "a_{tau}" Position [80, 62, 400, 108] Expr "3900 / (exp((-89.3023-u) / 11.6279 ) + " "exp((71.8973+u)/14.2653))" } Block { BlockType Outport Name "a Out" Position [575, 123, 605, 137] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "a" SrcPort 1 Points [5, 0] Branch { DstBlock "a Out" DstPort 1 } Branch { Points [0, 45] DstBlock "Sum" DstPort 2 } } Line { SrcBlock "Product" SrcPort 1 DstBlock "a" DstPort 1 } Line { SrcBlock "Vm In" SrcPort 1 Points [10, 0] Branch { Points [0, -30] DstBlock "a_{tau}" DstPort 1 } Branch { Points [0, 35] DstBlock "a_{inf}" DstPort 1 } } Line { SrcBlock "a_{inf}" SrcPort 1 Points [0, 0] Branch { Points [5, 0; 0, 60; 205, 0] DstBlock "a" DstPort 2 } Branch { DstBlock "Sum" DstPort 1 } } Line { SrcBlock "a_{tau}" SrcPort 1 Points [0, 35] DstBlock "Product" DstPort 2 } Line { SrcBlock "Q10" SrcPort 1 Points [155, 0; 0, 75] DstBlock "Product" DstPort 1 } Line { SrcBlock "Sum" SrcPort 1 Points [60, 0; 0, -15] DstBlock "Product" DstPort 3 } } } Block { BlockType Constant Name "gbarH" Position [40, 17, 130, 53] Value "0" VectorParams1D on } Block { BlockType Scope Name "red book A Scope" Ports [1] Position [250, 194, 280, 226] Floating off Location [836, 127, 1590, 584] Open off NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "xonly" List { ListType AxesTitles axes1 "%" } Grid "on" TimeRange "4000" YMin "0" YMax "0.5" SaveToWorkspace off SaveName "ScopeData1" DataFormat "StructureWithTime" LimitDataPoints off MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Outport Name "I_H Out" Position [350, 103, 380, 117] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "VR IH" SrcPort 1 Points [60, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Vm In" SrcPort 1 Points [15, 0] Branch { Points [0, 40] DstBlock "Sum" DstPort 1 } Branch { Points [0, -10] DstBlock "a" DstPort 1 } } Line { SrcBlock "Product" SrcPort 1 DstBlock "I_H Out" DstPort 1 } Line { SrcBlock "gbarH" SrcPort 1 Points [120, 0] DstBlock "Product" DstPort 1 } Line { SrcBlock "a" SrcPort 1 Points [55, 0] Branch { DstBlock "Product" DstPort 2 } Branch { Points [0, 100] DstBlock "red book A Scope" DstPort 1 } } Line { SrcBlock "Sum" SrcPort 1 Points [110, 0] DstBlock "Product" DstPort 3 } } } Block { BlockType Scope Name "I_H red book Scope1" Ports [1] Position [350, 929, 380, 961] Floating off Location [841, 99, 1595, 557] Open off NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "xonly" List { ListType AxesTitles axes1 "%" } Grid "on" TimeRange "4000" YMin "-2" YMax "0.5" SaveToWorkspace off SaveName "ScopeData28" DataFormat "StructureWithTime" LimitDataPoints on MaxDataPoints "100000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Scope Name "I_HH Scope" Ports [1] Position [530, 84, 560, 116] Floating off Location [841, 136, 1595, 594] Open off NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "xonly" List { ListType AxesTitles axes1 "%" } Grid "on" TimeRange "4000" YMin "-25" YMax "25" SaveToWorkspace off SaveName "ScopeData19" DataFormat "StructureWithTime" LimitDataPoints on MaxDataPoints "100000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType SubSystem Name "I_K2" Ports [2, 1, 1] Position [200, 324, 250, 371] ForegroundColor "green" ShowPortLabels on TreatAsAtomicUnit on RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "I_K2" Location [246, 390, 800, 766] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "Vm" Position [15, 18, 45, 32] Port "1" Interpolate on } Block { BlockType Inport Name "VRKIn" Position [90, 98, 120, 112] Port "2" Interpolate on } Block { BlockType EnablePort Name "Enable" Ports [] Position [465, 35, 485, 55] StatesWhenEnabling "held" ShowOutputPort off } Block { BlockType Scope Name "I_K2 Gate Scope" Ports [1] Position [410, 259, 440, 291] Floating off Location [864, 169, 1594, 627] Open off NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "yonly" List { ListType AxesTitles axes1 "%" } Grid "on" TimeRange "8000" YMin "0.005" YMax "0.02" SaveToWorkspace off SaveName "ScopeData13" DataFormat "StructureWithTime" LimitDataPoints on MaxDataPoints "100000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Scope Name "I_K2 Scope" Ports [1] Position [450, 164, 480, 196] Floating off Location [865, 125, 1595, 583] Open off NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "yonly" List { ListType AxesTitles axes1 "%" } Grid "on" TimeRange "3000" YMin "0" YMax "0.012" SaveToWorkspace off SaveName "ScopeData12" DataFormat "StructureWithTime" LimitDataPoints on MaxDataPoints "100000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Product Name "Product" Ports [3, 1] Position [350, 79, 395, 141] Inputs "3" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [115, 15, 135, 35] ShowName off IconShape "round" Inputs "|+-" SaturateOnIntegerOverflow on } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [295, 170, 315, 190] ShowName off IconShape "round" Inputs "|++" SaturateOnIntegerOverflow on } Block { BlockType SubSystem Name "a gates" Ports [1, 1] Position [105, 161, 175, 199] ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "a gates" Location [161, 627, 659, 927] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "Vm In" Position [30, 113, 60, 127] Port "1" Interpolate on } Block { BlockType Scope Name "I_K2a Gate Scope" Ports [1] Position [385, 199, 415, 231] Floating off Location [865, 147, 1595, 605] Open off NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "yonly" List { ListType AxesTitles axes1 "%" } Grid "on" TimeRange "8000" YMin "0" YMax "0.4" SaveToWorkspace off SaveName "ScopeData14" DataFormat "StructureWithTime" LimitDataPoints on MaxDataPoints "100000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Mux Name "Mux" Ports [2, 1] Position [330, 196, 335, 234] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Product Name "Product" Ports [2, 1] Position [335, 86, 380, 119] Inputs "2" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType SubSystem Name "h" Ports [1, 1] Position [135, 137, 195, 173] ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "h" Location [164, 532, 843, 780] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "VmIn" Position [15, 68, 45, 82] Port "1" Interpolate on } Block { BlockType Product Name "Product" Ports [2, 1] Position [390, 21, 435, 54] Inputs "*/" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Product Name "Product1" Ports [2, 1] Position [390, 136, 435, 169] Inputs "2" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Constant Name "Q10" Position [275, 185, 330, 215] Value "GlobalQ10" VectorParams1D on } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [325, 20, 345, 40] ShowName off IconShape "round" Inputs "-+|" SaturateOnIntegerOverflow on } Block { BlockType Integrator Name "h" Ports [2, 1] Position [490, 27, 520, 58] ExternalReset "none" InitialConditionSource "external" InitialCondition "0.3165" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Scope Name "h Scope" Ports [1] Position [565, 144, 595, 176] Floating off Location [865, 169, 1595, 627] Open off NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "on" List { ListType AxesTitles axes1 "%" } Grid "on" TimeRange "3000" YMin "0" YMax "0.7" SaveToWorkspace off SaveName "ScopeData3" DataFormat "StructureWithTime" LimitDataPoints on MaxDataPoints "100000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Fcn Name "h_inf" Position [100, 14, 220, 46] Expr "1/(1+exp((u+58)/10.6))" } Block { BlockType Fcn Name "h_tau" Position [95, 76, 365, 124] Expr "1/(exp((u-1329)/200)+exp((u+129.7)/" "-7.143))+120" } Block { BlockType Outport Name "hOut" Position [575, 33, 605, 47] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "h" SrcPort 1 Points [0, -5; 5, 0] Branch { Points [0, -35] DstBlock "Sum" DstPort 1 } Branch { Points [15, 0] Branch { DstBlock "hOut" DstPort 1 } Branch { Points [0, 120] DstBlock "h Scope" DstPort 1 } } } Line { SrcBlock "Product" SrcPort 1 Points [35, 0] DstBlock "h" DstPort 1 } Line { SrcBlock "h_inf" SrcPort 1 Points [55, 0] Branch { DstBlock "Sum" DstPort 2 } Branch { Points [0, 40; 195, 0] DstBlock "h" DstPort 2 } } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Product" DstPort 1 } Line { SrcBlock "VmIn" SrcPort 1 Points [30, 0] Branch { Points [0, -45] DstBlock "h_inf" DstPort 1 } Branch { DstBlock "h_tau" DstPort 1 } } Line { SrcBlock "Q10" SrcPort 1 Points [40, 0] DstBlock "Product1" DstPort 2 } Line { SrcBlock "h_tau" SrcPort 1 Points [5, 0] DstBlock "Product1" DstPort 1 } Line { SrcBlock "Product1" SrcPort 1 Points [0, -110] DstBlock "Product" DstPort 2 } } } Block { BlockType SubSystem Name "m" Ports [1, 1] Position [135, 43, 190, 77] ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "m" Location [75, 453, 786, 761] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "VmIn" Position [20, 143, 50, 157] Port "1" Interpolate on } Block { BlockType Product Name "Product" Ports [2, 1] Position [480, 96, 525, 129] Inputs "*/" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Product Name "Product1" Ports [2, 1] Position [410, 186, 455, 219] Inputs "2" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Constant Name "Q10" Position [295, 255, 350, 285] Value "GlobalQ10" VectorParams1D on } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [380, 95, 400, 115] ShowName off IconShape "round" Inputs "-+|" SaturateOnIntegerOverflow on } Block { BlockType Integrator Name "m" Ports [2, 1] Position [580, 102, 610, 133] ExternalReset "none" InitialConditionSource "external" InitialCondition "0.0258" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Fcn Name "m_inf" Position [105, 87, 310, 123] Expr "(1/(1+exp((u+43)/-17)))^4" } Block { BlockType Fcn Name "m_tau" Position [105, 171, 375, 219] Expr "1/(exp((u-80.98)/25.64)+exp((u+132." "2)/-17.953))+9.9" } Block { BlockType Outport Name "m Out" Position [665, 108, 695, 122] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "m" SrcPort 1 Points [0, -5; 5, 0] Branch { DstBlock "m Out" DstPort 1 } Branch { Points [0, -40; -230, 0] DstBlock "Sum" DstPort 1 } } Line { SrcBlock "Product" SrcPort 1 Points [35, 0] DstBlock "m" DstPort 1 } Line { SrcBlock "m_inf" SrcPort 1 Points [30, 0] Branch { DstBlock "Sum" DstPort 2 } Branch { Points [0, 55; 220, 0] DstBlock "m" DstPort 2 } } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Product" DstPort 1 } Line { SrcBlock "VmIn" SrcPort 1 Points [30, 0] Branch { Points [0, -45] DstBlock "m_inf" DstPort 1 } Branch { Points [0, 45] DstBlock "m_tau" DstPort 1 } } Line { SrcBlock "Q10" SrcPort 1 Points [40, 0] DstBlock "Product1" DstPort 2 } Line { SrcBlock "m_tau" SrcPort 1 DstBlock "Product1" DstPort 1 } Line { SrcBlock "Product1" SrcPort 1 Points [0, -85] DstBlock "Product" DstPort 2 } } } Block { BlockType Outport Name "gates Out" Position [415, 98, 445, 112] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "Product" SrcPort 1 DstBlock "gates Out" DstPort 1 } Line { SrcBlock "Vm In" SrcPort 1 Points [55, 0] Branch { DstBlock "m" DstPort 1 } Branch { DstBlock "h" DstPort 1 } } Line { SrcBlock "m" SrcPort 1 Points [50, 0] Branch { Points [75, 0] DstBlock "Product" DstPort 1 } Branch { Points [0, 145] DstBlock "Mux" DstPort 1 } } Line { SrcBlock "h" SrcPort 1 Points [25, 0] Branch { Points [95, 0] DstBlock "Product" DstPort 2 } Branch { Points [0, 70] DstBlock "Mux" DstPort 2 } } Line { SrcBlock "Mux" SrcPort 1 DstBlock "I_K2a Gate Scope" DstPort 1 } } } Block { BlockType SubSystem Name "b gates" Ports [1, 1] Position [110, 261, 180, 299] ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "b gates" Location [88, 526, 586, 826] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "Vm In" Position [30, 113, 60, 127] Port "1" Interpolate on } Block { BlockType Product Name "Product" Ports [2, 1] Position [335, 86, 380, 119] Inputs "2" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType SubSystem Name "h" Ports [1, 1] Position [135, 137, 195, 173] ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "h" Location [34, 583, 713, 831] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "VmIn" Position [15, 68, 45, 82] Port "1" Interpolate on } Block { BlockType Product Name "Product" Ports [2, 1] Position [320, 21, 365, 54] Inputs "*/" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Product Name "Product1" Ports [2, 1] Position [210, 91, 255, 124] Inputs "2" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Constant Name "Q10" Position [95, 140, 150, 170] Value "GlobalQ10" VectorParams1D on } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [255, 20, 275, 40] ShowName off IconShape "round" Inputs "-+|" SaturateOnIntegerOverflow on } Block { BlockType Integrator Name "h" Ports [2, 1] Position [420, 27, 450, 58] ExternalReset "none" InitialConditionSource "external" InitialCondition "0.3165" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Scope Name "h Scope" Ports [1] Position [495, 144, 525, 176] Floating off Location [865, 169, 1595, 627] Open off NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "on" List { ListType AxesTitles axes1 "%" } Grid "on" TimeRange "3000" YMin "0" YMax "0.7" SaveToWorkspace off SaveName "ScopeData3" DataFormat "StructureWithTime" LimitDataPoints on MaxDataPoints "100000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Fcn Name "h_inf" Position [100, 14, 220, 46] Expr "1/(1+exp((u+58)/10.6))" } Block { BlockType SubSystem Name "h_tau" Ports [1, 1] Position [140, 84, 180, 116] ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "h_tau" Location [78, 478, 1012, 916] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "Vm In" Position [50, 68, 80, 82] Port "1" Interpolate on } Block { BlockType Constant Name "Constant" Position [115, 140, 145, 170] Value "-70" VectorParams1D on } Block { BlockType Constant Name "Constant1" Position [325, 14, 360, 46] Value "8930" VectorParams1D on } Block { BlockType Logic Name "Logical\nOperator" Ports [1, 1] Position [245, 129, 275, 161] Operator "NOT" Inputs "2" } Block { BlockType Product Name "Product" Ports [2, 1] Position [430, 61, 475, 94] Inputs "2" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Product Name "Product1" Ports [2, 1] Position [430, 136, 475, 169] Inputs "2" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType RelationalOperator Name "Relational\nOperator" Position [175, 66, 205, 104] Operator "<" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [565, 100, 585, 120] ShowName off IconShape "round" Inputs "|++" SaturateOnIntegerOverflow on } Block { BlockType Fcn Name "h_tau" Position [120, 216, 390, 264] Expr "1/(exp((u-1329)/200)+exp((u+129.7" ")/-7.143))+120" } Block { BlockType Outport Name "h_tau Out" Position [620, 103, 650, 117] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "Vm In" SrcPort 1 Points [5, 0] Branch { DstBlock "Relational\nOperator" DstPort 1 } Branch { Points [0, 165] DstBlock "h_tau" DstPort 1 } } Line { SrcBlock "Constant" SrcPort 1 Points [10, 0] DstBlock "Relational\nOperator" DstPort 2 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "h_tau Out" DstPort 1 } Line { SrcBlock "Relational\nOperator" SrcPort 1 Points [0, 0; 15, 0] Branch { Points [0, 60] DstBlock "Logical\nOperator" DstPort 1 } Branch { DstBlock "Product" DstPort 2 } } Line { SrcBlock "Constant1" SrcPort 1 Points [50, 0] DstBlock "Product" DstPort 1 } Line { SrcBlock "Product1" SrcPort 1 Points [95, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Product" SrcPort 1 Points [70, 0] DstBlock "Sum" DstPort 1 } Line { SrcBlock "Logical\nOperator" SrcPort 1 DstBlock "Product1" DstPort 1 } Line { SrcBlock "h_tau" SrcPort 1 Points [20, 0] DstBlock "Product1" DstPort 2 } } } Block { BlockType Outport Name "hOut" Position [505, 33, 535, 47] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "h" SrcPort 1 Points [0, -5; 5, 0] Branch { Points [0, -35] DstBlock "Sum" DstPort 1 } Branch { Points [15, 0] Branch { DstBlock "hOut" DstPort 1 } Branch { Points [0, 120] DstBlock "h Scope" DstPort 1 } } } Line { SrcBlock "Product" SrcPort 1 Points [35, 0] DstBlock "h" DstPort 1 } Line { SrcBlock "h_inf" SrcPort 1 Points [10, 0] Branch { DstBlock "Sum" DstPort 2 } Branch { Points [0, 45; 170, 0] DstBlock "h" DstPort 2 } } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Product" DstPort 1 } Line { SrcBlock "VmIn" SrcPort 1 Points [30, 0] Branch { Points [0, -45] DstBlock "h_inf" DstPort 1 } Branch { Points [0, 25] DstBlock "h_tau" DstPort 1 } } Line { SrcBlock "Q10" SrcPort 1 Points [40, 0] DstBlock "Product1" DstPort 2 } Line { SrcBlock "h_tau" SrcPort 1 DstBlock "Product1" DstPort 1 } Line { SrcBlock "Product1" SrcPort 1 Points [45, 0] DstBlock "Product" DstPort 2 } } } Block { BlockType SubSystem Name "m" Ports [1, 1] Position [135, 43, 190, 77] ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "m" Location [40, 556, 751, 864] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "VmIn" Position [20, 143, 50, 157] Port "1" Interpolate on } Block { BlockType Product Name "Product" Ports [2, 1] Position [430, 96, 475, 129] Inputs "*/" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Product Name "Product1" Ports [2, 1] Position [405, 191, 450, 224] Inputs "2" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Constant Name "Q10" Position [290, 240, 345, 270] Value "GlobalQ10" VectorParams1D on } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [380, 95, 400, 115] ShowName off IconShape "round" Inputs "-+|" SaturateOnIntegerOverflow on } Block { BlockType Integrator Name "m" Ports [2, 1] Position [530, 102, 560, 133] ExternalReset "none" InitialConditionSource "external" InitialCondition "0.0258" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Fcn Name "m_inf" Position [105, 87, 310, 123] Expr "(1/(1+exp((u+43)/-17)))^4" } Block { BlockType Fcn Name "m_tau" Position [105, 171, 375, 219] Expr "1/(exp((u-80.98)/25.64)+exp((u+132." "2)/-17.953))+9.9" } Block { BlockType Outport Name "m Out" Position [615, 108, 645, 122] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "m" SrcPort 1 Points [0, -5; 5, 0] Branch { DstBlock "m Out" DstPort 1 } Branch { Points [0, -40; -180, 0] DstBlock "Sum" DstPort 1 } } Line { SrcBlock "Product" SrcPort 1 Points [35, 0] DstBlock "m" DstPort 1 } Line { SrcBlock "m_inf" SrcPort 1 Points [30, 0] Branch { DstBlock "Sum" DstPort 2 } Branch { Points [0, 45; 170, 0] DstBlock "m" DstPort 2 } } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Product" DstPort 1 } Line { SrcBlock "VmIn" SrcPort 1 Points [30, 0] Branch { Points [0, -45] DstBlock "m_inf" DstPort 1 } Branch { Points [0, 45] DstBlock "m_tau" DstPort 1 } } Line { SrcBlock "Q10" SrcPort 1 Points [40, 0] DstBlock "Product1" DstPort 2 } Line { SrcBlock "m_tau" SrcPort 1 Points [10, 0] DstBlock "Product1" DstPort 1 } Line { SrcBlock "Product1" SrcPort 1 Points [0, -90] DstBlock "Product" DstPort 2 } } } Block { BlockType Outport Name "gates Out" Position [415, 98, 445, 112] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "Product" SrcPort 1 DstBlock "gates Out" DstPort 1 } Line { SrcBlock "Vm In" SrcPort 1 Points [55, 0] Branch { DstBlock "m" DstPort 1 } Branch { DstBlock "h" DstPort 1 } } Line { SrcBlock "m" SrcPort 1 Points [125, 0] DstBlock "Product" DstPort 1 } Line { SrcBlock "h" SrcPort 1 Points [120, 0] DstBlock "Product" DstPort 2 } } } Block { BlockType Gain Name "frac a" Position [220, 164, 255, 196] Gain ".4" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on } Block { BlockType Gain Name "frac b" Position [290, 220, 320, 250] Orientation "up" NamePlacement "alternate" Gain ".6" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on } Block { BlockType Constant Name "gbarI_K2" Position [160, 95, 205, 125] Value "0" VectorParams1D on } Block { BlockType Outport Name "I_K2" Position [435, 103, 465, 117] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "Vm" SrcPort 1 Points [10, 0] Branch { DstBlock "Sum" DstPort 1 } Branch { Points [0, 155] Branch { DstBlock "a gates" DstPort 1 } Branch { Points [0, 100] DstBlock "b gates" DstPort 1 } } } Line { SrcBlock "VRKIn" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { SrcBlock "Product" SrcPort 1 Points [10, 0] Branch { DstBlock "I_K2" DstPort 1 } Branch { Points [0, 70] DstBlock "I_K2 Scope" DstPort 1 } } Line { SrcBlock "Sum" SrcPort 1 Points [195, 0] DstBlock "Product" DstPort 1 } Line { SrcBlock "gbarI_K2" SrcPort 1 DstBlock "Product" DstPort 2 } Line { SrcBlock "Sum1" SrcPort 1 Points [15, 0] Branch { DstBlock "Product" DstPort 3 } Branch { Points [0, 95] DstBlock "I_K2 Gate Scope" DstPort 1 } } Line { SrcBlock "frac a" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { SrcBlock "frac b" SrcPort 1 DstBlock "Sum1" DstPort 2 } Line { SrcBlock "a gates" SrcPort 1 DstBlock "frac a" DstPort 1 } Line { SrcBlock "b gates" SrcPort 1 Points [120, 0] DstBlock "frac b" DstPort 1 } } } Block { BlockType SubSystem Name "I_Kd" Ports [2, 1] Position [200, 82, 265, 133] ForegroundColor "green" ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "I_Kd" Location [28, 684, 803, 1166] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "Vm" Position [90, 178, 120, 192] Port "1" Interpolate on } Block { BlockType Inport Name "VRKIn" Position [20, 43, 50, 57] Port "2" Interpolate on } Block { BlockType Scope Name "I K_D Cond Scope" Ports [1] Position [525, 399, 555, 431] Floating off Location [864, 213, 1594, 671] Open off NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "yonly" List { ListType AxesTitles axes1 "%" } Grid "on" TimeRange "8000" YMin "0" YMax "0.4" SaveToWorkspace off SaveName "ScopeData17" DataFormat "StructureWithTime" LimitDataPoints on MaxDataPoints "100000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Scope Name "I K_D Scope" Ports [1] Position [690, 234, 720, 266] Floating off Location [857, 641, 1587, 1099] Open off NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "yonly" List { ListType AxesTitles axes1 "%" } Grid "on" TimeRange "8000" YMin "-80" YMax "10" SaveToWorkspace off SaveName "ScopeData16" DataFormat "StructureWithTime" LimitDataPoints on MaxDataPoints "100000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Scope Name "K_D n Scope" Ports [1] Position [175, 359, 205, 391] Orientation "left" Floating off Location [859, 131, 1589, 589] Open off NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "xonly" List { ListType AxesTitles axes1 "%" } Grid "on" TimeRange "2000" YMin "0" YMax "0.9" SaveToWorkspace off SaveName "ScopeData15" DataFormat "StructureWithTime" LimitDataPoints on MaxDataPoints "100000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Mux Name "Mux" Ports [2, 1] Position [150, 198, 155, 242] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Product Name "Product" Ports [2, 1] Position [345, 56, 390, 89] Inputs "2" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Product Name "Product1" Ports [5, 1] Position [395, 276, 440, 394] Inputs "5" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Product Name "Product2" Ports [2, 1] Position [530, 216, 575, 334] Inputs "2" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Constant Name "Q10" Position [75, 288, 145, 322] Value "GlobalQ10" VectorParams1D on } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [630, 145, 660, 175] ShowName off IconShape "round" Inputs "|+|+|" SaturateOnIntegerOverflow on } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [185, 100, 215, 130] ShowName off IconShape "round" Inputs "|-|+|" SaturateOnIntegerOverflow on } Block { BlockType Constant Name "gbarK" Position [290, 390, 320, 420] Value "3" VectorParams1D off } Block { BlockType Constant Name "gbarLeakK" Position [205, 13, 275, 47] Value "0.007" VectorParams1D on } Block { BlockType SubSystem Name "n" Ports [2, 1] Position [230, 281, 270, 314] ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "n" Location [46, 367, 814, 836] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "in" Position [25, 108, 55, 122] Port "1" Interpolate on } Block { BlockType Inport Name "Q10In" Position [415, 38, 445, 52] Port "2" Interpolate on } Block { BlockType Constant Name "Slow" Position [610, 35, 640, 65] Orientation "left" Value "1" VectorParams1D on } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [260, 65, 290, 95] ShowName off IconShape "round" Inputs "|+|+|" SaturateOnIntegerOverflow on } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [430, 190, 460, 220] ShowName off IconShape "round" Inputs "|+|-|" SaturateOnIntegerOverflow on } Block { BlockType SubSystem Name "alpha_n" Ports [1, 1] Position [120, 32, 185, 68] ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "alpha_n" Location [69, 391, 815, 818] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "in" Position [20, 248, 50, 262] Port "1" Interpolate on } Block { BlockType Constant Name "Constant" Position [335, 99, 380, 131] Value "0.01" VectorParams1D on } Block { BlockType Constant Name "Constant1" Position [145, 325, 175, 355] Value "-47.5" VectorParams1D on } Block { BlockType Demux Name "Demux" Ports [1, 2] Position [70, 217, 75, 288] BackgroundColor "black" ShowName off Outputs "2" BusSelectionMode on } Block { BlockType Fcn Name "Fcn" Position [330, 285, 390, 315] Expr "exp(u/5)-1" } Block { BlockType Product Name "Product" Ports [3, 1] Position [510, 94, 555, 206] Inputs "**/" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [215, 225, 235, 245] ShowName off IconShape "round" Inputs "|-+" SaturateOnIntegerOverflow on } Block { BlockType Terminator Name "Terminator" Position [100, 325, 120, 345] } Block { BlockType Outport Name "alpha_n" Position [630, 143, 660, 157] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "Product" SrcPort 1 DstBlock "alpha_n" DstPort 1 } Line { SrcBlock "Constant" SrcPort 1 DstBlock "Product" DstPort 1 } Line { SrcBlock "Fcn" SrcPort 1 Points [80, 0; 0, -115] DstBlock "Product" DstPort 3 } Line { SrcBlock "in" SrcPort 1 DstBlock "Demux" DstPort 1 } Line { SrcBlock "Demux" SrcPort 2 Points [5, 0] DstBlock "Terminator" DstPort 1 } Line { SrcBlock "Demux" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Constant1" SrcPort 1 Points [45, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Sum" SrcPort 1 Points [50, 0] Branch { Points [0, 65] DstBlock "Fcn" DstPort 1 } Branch { Points [140, 0; 0, -85] DstBlock "Product" DstPort 2 } } } } Block { BlockType SubSystem Name "beta_n" Ports [1, 1] Position [125, 137, 190, 173] ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "beta_n" Location [68, 415, 814, 842] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "in" Position [15, 238, 45, 252] Port "1" Interpolate on } Block { BlockType Constant Name "Constant" Position [265, 159, 310, 191] Value "0.17" VectorParams1D on } Block { BlockType Constant Name "Constant1" Position [175, 309, 220, 341] Value "-55" VectorParams1D on } Block { BlockType Demux Name "Demux" Ports [1, 2] Position [75, 226, 80, 264] BackgroundColor "black" ShowName off Outputs "2" BusSelectionMode off } Block { BlockType Fcn Name "Fcn" Position [310, 240, 370, 270] Expr "exp(u/40)" } Block { BlockType Product Name "Product" Ports [2, 1] Position [400, 146, 445, 259] Inputs "2" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [245, 240, 275, 270] ShowName off IconShape "round" Inputs "|-|+|" SaturateOnIntegerOverflow on } Block { BlockType Terminator Name "Terminator" Position [120, 335, 140, 355] } Block { BlockType Outport Name "beta_n" Position [520, 193, 550, 207] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "Product" SrcPort 1 Points [0, -5] DstBlock "beta_n" DstPort 1 } Line { SrcBlock "Constant" SrcPort 1 DstBlock "Product" DstPort 1 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Fcn" DstPort 1 } Line { SrcBlock "Fcn" SrcPort 1 Points [10, 0] DstBlock "Product" DstPort 2 } Line { SrcBlock "Demux" SrcPort 2 Points [20, 0] DstBlock "Terminator" DstPort 1 } Line { SrcBlock "Constant1" SrcPort 1 Points [14, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Demux" SrcPort 1 Points [154, 0] DstBlock "Sum" DstPort 1 } Line { SrcBlock "in" SrcPort 1 DstBlock "Demux" DstPort 1 } } } Block { BlockType Product Name "dn_dt" Ports [4, 1] Position [490, 113, 535, 187] Inputs "//**" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Integrator Name "n" Ports [2, 1] Position [585, 152, 615, 183] ExternalReset "none" InitialConditionSource "external" InitialCondition "0.336709" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Product Name "n_{inf)}" Ports [2, 1] Position [345, 141, 390, 174] Inputs "*/" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Outport Name "nout" Position [675, 158, 705, 172] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "in" SrcPort 1 Points [10, 0; 15, 0] Branch { Points [0, -65] DstBlock "alpha_n" DstPort 1 } Branch { Points [0, 40] DstBlock "beta_n" DstPort 1 } } Line { SrcBlock "n" SrcPort 1 Points [0, -5; 20, 0] Branch { DstBlock "nout" DstPort 1 } Branch { Points [0, 81; -216, 0] DstBlock "Sum1" DstPort 2 } } Line { SrcBlock "alpha_n" SrcPort 1 Points [30, 0] Branch { Points [0, 9] DstBlock "Sum" DstPort 1 } Branch { Points [105, 0; 0, 100] DstBlock "n_{inf)}" DstPort 1 } } Line { SrcBlock "beta_n" SrcPort 1 Points [44, 0; 0, -54] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Sum" SrcPort 1 Points [5, 0] Branch { Points [0, 85] DstBlock "n_{inf)}" DstPort 2 } Branch { Labels [1, 0] Points [160, 0; 0, 80] DstBlock "dn_dt" DstPort 3 } } Line { SrcBlock "Sum1" SrcPort 1 Points [10, 0] DstBlock "dn_dt" DstPort 4 } Line { SrcBlock "dn_dt" SrcPort 1 Points [0, 10] DstBlock "n" DstPort 1 } Line { SrcBlock "n_{inf)}" SrcPort 1 Points [15, 0] Branch { Points [14, 0] DstBlock "Sum1" DstPort 1 } Branch { Points [0, 115; 160, 0] DstBlock "n" DstPort 2 } } Line { SrcBlock "Q10In" SrcPort 1 Points [20, 0; 0, 95] DstBlock "dn_dt" DstPort 2 } Line { SrcBlock "Slow" SrcPort 1 Points [-130, 0] DstBlock "dn_dt" DstPort 1 } Annotation { Position [372, 97] Text "tau_n^{-1}" } } } Block { BlockType Outport Name "I_K" Position [705, 153, 735, 167] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "Sum" SrcPort 1 Points [5, 0] Branch { DstBlock "I_K" DstPort 1 } Branch { Points [0, 90] DstBlock "I K_D Scope" DstPort 1 } } Line { SrcBlock "gbarLeakK" SrcPort 1 Points [35, 0; 0, 35] DstBlock "Product" DstPort 1 } Line { SrcBlock "Sum1" SrcPort 1 Points [0, 0; 95, 0] Branch { Points [0, -35] DstBlock "Product" DstPort 2 } Branch { Points [0, 120; 200, 0] DstBlock "Product2" DstPort 1 } } Line { SrcBlock "Vm" SrcPort 1 Points [0, 0; 10, 0] Branch { Points [44, 0] DstBlock "Sum1" DstPort 2 } Branch { DstBlock "Mux" DstPort 1 } } Line { SrcBlock "Product" SrcPort 1 Points [229, 0] DstBlock "Sum" DstPort 1 } Line { SrcBlock "n" SrcPort 1 Points [5, 0] Branch { Points [0, 75] DstBlock "K_D n Scope" DstPort 1 } Branch { Points [0, 10; 90, 0] Branch { DstBlock "Product1" DstPort 2 } Branch { Points [0, -25] DstBlock "Product1" DstPort 1 } Branch { Points [10, 0; 0, 25] Branch { DstBlock "Product1" DstPort 3 } Branch { DstBlock "Product1" DstPort 4 } } } } Line { SrcBlock "Mux" SrcPort 1 Points [30, 0; 0, 70] DstBlock "n" DstPort 1 } Line { SrcBlock "Q10" SrcPort 1 DstBlock "n" DstPort 2 } Line { SrcBlock "VRKIn" SrcPort 1 Points [20, 0] Branch { Points [104, 0] DstBlock "Sum1" DstPort 1 } Branch { Points [0, 180] DstBlock "Mux" DstPort 2 } } Line { SrcBlock "Product1" SrcPort 1 Points [0, -30; 45, 0] Branch { DstBlock "Product2" DstPort 2 } Branch { Points [0, 110] DstBlock "I K_D Cond Scope" DstPort 1 } } Line { SrcBlock "gbarK" SrcPort 1 Points [55, 0] DstBlock "Product1" DstPort 5 } Line { SrcBlock "Product2" SrcPort 1 Points [44, 0] DstBlock "Sum" DstPort 2 } Annotation { Position [239, 80] Text "0.00815" } } } Block { BlockType SubSystem Name "I_L" Ports [2, 1, 1] Position [200, 672, 255, 723] ForegroundColor "orange" ShowPortLabels on TreatAsAtomicUnit on RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "I_L