📄 buck_pwm.mdl
字号:
Name "Compare\nTo Zero1"
Location [585, 101, 1194, 328]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "u"
Position [15, 28, 45, 42]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType RelationalOperator
Name "Compare"
Position [145, 16, 185, 89]
Operator "<"
InputSameDT off
LogicOutDataTypeMode "boolean"
OutDataTypeStr "boolean"
ZeroCross off
}
Block {
BlockType Reference
Name "FixPt\nData Type\nDuplicate"
Ports [2]
Position [145, 118, 190, 182]
ShowName off
SourceBlock "simulink/Signal\nAttributes/Data Type\nDuplicate"
SourceType "Data Type Duplicate"
NumInputPorts "2"
}
Block {
BlockType Ground
Name "Ground"
Position [20, 60, 40, 80]
ShowName off
}
Block {
BlockType Outport
Name "y"
Position [270, 48, 300, 62]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Line {
SrcBlock "Compare"
SrcPort 1
DstBlock "y"
DstPort 1
}
Line {
SrcBlock "Ground"
SrcPort 1
Points [40, 0; 30, 0]
Branch {
Points [0, 95]
DstBlock "FixPt\nData Type\nDuplicate"
DstPort 2
}
Branch {
DstBlock "Compare"
DstPort 2
}
}
Line {
SrcBlock "u"
SrcPort 1
Points [0, 0; 75, 0]
Branch {
Points [0, 100]
DstBlock "FixPt\nData Type\nDuplicate"
DstPort 1
}
Branch {
DstBlock "Compare"
DstPort 1
}
}
}
}
Block {
BlockType Constant
Name "Constant"
Position [270, 35, 300, 65]
ShowName off
Value "RC"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Constant
Name "Constant1"
Position [295, 365, 325, 395]
ShowName off
Value "0"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Constant
Name "Constant2"
Position [35, 255, 65, 285]
ShowName off
Value "mode"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType DataTypeConversion
Name "Data Type Conversion"
Position [255, 250, 310, 280]
ShowName off
OutDataTypeMode "double"
OutDataType "sfix(16)"
OutScaling "2^0"
OutDataTypeStr "double"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType DataTypeConversion
Name "Data Type Conversion1"
Position [250, 320, 305, 350]
ShowName off
OutDataTypeMode "double"
OutDataType "sfix(16)"
OutScaling "2^0"
OutDataTypeStr "double"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain1"
Position [510, 320, 540, 350]
ShowName off
Gain "1/L"
ParameterDataType "sfix(16)"
ParameterScaling "2^0"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Gain
Name "Gain2"
Position [520, 365, 550, 395]
Orientation "left"
ShowName off
Gain "RL"
ParameterDataType "sfix(16)"
ParameterScaling "2^0"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Gain
Name "Gain4"
Position [565, 215, 595, 245]
ShowName off
Gain "RC"
ParameterDataType "sfix(16)"
ParameterScaling "2^0"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Integrator
Name "IL"
Ports [1, 1]
Position [585, 320, 615, 350]
LimitOutput on
LowerSaturationLimit "0"
Port {
PortNumber 1
Name "iL"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Logic
Name "Logical\nOperator"
Ports [2, 1]
Position [200, 247, 230, 278]
ShowName off
Operator "OR"
AllPortsSameDT off
OutDataTypeMode "boolean"
LogicDataType "double"
OutDataTypeStr "boolean"
}
Block {
BlockType Logic
Name "Logical\nOperator1"
Ports [2, 1]
Position [200, 317, 230, 348]
ShowName off
Operator "OR"
AllPortsSameDT off
OutDataTypeMode "boolean"
LogicDataType "double"
OutDataTypeStr "boolean"
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [525, 52, 545, 83]
NamePlacement "alternate"
ShowName off
Inputs "*/"
InputSameDT off
OutDataType "sfix(16)"
OutScaling "2^0"
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [395, 92, 415, 123]
NamePlacement "alternate"
ShowName off
Inputs "/*"
InputSameDT off
OutDataType "sfix(16)"
OutScaling "2^0"
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product3"
Ports [2, 1]
Position [490, 147, 510, 178]
NamePlacement "alternate"
ShowName off
InputSameDT off
OutDataType "sfix(16)"
OutScaling "2^0"
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product4"
Ports [2, 1]
Position [610, 87, 630, 118]
NamePlacement "alternate"
ShowName off
InputSameDT off
OutDataType "sfix(16)"
OutScaling "2^0"
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product5"
Ports [2, 1]
Position [205, 372, 225, 403]
Orientation "left"
NamePlacement "alternate"
ShowName off
InputSameDT off
OutDataType "sfix(16)"
OutScaling "2^0"
RndMeth "Floor"
Port {
PortNumber 1
Name "Is"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [640, 220, 660, 240]
NamePlacement "alternate"
ShowName off
IconShape "round"
Inputs "++|"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
OutDataTypeStr "Inherit: Inherit via internal rule"
Port {
PortNumber 1
Name "Vo"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Sum
Name "Sum3"
Ports [3, 1]
Position [445, 325, 465, 345]
NamePlacement "alternate"
ShowName off
IconShape "round"
Inputs "-+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
OutDataTypeStr "Inherit: Inherit via internal rule"
Port {
PortNumber 1
Name "vL"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Sum
Name "Sum5"
Ports [2, 1]
Position [340, 90, 360, 110]
ShowName off
IconShape "round"
Inputs "++|"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
OutDataTypeStr "Inherit: Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum6"
Ports [2, 1]
Position [430, 160, 450, 180]
NamePlacement "alternate"
ShowName off
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
OutDataTypeStr "Inherit: Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum7"
Ports [2, 1]
Position [555, 155, 575, 175]
NamePlacement "alternate"
ShowName off
IconShape "round"
Inputs "-+|"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
OutDataTypeStr "Inherit: Inherit via internal rule"
Port {
PortNumber 1
Name "Ic"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Switch
Name "Switch1"
Position [375, 242, 395, 288]
NamePlacement "alternate"
ShowName off
Threshold "0.5"
InputSameDT off
}
Block {
BlockType Switch
Name "Switch2"
Position [365, 147, 385, 193]
NamePlacement "alternate"
ShowName off
Threshold "0.5"
InputSameDT off
}
Block {
BlockType Switch
Name "Switch3"
Position [360, 312, 380, 358]
NamePlacement "alternate"
ShowName off
Threshold "0.5"
InputSameDT off
}
Block {
BlockType Integrator
Name "Vc"
Ports [1, 1]
Position [610, 15, 640, 45]
Orientation "left"
Port {
PortNumber 1
Name "Vc"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Outport
Name "y"
Position [770, 233, 800, 247]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Line {
SrcBlock "Bus\nCreator"
SrcPort 1
DstBlock "y"
DstPort 1
}
Line {
SrcBlock "Data Type Conversion1"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Switch3"
DstPort 2
}
Branch {
Points [0, 0; 0, 25; -85, 0]
DstBlock "Product5"
DstPort 1
}
}
Line {
SrcBlock "Data Type Conversion"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Switch1"
DstPort 2
}
Branch {
Points [0, -95]
DstBlock "Switch2"
DstPort 2
}
}
Line {
SrcBlock "Gain1"
SrcPort 1
DstBlock "IL"
DstPort 1
}
Line {
Name "vL"
Labels [0, 0]
SrcBlock "Sum3"
SrcPort 1
Points [10, 0]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -