📄 power_3levelvsc.mdl
字号:
}
Line {
SrcBlock "Vdc value for converter AC \noutput"
" of 1 pu for m=1"
SrcPort 1
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Saturation"
SrcPort 1
DstBlock "mean Value "
DstPort 1
}
Line {
SrcBlock "Mean Value"
SrcPort 1
Points [255, 0]
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "VdVq"
DstPort 1
}
Line {
SrcBlock "IdIq_Ref"
SrcPort 1
Points [0, 0; 25, 0]
Branch {
Points [0, 35]
DstBlock "Goto1"
DstPort 1
}
Branch {
DstBlock "Demux1"
DstPort 1
}
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Id \nPID"
DstPort 1
}
Line {
Name "Iq_Ref"
Labels [4, 1]
SrcBlock "Demux1"
SrcPort 2
Points [30, 0; 0, 105; 65, 0]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Iq \nPID"
DstPort 1
}
Line {
Name "Iq"
SrcBlock "Demux"
SrcPort 2
Points [55, 0; 0, 40]
Branch {
Points [0, 110]
DstBlock "Sum1"
DstPort 1
}
Branch {
DstBlock "Ltot "
DstPort 1
}
}
Line {
Name "Id_Ref"
Labels [-1, 0]
SrcBlock "Demux1"
SrcPort 1
Points [100, 0]
DstBlock "Sum"
DstPort 2
}
Line {
Name "Id"
Labels [2, 0]
SrcBlock "Demux"
SrcPort 1
Points [0, 0; 45, 0]
Branch {
Points [0, 265]
DstBlock " Ltot"
DstPort 1
}
Branch {
DstBlock "Sum"
DstPort 1
}
}
Line {
SrcBlock "IdIq"
SrcPort 1
Points [0, 0; 25, 0]
Branch {
Points [0, 30]
DstBlock "Goto3"
DstPort 1
}
Branch {
DstBlock "Demux"
DstPort 1
}
}
Line {
SrcBlock "Id \nPID"
SrcPort 1
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Sum2"
SrcPort 1
Points [5, 0; 0, 55]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Iq \nPID"
SrcPort 1
DstBlock "Sum3"
DstPort 1
}
Line {
SrcBlock "Ltot "
SrcPort 1
Points [55, 0]
DstBlock "Sum2"
DstPort 3
}
Line {
SrcBlock " Ltot"
SrcPort 1
Points [70, 0]
DstBlock "Sum3"
DstPort 2
}
Line {
SrcBlock "Vd"
SrcPort 1
DstBlock "Mean Value"
DstPort 1
}
Annotation {
Name "==================="
Position [81, 30]
UseDisplayTextAsClickCallback off
FontSize 12
FontWeight "bold"
}
Annotation {
Name "Current Regulators"
Position [79, 16]
UseDisplayTextAsClickCallback off
FontSize 14
FontWeight "bold"
}
}
}
Block {
BlockType SubSystem
Name "DC Voltage\nRegulator"
Ports [2, 1]
Position [385, 333, 460, 417]
BackgroundColor "yellow"
DropShadow on
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskType "DC Voltage regulator"
MaskPromptString "Proportional gain (Kp):|Integral gain(K"
"i)|Sample time:"
MaskStyleString "edit,edit,edit"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "on,on,on"
MaskVisibilityString "on,on,on"
MaskToolTipString "on,on,on"
MaskVarAliasString ",,"
MaskVariables "Kp=@1;Ki=@2;Ts=@3;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "Kp_Vdc|Ki_Vdc|Ts"
MaskTabNameString ",,"
System {
Name "DC Voltage\nRegulator"
Location [208, 328, 826, 668]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "Vdc"
Position [65, 163, 95, 177]
FontSize 12
FontWeight "bold"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Vdc_Ref"
Position [70, 93, 100, 107]
FontSize 12
FontWeight "bold"
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Saturate
Name "-1<Id<+1"
Position [450, 85, 480, 115]
UpperLimit "1.2"
LowerLimit "-1.2"
}
Block {
BlockType Reference
Name "Discrete\nPI Controller"
Ports [1, 1]
Position [355, 77, 400, 123]
SourceBlock "powerlib_extras/Discrete \nControl "
"Blocks/Discrete\nPI Controller"
SourceType "Discrete PI Controller"
ShowPortLabels "on"
Kp "Kp"
Ki "Ki"
Par_Limits "[1.2 -1.2]"
Init "0"
Ts "Ts"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [225, 85, 255, 115]
DropShadow on
ShowName off
IconShape "round"
Inputs "|+-"
}
Block {
BlockType Outport
Name "Id_Ref"
Position [530, 93, 560, 107]
FontSize 12
FontWeight "bold"
IconDisplay "Port number"
BusOutputAsStruct off
InitialOutput "0"
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Discrete\nPI Controller"
DstPort 1
}
Line {
SrcBlock "Vdc"
SrcPort 1
Points [140, 0]
DstBlock "Sum"
DstPort 2
}
Line {
Labels [0, 0]
SrcBlock "Discrete\nPI Controller"
SrcPort 1
DstBlock "-1<Id<+1"
DstPort 1
}
Line {
Labels [0, 0]
SrcBlock "-1<Id<+1"
SrcPort 1
DstBlock "Id_Ref"
DstPort 1
}
Line {
SrcBlock "Vdc_Ref"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Measuremnt\nUnit"
Ports [3, 2]
Position [250, 162, 330, 268]
DropShadow on
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "Measuremnt\nUnit"
Location [24, 196, 532, 508]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "sin_cos"
Position [70, 98, 100, 112]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Vabc"
Position [25, 68, 55, 82]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Iabc"
Position [25, 198, 55, 212]
Port "3"
IconDisplay "Port number"
}
Block {
BlockType Reference
Name "Imes"
Ports [2, 1]
Position [145, 191, 210, 249]
SourceBlock "powerlib_extras/Measurements/abc_to"
"_dq0\nTransformation"
SourceType "abc to dq0 Transformation"
ShowPortLabels "on"
}
Block {
BlockType Selector
Name "Selector"
Ports [1, 1]
Position [245, 78, 265, 102]
ShowName off
InputPortWidth "3"
}
Block {
BlockType Selector
Name "Selector1"
Ports [1, 1]
Position [255, 208, 275, 232]
ShowName off
Elements "[1 2]"
InputPortWidth "3"
}
Block {
BlockType Reference
Name "Vmes"
Ports [2, 1]
Position [145, 61, 210, 119]
SourceBlock "powerlib_extras/Measurements/abc_to"
"_dq0\nTransformation"
SourceType "abc to dq0 Transformation"
ShowPortLabels "on"
}
Block {
BlockType Outport
Name "IdIq"
Position [325, 213, 355, 227]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Vd"
Position [335, 83, 365, 97]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Selector"
SrcPort 1
DstBlock "Vd"
DstPort 1
}
Line {
SrcBlock "Imes"
SrcPort 1
DstBlock "Selector1"
DstPort 1
}
Line {
SrcBlock "Iabc"
SrcPort 1
DstBlock "Imes"
DstPort 1
}
Line {
SrcBlock "sin_cos"
SrcPort 1
Points [10, 0]
Branch {
Points [0, 130]
DstBlock "Imes"
DstPort 2
}
Branch {
DstBlock "Vmes"
DstPort 2
}
}
Line {
SrcBlock "Vmes"
SrcPort 1
DstBlock "Selector"
DstPort 1
}
Line {
SrcBlock "Vabc"
SrcPort 1
DstBlock "Vmes"
DstPort 1
}
Line {
SrcBlock "Selector1"
SrcPort 1
DstBlock "IdIq"
DstPort 1
}
}
}
Block {
BlockType Mux
Name "Mux3"
Ports [2, 1]
Position [550, 221, 555, 259]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Reference
Name "PLL"
Ports [1, 3]
Position
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -