📄 asy_generator.mdl
字号:
Elements "1"
RowSrc "Internal"
Rows "1"
ColumnSrc "Internal"
Columns "1"
InputPortWidth "-1"
IndexIsStartValue off
OutputPortSize "1"
}
Block {
BlockType SubSystem
ShowPortLabels on
Permissions "ReadWrite"
PermitHierarchicalResolution "All"
SystemSampleTime "-1"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType Sum
IconShape "rectangular"
Inputs "++"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType Terminator
}
Block {
BlockType Trigonometry
Operator "sin"
OutputSignalType "auto"
SampleTime "-1"
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "Helvetica"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "asy_generator"
Location [2, 74, 1014, 724]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Inport
Name "w"
Position [95, 258, 125, 272]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Reference
Name "Bus Bar (vert)1"
Tag "PoWeRsYsTeMbLoCk"
Ports [3, 1]
Position [519, 270, 561, 275]
Orientation "down"
BackgroundColor "black"
NamePlacement "alternate"
ShowName off
SourceBlock "powerlib2/Connectors/Bus Bar (vert)"
SourceType "Bus Bar"
ShowPortLabels on
entrees "3"
sorties "1"
PSBOutputType "11111111111111111111111111111111111111111111111"
"111111111111111111111111111111111111111111"
}
Block {
BlockType Constant
Name "Constant"
Position [335, 206, 350, 224]
ShowName off
Value "0"
}
Block {
BlockType Reference
Name "Controlled Current Source"
Tag "PoWeRsYsTeMbLoCk"
Description "source block"
Ports [1, 2]
Position [485, 153, 510, 177]
ShowName off
SourceBlock "powerlib2/Electrical\nSources/Controlled Curren"
"t Source"
SourceType "Controlled Current Source"
ShowPortLabels on
initsrc off
srctyp "AC"
ia ".5"
iph "90"
freq "50"
mesure "None"
PSBOutputType "11"
}
Block {
BlockType Reference
Name "Controlled Current Source1"
Tag "PoWeRsYsTeMbLoCk"
Description "source block"
Ports [1, 2]
Position [485, 189, 505, 216]
ShowName off
SourceBlock "powerlib2/Electrical\nSources/Controlled Curren"
"t Source"
SourceType "Controlled Current Source"
ShowPortLabels on
initsrc off
srctyp "AC"
ia "0"
iph "-30"
freq "50"
mesure "None"
PSBOutputType "11"
}
Block {
BlockType Reference
Name "Controlled Current Source2"
Tag "PoWeRsYsTeMbLoCk"
Description "source block"
Ports [1, 2]
Position [485, 229, 505, 256]
ShowName off
SourceBlock "powerlib2/Electrical\nSources/Controlled Curren"
"t Source"
SourceType "Controlled Current Source"
ShowPortLabels on
initsrc off
srctyp "AC"
ia "-.25"
iph "-150"
freq "50"
mesure "None"
PSBOutputType "11"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 4]
Position [310, 148, 315, 257]
BackgroundColor "black"
ShowName off
}
Block {
BlockType Demux
Name "Demux1"
Ports [1, 3]
Position [455, 144, 460, 266]
BackgroundColor "black"
ShowName off
Outputs "3"
}
Block {
BlockType Reference
Name "Discrete\nVirtual PLL"
Ports [0, 3]
Position [340, 249, 375, 281]
ShowName off
SourceBlock "powerlib_extras/Discrete \nControl Blocks/Discr"
"ete\nVirtual PLL"
SourceType "Discrete Virtual PLL"
ShowPortLabels on
Freq "0"
Phase "0"
Ts "50e-4"
}
Block {
BlockType Reference
Name "Discrete\nVirtual PLL1"
Ports [0, 3]
Position [740, 265, 775, 295]
ShowName off
SourceBlock "powerlib_extras/Discrete \nControl Blocks/Discr"
"ete\nVirtual PLL"
SourceType "Discrete Virtual PLL"
ShowPortLabels on
Freq "0"
Phase "0"
Ts "50e-4"
}
Block {
BlockType Reference
Name "Ground (input)"
Tag "PoWeRsYsTeMbLoCk"
Ports [1]
Position [528, 290, 552, 305]
Orientation "down"
ShowName off
SourceBlock "powerlib2/Connectors/Ground (input)"
SourceType "Ground"
ShowPortLabels on
}
Block {
BlockType Reference
Name "Ground (output)"
Tag "PoWeRsYsTeMbLoCk"
Ports [0, 1]
Position [607, 190, 633, 210]
Orientation "up"
ShowName off
SourceBlock "powerlib2/Connectors/Ground (output)"
SourceType "Ground"
ShowPortLabels on
PSBOutputType "1"
}
Block {
BlockType Reference
Name "Ground (output)2"
Tag "PoWeRsYsTeMbLoCk"
Ports [0, 1]
Position [647, 230, 673, 250]
Orientation "up"
ShowName off
SourceBlock "powerlib2/Connectors/Ground (output)"
SourceType "Ground"
ShowPortLabels on
PSBOutputType "1"
}
Block {
BlockType Reference
Name "Ground (output)3"
Tag "PoWeRsYsTeMbLoCk"
Ports [0, 1]
Position [667, 270, 693, 290]
Orientation "up"
ShowName off
SourceBlock "powerlib2/Connectors/Ground (output)"
SourceType "Ground"
ShowPortLabels on
PSBOutputType "1"
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1]
Position [275, 190, 295, 220]
ShowName off
InitialCondition "[0 0 .1 .1]"
IgnoreLimit off
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn"
Position [210, 190, 255, 220]
ShowName off
MATLABFcn "asy_ge"
OutputDimensions "4"
}
Block {
BlockType Mux
Name "Mux"
Ports [7, 1]
Position [185, 141, 190, 269]
ShowName off
Inputs "7"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux1"
Ports [3, 1]
Position [365, 155, 370, 225]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux2"
Ports [3, 1]
Position [755, 185, 760, 255]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Selector
Name "Selector4"
Ports [1, 1]
Position [495, 83, 535, 107]
Orientation "left"
ShowName off
Elements "[1 ]"
InputPortWidth "2"
}
Block {
BlockType Selector
Name "Selector5"
Ports [1, 1]
Position [400, 102, 440, 128]
Orientation "left"
ShowName off
Elements "[2]"
InputPortWidth "2"
}
Block {
BlockType Terminator
Name "Terminator"
Position [400, 247, 420, 263]
ShowName off
}
Block {
BlockType Terminator
Name "Terminator1"
Position [400, 267, 420, 283]
ShowName off
}
Block {
BlockType Terminator
Name "Terminator2"
Position [805, 262, 825, 278]
ShowName off
}
Block {
BlockType Terminator
Name "Terminator3"
Position [805, 282, 825, 298]
ShowName off
}
Block {
BlockType Reference
Name "Voltage Measurement"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [2, 1]
Position [640, 164, 660, 191]
ShowName off
SourceBlock "powerlib2/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
ShowPortLabels on
PhasorSimulation off
OutputType "Magnitude"
PSBOutputType "0"
PSBequivalent "0"
}
Block {
BlockType Reference
Name "Voltage Measurement1"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [2, 1]
Position [680, 204, 700, 231]
ShowName off
SourceBlock "powerlib2/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
ShowPortLabels on
PhasorSimulation off
OutputType "Magnitude"
PSBOutputType "0"
PSBequivalent "0"
}
Block {
BlockType Reference
Name "Voltage Measurement2"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [2, 1]
Position [710, 244, 730, 271]
ShowName off
SourceBlock "powerlib2/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
ShowPortLabels on
PhasorSimulation off
OutputType "Magnitude"
PSBOutputType "0"
PSBequivalent "0"
}
Block {
BlockType SubSystem
Name "abc_to_dq0\nTransformation1"
Ports [2, 1]
Position [795, 209, 835, 256]
ShowName off
AncestorBlock "powerlib_extras/Measurements/abc_to_dq0\nTransf"
"ormation"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "abc to dq0 Transformation"
MaskDescription "This block performs the abc to dq0 transformat"
"ion on a set of three-phase signals. It computes the direct axis Vd, quadrati"
"c axis Vq, and zero sequence V0 quantities in a two axis rotating reference f"
"rame 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-2pi/3"
") + Vc*cos(wt+2pi/3)]\nV0 = 1/3*[Va + Vb + Vc ]\n\nwhere w= rotation spee"
"d (rad/s) of the rotating frame.\n\nThis transformation is commonly used in t"
"hree-phase electric machine models where it is known as the Park transformati"
"on."
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]
Port "1"
IconDisplay "Port number"
PortDimensions "3"
LatchInput off
Port {
PortNumber 1
Name "Vabc"
PropagatedSignals ", , "
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Inport
Name "sin_cos"
Position [20, 80, 40, 100]
Port "2"
IconDisplay "Port number"
PortDimensions "2"
LatchInput off
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 2]
Position [65, 63, 70, 112]
ShowName off
Outputs "2"
Port {
PortNumber 1
Name "sin(wt)"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
Port {
PortNumber 2
Name "cos(wt)"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
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"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
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"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
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
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [185, 213, 215, 237]
ShowName off
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [180, 318, 210, 342]
ShowName off
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product3"
Ports [2, 1]
Position [180, 278, 210, 302]
ShowName off
RndMeth "Floor"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [235, 164, 255, 246]
ShowName off
Inputs "--"
Port {
PortNumber 1
Name "sin(wt-2pi/3)"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -