📄 matlab 仿真.mdl
字号:
BlockType Product
Name "Product"
Ports [2, 1]
Position [260, 27, 290, 58]
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [260, 77, 290, 108]
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [260, 127, 290, 158]
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product3"
Ports [2, 1]
Position [260, 187, 290, 218]
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Fcn
Name "cos"
Position [120, 125, 180, 155]
Expr "cos(u)"
}
Block {
BlockType Fcn
Name "sin"
Position [115, 75, 175, 105]
Expr "sin(u)"
}
Block {
BlockType Outport
Name "Out1"
Position [420, 73, 450, 87]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Out2"
Position [415, 163, 445, 177]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "In2"
SrcPort 1
Points [20, 0]
Branch {
Points [0, -25]
DstBlock "sin"
DstPort 1
}
Branch {
Points [0, 25]
DstBlock "cos"
DstPort 1
}
}
Line {
Labels [0, 0]
SrcBlock "sin"
SrcPort 1
Points [30, 0]
Branch {
Points [0, -5]
DstBlock "Product1"
DstPort 1
}
Branch {
Points [0, 45]
DstBlock "Product2"
DstPort 1
}
}
Line {
SrcBlock "cos"
SrcPort 1
Points [5, 0]
Branch {
Points [0, -90]
DstBlock "Product"
DstPort 2
}
Branch {
Points [0, 55]
DstBlock "Product3"
DstPort 1
}
}
Line {
SrcBlock "In3"
SrcPort 1
Points [160, 0]
Branch {
DstBlock "Product3"
DstPort 2
}
Branch {
Points [0, -110]
DstBlock "Product1"
DstPort 2
}
}
Line {
SrcBlock "In1"
SrcPort 1
Points [160, 0]
Branch {
DstBlock "Product"
DstPort 1
}
Branch {
Points [0, 115]
DstBlock "Product2"
DstPort 2
}
}
Line {
SrcBlock "Product"
SrcPort 1
Points [15, 0; 0, 25]
DstBlock "Add"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [15, 0; 0, -10]
DstBlock "Add"
DstPort 2
}
Line {
SrcBlock "Product2"
SrcPort 1
Points [15, 0; 0, 15]
DstBlock "Add1"
DstPort 1
}
Line {
SrcBlock "Product3"
SrcPort 1
Points [35, 0]
DstBlock "Add1"
DstPort 2
}
Line {
SrcBlock "Add1"
SrcPort 1
DstBlock "Out2"
DstPort 1
}
Line {
SrcBlock "Add"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Line {
SrcBlock "Permanent Magnet\nSynchronous Machine"
SrcPort 1
DstBlock "Bus\nSelector"
DstPort 1
}
Line {
Name "<Stator current is_q (A)>"
Labels [0, 0]
SrcBlock "Bus\nSelector"
SrcPort 2
Points [140, 0]
DstBlock "Rs1"
DstPort 1
}
Line {
SrcBlock "Rs1"
SrcPort 1
DstBlock "Add"
DstPort 1
}
Line {
Name "<Stator voltage Vs_q (V)>"
Labels [0, 0]
SrcBlock "Bus\nSelector"
SrcPort 5
Points [85, 0; 0, 35; 140, 0]
DstBlock "Add"
DstPort 2
}
Line {
SrcBlock "Add"
SrcPort 1
DstBlock "Integrator"
DstPort 1
}
Line {
SrcBlock "Integrator"
SrcPort 1
DstBlock "zuobiaoxuanzhuan"
DstPort 3
}
Line {
Name "<Stator current is_d (A)>"
Labels [0, 0]
SrcBlock "Bus\nSelector"
SrcPort 1
Points [115, 0]
DstBlock "Rs"
DstPort 1
}
Line {
SrcBlock "Rs"
SrcPort 1
Points [25, 0; 0, 50]
DstBlock "Add1"
DstPort 1
}
Line {
Name "<Stator voltage Vs_d (V)>"
Labels [0, 0]
SrcBlock "Bus\nSelector"
SrcPort 3
DstBlock "Add1"
DstPort 2
}
Line {
SrcBlock "Add1"
SrcPort 1
DstBlock "Integrator1"
DstPort 1
}
Line {
SrcBlock "Integrator1"
SrcPort 1
DstBlock "zuobiaoxuanzhuan"
DstPort 1
}
Line {
Name "<Rotor angle thetam (rad)>"
Labels [0, 0]
SrcBlock "Bus\nSelector"
SrcPort 4
Points [230, 0; 0, 5]
DstBlock "zuobiaoxuanzhuan"
DstPort 2
}
Line {
SrcBlock "zuobiaoxuanzhuan"
SrcPort 1
DstBlock "Real-Imag to\nComplex"
DstPort 1
}
Line {
SrcBlock "zuobiaoxuanzhuan"
SrcPort 2
Points [20, 0; 0, -40]
DstBlock "Real-Imag to\nComplex"
DstPort 2
}
Line {
SrcBlock "Real-Imag to\nComplex"
SrcPort 1
Points [35, 0; 0, 280]
DstBlock "Complex to\nMagnitude-Angle"
DstPort 1
}
Line {
SrcBlock "Add2"
SrcPort 1
DstBlock "Relay"
DstPort 1
}
Line {
SrcBlock "Complex to\nMagnitude-Angle"
SrcPort 1
Points [-640, 0; 0, -205]
DstBlock "Add2"
DstPort 1
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [-10, 0; 0, -45]
DstBlock "Add2"
DstPort 2
}
Line {
SrcBlock "Add3"
SrcPort 1
DstBlock "PID Controller"
DstPort 1
}
Line {
SrcBlock "PID Controller"
SrcPort 1
DstBlock "Add4"
DstPort 1
}
Line {
SrcBlock "Add4"
SrcPort 1
DstBlock "Relay1"
DstPort 1
}
Line {
Name "<Rotor speed wm (rad/s)>"
Labels [0, 0]
SrcBlock "Bus\nSelector"
SrcPort 6
Points [65, 0; 0, 190; -725, 0; 0, -245]
DstBlock "Add3"
DstPort 2
}
Line {
Name "<Electromagnetic torque Te (N*m)>"
Labels [0, 0]
SrcBlock "Bus\nSelector"
SrcPort 7
Points [15, 0; 0, 100; -565, 0; 0, -170]
DstBlock "Add4"
DstPort 2
}
Line {
SrcBlock "Relay1"
SrcPort 1
DstBlock "KAIGUANBIAO"
DstPort 1
}
Line {
SrcBlock "Relay"
SrcPort 1
Points [5, 0; 0, -45]
DstBlock "KAIGUANBIAO"
DstPort 2
}
Line {
LineType "Connection"
SrcBlock "e"
SrcPort RConn1
Points [20, 0]
DstBlock "PWM \nIGBT Inverter"
DstPort RConn1
}
Line {
LineType "Connection"
SrcBlock "e"
SrcPort LConn1
Points [0, 5; 20, 0]
DstBlock "PWM \nIGBT Inverter"
DstPort RConn2
}
Line {
LineType "Connection"
SrcBlock "PWM \nIGBT Inverter"
SrcPort LConn1
DstBlock "Permanent Magnet\nSynchronous Machine"
DstPort LConn1
}
Line {
LineType "Connection"
SrcBlock "PWM \nIGBT Inverter"
SrcPort LConn2
Points [10, 0]
DstBlock "Permanent Magnet\nSynchronous Machine"
DstPort LConn2
}
Line {
LineType "Connection"
SrcBlock "PWM \nIGBT Inverter"
SrcPort LConn3
Points [5, 0; 0, -10]
DstBlock "Permanent Magnet\nSynchronous Machine"
DstPort LConn3
}
Line {
SrcBlock "KAIGUANBIAO"
SrcPort 1
Points [10, 0; 0, -105; 160, 0; 0, 50]
DstBlock "PWM \nIGBT Inverter"
DstPort 1
}
Line {
SrcBlock "Step"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [40, 0; 0, 50; -120, 0; 0, 35]
DstBlock "Add3"
DstPort 1
}
Line {
SrcBlock "Complex to\nMagnitude-Angle"
SrcPort 2
DstBlock "Fcn"
DstPort 1
}
Line {
SrcBlock "Fcn"
SrcPort 1
Points [-330, 0]
DstBlock "KAIGUANBIAO"
DstPort 3
}
Annotation {
Name "q"
Position [1157, 192]
}
Annotation {
Name "d"
Position [1138, 130]
}
Annotation {
Name "Te*"
Position [162, 150]
}
Annotation {
Name "Te"
Position [160, 183]
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -