📄 zhuancha.mdl
字号:
DstBlock "Sum3"
DstPort 1
}
Line {
SrcBlock "G7"
SrcPort 1
Points [60, 0]
DstBlock "Sum3"
DstPort 2
}
Line {
SrcBlock "Sum3"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Integrator2"
DstPort 1
}
Branch {
Points [0, -60]
DstBlock "w1"
DstPort 1
}
}
Line {
SrcBlock "Integrator2"
SrcPort 1
DstBlock "jiao"
DstPort 1
}
}
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [880, 375, 900, 395]
Orientation "left"
NamePlacement "alternate"
ShowName off
IconShape "round"
Inputs "|+-"
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [715, 365, 735, 385]
Orientation "left"
NamePlacement "alternate"
ShowName off
IconShape "round"
Inputs "|++"
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Scope
Name "Te"
Ports [1]
Position [915, 304, 945, 336]
Floating off
Location [5, 49, 1285, 794]
Open on
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "-10"
YMax "65"
SaveName "ScopeData3"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Reference
Name "Tn"
Ports [2]
Position [1180, 280, 1210, 315]
SourceBlock "simulink/Sinks/XY Graph"
SourceType "XY scope."
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"
xmin "0"
xmax "120"
ymin "0"
ymax "1500"
st "-1"
}
Block {
BlockType Trigonometry
Name "Trigonometric\nFunction"
Ports [1, 1]
Position [110, 410, 140, 440]
Orientation "left"
NamePlacement "alternate"
}
Block {
BlockType Trigonometry
Name "Trigonometric\nFunction1"
Ports [1, 1]
Position [115, 470, 145, 500]
Orientation "left"
NamePlacement "alternate"
Operator "cos"
}
Block {
BlockType Fcn
Name "Um*"
Position [405, 338, 475, 372]
Orientation "left"
NamePlacement "alternate"
Expr "0.435*u(1)-u(3)*0.056*0.071e-3*u(2)"
}
Block {
BlockType Reference
Name "Universal Bridge"
Ports [1, 0, 0, 0, 0, 3, 2]
Position [640, 127, 695, 203]
Orientation "left"
NamePlacement "alternate"
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 "1e5"
SnubberCapacitance "inf"
Device "IGBT / Diodes"
Ron "1e-3"
Lon "0"
ForwardVoltages "[ 0 0 ]"
ForwardVoltage "0"
GTOparameters "[ 10e-6 , 20e-6 ]"
IGBTparameters "[ 1e-6 , 2e-6 ]"
Measurements "None"
converterType "Rectifier"
}
Block {
BlockType Fcn
Name "Ut*"
Position [410, 420, 470, 450]
Orientation "left"
NamePlacement "alternate"
Expr "u(4)*0.071e-3*u(1)+(0.435+0.056*0.071e-3*u(3))*"
"u(2)"
}
Block {
BlockType Reference
Name "Voltage Measurement"
Ports [0, 1, 0, 0, 0, 2]
Position [785, 43, 810, 67]
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 "Complex"
PSBequivalent "0"
}
Block {
BlockType Constant
Name "con"
Position [290, 390, 320, 420]
Orientation "left"
NamePlacement "alternate"
Value "0"
}
Block {
BlockType Reference
Name "dq0_to_abc\nTransformation"
Ports [2, 1]
Position [195, 245, 255, 300]
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib_extras/Measurements/dq0_to_abc\nTransf"
"ormation"
SourceType "dq0 to abc Transformation"
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"
}
Block {
BlockType Scope
Name "isabc"
Ports [3]
Position [1115, 104, 1145, 136]
Floating off
Location [5, 52, 1285, 769]
Open on
NumInputPorts "3"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
}
YMin "-70~-70~-70"
YMax "80~70~70"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType SubSystem
Name "jiaodu"
Ports [1, 1]
Position [480, 476, 540, 544]
Orientation "left"
NamePlacement "alternate"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "jiaodu"
Location [625, 146, 920, 234]
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 Inport
Name "ism"
Position [25, 38, 55, 52]
IconDisplay "Port number"
}
Block {
BlockType Gain
Name "Gain"
Position [90, 30, 120, 60]
Gain "0.069"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType TransferFcn
Name "Transfer Fcn"
Position [155, 27, 215, 63]
Denominator "[0.087 1]"
}
Block {
BlockType Outport
Name "citong"
Position [240, 38, 270, 52]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "ism"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Transfer Fcn"
DstPort 1
}
Line {
SrcBlock "Transfer Fcn"
SrcPort 1
DstBlock "citong"
DstPort 1
}
}
}
Block {
BlockType Scope
Name "n"
Ports [1]
Position [1155, 234, 1185, 266]
Floating off
Location [385, 300, 773, 552]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "0"
YMax "1500"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Reference
Name "phis"
Ports [2]
Position [1180, 145, 1210, 180]
SourceBlock "simulink/Sinks/XY Graph"
SourceType "XY scope."
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"
xmin "-1"
xmax "1"
ymin "-1"
ymax "1"
st "-1"
}
Block {
BlockType SubSystem
Name "powergui"
Ports []
Position [15, 15, 75, 39]
AncestorBlock "powerlib/powergui"
UserDataPersistent on
CopyFcn "powergui( 'Copy_Callback' , gcb , 0 , [ ] );"
DeleteFcn "powergui( 'Copy_Callback' , gcb , 1 , [ ] ); "
" \npowergui( 'CloseButton_Callback' , gcb , [ ] , [ ] );\n "
" "
ModelCloseFcn "powergui( 'CloseButton_Callback' , gcb , [ ] , "
"[ ] );"
PreSaveFcn "powergui( 'PreSaveFcn_Callback' , gcb , [ ] , ["
" ] ); \npowergui( '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 "message = powergui('MaskInitialization',gcb,Sim"
"ulationMode,SampleTime);"
MaskDisplay "disp(message)"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "Continuous|50e-6|off|warning|blocks|[0:2:500]|o"
"ff|on|off|off|ZData||on|0.0|1|1|60|off|1000|50|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 A=0;\n B=0;\n C=0;\n D=0;\n x0=0;\n SwitchResista"
"nce=1;\n SwitchType=1;\n SwitchGateInitialValue=1;\n OutputsToResetT"
"oZero=1;\nelse\n A=SPS.A;\n B=SPS.B;\n C=SPS.C;\n D=SPS.D;\n "
" x0=SPS.x0;\n SwitchResistance=SPS.SwitchResistance;\n SwitchType=SPS"
".SwitchType;\n SwitchGateInitialValue=SPS.SwitchGateInitialValue;\n Out"
"putsToResetToZero=SPS.YSwitchCurrent;\nend"
MaskDisplay "color('blue')\ndisp('EQUIVALENT CIRCUIT')"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -