📄 m2_1_2.mdl
字号:
InitialOutput "0"
}
Line {
SrcBlock "Step"
SrcPort 1
Points [20, 0; 0, 35]
DstBlock "Switch"
DstPort 1
}
Line {
SrcBlock "Constant1"
SrcPort 1
Points [25, 0; 0, -30]
DstBlock "Switch"
DstPort 3
}
Line {
SrcBlock "Switch"
SrcPort 1
DstBlock "out1"
DstPort 1
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
Points [5, 0; 20, 0]
DstBlock "Switch"
DstPort 2
}
}
}
Block {
BlockType SubSystem
Name "Pulse\nGenerator5"
Ports [0, 1]
Position [175, 432, 210, 458]
TreatAsAtomicUnit off
MaskType "Pulse Generator"
MaskDescription "Pulse Generator"
MaskHelp "Pulse generator which ensures pulse transitions"
" are hit. Provides a vector of pulses when the height is entered as a vector."
" Unmask to see how it works."
MaskPromptString "Period (secs):|Duty cycle (% of period):|Amplit"
"ude:|Start time:"
MaskStyleString "edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on"
MaskCallbackString "|||"
MaskEnableString "on,on,on,on"
MaskVisibilityString "on,on,on,on"
MaskToolTipString "on,on,on,on"
MaskVarAliasString ",,,"
MaskVariables "period=@1;duty=@2;amplitude=@3;start=@4;"
MaskInitialization "\n"
MaskDisplay "plot(0,0,100,100,[95,90,90,75,75,60,60,45,45,30"
",30,15,15,5],[25,25,75,75,25,25,75,75,25,25,75,75,25,25]); \n "
" "
" \n "
" "
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "1|100|0.000000001|0"
System {
Name "Pulse\nGenerator5"
Location [200, 343, 539, 534]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Constant
Name "Constant1"
Position [40, 135, 60, 155]
Value "0"
}
Block {
BlockType Sin
Name "Sine Wave"
Position [35, 83, 65, 107]
SineType "Time based"
Frequency "2*pi./period"
Phase "-2*pi*(start./period + duty/200 - 1/4)"
SampleTime "0"
}
Block {
BlockType Step
Name "Step"
Position [35, 27, 65, 53]
Time "start"
After "amplitude"
SampleTime "0"
}
Block {
BlockType Switch
Name "Switch"
Position [120, 65, 155, 125]
Threshold "sin(pi*(0.5 - duty/100))"
}
Block {
BlockType Outport
Name "out1"
Position [250, 88, 280, 102]
InitialOutput "0"
}
Line {
SrcBlock "Step"
SrcPort 1
Points [20, 0; 0, 35]
DstBlock "Switch"
DstPort 1
}
Line {
SrcBlock "Constant1"
SrcPort 1
Points [25, 0; 0, -30]
DstBlock "Switch"
DstPort 3
}
Line {
SrcBlock "Switch"
SrcPort 1
DstBlock "out1"
DstPort 1
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
Points [5, 0; 20, 0]
DstBlock "Switch"
DstPort 2
}
}
}
Block {
BlockType Scope
Name "Scope10"
Ports [2]
Position [605, 245, 635, 280]
BackgroundColor "green"
Location [450, 239, 844, 502]
Open off
NumInputPorts "2"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
}
TimeRange "0.01"
YMin "0~-100"
YMax "4~300"
SaveName "ScopeData8"
DataFormat "Array"
LimitDataPoints off
MaxDataPoints "500000"
}
Block {
BlockType Scope
Name "Scope11"
Ports [2]
Position [365, 434, 395, 476]
BackgroundColor "green"
Location [396, 218, 789, 476]
Open off
NumInputPorts "2"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
}
TimeRange "0.01"
YMin "0~-1"
YMax "5~1"
SaveName "ScopeData10"
DataFormat "Array"
LimitDataPoints off
MaxDataPoints "500000"
}
Block {
BlockType Scope
Name "Scope12"
Ports [2]
Position [605, 450, 635, 485]
BackgroundColor "green"
Location [247, 330, 641, 594]
Open off
NumInputPorts "2"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
}
TimeRange "0.01"
YMin "0~-100"
YMax "4~300"
SaveName "ScopeData11"
DataFormat "Array"
LimitDataPoints off
MaxDataPoints "500000"
}
Block {
BlockType Scope
Name "Scope7"
Ports [2]
Position [360, 29, 390, 71]
BackgroundColor "green"
Location [439, 442, 832, 700]
Open off
NumInputPorts "2"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
}
TimeRange "0.01"
YMin "0~0"
YMax "5~2"
SaveName "ScopeData6"
DataFormat "Array"
LimitDataPoints off
MaxDataPoints "500000"
}
Block {
BlockType Scope
Name "Scope8"
Ports [2]
Position [605, 45, 635, 80]
BackgroundColor "green"
Location [218, 377, 612, 640]
Open off
NumInputPorts "2"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
}
TimeRange "0.01"
YMin "0~-100"
YMax "4~300"
SaveName "ScopeData7"
DataFormat "Array"
LimitDataPoints off
MaxDataPoints "500000"
}
Block {
BlockType Scope
Name "Scope9"
Ports [2]
Position [365, 229, 395, 271]
BackgroundColor "green"
Location [396, 273, 789, 531]
Open off
NumInputPorts "2"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
}
TimeRange "0.01"
YMin "0~0"
YMax "5~2"
SaveName "ScopeData9"
DataFormat "Array"
LimitDataPoints off
MaxDataPoints "500000"
}
Block {
BlockType Reference
Name "U1 = 200V "
Description "source block"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [170, 125, 190, 160]
Orientation "up"
AttributesFormatString "\\n"
SourceBlock "powerlib/Electrical\nSources/DC Voltage Source"
SourceType "DC Voltage Source"
Amplitude "200"
Measurements "None"
}
Block {
BlockType Reference
Name "U2= 200V "
Description "source block"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [170, 325, 190, 360]
Orientation "up"
AttributesFormatString "\\n"
SourceBlock "powerlib/Electrical\nSources/DC Voltage Source"
SourceType "DC Voltage Source"
Amplitude "200"
Measurements "None"
}
Block {
BlockType Reference
Name "U3= 200V"
Description "source block"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [170, 530, 190, 565]
Orientation "up"
AttributesFormatString "\\n"
SourceBlock "powerlib/Electrical\nSources/DC Voltage Source"
SourceType "DC Voltage Source"
Amplitude "200"
Measurements "None"
}
Block {
BlockType Reference
Name "output Ground10"
Ports [0, 0, 0, 0, 0, 1]
Position [168, 390, 192, 410]
Orientation "down"
ShowName off
AttributesFormatString "\\n"
SourceBlock "powerlib/Elements/Ground"
SourceType "Ground"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
PortType "p1"
LConnTagsString "a"
}
Block {
BlockType Reference
Name "output Ground11"
Ports [0, 0, 0, 0, 0, 1]
Position [504, 590, 526, 610]
Orientation "down"
ShowName off
AttributesFormatString "\\n"
SourceBlock "powerlib/Elements/Ground"
SourceType "Ground"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
PortType "p1"
LConnTagsString "a"
}
Block {
BlockType Reference
Name "output Ground12"
Ports [0, 0, 0, 0, 0, 1]
Position [168, 595, 192, 615]
Orientation "down"
ShowName off
AttributesFormatString "\\n"
SourceBlock "powerlib/Elements/Ground"
SourceType "Ground"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
PortType "p1"
LConnTagsString "a"
}
Block {
BlockType Reference
Name "output Ground7"
Ports [0, 0, 0, 0, 0, 1]
Position [504, 185, 526, 205]
Orientation "down"
ShowName off
AttributesFormatString "\\n"
SourceBlock "powerlib/Elements/Ground"
SourceType "Ground"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
PortType "p1"
LConnTagsString "a"
}
Block {
BlockType Reference
Name "output Ground8"
Ports [0, 0, 0, 0, 0, 1]
Position [168, 190, 192, 210]
Orientation "down"
ShowName off
AttributesFormatString "\\n"
SourceBlock "powerlib/Elements/Ground"
SourceType "Ground"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
PortType "p1"
LConnTagsString "a"
}
Block {
BlockType Reference
Name "output Ground9"
Ports [0, 0, 0, 0, 0, 1]
Position [504, 385, 526, 405]
Orientation "down"
ShowName off
AttributesFormatString "\\n"
SourceBlock "powerlib/Elements/Ground"
SourceType "Ground"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
PortType "p1"
LConnTagsString "a"
}
Line {
LineType "Connection"
Points [480, 65; 35, 0; 0, 35; 10, 0]
DstBlock "Load voltage3"
DstPort LConn1
Branch {
ConnectType "SRC_SRC"
DstBlock "\n\nR"
DstPort LConn1
}
Branch {
ConnectType "SRC_DEST"
SrcBlock "Load current3"
SrcPort RConn1
Points [0, -30; 40, 0]
}
}
Line {
LineType "Connection"
SrcBlock "GTO1"
SrcPort LConn1
Points [-50, 0]
DstBlock "U1 = 200V "
DstPort RConn1
}
Line {
LineType "Connection"
SrcBlock "Load current3"
SrcPort LConn1
DstBlock "GTO1"
DstPort RConn1
}
Line {
Name "Iak"
Labels [0, 0]
SrcBlock "Demux3"
SrcPort 1
DstBlock "Scope7"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -