📄 inverter.mdl
字号:
Ports [2, 2]
Position [220, 170, 275, 210]
ShowName off
SourceBlock "powerlib2/Power\nElectronics/Thyristor"
SourceType "Thyristor"
ShowPortLabels on
Ron "1e-04"
Lon "0"
Vf "0.8"
IC "0"
Rs "90"
Cs "01e-10"
PSBOutputType "10"
}
Block {
BlockType Reference
Name "Thyristor2"
Tag "PoWeRsYsTeMbLoCk"
Ports [2, 2]
Position [220, 320, 275, 360]
ShowName off
SourceBlock "powerlib2/Power\nElectronics/Thyristor"
SourceType "Thyristor"
ShowPortLabels on
Ron "1e-04"
Lon "0"
Vf "0.8"
IC "0"
Rs "90"
Cs "01e-10"
PSBOutputType "10"
}
Block {
BlockType Reference
Name "Thyristor3"
Tag "PoWeRsYsTeMbLoCk"
Ports [2, 2]
Position [220, 95, 275, 135]
Orientation "left"
NamePlacement "alternate"
ShowName off
SourceBlock "powerlib2/Power\nElectronics/Thyristor"
SourceType "Thyristor"
ShowPortLabels on
Ron "1e-04"
Lon "0"
Vf ".8"
IC "0"
Rs "90"
Cs "01e-10"
PSBOutputType "10"
}
Block {
BlockType Reference
Name "Thyristor4"
Tag "PoWeRsYsTeMbLoCk"
Ports [2, 2]
Position [225, 240, 280, 280]
Orientation "left"
NamePlacement "alternate"
ShowName off
SourceBlock "powerlib2/Power\nElectronics/Thyristor"
SourceType "Thyristor"
ShowPortLabels on
Ron "1e-04"
Lon "0"
Vf "0.8"
IC "0"
Rs "90"
Cs "01e-10"
PSBOutputType "10"
}
Block {
BlockType Reference
Name "Thyristor5"
Tag "PoWeRsYsTeMbLoCk"
Ports [2, 2]
Position [220, 395, 275, 435]
Orientation "left"
NamePlacement "alternate"
ShowName off
SourceBlock "powerlib2/Power\nElectronics/Thyristor"
SourceType "Thyristor"
ShowPortLabels on
Ron "1e-04"
Lon "0"
Vf "0.8"
IC "0"
Rs "90"
Cs "01e-10"
PSBOutputType "10"
}
Block {
BlockType SubSystem
Name "pulses"
Ports []
Position [25, 417, 122, 469]
BackgroundColor "orange"
ShowName off
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskType "Pulse generator"
MaskPromptString "Pulse Width (% of period)"
MaskStyleString "edit"
MaskTunableValueString "on"
MaskEnableString "on"
MaskVisibilityString "on"
MaskToolTipString "on"
MaskVariables "B=@1;"
MaskDisplay "\ncolor('yellow');plot([10 20 20 30 30 40],"
" [10 10 15 15 10 10])\ncolor('yellow');plot([10 19.5 19.5 30.5 30.5 40], [10."
"1 10.1 15.1 15.1 10.1 10.1])\ncolor('whit')disp('Pulse generator')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "37.5"
System {
Name "pulses"
Location [171, 324, 752, 624]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Goto
Name "Goto"
Position [145, 64, 175, 86]
ShowName off
GotoTag "p1"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto1"
Position [410, 20, 450, 50]
ShowName off
GotoTag "p11"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto2"
Position [145, 149, 175, 171]
ShowName off
GotoTag "p2"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto3"
Position [410, 140, 450, 170]
ShowName off
GotoTag "p22"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto4"
Position [150, 264, 180, 286]
ShowName off
GotoTag "p3"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto5"
Position [410, 245, 450, 275]
ShowName off
GotoTag "p33"
TagVisibility "global"
}
Block {
BlockType DiscretePulseGenerator
Name "Pulse\nGenerator"
Ports [0, 1]
Position [15, 33, 60, 67]
ShowName off
PulseType "Time based"
Period ".02"
PulseWidth "B"
PhaseDelay "(a/360)*.02"
VectorParams1D off
}
Block {
BlockType DiscretePulseGenerator
Name "Pulse\nGenerator1"
Ports [0, 1]
Position [275, 18, 320, 52]
ShowName off
PulseType "Time based"
Period ".02"
PulseWidth "B"
PhaseDelay ".01+(a/360)*.02"
}
Block {
BlockType DiscretePulseGenerator
Name "Pulse\nGenerator2"
Ports [0, 1]
Position [15, 143, 60, 177]
ShowName off
PulseType "Time based"
Period ".02"
PulseWidth "B"
PhaseDelay "(1/3)*.02+(a/360)*.02"
VectorParams1D off
}
Block {
BlockType DiscretePulseGenerator
Name "Pulse\nGenerator3"
Ports [0, 1]
Position [275, 138, 320, 172]
ShowName off
PulseType "Time based"
Period ".02"
PulseWidth "B"
PhaseDelay "(1/3)*.02+(a/360)*.02-.01"
}
Block {
BlockType DiscretePulseGenerator
Name "Pulse\nGenerator4"
Ports [0, 1]
Position [15, 238, 60, 272]
ShowName off
PulseType "Time based"
Period ".02"
PulseWidth "B"
PhaseDelay "(2/3)*.02+(a/360)*.02"
VectorParams1D off
}
Block {
BlockType DiscretePulseGenerator
Name "Pulse\nGenerator5"
Ports [0, 1]
Position [275, 243, 320, 277]
ShowName off
PulseType "Time based"
Period ".02"
PulseWidth "B"
PhaseDelay "(2/3)*.02+(a/360)*.02-.01"
VectorParams1D off
}
Block {
BlockType Scope
Name "Scope1"
Ports [2]
Position [215, 16, 245, 49]
ShowName off
Floating off
Location [238, 478, 899, 717]
Open off
NumInputPorts "2"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
TimeRange "0.021"
YMin "0~0"
YMax "1~1"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope2"
Ports [2]
Position [205, 91, 235, 124]
ShowName off
Floating off
Location [527, 242, 852, 473]
Open off
NumInputPorts "2"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
TimeRange "0.021"
YMin "0~0"
YMax "1~1"
SaveName "ScopeData3"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope3"
Ports [2]
Position [195, 196, 225, 229]
ShowName off
Floating off
Location [529, 523, 853, 762]
Open off
NumInputPorts "2"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
TimeRange "0.021"
YMin "0~0"
YMax "1~1"
SaveName "ScopeData4"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [1, 1]
Position [85, 31, 105, 69]
ShowName off
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "Subsystem"
Location [433, 403, 931, 703]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In"
Position [110, 103, 140, 117]
IconDisplay "Port number"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [255, 184, 285, 211]
InputSameDT off
RndMeth "Floor"
}
Block {
BlockType Step
Name "Step"
Position [65, 190, 95, 220]
Time "(a/360)*.02"
SampleTime "0"
}
Block {
BlockType Outport
Name "Out"
Position [360, 103, 390, 117]
IconDisplay "Port number"
}
Line {
SrcBlock "Step"
SrcPort 1
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "In"
SrcPort 1
Points [95, 0]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
Points [25, 0; 0, -90]
DstBlock "Out"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Subsystem1"
Ports [1, 1]
Position [85, 141, 105, 179]
ShowName off
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "Subsystem1"
Location [433, 403, 931, 703]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In"
Position [110, 103, 140, 117]
IconDisplay "Port number"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [255, 184, 285, 211]
InputSameDT off
RndMeth "Floor"
}
Block {
BlockType Step
Name "Step"
Position [65, 190, 95, 220]
Time "(a/360)*.02"
SampleTime "0"
}
Block {
BlockType Outport
Name "Out"
Position [360, 103, 390, 117]
IconDisplay "Port number"
}
Line {
SrcBlock "Product"
SrcPort 1
Points [25, 0; 0, -90]
DstBlock "Out"
DstPort 1
}
Line {
SrcBlock "In"
SrcPort 1
Points [95, 0]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Step"
SrcPort 1
DstBlock "Product"
DstPort 2
}
}
}
Block {
BlockType SubSystem
Name "Subsystem2"
Ports [1, 1]
Position [85, 236, 105, 274]
ShowName off
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "Subsystem2"
Location [433, 403, 931, 703]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In"
Position [110, 103, 140, 117]
IconDisplay "Port number"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [255, 184, 285, 211]
InputSameDT off
RndMeth "Floor"
}
Block {
BlockType Step
Name "Step"
Position [65, 190, 95, 220]
Time "(a/360)*.02"
SampleTime "0"
}
Block {
BlockType Outport
Name "Out"
Position [360, 103, 390, 117]
IconDisplay "Port number"
}
Line {
SrcBlock "Step"
SrcPort 1
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "In"
SrcPort 1
Points [95, 0]
DstBlock "Product"
DstPort 1
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -