📄 three_spwm_inverter_xiebo.mdl
字号:
Amplitude "1.1"
Frequency "2*157.0796327"
SampleTime "0"
}
Block {
BlockType Sin
Name "Sine f1"
Ports [0, 1]
Position [1000, 565, 1030, 595]
Orientation "left"
NamePlacement "alternate"
SineType "Time based"
Amplitude "1.1"
Frequency "2*157.0796327"
Phase "52.359878"
SampleTime "0"
}
Block {
BlockType Sin
Name "Sine f2"
Ports [0, 1]
Position [1000, 665, 1030, 695]
Orientation "left"
NamePlacement "alternate"
SineType "Time based"
Amplitude "1.1"
Frequency "2*157.0796327"
Phase "52.359878*2"
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [890, 470, 910, 490]
Orientation "left"
ShowName off
IconShape "round"
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [890, 570, 910, 590]
Orientation "left"
ShowName off
IconShape "round"
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum3"
Ports [2, 1]
Position [890, 670, 910, 690]
Orientation "left"
ShowName off
IconShape "round"
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "VM"
Ports [0, 1, 0, 0, 0, 2]
Position [920, 288, 945, 312]
SourceBlock "powerlib/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
ShowPortLabels on
PhasorSimulation off
OutputType "Complex"
PSBequivalent "0"
}
Block {
BlockType Reference
Name "load_1 "
Ports [0, 0, 0, 0, 0, 1, 1]
Position [811, 285, 839, 325]
Orientation "down"
NamePlacement "alternate"
ShowName off
AttributesFormatString "\\n"
SourceBlock "powerlib/Elements/Series RLC Branch"
SourceType "Series RLC Branch"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__new0"
RConnTagsString "__new0"
BranchType "RL"
Resistance "1"
Inductance "10e-03"
SetiL0 off
InitialCurrent "0"
Capacitance "[]"
Setx0 off
InitialVoltage "0"
Measurements "Branch voltage and current"
}
Block {
BlockType Reference
Name "load_2 "
Ports [0, 0, 0, 0, 0, 1, 1]
Position [836, 285, 864, 325]
Orientation "down"
NamePlacement "alternate"
ShowName off
AttributesFormatString "\\n"
SourceBlock "powerlib/Elements/Series RLC Branch"
SourceType "Series RLC Branch"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__new0"
RConnTagsString "__new0"
BranchType "RL"
Resistance "1"
Inductance "10e-03"
SetiL0 off
InitialCurrent "0"
Capacitance "[]"
Setx0 off
InitialVoltage "0"
Measurements "Branch voltage and current"
}
Block {
BlockType Reference
Name "load_3 "
Ports [0, 0, 0, 0, 0, 1, 1]
Position [856, 285, 884, 325]
Orientation "down"
NamePlacement "alternate"
ShowName off
AttributesFormatString "\\n"
SourceBlock "powerlib/Elements/Series RLC Branch"
SourceType "Series RLC Branch"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__new0"
RConnTagsString "__new0"
BranchType "RL"
Resistance "1"
Inductance "10e-03"
SetiL0 off
InitialCurrent "0"
Capacitance "[]"
Setx0 off
InitialVoltage "0"
Measurements "Branch voltage and current"
}
Block {
BlockType SubSystem
Name "powergui"
Ports []
Position [225, 665, 313, 707]
AncestorBlock "powerlib/powergui"
CopyFcn "powergui('Copy_Callback',gcb,0,[]);"
DeleteFcn "powergui('Copy_Callback',gcb,1,[]);powergui('Cl"
"ose_Callback',gcb,[],[]);\n "
" "
ModelCloseFcn "powergui('Close_Callback',gcb,[],[]);"
PreSaveFcn "try \nclose(get_pa"
"ram(gcbh,'userdata'))\nend "
NameChangeFcn "handles = get_param(gcb,'UserData');if ~isempty"
"(handles);delete(handles.powergui);end"
OpenFcn "if (power_openblockproxy ('secondary'))\npowerg"
"ui(gcb,'PM')\nend;"
FontSize 11
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskType "PSB option menu block"
MaskHelp "web(psbhelp)"
MaskPromptString "General parameter: Simulation Mode |General par"
"ameter: Sample Time|General parameter: Echo Messages|Initial electrical stat"
"es status|Impedance tool: Frequency Range|Impedance tool: Log impedance|Imped"
"ance tool: log Frequency|Impedance tool: grid|Impedance tool: Save Data To Wo"
"rkspace|Impedance tool: Variable Name|Structure Name (PSBFFTSCOPE)|ZoomFFT (P"
"SBFFTSCOPE)|Start Time (PSBFFTSCOPE)|Cycles (PSBFFTSCOPE)|Display style (PSBF"
"FTSCOPE)|Fundamental (PSBFFTSCOPE)|Frequency Axis (PSBFFTSCOPE)|Max Frequency"
" (PSBFFTSCOPE)|Frequency indice (PSBLOADFLOW)|Frequency indice (STEADYSTATE)"
"|RMS display (STEADYSTATE)|Display Results|Sample time (s): |General paramet"
"er: phasor frequency|Phasor simulation"
MaskStyleString "popup(Continuous|Discrete|Phasor),edit,checkbox"
",popup(blocks|steady|zero),edit,checkbox,checkbox,checkbox,checkbox,edit,edit"
",checkbox,edit,edit,edit,edit,checkbox,edit,edit,edit,edit,checkbox,edit,edit"
",checkbox"
MaskTunableValueString "on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on"
",on,on,on,on,on,on,on,on,on"
MaskCallbackString "||||||||||||||||||||||||"
MaskEnableString "on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on"
",on,on,on,on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,off,off,off,off,off,off,off,off,off"
",off,off,off,off,off,off,off,off,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on"
",on,on,on,on,on,on,on,on,on"
MaskVarAliasString ",,,,,,,,,,,,,,,,,,,,,,,,"
MaskVariables "SimulationMode=@1;SampleTime=@2;echomessages=@3"
";x0status=@4;Frange=@5;Ylog=@6;Xlog=@7;ShowGrid=@8;save=@9;variable=&10;struc"
"ture=&11;ZoomFFT=@12;StartTime=@13;cycles=@14;DisplayStyle=&15;fundamental=@1"
"6;FreqAxis=@17;MaxFrequency=@18;frequencyindice=@19;frequencyindicesteady=@20"
";RmsSteady=@21;display=@22;Ts=@23;frequency=@24;methode=@25;"
MaskInitialization "powerlibroot = which('powersysdomain');\nPSBroo"
"t = powerlibroot(1:end-16);\n%\nswitch SimulationMode\n case 1\n"
" message=sprintf('Continuous');\n case 2\n messa"
"ge=sprintf('Discrete,\\nTs = %.4g s.',SampleTime);\n case 3\n "
" message=sprintf('Phasors');\nend\nif strcmp(bdroot,'powerlib')\n mes"
"sage='powergui';\nend\npower_initmask();"
MaskDisplay "disp(message)"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "Discrete|1e-5|off|blocks|[0:2:500]|off|on|off|o"
"ff|ZData|U|on|0.08|5|4|50|on|5000|1|1|1|off|0|60|off"
MaskTabNameString ",,,,,,,,,,,,,,,,,,,,,,,,"
System {
Name "powergui"
Location [137, 405, 682, 583]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType SubSystem
Name "EquivalentModel1"
Ports []
Position [15, 70, 143, 105]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskInitialization "SPS = get_param(gcbh,'UserData');\nif isemp"
"ty(SPS)\n Ts=1;\n A=0;\n B=0;\n C=0;\n D=0;\n x0=0;\n "
" SwitchResistance=1;\n SwitchType=1;\n SwitchGateInitialValue=1;\n "
"OutputsToResetToZero=1;\nelse\n Ts=SPS.fixedstep;\n A=SPS.Adisc"
"rete;\n B=SPS.Bdiscrete;\n C=SPS.Cdiscrete;\n D=SPS.Ddiscrete;\n "
"x0=SPS.x0discrete;\n SwitchResistance=SPS.SwitchResistance;\n SwitchTyp"
"e=SPS.SwitchType;\n SwitchGateInitialValue=SPS.SwitchGateInitialValue;\n "
" OutputsToResetToZero=SPS.YSwitchCurrent;\nend"
MaskDisplay "color('orange')\ndisp('EQUIVALENT CIRCUIT')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "EquivalentModel1"
Location [279, 434, 958, 675]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType SubSystem
Name "Gates"
Ports [0, 1]
Position [15, 112, 80, 138]
FontName "Arial"
FontSize 14
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "Gates"
Location [20, 127, 741, 886]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType From
Name "From1"
Position [15, 21, 85, 49]
GotoTag "tp143206"
}
Block {
BlockType From
Name "From10"
Position [15, 426, 85, 454]
GotoTag "tp143170"
}
Block {
BlockType From
Name "From11"
Position [15, 471, 85, 499]
GotoTag "tp143179"
}
Block {
BlockType From
Name "From12"
Position [15, 516, 85, 544]
GotoTag "tp143189"
}
Block {
BlockType From
Name "From2"
Position [15, 66, 85, 94]
GotoTag "tp143214"
}
Block {
BlockType From
Name "From3"
Position [15, 111, 85, 139]
GotoTag "tp143221"
}
Block {
BlockType From
Name "From4"
Position [15, 156, 85, 184]
GotoTag "tp143229"
}
Block {
BlockType From
Name "From5"
Position [15, 201, 85, 229]
GotoTag "tp143237"
}
Block {
BlockType From
Name "From6"
Position [15, 246, 85, 274]
GotoTag "tp143245"
}
Block {
BlockType From
Name "From7"
Position [15, 291, 85, 319]
GotoTag "tp143142"
}
Block {
BlockType From
Name "From8"
Position [15, 336, 85, 364]
GotoTag "tp143151"
}
Block {
BlockType From
Name "From9"
Position [15, 381, 85, 409]
GotoTag "tp143160"
}
Block {
BlockType Mux
Name "Mux"
Ports [12, 1]
Position [325, 270, 330, 610]
ShowName off
Inputs "[1 1 1 1 1 1 1 1 1 1 1 1]"
DisplayOption "bar"
}
Block {
BlockType Outport
Name "gates"
Position [390, 433, 420, 447]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "gates"
DstPort 1
}
Line {
SrcBlock "From1"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "From2"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "From3"
SrcPort 1
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "From4"
SrcPort 1
DstBlock "Mux"
DstPort 4
}
Line {
SrcBlock "From5"
SrcPort 1
DstBlock "Mux"
DstPort 5
}
Line {
SrcBlock "From6"
SrcPort 1
DstBlock "Mux"
DstPort 6
}
Line {
SrcBlock "From7"
SrcPort 1
DstBlock "Mux"
DstPort 7
}
Line {
SrcBlock "From8"
SrcPort 1
DstBlock "Mux"
DstPort 8
}
Line {
SrcBlock "From9"
SrcPort 1
DstBlock "Mux"
DstPort 9
}
Line {
SrcBlock "From10"
SrcPort 1
DstBlock "Mux"
DstPort 10
}
Line {
SrcBlock "From11"
SrcPort 1
DstBlock "Mux"
DstPort 11
}
Line {
SrcBlock "From12"
SrcPort 1
DstBlock "Mux"
DstPort 12
}
}
}
Block {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -