power_sixpulses.mdl
来自「六电平的功率发生器」· MDL 代码 · 共 1,633 行 · 第 1/4 页
MDL
1,633 行
SourceType "MultimeterPSB"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
PhasorSimulation off
OutputType "Magnitude"
sel "[1 2 3 4 5 6 10]"
L "16"
Gain "[-1 -1 -1 -1 -1 -1 1]"
yselected "{'Usw1: Thyristor Converter','Usw2: Thyristor C"
"onverter','Usw3: Thyristor Converter','Usw4: Thyristor Converter','Usw5: Thyr"
"istor Converter','Usw6: Thyristor Converter','Udc: Thyristor Converter'};"
PSBOutputType "1"
PSBequivalent "0"
AxesSetting "[0,0.1,-100,100]"
Display "0"
SavedBlockNames "-11"
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [520, 185, 525, 275]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Scope
Name "Pulses"
Ports [7]
Position [630, 346, 680, 414]
BackgroundColor "green"
Floating off
Location [17, 73, 680, 791]
Open off
NumInputPorts "7"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
axes4 "%<SignalLabel>"
axes5 "%<SignalLabel>"
axes6 "%<SignalLabel>"
axes7 "%<SignalLabel>"
}
TimeRange "0.035"
YMin "-500~0~0~0~0~0~0"
YMax "500~1~1~1~1~1~1"
SaveToWorkspace on
SaveName "VI_scope"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleInput on
SampleTime "1/60/512"
}
Block {
BlockType Selector
Name "Selector"
Ports [1, 1]
Position [480, 295, 535, 325]
ShowName off
IndexOptions "Index vector (dialog)"
Indices "1"
OutputSizes "1"
InputPortWidth "6"
}
Block {
BlockType Selector
Name "Selector1"
Ports [1, 1]
Position [480, 330, 535, 360]
ShowName off
IndexOptions "Index vector (dialog)"
Indices "2"
OutputSizes "1"
InputPortWidth "6"
}
Block {
BlockType Selector
Name "Selector2"
Ports [1, 1]
Position [480, 365, 535, 395]
ShowName off
IndexOptions "Index vector (dialog)"
Indices "3"
OutputSizes "1"
InputPortWidth "6"
}
Block {
BlockType Selector
Name "Selector3"
Ports [1, 1]
Position [480, 400, 535, 430]
ShowName off
IndexOptions "Index vector (dialog)"
Indices "4"
OutputSizes "1"
InputPortWidth "6"
}
Block {
BlockType Selector
Name "Selector4"
Ports [1, 1]
Position [480, 435, 535, 465]
ShowName off
IndexOptions "Index vector (dialog)"
Indices "5"
OutputSizes "1"
InputPortWidth "6"
}
Block {
BlockType Selector
Name "Selector5"
Ports [1, 1]
Position [480, 470, 535, 500]
ShowName off
IndexOptions "Index vector (dialog)"
Indices "6"
OutputSizes "1"
InputPortWidth "6"
}
Block {
BlockType Reference
Name "Series RLC Branch2"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [585, 47, 640, 73]
ShowName off
AttributesFormatString "\\n"
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Elements/Series RLC Branch"
SourceType "Series RLC Branch"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__new0"
RConnTagsString "__new0"
BranchType "R"
Resistance "2"
Inductance "[]"
SetiL0 off
InitialCurrent "0"
Capacitance "[]"
Setx0 off
InitialVoltage "0"
Measurements "None"
}
Block {
BlockType Reference
Name "Synchronized\n6-Pulse Generator"
Ports [5, 1]
Position [330, 140, 415, 230]
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib_extras/Control \nBlocks/Synchronized\n"
"6-Pulse Generator"
SourceType "Synchronized 6-pulse generator"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
freq "60"
pwidth "10"
Double_Pulse on
}
Block {
BlockType Reference
Name "Thyristor Converter"
Ports [1, 0, 0, 0, 0, 3, 2]
Position [480, 35, 550, 130]
AttributesFormatString "\\n"
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Power\nElectronics/Universal Bridge"
SourceType "Universal Bridge"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
Arms "3"
SnubberResistance "500"
SnubberCapacitance "1e-6"
Device "Thyristors"
Ron "1e-3"
Lon "0"
ForwardVoltages "[ 0.8 0.8 ]"
ForwardVoltage "0"
GTOparameters "[ 10e-6 , 20e-6 ]"
IGBTparameters "[ 1e-6 , 2e-6 ]"
Measurements "All voltages and currents"
converterType "Rectifier"
}
Block {
BlockType Reference
Name "Va"
Description "source block"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [38, 345, 62, 380]
Orientation "up"
AttributesFormatString "\\n"
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Electrical\nSources/AC Voltage Source"
SourceType "AC Voltage Source"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
Amplitude "200"
Phase "0"
Frequency "60"
SampleTime "0"
Measurements "None"
}
Block {
BlockType Reference
Name "Vab"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [0, 1, 0, 0, 0, 2]
Position [205, 178, 230, 202]
AttributesFormatString "\\n"
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
PhasorSimulation off
OutputType "Magnitude"
PSBequivalent "0"
}
Block {
BlockType Reference
Name "Vb"
Description "source block"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [78, 345, 102, 380]
Orientation "up"
AttributesFormatString "\\n"
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Electrical\nSources/AC Voltage Source"
SourceType "AC Voltage Source"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
Amplitude "200"
Phase "-120"
Frequency "60"
SampleTime "0"
Measurements "None"
}
Block {
BlockType Reference
Name "Vbc"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [0, 1, 0, 0, 0, 2]
Position [205, 218, 230, 242]
AttributesFormatString "\\n"
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
PhasorSimulation off
OutputType "Magnitude"
PSBequivalent "0"
}
Block {
BlockType Reference
Name "Vc"
Description "source block"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [118, 345, 142, 380]
Orientation "up"
AttributesFormatString "\\n"
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Electrical\nSources/AC Voltage Source"
SourceType "AC Voltage Source"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
Amplitude "200"
Phase "120"
Frequency "60"
SampleTime "0"
Measurements "None"
}
Block {
BlockType Reference
Name "Vca"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [0, 1, 0, 0, 0, 2]
Position [205, 258, 230, 282]
AttributesFormatString "\\n"
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
PhasorSimulation off
OutputType "Magnitude"
PSBequivalent "0"
}
Block {
BlockType Scope
Name "Voltages"
Ports [7]
Position [350, 372, 405, 478]
BackgroundColor "green"
Floating off
Location [17, 76, 680, 794]
Open off
NumInputPorts "7"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
axes4 "%<SignalLabel>"
axes5 "%<SignalLabel>"
axes6 "%<SignalLabel>"
axes7 "%<SignalLabel>"
}
TimeRange "0.035"
YMin "-500~-500~-500~-500~-500~-500~0"
YMax "500~500~500~500~500~500~400"
SaveToWorkspace on
SaveName "VI_scope1"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleInput on
SampleTime "1/60/512"
}
Block {
BlockType Reference
Name "output Ground4"
Ports [0, 0, 0, 0, 0, 1]
Position [114, 435, 146, 465]
Orientation "down"
ShowName off
AttributesFormatString "\\n"
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Elements/Ground"
SourceType "Ground"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "a"
}
Block {
BlockType Reference
Name "output Ground5"
Ports [0, 0, 0, 0, 0, 1]
Position [74, 435, 106, 465]
Orientation "down"
ShowName off
AttributesFormatString "\\n"
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Elements/Ground"
SourceType "Ground"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?