⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 batterysoc.mdl

📁 卡尔曼滤波算法的仿真、最小二乘参数估计、整个电池管理系统的simulink仿真
💻 MDL
📖 第 1 页 / 共 5 页
字号:
      UseBusObject	      off
      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		      RandomNumber
      Mean		      "0"
      Variance		      "1"
      Seed		      "0"
      SampleTime	      "-1"
      VectorParams1D	      on
    }
    Block {
      BlockType		      RelationalOperator
      Operator		      ">="
      InputSameDT	      on
      LogicOutDataTypeMode    "Logical (see Configuration Parameters: Optimiza"
"tion)"
      LogicDataType	      "uint(8)"
      ZeroCross		      on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Scope
      ModelBased	      off
      TickLabels	      "OneTimeTick"
      ZoomMode		      "on"
      Grid		      "on"
      TimeRange		      "auto"
      YMin		      "-5"
      YMax		      "5"
      SaveToWorkspace	      off
      SaveName		      "ScopeData"
      LimitDataPoints	      on
      MaxDataPoints	      "5000"
      Decimation	      "1"
      SampleInput	      off
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Stop
    }
    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		      Switch
      Criteria		      "u2 >= Threshold"
      Threshold		      "0"
      InputSameDT	      on
      OutDataTypeMode	      "Inherit via internal rule"
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      ZeroCross		      on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      UnitDelay
      X0		      "0"
      SampleTime	      "1"
      StateMustResolveToSignalObject off
      RTWStateStorageClass    "Auto"
    }
  }
  AnnotationDefaults {
    HorizontalAlignment	    "center"
    VerticalAlignment	    "middle"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    FontName		    "arial"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  LineDefaults {
    FontName		    "arial"
    FontSize		    9
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  System {
    Name		    "batterysoc"
    Location		    [2, 82, 1270, 978]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "A4"
    PaperUnits		    "centimeters"
    ZoomFactor		    "100"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      SubSystem
      Name		      "Allow simulation\nto stop based on \nlow SOC"
      Ports		      [1, 0, 1]
      Position		      [945, 539, 1005, 571]
      AncestorBlock	      "lib_energy_storage/Ess Choices/energy\nstorage "
"<ess>\nRC/Allow simulation\nto stop based on \nlow SOC"
      TreatAsAtomicUnit	      on
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskHideContents	      off
      System {
	Name			"Allow simulation\nto stop based on \nlow SOC"
	Location		[2, 78, 1278, 973]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "x"
	  Position		  [75, 85, 95, 105]
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  EnablePort
	  Name			  "Enable"
	  Ports			  []
	  Position		  [170, 25, 190, 45]
	}
	Block {
	  BlockType		  Constant
	  Name			  "Const"
	  Position		  [95, 145, 165, 165]
	  Orientation		  "up"
	  ShowName		  off
	  Value			  ".001"
	}
	Block {
	  BlockType		  RelationalOperator
	  Name			  "Relational\nOperator"
	  Position		  [185, 88, 215, 112]
	  Operator		  "<"
	}
	Block {
	  BlockType		  Stop
	  Name			  "Stop Simulation"
	  Position		  [255, 83, 295, 117]
	}
	Line {
	  SrcBlock		  "Const"
	  SrcPort		  1
	  Points		  [0, -35]
	  DstBlock		  "Relational\nOperator"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "x"
	  SrcPort		  1
	  DstBlock		  "Relational\nOperator"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Relational\nOperator"
	  SrcPort		  1
	  DstBlock		  "Stop Simulation"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Capacity correction"
      Ports		      [1, 1]
      Position		      [120, 317, 225, 393]
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskHideContents	      off
      System {
	Name			"Capacity correction"
	Location		[6, 82, 1018, 713]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "Temp"
	  Position		  [110, 248, 140, 262]
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Constant
	  Name			  "C3"
	  Position		  [115, 195, 145, 225]
	  Value			  "45"
	}
	Block {
	  BlockType		  Lookup
	  Name			  "Kt"
	  Position		  [250, 230, 300, 280]
	  InputValues		  "[-20 -10 0 25 40 60 ]"
	  OutputValues		  "[0.9 0.955 0.98 1 1.005 0.94]"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux"
	  Ports			  [2, 1]
	  Position		  [375, 188, 380, 277]
	  ShowName		  off
	  Inputs		  "2"
	  DisplayOption		  "bar"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "Temperature\ncompensate"
	  Position		  [430, 220, 490, 250]
	  Expr			  "u(1)*u(2)"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Qa"
	  Position		  [560, 228, 590, 242]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  "Temp"
	  SrcPort		  1
	  DstBlock		  "Kt"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Kt"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Temperature\ncompensate"
	  SrcPort		  1
	  DstBlock		  "Qa"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Mux"
	  SrcPort		  1
	  DstBlock		  "Temperature\ncompensate"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "C3"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Constant
      Name		      "Const"
      Position		      [940, 485, 1010, 505]
      Orientation	      "down"
      ShowName		      off
    }
    Block {
      BlockType		      Gain
      Name		      "Gain"
      Position		      [305, 65, 335, 95]
      Gain		      "0.001/45"
      ParameterDataTypeMode   "Inherit via internal rule"
      OutDataTypeMode	      "Inherit via internal rule"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      SubSystem
      Name		      "Input"
      Ports		      [0, 2]
      Position		      [30, 115, 70, 175]
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskHideContents	      off
      System {
	Name			"Input"
	Location		[2, 82, 1270, 978]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  SubSystem
	  Name			  "current"
	  Ports			  [0, 1]
	  Position		  [25, 29, 60, 61]
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  MaskHideContents	  off
	  System {
	    Name		    "current"
	    Location		    [0, 82, 1268, 999]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Constant
	      Name		      "Constant2"
	      Position		      [470, 330, 500, 360]
	      Value		      "-1"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "FUDS"
	      Ports		      [0, 1]
	      Position		      [465, 245, 505, 305]
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      MaskHideContents	      off
	      System {
		Name			"FUDS"
		Location		[452, 157, 687, 364]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"
		PaperUnits		"centimeters"
		ZoomFactor		"100"
		Block {
		  BlockType		  Constant
		  Name			  "Constant"
		  Position		  [25, 25, 55, 55]
		  Value			  "25"
		}
		Block {
		  BlockType		  Constant
		  Name			  "Constant1"
		  Position		  [25, 150, 55, 180]
		  Value			  "24"
		}
		Block {
		  BlockType		  Product
		  Name			  "Product"
		  Ports			  [2, 1]
		  Position		  [90, 102, 120, 133]
		  InputSameDT		  off
		  OutDataTypeMode	  "Inherit via internal rule"
		  SaturateOnIntegerOverflow off
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum1"
		  Ports			  [2, 1]
		  Position		  [135, 30, 155, 50]
		  ShowName		  off
		  IconShape		  "round"
		  Inputs		  "|++"
		  InputSameDT		  off
		  OutDataTypeMode	  "Inherit via internal rule"
		  SaturateOnIntegerOverflow off
		}
		Block {
		  BlockType		  RandomNumber
		  Name			  "V(k)"
		  Position		  [25, 95, 55, 125]
		  SampleTime		  "0"
		}
		Block {
		  BlockType		  Outport
		  Name			  "Out1"
		  Position		  [180, 33, 210, 47]
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		}
		Line {
		  SrcBlock		  "Constant"
		  SrcPort		  1
		  DstBlock		  "Sum1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Product"
		  SrcPort		  1
		  Points		  [20, 0]
		  DstBlock		  "Sum1"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "V(k)"
		  SrcPort		  1
		  DstBlock		  "Product"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Constant1"
		  SrcPort		  1
		  Points		  [5, 0; 0, -40]
		  DstBlock		  "Product"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Sum1"
		  SrcPort		  1
		  Points		  [0, 0]
		  DstBlock		  "Out1"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "PNGV"
	      Ports		      [0, 1]
	      Position		      [470, 395, 510, 455]
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      MaskHideContents	      off
	      System {
		Name			"PNGV"
		Location		[0, 82, 1268, 999]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"
		PaperUnits		"centimeters"
		ZoomFactor		"100"
		Block {
		  BlockType		  DiscretePulseGenerator
		  Name			  "Pulse\nGenerator"
		  Ports			  [0, 1]
		  Position		  [25, 28, 70, 62]
		  PulseType		  "Time based"
		  Amplitude		  "45"
		  Period		  "600"
		  PulseWidth		  "50"
		  PhaseDelay		  "-120"
		}
		Block {
		  BlockType		  DiscretePulseGenerator
		  Name			  "Pulse\nGenerator1"
		  Ports			  [0, 1]
		  Position		  [20, 98, 65, 132]
		  PulseType		  "Time based"
		  Amplitude		  "45*7/4"
		  Period		  "600"
		  PulseWidth		  "20"
		  PhaseDelay		  "-120"
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum1"
		  Ports			  [2, 1]
		  Position		  [125, 35, 145, 55]
		  ShowName		  off
		  IconShape		  "round"
		  Inputs		  "|+-"
		  InputSameDT		  off
		  OutDataTypeMode	  "Inherit via internal rule"
		  SaturateOnIntegerOverflow off
		}
		Block {
		  BlockType		  Outport
		  Name			  "Out1"
		  Position		  [170, 38, 200, 52]
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		}
		Line {
		  SrcBlock		  "Pulse\nGenerator"
		  SrcPort		  1
		  DstBlock		  "Sum1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Pulse\nGenerator1"
		  SrcPort		  1
		  Points		  [65, 0]
		  DstBlock		  "Sum1"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Sum1"
		  SrcPort		  1
		  Points		  [0, 0]
		  DstBlock		  "Out1"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -