📄 boost_cm_averaged.mdl
字号:
BlockType Constant
Name "constant"
Position [155, 315, 185, 345]
Value "1"
VectorParams1D on
SamplingMode "Sample based"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
FramePeriod "inf"
}
Block {
BlockType Outport
Name "Vout"
Position [885, 113, 915, 127]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "D"
Position [305, 323, 335, 337]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "efficiency"
Position [885, 248, 915, 262]
Port "3"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Pout"
Position [880, 348, 910, 362]
Port "4"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "1/C"
DstPort 1
}
Line {
SrcBlock "1/C"
SrcPort 1
DstBlock "Integrator (C)"
DstPort 1
}
Line {
Name "vc"
Labels [0, 0]
SrcBlock "Integrator (C)"
SrcPort 1
Points [40, 0]
Branch {
DstBlock "Vout"
DstPort 1
}
Branch {
Points [0, -45; -665, 0; 0, 40]
DstBlock "Product"
DstPort 1
}
Branch {
Points [0, 105]
Branch {
DstBlock "Efficiency\ncalculation"
DstPort 1
}
Branch {
Points [0, 120]
DstBlock "Product2"
DstPort 1
}
}
}
Line {
SrcBlock "Iout"
SrcPort 1
DstBlock "-1"
DstPort 1
}
Line {
SrcBlock "-1"
SrcPort 1
Points [280, 0]
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "RL"
SrcPort 1
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Iref"
SrcPort 1
Points [5, 0]
Branch {
Points [45, 0]
Branch {
DstBlock "RL"
DstPort 1
}
Branch {
DstBlock "Product1"
DstPort 2
}
}
Branch {
Points [0, 45]
DstBlock "Efficiency\ncalculation"
DstPort 4
}
}
Line {
SrcBlock "Vg"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Sum2"
DstPort 1
}
Branch {
Points [0, 135]
DstBlock "Efficiency\ncalculation"
DstPort 3
}
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "Product"
DstPort 2
}
Line {
Name "1-D"
Labels [2, 0]
SrcBlock "Product"
SrcPort 1
Points [30, 0; 0, 100]
Branch {
DstBlock "Product1"
DstPort 1
}
Branch {
DstBlock "Sum4"
DstPort 1
}
}
Line {
SrcBlock "Product1"
SrcPort 1
DstBlock "Sum3"
DstPort 2
}
Line {
SrcBlock "Switching loss current"
SrcPort 1
Points [35, 0]
DstBlock "Sum3"
DstPort 1
}
Line {
SrcBlock "Sum3"
SrcPort 1
DstBlock "Limiter"
DstPort 1
}
Line {
Name "Iout"
SrcBlock "Limiter"
SrcPort 1
Points [35, 0; 0, 0]
Branch {
Labels [1, 0]
Points [0, -115]
DstBlock "Sum1"
DstPort 2
}
Branch {
Points [0, 10; 285, 0]
Branch {
DstBlock "Efficiency\ncalculation"
DstPort 2
}
Branch {
Points [0, 115]
DstBlock "Product2"
DstPort 2
}
}
}
Line {
SrcBlock "Efficiency\ncalculation"
SrcPort 1
DstBlock "efficiency"
DstPort 1
}
Line {
SrcBlock "constant"
SrcPort 1
DstBlock "Sum4"
DstPort 2
}
Line {
SrcBlock "Sum4"
SrcPort 1
DstBlock "D"
DstPort 1
}
Line {
SrcBlock "Product2"
SrcPort 1
DstBlock "Pout"
DstPort 1
}
Annotation {
Name "ECEN2060 Switched-mode Boost (step-up) DC-D"
"C averaged converter model\nwith input current control and efficiency model"
Position [449, 14]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "output voltage"
Position [881, 99]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "inductor current"
Position [877, 32]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "output current"
Position [59, 15]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "input voltage"
Position [55, 65]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "Iref"
Position [33, 217]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "Capacitor"
Position [709, 88]
UseDisplayTextAsClickCallback off
}
}
}
Block {
BlockType Constant
Name "Current reference"
Position [60, 220, 90, 250]
Value "6.25"
VectorParams1D on
SamplingMode "Sample based"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
FramePeriod "inf"
Port {
PortNumber 1
Name "Iref"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Constant
Name "Iout"
Position [60, 160, 90, 190]
Value "3"
VectorParams1D on
SamplingMode "Sample based"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
FramePeriod "inf"
}
Block {
BlockType Display
Name "Pout"
Ports [1]
Position [370, 285, 460, 315]
Decimation "1"
Lockdown off
}
Block {
BlockType Scope
Name "Scope"
Ports [3]
Position [440, 116, 470, 204]
Floating off
Location [97, 330, 846, 800]
Open on
NumInputPorts "3"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
}
TimeRange "0.035"
YMin "199.8~0.5152~0.95915"
YMax "200~0.516~0.9591599999999999"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Constant
Name "Vin"
Position [60, 105, 90, 135]
Value "100"
VectorParams1D on
SamplingMode "Sample based"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
FramePeriod "inf"
Port {
PortNumber 1
Name "Vg"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Display
Name "Vout"
Ports [1]
Position [360, 45, 450, 75]
Decimation "1"
Lockdown off
}
Block {
BlockType Display
Name "efficiency"
Ports [1]
Position [370, 230, 460, 260]
Decimation "1"
Lockdown off
}
Line {
Name "Iref"
Labels [0, 0]
SrcBlock "Current reference"
SrcPort 1
Points [75, 0]
DstBlock "Boost DC-DC"
DstPort 3
}
Line {
Name "Vg"
Labels [0, 0]
SrcBlock "Vin"
SrcPort 1
Points [0, 15]
DstBlock "Boost DC-DC"
DstPort 1
}
Line {
Name "Vout"
Labels [0, 0]
SrcBlock "Boost DC-DC"
SrcPort 1
Points [40, 0]
Branch {
Points [0, -70]
DstBlock "Vout"
DstPort 1
}
Branch {
Labels [1, 0]
DstBlock "Scope"
DstPort 1
}
}
Line {
Name "Duty"
Labels [1, 0]
SrcBlock "Boost DC-DC"
SrcPort 2
DstBlock "Scope"
DstPort 2
}
Line {
Name "efficiency"
Labels [0, 0]
SrcBlock "Boost DC-DC"
SrcPort 3
Points [45, 0]
Branch {
DstBlock "Scope"
DstPort 3
}
Branch {
Points [0, 55]
DstBlock "efficiency"
DstPort 1
}
}
Line {
SrcBlock "Boost DC-DC"
SrcPort 4
Points [10, 0; 0, 80]
DstBlock "Pout"
DstPort 1
}
Line {
SrcBlock "Iout"
SrcPort 1
DstBlock "Boost DC-DC"
DstPort 2
}
Annotation {
Name "ECEN2060\nSwitched-mode Boost\nDC-DC converter"
"\nwith inductor current control"
Position [200, 49]
UseDisplayTextAsClickCallback off
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -