📄 jiaoliutiaoyatiaosu_1.mdl
字号:
Name "Asynchronous Machine\nSI Units"
Ports [1, 1, 0, 0, 0, 3]
Position [535, 41, 615, 129]
AttributesFormatString "\\n"
SourceBlock "powerlib/Machines/Asynchronous Machine\nSI Unit"
"s"
SourceType "Asynchronous Machine"
RotorType "Squirrel-cage"
ReferenceFrame "Synchronous"
NominalParameters "[ 3*746, 380, 50 ]"
Stator "[ 0.435 2.0e-3 ]"
Rotor "[ 0.816 2.0e-3 ]"
Lm "69.31e-3"
Mechanical "[ 0.089 0 2 ]"
InitialConditions "[ 1,0 0,0,0 0,0,0 ]"
Units "1"
LoadFlowParameters "0"
}
Block {
BlockType Constant
Name "Constant"
Position [280, 175, 310, 205]
Value "0"
}
Block {
BlockType Constant
Name "Constant1"
Position [465, 15, 495, 45]
Value "0"
}
Block {
BlockType Constant
Name "Constant2"
Position [65, 230, 95, 260]
Value "1200"
}
Block {
BlockType Reference
Name "Discrete\nPI Controller"
Ports [1, 1]
Position [220, 230, 245, 260]
SourceBlock "powerlib_extras/Discrete \nControl Blocks/Discr"
"ete\nPI Controller"
SourceType "Discrete PI Controller"
Kp "10"
Ki "2"
Par_Limits "[180 -180]"
Init "0"
Ts "50e-6"
}
Block {
BlockType Gain
Name "Gain"
Position [685, 64, 710, 106]
NamePlacement "alternate"
Gain "60*180/pi"
}
Block {
BlockType Reference
Name "Ground"
Ports [0, 0, 0, 0, 0, 1]
Position [134, 165, 156, 190]
Orientation "down"
AttributesFormatString "\\n"
SourceBlock "powerlib/Elements/Ground"
SourceType "Ground"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
PortType "p1"
LConnTagsString "a"
}
Block {
BlockType Reference
Name "Ground1"
Ports [0, 0, 0, 0, 0, 1]
Position [174, 195, 196, 220]
Orientation "down"
AttributesFormatString "\\n"
SourceBlock "powerlib/Elements/Ground"
SourceType "Ground"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
PortType "p1"
LConnTagsString "a"
}
Block {
BlockType Reference
Name "Ground2"
Ports [0, 0, 0, 0, 0, 1]
Position [89, 140, 111, 165]
Orientation "down"
AttributesFormatString "\\n"
SourceBlock "powerlib/Elements/Ground"
SourceType "Ground"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
PortType "p1"
LConnTagsString "a"
}
Block {
BlockType Reference
Name "Machines\nMeasurement\nDemux1"
Ports [1, 3]
Position [635, 39, 665, 131]
SourceBlock "powerlib/Machines/Machines\nMeasurement\nDemux"
SourceType "Machine measurements"
machType "Asynchronous"
ssm1 on
ssm2 on
ssm3 on
ssm4 on
ssm5 on
ssm6 on
sm1 off
sm2 on
sm3 off
sm4 off
sm5 off
sm6 on
sm7 off
sm8 on
sm9 off
sm10 off
sm11 off
sm115 off
sm12 off
sm13 off
sm14 off
asm1 off
asm2 off
asm3 off
asm4 off
asm5 on
asm6 off
asm7 off
asm8 off
asm9 on
asm10 on
asm11 off
pmsm1 on
pmsm2 on
pmsm3 on
pmsm4 on
pmsm5 on
pmsm6 on
lastType "1"
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [770, 44, 775, 126]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Saturate
Name "Saturation"
Position [280, 230, 310, 260]
UpperLimit "100"
LowerLimit "0"
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [830, 69, 860, 101]
Location [424, 396, 748, 635]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
YMin "-80"
YMax "20"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [805, 184, 835, 216]
Location [303, 397, 627, 636]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
YMin "-27500"
YMax "-12500"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [155, 235, 175, 255]
ShowName off
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType SubSystem
Name "maichongchufaqi"
Ports [2, 1, 0, 0, 0, 3]
Position [365, 226, 420, 294]
TreatAsAtomicUnit off
System {
Name "maichongchufaqi"
Location [403, 431, 898, 651]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "block"
Position [25, 168, 55, 182]
}
Block {
BlockType Inport
Name "alpha"
Position [30, 28, 60, 42]
Port "2"
}
Block {
BlockType Reference
Name "Synchronized\n6-Pulse Generator"
Ports [5, 1]
Position [315, 64, 390, 136]
SourceBlock "powerlib_extras/Control \nBlocks/Synchroniz"
"ed\n6-Pulse Generator"
SourceType "Synchronized 6-pulse generator"
freq "50"
pwidth "10"
Double_Pulse off
}
Block {
BlockType SubSystem
Name "Voltage Measurement"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [0, 1, 0, 0, 0, 2]
Position [195, 48, 220, 72]
AttributesFormatString "\\n"
AncestorBlock "powerlib/Measurements/Voltage Measurement"
CopyFcn "powericon('psbloadfunction',gcbh,'Measureme"
"nt Block','VerifyPhasor');"
LoadFcn "powericon('psbloadfunction',gcbh,'Measureme"
"nt Block','');"
PreSaveFcn "powericon('psbloadfunction',gcbh,'ModelClos"
"eFcn','');"
InitFcn "powericon('psbloadfunction',gcbh,'InitFcnOf"
"SPSBlocks','Measurement Block');"
CloseFcn "powericon('psbloadfunction',gcbh,'CloseFcn'"
",'');"
TreatAsAtomicUnit off
MaskType "Voltage Measurement"
MaskDescription "Ideal voltage measurement."
MaskHelp "web(psbhelp);"
MaskPromptString "Phasor simulation|Output signal :|Equivalen"
"t circuit"
MaskStyleString "checkbox,popup(Complex|Real-Imag|Magnitude-"
"Angle|Magnitude),edit"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "off,off,off"
MaskVisibilityString "off,on,off"
MaskToolTipString "on,on,on"
MaskVarAliasString ",,"
MaskVariables "PhasorSimulation=@1;OutputType=@2;PSBequiva"
"lent=@3;"
MaskInitialization "switch OutputType\ncase 1\n OutputSelect"
"ion = 1;\n NormalMode = 2;\n PhasorMode = 1;\ncase 2\n OutputSelecti"
"on =[2,3];\n NormalMode = 3;\n PhasorMode = [1,2];\ncase 3\n OutputS"
"election =[4,5];\n NormalMode = 3;\n PhasorMode = [1,2];\ncase 4\n O"
"utputSelection =[4];\n NormalMode = 2;\n PhasorMode = 1;\nend\n%\nif Ph"
"asorSimulation\n SelectionMode = PhasorMode;\nelse\n SelectionMode = No"
"rmalMode;\nend\n"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "port"
MaskIconUnits "autoscale"
MaskValueString "off|Magnitude|1"
System {
Name "Voltage Measurement"
Location [206, 474, 665, 687]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [275, 121, 280, 179]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType SubSystem
Name "Phasor Measurements"
Ports [1, 1, 1]
Position [145, 123, 250, 147]
BackgroundColor "green"
TreatAsAtomicUnit on
System {
Name "Phasor Measurements"
Location [255, 525, 861, 796]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "measure"
Position [70, 28, 100, 42]
}
Block {
BlockType EnablePort
Name "Enable"
Ports []
Position [20, 15, 40, 35]
}
Block {
BlockType Gain
Name "180/pi"
Position [225, 105, 245, 125]
Gain "180/pi"
}
Block {
BlockType ComplexToMagnitudeAngle
Name "Complex to\nMagnitude-Angle"
Ports [1, 2]
Position [140, 85, 195, 125]
ShowName off
Output "Magnitude and angle"
}
Block {
BlockType ComplexToRealImag
Name "Complex to\nReal-Imag"
Ports [1, 2]
Position [140, 45, 195, 85]
ShowName off
Output "Real and imag"
}
Block {
BlockType Mux
Name "Mux2"
Ports [5, 1]
Position [275, 23, 280, 127]
ShowName off
Inputs "5"
DisplayOption "bar"
}
Block {
BlockType Selector
Name "Selector"
Ports [1, 1]
Position [315, 51, 350, 99]
Elements "OutputSelection"
InputPortWidth "5"
}
Block {
BlockType Outport
Name "options"
Position [380, 68, 410, 82]
InitialOutput "0"
}
Line {
SrcBlock "Mux2"
SrcPort 1
DstBlock "Selector"
DstPort 1
}
Line {
SrcBlock "measure"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
Points [0, 30]
Branch {
Points [0, 40]
DstBlock "Complex to\nMagnitude-Angle"
DstPort 1
}
Branch {
DstBlock "Complex to\nReal-Imag"
DstPort 1
}
}
Branch {
DstBlock "Mux2"
DstPort 1
}
}
Line {
SrcBlock "Complex to\nReal-Imag"
SrcPort 1
DstBlock "Mux2"
DstPort 2
}
Line {
SrcBlock "Complex to\nReal-Imag"
SrcPort 2
DstBlock "Mux2"
DstPort 3
}
Line {
SrcBlock "Complex to\nMagnitude-Angle"
SrcPort 1
DstBlock "Mux2"
DstPort 4
}
Line {
SrcBlock "Complex to\nMagnitude-Angle"
SrcPort 2
DstBlock "180/pi"
DstPort 1
}
Line {
SrcBlock "180/pi"
SrcPort 1
DstBlock "Mux2"
DstPort 5
}
Line {
SrcBlock "Selector"
SrcPort 1
DstBlock "options"
DstPort 1
}
}
}
Block {
BlockType Selector
Name "Selector"
Ports [1, 1]
Position [305, 128, 370, 172]
Elements "SelectionMode"
InputPortWidth "length(OutputSelection)+1"
}
Block {
BlockType Constant
Name "Simulation method"
Position [140, 85, 250, 105]
Orientation "down"
BackgroundColor "magenta"
NamePlacement "alternate"
ShowName off
Value "PhasorSimulation"
}
Block {
BlockType PMComponent
Name "VoltageMeasurement"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [80, 21, 145, 49]
PhysicalDomain "powersysdomain"
PortType "p1"
LConnTagsString "+"
RConnTagsString "-"
MaskType "InnerPowersysBlock"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType SubSystem
Name "source"
Ports [0, 1]
Position [25, 124, 95, 146]
TreatAsAtomicUnit off
MaskInitialization "pss=powericon('loadsavedata','jiaoliuti"
"aoyatiaosu_1','load');if isempty(pss),A=0;B=0;C=0;D=0;x0=0;Rswitch=0;TypeSwit"
"ch=0;Ts=0;YSwitchCurrent=-1;else,A=pss.A;B=pss.B;C=pss.C;D=pss.D;x0=pss.x0;Rs"
"witch=pss.Rswitch;TypeSwitch=pss.TypeSwitch;Ts=0;YSwitchCurrent=pss.YSwitchCu"
"rrent;end"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "source"
Location [442, 172, 1084, 578]
Open off
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -