📄 boost_cm_switching.mdl
字号:
Position [225, 150, 245, 170]
ShowName off
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [525, 130, 545, 150]
ShowName off
IconShape "round"
Inputs "++|"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [70, 230, 90, 250]
ShowName off
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Switch
Name "Switch (C)"
Position [615, 91, 645, 149]
Threshold "0.5"
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType Switch
Name "Switch (L)"
Position [270, 111, 300, 169]
Threshold "0.5"
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "Vout"
Position [885, 113, 915, 127]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "IL"
Position [885, 48, 915, 62]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "switch control"
Position [885, 233, 915, 247]
Port "3"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Vg"
SrcPort 1
Points [150, 0; 0, 35]
Branch {
DstBlock "Switch (L)"
DstPort 1
}
Branch {
Points [0, 40]
DstBlock "Sum"
DstPort 1
}
}
Line {
SrcBlock "Relay"
SrcPort 1
Points [20, 0]
Branch {
Points [0, -100]
DstBlock "Switch (L)"
DstPort 2
}
Branch {
Points [395, 0]
Branch {
Points [0, -120]
DstBlock "Switch (C)"
DstPort 2
}
Branch {
DstBlock "switch control"
DstPort 1
}
}
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Switch (L)"
DstPort 3
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Switch (C)"
DstPort 3
}
Line {
SrcBlock "Switch (C)"
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 [30, 0]
Branch {
Points [0, 90; -610, 0]
DstBlock "Sum"
DstPort 2
}
Branch {
DstBlock "Vout"
DstPort 1
}
}
Line {
SrcBlock "Switch (L)"
SrcPort 1
DstBlock "1/L"
DstPort 1
}
Line {
SrcBlock "1/L"
SrcPort 1
DstBlock "Integrator (L)"
DstPort 1
}
Line {
Name "iL"
Labels [0, 0]
SrcBlock "Integrator (L)"
SrcPort 1
Points [30, 0]
Branch {
DstBlock "Sum1"
DstPort 2
}
Branch {
Points [0, -85]
DstBlock "IL"
DstPort 1
}
Branch {
Points [0, 145; -415, 0]
DstBlock "Sum2"
DstPort 2
}
}
Line {
SrcBlock "Iref"
SrcPort 1
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Iout"
SrcPort 1
DstBlock "-1"
DstPort 1
}
Line {
SrcBlock "-1"
SrcPort 1
Points [280, 0; 0, 65]
Branch {
DstBlock "Sum1"
DstPort 1
}
Branch {
DstBlock "Switch (C)"
DstPort 1
}
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "Relay"
DstPort 1
}
Annotation {
Name "ECEN2060 Switched-mode Boost (step-up) DC-D"
"C converter\nwith control of the inductor current"
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 "Inductor"
Position [391, 108]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "Capacitor"
Position [749, 168]
UseDisplayTextAsClickCallback off
}
}
}
Block {
BlockType Constant
Name "Current reference"
Position [35, 175, 65, 205]
Value "4"
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 Scope
Name "Scope"
Ports [3]
Position [385, 175, 415, 235]
Floating off
Location [472, 455, 1221, 925]
Open on
NumInputPorts "3"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
}
TimeRange "0.001"
YMin "198~0~0"
YMax "200~6~1"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Constant
Name "Vin"
Position [35, 125, 65, 155]
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, 125, 450, 155]
Decimation "1"
Lockdown off
}
Line {
Name "Iref"
Labels [0, 0]
SrcBlock "Current reference"
SrcPort 1
DstBlock "Boost DC-DC"
DstPort 3
}
Line {
Name "Vg"
Labels [0, 0]
SrcBlock "Vin"
SrcPort 1
DstBlock "Boost DC-DC"
DstPort 1
}
Line {
Name "Vout"
Labels [0, 0]
SrcBlock "Boost DC-DC"
SrcPort 1
Points [30, 0]
Branch {
Points [20, 0]
Branch {
DstBlock "Vout"
DstPort 1
}
Branch {
Labels [2, 0]
Points [0, 45]
DstBlock "Scope"
DstPort 1
}
}
Branch {
Points [0, -60]
DstBlock "1/Rload"
DstPort 1
}
}
Line {
Name "iL"
Labels [3, 0]
SrcBlock "Boost DC-DC"
SrcPort 2
Points [30, 0; 0, 40]
DstBlock "Scope"
DstPort 2
}
Line {
Name "switch control"
Labels [3, 0]
SrcBlock "Boost DC-DC"
SrcPort 3
Points [15, 0; 0, 35]
DstBlock "Scope"
DstPort 3
}
Line {
Name "iout"
Labels [2, 0]
SrcBlock "1/Rload"
SrcPort 1
Points [-45, 0; 0, 85]
DstBlock "Boost DC-DC"
DstPort 2
}
Annotation {
Name "ECEN2060\nSwitched-mode Boost\nDC-DC converter"
"\nwith inductor current control"
Position [85, 39]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "resistive load"
Position [221, 48]
UseDisplayTextAsClickCallback off
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -