📄 synch_1.mdl
字号:
}
Block {
BlockType Reference
Name "abc_to_dq0\nTransformation"
Ports [2, 1]
Position [390, 251, 450, 309]
DialogController "POWERSYS.PowerSysDialog"
FontName "Arial"
SourceBlock "powerlib_extras/Measurements/abc_to_dq0\nTransformation"
SourceType "abc to dq0 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 Fcn
Name "mod_flux"
Position [220, 45, 280, 75]
NamePlacement "alternate"
FontName "Arial"
FontSize 12
Expr "sqrt(u(1)^2+u(2)^2)"
}
Block {
BlockType Outport
Name "|flux|"
Position [365, 53, 395, 67]
FontName "Arial"
FontSize 12
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Outport
Name "N"
Position [365, 98, 395, 112]
FontName "Arial"
FontSize 12
Port "2"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Outport
Name "Te "
Position [470, 128, 500, 142]
FontName "Arial"
FontSize 12
Port "3"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Outport
Name "iabc"
Position [365, 173, 395, 187]
FontName "Arial"
FontSize 12
Port "4"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Outport
Name "Idqo"
Position [510, 273, 540, 287]
FontName "Arial"
FontSize 12
Port "5"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Line {
SrcBlock "m_SI"
SrcPort 1
Points [0, 0; 25, 0]
Branch {
DstBlock "Bus\nSelector1"
DstPort 1
}
Branch {
Points [0, 60]
Branch {
Points [40, 0]
DstBlock "Bus\nSelector2"
DstPort 1
}
Branch {
Points [0, 60]
DstBlock "Bus\nSelector"
DstPort 1
}
}
}
Line {
SrcBlock "mod_flux"
SrcPort 1
DstBlock "|flux|"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
DstBlock "N"
DstPort 1
}
Line {
SrcBlock "Bus\nSelector1"
SrcPort 1
DstBlock "mod_flux"
DstPort 1
}
Line {
Name "<Rotor speed wm (rad/s)>"
Labels [0, 0]
SrcBlock "Bus\nSelector2"
SrcPort 1
Points [0, -5]
DstBlock "Gain1"
DstPort 1
}
Line {
SrcBlock "Discrete\n3-phase PLL"
SrcPort 3
DstBlock "Rate Transition1"
DstPort 1
}
Line {
SrcBlock "abc_to_dq0\nTransformation"
SrcPort 1
DstBlock "Idqo"
DstPort 1
}
Line {
SrcBlock "m_SI1"
SrcPort 1
Points [5, 0; 0, -10]
DstBlock "Rate Transition4"
DstPort 1
}
Line {
SrcBlock "Rate Transition4"
SrcPort 1
Points [5, 0; 0, 10]
DstBlock "Discrete\n3-phase PLL"
DstPort 1
}
Line {
SrcBlock "Rate Transition1"
SrcPort 1
Points [0, -125]
DstBlock "abc_to_dq0\nTransformation"
DstPort 2
}
Line {
Name "<signal6>"
Labels [0, 0]
SrcBlock "Bus\nSelector2"
SrcPort 2
DstBlock "Gain2"
DstPort 1
}
Line {
SrcBlock "Gain2"
SrcPort 1
Points [40, 0; 0, -5]
DstBlock "Te "
DstPort 1
}
Line {
SrcBlock "Rate Transition2"
SrcPort 1
Points [10, 0; 0, 10]
DstBlock "abc_to_dq0\nTransformation"
DstPort 1
}
Line {
Name "<Stator current>"
Labels [0, 0]
SrcBlock "Bus\nSelector"
SrcPort 1
Points [135, 0]
Branch {
DstBlock "iabc"
DstPort 1
}
Branch {
Points [0, 75]
DstBlock "Rate Transition2"
DstPort 1
}
}
}
}
Block {
BlockType Outport
Name "ia"
Position [290, 108, 320, 122]
FontName "Arial"
FontSize 12
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Outport
Name "speed"
Position [290, 58, 320, 72]
FontName "Arial"
FontSize 12
Port "2"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Outport
Name "Te"
Position [205, 63, 235, 77]
FontName "Arial"
FontSize 12
Port "3"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Outport
Name "flux"
Position [185, 23, 215, 37]
FontName "Arial"
FontSize 12
Port "4"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Outport
Name "Idqo"
Position [285, 173, 315, 187]
FontName "Arial"
FontSize 12
Port "5"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Line {
SrcBlock "Machine demux"
SrcPort 2
Points [90, 0; 0, 15]
DstBlock "speed"
DstPort 1
}
Line {
SrcBlock "Demux2"
SrcPort 1
Points [20, 0]
DstBlock "ia"
DstPort 1
}
Line {
SrcBlock "Demux2"
SrcPort 2
Points [5, 0]
}
Line {
SrcBlock "Machine demux"
SrcPort 4
Points [0, 15]
DstBlock "Demux2"
DstPort 1
}
Line {
SrcBlock "Machine demux"
SrcPort 3
DstBlock "Te"
DstPort 1
}
Line {
SrcBlock "Machine demux"
SrcPort 1
DstBlock "flux"
DstPort 1
}
Line {
SrcBlock "Motor"
SrcPort 1
Points [25, 0]
DstBlock "Machine demux"
DstPort 1
}
Line {
SrcBlock "voltage"
SrcPort 1
Points [10, 0; 0, -30]
DstBlock "Machine demux"
DstPort 2
}
Line {
SrcBlock "Machine demux"
SrcPort 5
Points [0, 70]
DstBlock "Idqo"
DstPort 1
}
}
}
Block {
BlockType Demux
Name "Demux1"
Ports [1, 3]
Position [195, 371, 200, 409]
ShowName off
Outputs "3"
DisplayOption "bar"
}
Block {
BlockType Reference
Name "Discrete \nRMS value"
Ports [1, 1]
Position [215, 321, 275, 379]
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib_extras/Discrete\nMeasurements/Discrete \nRMS value"
SourceType "Discrete RMS value"
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"
Freq "60"
Mag_Init "0"
Ts "50e-6"
}
Block {
BlockType Reference
Name "Discrete \nRMS value1"
Ports [1, 1]
Position [230, 396, 290, 454]
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib_extras/Discrete\nMeasurements/Discrete \nRMS value"
SourceType "Discrete RMS value"
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"
Freq "60"
Mag_Init "0"
Ts "50e-6"
}
Block {
BlockType From
Name "From1"
Position [15, 286, 50, 304]
NamePlacement "alternate"
ShowName off
CloseFcn "tagdialog Close"
FontName "Arial"
FontSize 12
GotoTag "motor"
}
Block {
BlockType From
Name "From2"
Position [1070, 206, 1105, 224]
Orientation "left"
NamePlacement "alternate"
ShowName off
CloseFcn "tagdialog Close"
FontName "Arial"
FontSize 12
GotoTag "vf"
}
Block {
BlockType Goto
Name "Goto1"
Position [895, 362, 940, 378]
NamePlacement "alternate"
ShowName off
FontName "Arial"
FontSize 12
GotoTag "motor"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto3"
Position [570, 322, 615, 338]
Orientation "left"
NamePlacement "alternate"
ShowName off
FontName "Arial"
FontSize 12
GotoTag "vf"
TagVisibility "local"
}
Block {
BlockType SubSystem
Name "Load torque"
Ports [0, 1]
Position [140, 542, 205, 558]
NamePlacement "alternate"
FontSize 12
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
MaskHideContents off
System {
Name "Load torque"
Location [606, 287, 821, 369]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Reference
Name "Timer"
Ports [0, 1]
Position [50, 21, 95, 59]
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib_extras/Control \nBlocks/Timer"
SourceType "Timer"
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"
t "[0 1.5 2]"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -