📄 asy_generator_self.mdl
字号:
Ports [1, 3]
Position [430, 89, 435, 211]
BackgroundColor "black"
ShowName off
Outputs "3"
}
Block {
BlockType Reference
Name "Discrete\nVirtual PLL"
Ports [0, 3]
Position [315, 194, 350, 226]
ShowName off
SourceBlock "powerlib_extras/Discrete \nControl Blocks/D"
"iscrete\nVirtual PLL"
SourceType "Discrete Virtual PLL"
Freq "0"
Phase "0"
Ts "50e-4"
}
Block {
BlockType Reference
Name "Discrete\nVirtual PLL1"
Ports [0, 3]
Position [715, 210, 750, 240]
ShowName off
SourceBlock "powerlib_extras/Discrete \nControl Blocks/D"
"iscrete\nVirtual PLL"
SourceType "Discrete Virtual PLL"
Freq "0"
Phase "0"
Ts "50e-4"
}
Block {
BlockType Reference
Name "Ground (input)"
Tag "PoWeRsYsTeMbLoCk"
Ports [1]
Position [503, 235, 527, 250]
Orientation "down"
ShowName off
SourceBlock "powerlib2/Connectors/Ground (input)"
SourceType "Ground"
}
Block {
BlockType Reference
Name "Ground (output)"
Tag "PoWeRsYsTeMbLoCk"
Ports [0, 1]
Position [582, 135, 608, 155]
Orientation "up"
ShowName off
SourceBlock "powerlib2/Connectors/Ground (output)"
SourceType "Ground"
PSBOutputType "1"
}
Block {
BlockType Reference
Name "Ground (output)2"
Tag "PoWeRsYsTeMbLoCk"
Ports [0, 1]
Position [622, 175, 648, 195]
Orientation "up"
ShowName off
SourceBlock "powerlib2/Connectors/Ground (output)"
SourceType "Ground"
PSBOutputType "1"
}
Block {
BlockType Reference
Name "Ground (output)3"
Tag "PoWeRsYsTeMbLoCk"
Ports [0, 1]
Position [642, 215, 668, 235]
Orientation "up"
ShowName off
SourceBlock "powerlib2/Connectors/Ground (output)"
SourceType "Ground"
PSBOutputType "1"
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1]
Position [250, 135, 270, 165]
ShowName off
InitialCondition "[0 0 .1 .1]"
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn"
Position [185, 135, 230, 165]
ShowName off
MATLABFcn "asy_ge"
OutputDimensions "4"
}
Block {
BlockType Mux
Name "Mux"
Ports [7, 1]
Position [160, 86, 165, 214]
ShowName off
Inputs "7"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux1"
Ports [3, 1]
Position [340, 100, 345, 170]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux2"
Ports [3, 1]
Position [730, 130, 735, 200]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Selector
Name "Selector4"
Ports [1, 1]
Position [470, 28, 510, 52]
Orientation "left"
ShowName off
Elements "[1 ]"
InputPortWidth "2"
}
Block {
BlockType Selector
Name "Selector5"
Ports [1, 1]
Position [375, 47, 415, 73]
Orientation "left"
ShowName off
Elements "[2]"
InputPortWidth "2"
}
Block {
BlockType Terminator
Name "Terminator"
Position [375, 192, 395, 208]
ShowName off
}
Block {
BlockType Terminator
Name "Terminator1"
Position [375, 212, 395, 228]
ShowName off
}
Block {
BlockType Terminator
Name "Terminator2"
Position [780, 207, 800, 223]
ShowName off
}
Block {
BlockType Terminator
Name "Terminator3"
Position [780, 227, 800, 243]
ShowName off
}
Block {
BlockType Reference
Name "Voltage Measurement"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [2, 1]
Position [615, 109, 635, 136]
ShowName off
SourceBlock "powerlib2/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
PhasorSimulation off
OutputType "Magnitude"
PSBOutputType "0"
PSBequivalent "0"
}
Block {
BlockType Reference
Name "Voltage Measurement1"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [2, 1]
Position [655, 149, 675, 176]
ShowName off
SourceBlock "powerlib2/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
PhasorSimulation off
OutputType "Magnitude"
PSBOutputType "0"
PSBequivalent "0"
}
Block {
BlockType Reference
Name "Voltage Measurement2"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [2, 1]
Position [685, 189, 705, 216]
ShowName off
SourceBlock "powerlib2/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
PhasorSimulation off
OutputType "Magnitude"
PSBOutputType "0"
PSBequivalent "0"
}
Block {
BlockType SubSystem
Name "abc_to_dq0\nTransformation1"
Ports [2, 1]
Position [770, 154, 810, 201]
ShowName off
AncestorBlock "powerlib_extras/Measurements/abc_to_dq0\nTr"
"ansformation"
TreatAsAtomicUnit off
MaskType "abc to dq0 Transformation"
MaskDescription "This block performs the abc to dq0 transfo"
"rmation on a set of three-phase signals. It computes the direct axis Vd, quad"
"ratic axis Vq, and zero sequence V0 quantities in a two axis rotating referen"
"ce frame according to the following transformation:\n\nVd = 2/3*[Va*sin(wt) "
"+ Vb*sin(wt-2pi/3) + Vc*sin(wt+2pi/3)] \nVq = 2/3*[Va*cos(wt) + Vb*cos(wt-2"
"pi/3) + Vc*cos(wt+2pi/3)]\nV0 = 1/3*[Va + Vb + Vc ]\n\nwhere w= rotation "
"speed (rad/s) of the rotating frame.\n\nThis transformation is commonly used "
"in three-phase electric machine models where it is known as the Park transfor"
"mation."
MaskHelp "web(psbhelp);"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "abc_to_dq0\nTransformation1"
Location [75, 158, 919, 710]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "abc"
Position [20, 25, 40, 45]
PortDimensions "3"
Port {
PortNumber 1
Name "Vabc"
PropagatedSignals ", , "
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Inport
Name "sin_cos"
Position [20, 80, 40, 100]
Port "2"
PortDimensions "2"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 2]
Position [65, 63, 70, 112]
ShowName off
Outputs "2"
Port {
PortNumber 1
Name "sin(wt)"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
Port {
PortNumber 2
Name "cos(wt)"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Fcn
Name "Fcn1"
Position [565, 162, 755, 188]
ShowName off
Expr "-(2/3)^.5*((u[1]*u[4])+(u[2]*u[6])+(u[3"
"]*u[8]))"
Port {
PortNumber 1
Name "Vq"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Fcn
Name "Fcn2"
Position [575, 88, 760, 112]
ShowName off
Expr "(2/3)^.5*((u[1]*u[5])+(u[2]*u[7])+(u[3]"
"*u[9]))"
Port {
PortNumber 1
Name "Vd"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Constant
Name "K1"
Position [50, 180, 75, 200]
ShowName off
Value "0.5"
}
Block {
BlockType Constant
Name "K2"
Position [35, 219, 85, 241]
ShowName off
Value "sqrt(3)/2"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [525, 136, 530, 214]
ShowName off
Inputs "2"
}
Block {
BlockType Mux
Name "Mux1"
Ports [2, 1]
Position [825, 146, 830, 224]
ShowName off
Inputs "2"
}
Block {
BlockType Mux
Name "Mux2"
Ports [6, 1]
Position [450, 108, 455, 342]
ShowName off
Inputs "6"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [185, 173, 215, 197]
ShowName off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [185, 213, 215, 237]
ShowName off
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [180, 318, 210, 342]
ShowName off
}
Block {
BlockType Product
Name "Product3"
Ports [2, 1]
Position [180, 278, 210, 302]
ShowName off
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [235, 164, 255, 246]
ShowName off
Inputs "--"
Port {
PortNumber 1
Name "sin(wt-2pi/3)"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [230, 269, 250, 351]
ShowName off
Inputs "-+"
Port {
PortNumber 1
Name "cos(wt-2pi/3)"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [315, 266, 335, 299]
ShowName off
Inputs "--"
Port {
PortNumber 1
Name "sin(wt+2pi/3)"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Sum
Name "Sum3"
Ports [2, 1]
Position [315, 372, 335, 403]
ShowName off
Inputs "--"
Port {
PortNumber 1
Name "cos(wt+2pi/3)"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Outport
Name "dq0"
Position [845, 175, 865, 195]
InitialOutput "0"
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -