📄 kaihuanspwm.mdl
字号:
YMin "-315~0.0029691~0.0030301"
YMax "-285~0.0029699~0.0030309"
DataFormat "StructureWithTime"
}
Block {
BlockType Reference
Name "Series RLC Branch"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [496, 325, 524, 395]
Orientation "down"
NamePlacement "alternate"
SourceBlock "powerlib/Elements/Series RLC Branch"
SourceType "Series RLC Branch"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__new0"
RConnTagsString "__new0"
Resistance "1"
Inductance "2e-3"
Capacitance "inf"
Measurements "Branch voltage and current"
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [0, 1]
Position [300, 365, 340, 425]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskPromptString "m(0<m<=1)|f(Hz)|fc(Hz)"
MaskStyleString "edit,edit,edit"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "on,on,on"
MaskVisibilityString "on,on,on"
MaskToolTipString "on,on,on"
MaskVarAliasString ",,"
MaskVariables "m=@1;f=@2;fc=@3;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "0.8|50|2000"
MaskTabNameString ",,"
System {
Name "Subsystem"
Location [85, 183, 895, 390]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Clock
Name "Clock"
Position [25, 100, 45, 120]
Decimation "10"
}
Block {
BlockType Constant
Name "Constant"
Position [145, 25, 175, 55]
Value "m"
}
Block {
BlockType DataTypeConversion
Name "Data Type Conversion"
Position [655, 108, 730, 142]
OutDataTypeMode "double"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType DataTypeConversion
Name "Data Type Conversion1"
Position [375, 98, 450, 132]
OutDataTypeMode "boolean"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain"
Position [75, 91, 130, 129]
Gain "2*pi*f"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Logic
Name "Logical\nOperator"
Ports [1, 1]
Position [495, 129, 525, 161]
Operator "NOT"
AllPortsSameDT off
OutDataTypeMode "Boolean"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [580, 71, 585, 109]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux1"
Ports [2, 1]
Position [580, 131, 585, 169]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux2"
Ports [2, 1]
Position [625, 106, 630, 144]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [230, 87, 260, 118]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator"
Position [315, 97, 345, 128]
InputSameDT off
LogicOutDataTypeMode "Boolean"
}
Block {
BlockType Reference
Name "Repeating\nSequence"
Ports [0, 1]
Position [235, 150, 265, 180]
SourceBlock "simulink/Sources/Repeating\nSequence"
SourceType "Repeating table"
ShowPortLabels on
rep_seq_t "[0 1/fc/4 3/fc/4 1/fc]"
rep_seq_y "[0 -1 1 0]"
}
Block {
BlockType Trigonometry
Name "Trigonometric\nFunction"
Ports [1, 1]
Position [165, 95, 195, 125]
}
Block {
BlockType Outport
Name "Out1"
Position [755, 118, 785, 132]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Clock"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Trigonometric\nFunction"
DstPort 1
}
Line {
SrcBlock "Trigonometric\nFunction"
SrcPort 1
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [35, 0]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Repeating\nSequence"
SrcPort 1
Points [15, 0; 0, -45]
DstBlock "Relational\nOperator"
DstPort 2
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Relational\nOperator"
DstPort 1
}
Line {
SrcBlock "Relational\nOperator"
SrcPort 1
DstBlock "Data Type Conversion1"
DstPort 1
}
Line {
SrcBlock "Logical\nOperator"
SrcPort 1
Points [15, 0; 0, -10]
Branch {
Points [0, -35]
DstBlock "Mux"
DstPort 2
}
Branch {
Points [0, 5]
DstBlock "Mux1"
DstPort 1
}
}
Line {
SrcBlock "Data Type Conversion1"
SrcPort 1
Points [0, 0; 25, 0]
Branch {
DstBlock "Logical\nOperator"
DstPort 1
}
Branch {
Points [25, 0; 0, -35; 50, 0]
Branch {
DstBlock "Mux"
DstPort 1
}
Branch {
Points [0, 80]
DstBlock "Mux1"
DstPort 2
}
}
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [10, 0; 0, 25]
DstBlock "Mux2"
DstPort 1
}
Line {
SrcBlock "Mux1"
SrcPort 1
Points [10, 0; 0, -15]
DstBlock "Mux2"
DstPort 2
}
Line {
SrcBlock "Mux2"
SrcPort 1
DstBlock "Data Type Conversion"
DstPort 1
}
Line {
SrcBlock "Data Type Conversion"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "Universal Bridge"
Ports [1, 0, 0, 0, 0, 2, 2]
Position [280, 252, 335, 328]
Orientation "left"
NamePlacement "alternate"
SourceBlock "powerlib/Power\nElectronics/Universal Bridge"
SourceType "Universal Bridge"
ShowPortLabels on
Arms "2"
SnubberResistance "1e5"
SnubberCapacitance "inf"
Device "IGBT / Diodes"
Ron "1e-3"
Lon "0"
ForwardVoltages "[ 0 0 ]"
ForwardVoltage "0"
GTOparameters "[ 10e-6 , 20e-6 ]"
IGBTparameters "[ 1e-6 , 2e-6 ]"
Measurements "None"
}
Line {
LineType "Connection"
SrcBlock "Universal Bridge"
SrcPort LConn1
Points [160, 0]
DstBlock "Series RLC Branch"
DstPort LConn1
}
Line {
LineType "Connection"
SrcBlock "Series RLC Branch"
SrcPort RConn1
Points [0, 5; -130, 0; 0, -100]
DstBlock "Universal Bridge"
DstPort LConn2
}
Line {
SrcBlock "Subsystem"
SrcPort 1
Points [10, 0; 0, -130]
DstBlock "Universal Bridge"
DstPort 1
}
Line {
LineType "Connection"
SrcBlock "DC Voltage Source"
SrcPort RConn1
Points [0, -130]
DstBlock "Current Measurement"
DstPort LConn1
}
Line {
LineType "Connection"
SrcBlock "DC Voltage Source"
SrcPort LConn1
Points [0, 5; 135, 0; 0, -55]
DstBlock "Universal Bridge"
DstPort RConn2
}
Line {
LineType "Connection"
SrcBlock "Current Measurement"
SrcPort RConn1
Points [35, 0; 0, 100]
DstBlock "Universal Bridge"
DstPort RConn1
}
Line {
SrcBlock "Multimeter"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Current Measurement"
SrcPort 1
Points [135, 0; 0, 95]
DstBlock "Scope"
DstPort 3
}
Line {
SrcBlock "Demux"
SrcPort 2
Points [15, 0; 0, 55]
DstBlock "Scope"
DstPort 2
}
Line {
SrcBlock "Demux"
SrcPort 1
Points [35, 0]
DstBlock "Scope"
DstPort 1
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -