📄 csd_double_pwm_inverter.mdl
字号:
GTOparameters "[ 10e-6 , 20e-6 ]"
IGBTparameters "[ 1e-6 , 2e-6 ]"
Measurements "None"
converterType "Rectifier"
}
Block {
BlockType Reference
Name "Universal Bridge2"
Ports [0, 0, 0, 0, 0, 3, 2]
Position [375, 517, 430, 593]
DialogController "PMDialogs.PMDefaultMaskDlg"
SourceBlock "powerlib/Power\nElectronics/Universal Bridge"
SourceType "Universal Bridge"
ShowPortLabels on
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 "100"
SnubberCapacitance "0.1e-6"
Device "Diodes"
Ron "1e-3"
Lon "0"
ForwardVoltages "[ 0.8 0 ]"
ForwardVoltage "0.8"
GTOparameters "[ 10e-6 , 20e-6 ]"
IGBTparameters "[ 1e-6 , 2e-6 ]"
Measurements "None"
converterType "Rectifier"
}
Block {
BlockType Reference
Name "Universal Bridge3"
Ports [1, 0, 0, 0, 0, 3, 2]
Position [595, 547, 650, 623]
Orientation "left"
DialogController "PMDialogs.PMDefaultMaskDlg"
SourceBlock "powerlib/Power\nElectronics/Universal Bridge"
SourceType "Universal Bridge"
ShowPortLabels on
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 "5000"
SnubberCapacitance "inf"
Device "IGBT / Diodes"
Ron "1e-3"
Lon "0"
ForwardVoltages "[ 0.8 0 ]"
ForwardVoltage "0"
GTOparameters "[ 10e-6 , 20e-6 ]"
IGBTparameters "[ 1e-6 , 2e-6 ]"
Measurements "None"
converterType "Rectifier"
}
Block {
BlockType Reference
Name "Voltage Measurement"
Ports [0, 1, 0, 0, 0, 2]
Position [340, 258, 365, 282]
DialogController "PMDialogs.PMDefaultMaskDlg"
SourceBlock "powerlib/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
ShowPortLabels on
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 "Complex"
PSBequivalent "0"
}
Block {
BlockType Reference
Name "Voltage Measurement1"
Ports [0, 1, 0, 0, 0, 2]
Position [300, 638, 325, 662]
DialogController "PMDialogs.PMDefaultMaskDlg"
SourceBlock "powerlib/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
ShowPortLabels on
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 "Complex"
PSBequivalent "0"
}
Block {
BlockType Reference
Name "Voltage Measurement2"
Ports [0, 1, 0, 0, 0, 2]
Position [900, 713, 925, 737]
DialogController "PMDialogs.PMDefaultMaskDlg"
SourceBlock "powerlib/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
ShowPortLabels on
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 "Complex"
PSBequivalent "0"
}
Block {
BlockType SubSystem
Name "powergui"
Ports []
Position [15, 15, 75, 39]
AncestorBlock "powerlib/powergui"
CopyFcn "powergui( 'Copy_Callback' , gcb , 0 , [ ] );"
DeleteFcn "powergui( 'Copy_Callback' , gcb , 1 , [ ] ); "
" \npowergui( 'CloseButton_Callback' , gcb , [ ] , [ ] );\n "
" "
ModelCloseFcn "powergui( 'CloseButton_Callback' , gcb , [ ] , "
"[ ] );"
PreSaveFcn "powergui( 'CloseButton_Callback' , gcb , [ ] , "
"[ ] );"
InitFcn "powergui( 'InitFcn_Callback' , gcb , 0 , [ ] );"
NameChangeFcn "powergui( 'NameChangeFcn_Callback' , gcb , 0 , "
"[ ] );"
OpenFcn "if (power_openblockproxy ('secondary'))\npowerg"
"ui(gcb,'PM')\nend;"
FontSize 11
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskType "PSB option menu block"
MaskHelp "web(psbhelp)"
MaskPromptString "Simulation mode |Sample time Ts (when simulatio"
"n mode is Discrete) (s)|Echo Messages|Restore disabled links|Initial electri"
"cal states status|Impedance tool: Frequency Range|Impedance tool: Log impedan"
"ce|Impedance tool: log Frequency|Impedance tool: grid|Impedance tool: Save Da"
"ta To Workspace|Impedance tool: Variable Name|Structure Name (PSBFFTSCOPE)|Zo"
"omFFT (PSBFFTSCOPE)|Start Time (PSBFFTSCOPE)|Cycles (PSBFFTSCOPE)|Display sty"
"le (PSBFFTSCOPE)|Fundamental (PSBFFTSCOPE)|Frequency Axis (PSBFFTSCOPE)|Max F"
"requency (PSBFFTSCOPE)|Load flow frequency (Hz)|Frequency indice (STEADYSTATE"
")|RMS display (STEADYSTATE)|Display Results|OBSOLETE 1|Phasor frequency (Hz)|"
"Phasor simulation|Hook port|Interpolate"
MaskStyleString "popup(Continuous|Discrete|Phasor),edit,checkbox"
",popup(yes|warning|no),popup(blocks|steady|zero),edit,checkbox,checkbox,check"
"box,checkbox,edit,edit,checkbox,edit,edit,edit,edit,checkbox,edit,edit,edit,e"
"dit,checkbox,edit,edit,checkbox,checkbox,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,on,on,on"
MaskCallbackString "||||||||||||||||||||||||||powergui('HookPort',["
"],[],gcb);|"
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,on,on,on"
MaskVisibilityString "on,on,on,on,on,off,off,off,off,off,off,off,off,"
"off,off,off,off,off,off,on,off,off,on,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,on,on,on"
MaskVarAliasString ",,,,,,,,,,,,,,,,,,,,,,,,,,,"
MaskVariables "SimulationMode=@1;SampleTime=&2;echomessages=@3"
";RestoreLinks=&4;x0status=@5;Frange=@6;Ylog=@7;Xlog=@8;ShowGrid=@9;save=@10;v"
"ariable=&11;structure=&12;ZoomFFT=@13;StartTime=@14;cycles=@15;DisplayStyle=&"
"16;fundamental=@17;FreqAxis=@18;MaxFrequency=@19;frequencyindice=@20;frequenc"
"yindicesteady=@21;RmsSteady=@22;display=@23;Ts=@24;frequency=@25;methode=@26;"
"HookPort=@27;Interpol=@28;"
MaskInitialization "powerlibroot = which('powersysdomain');\nPSBroo"
"t = powerlibroot(1:end-16);\n%\nswitch SimulationMode\n case 1\n"
" message=sprintf('Continuous');\n case 2\n Sampl"
"eTimeeval=evalin('base',SampleTime,'NaN');\n if isnan(SampleTimeeval)"
"\n message=sprintf('Warning !!,\\nUndefined sample time');\n "
" else\n message=sprintf('Discrete,\\nTs = %.4g s.',SampleTimeeval"
");\n end\n case 3\n message=sprintf('Phasors');"
"\nend\nif strcmp(bdroot,'powerlib')\n message='powergui';\nend\npower_initma"
"sk();"
MaskDisplay "disp(message)"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "Discrete|2e-6|off|warning|blocks|[0:2:500]|off|"
"on|off|off|ZData||on|0.0|1|1|60|off|1000|60|1|1|off|0|60|off|off|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"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType SubSystem
Name "EquivalentModel1"
Ports []
Position [15, 70, 143, 105]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
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.PowerguiInfo.Ts;\n A=SPS"
".Adiscrete;\n B=SPS.Bdiscrete;\n C=SPS.Cdiscrete;\n D=SPS.Ddiscrete;"
"\n x0=SPS.x0discrete;\n SwitchResistance=SPS.SwitchResistance;\n Swi"
"tchType=SPS.SwitchType;\n SwitchGateInitialValue=SPS.SwitchGateInitialValu"
"e;\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"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType SubSystem
Name "Gates"
Ports [0, 1]
Position [15, 112, 80, 138]
FontName "Arial"
FontSize 14
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
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"
TiledPaperMargins "[0.500000, 0.500000, 0.500000, 0.5000"
"00]"
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType From
Name "From1"
Position [15, 21, 85, 49]
GotoTag "tp522910"
TagVisibility "global"
}
Block {
BlockType From
Name "From2"
Position [15, 66, 85, 94]
GotoTag "tp522942"
TagVisibility "global"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [325, 270, 330, 610]
ShowName off
Inputs "[6 6]"
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
}
}
}
Block {
BlockType SubSystem
Name "Sources"
Ports [0, 1]
Position [15, 51, 80, 79]
FontName "Arial"
FontSize 14
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "Sources"
Location [20, 127, 741, 789]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins "[0.500000, 0.500000, 0.500000, 0.5000"
"00]"
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType From
Name "From1"
Position [15, 21, 85, 49]
GotoTag "tp522907"
TagVisibility "global"
}
Block {
BlockType From
Name "From2"
Position [15, 66, 85, 94]
GotoTag "tp522939"
TagVisibility "global"
}
Block {
BlockType From
Name "From3"
Position [15, 111, 85, 139]
GotoTag "tp522948"
TagVisibility "global"
}
Block {
BlockType From
Name "From4"
Position [15, 156, 85, 184]
GotoTag "tp522906"
TagVisibility "global"
}
Block {
BlockType From
Name "From5"
Position [15, 201, 85, 229]
GotoTag "tp522937"
TagVisibility "global"
}
Block {
BlockType M
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -