📄 imeqvecpwm1.mdl
字号:
DstBlock "Fcn"
DstPort 1
}
Line {
SrcBlock "Mux4"
SrcPort 1
DstBlock "Fcn1"
DstPort 1
}
Line {
SrcBlock "ab"
SrcPort 1
Points [15, 0; 0, 15]
Branch {
Points [0, -75]
DstBlock "Mux3"
DstPort 1
}
Branch {
Points [0, 90]
DstBlock "Mux4"
DstPort 1
}
}
Line {
SrcBlock "thetak"
SrcPort 1
Points [125, 0]
Branch {
Points [0, -35; -80, 0; 0, -35]
DstBlock "Mux3"
DstPort 2
}
Branch {
Points [0, 40; -80, 0; 0, 55]
DstBlock "Mux4"
DstPort 2
}
}
Line {
SrcBlock "Fcn1"
SrcPort 1
Points [15, 0]
DstBlock "Mux5"
DstPort 2
}
Line {
SrcBlock "Fcn"
SrcPort 1
Points [20, 0]
DstBlock "Mux5"
DstPort 1
}
Line {
SrcBlock "Mux5"
SrcPort 1
DstBlock "dq"
DstPort 1
}
}
}
Block {
BlockType Gain
Name "g2"
Position [465, 145, 495, 175]
ShowName off
Gain "2"
}
Block {
BlockType SubSystem
Name "pwm1"
Ports [1, 1]
Position [260, 74, 320, 176]
TreatAsAtomicUnit off
System {
Name "pwm1"
Location [689, 221, 991, 349]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "74"
Block {
BlockType Inport
Name "ABC"
Position [35, 48, 65, 62]
}
Block {
BlockType Gain
Name "3/2"
Position [280, 33, 320, 77]
Gain "2/3*[1 -0.5 -0.5;0 sqrt(3)/2 -sqrt(3)/2"
"]"
Multiplication "Matrix(K*u)"
}
Block {
BlockType Reference
Name "Repeating\nSequence"
Ports [0, 1]
Position [30, 112, 75, 158]
ShowName off
SourceBlock "simulink/Sources/Repeating\nSequence"
SourceType "Repeating table"
rep_seq_t "[0 0.5/5000 1/5000]"
rep_seq_y "[1 -1 1]"
Port {
PortNumber 1
Name "tri"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [105, 45, 125, 65]
ShowName off
IconShape "round"
Inputs "|+-"
}
Block {
BlockType Gain
Name "pwm"
Position [205, 32, 250, 78]
Gain "1/3*[2 -1 -1;-1 2 -1;-1 -1 2]"
Multiplication "Matrix(K*u)"
}
Block {
BlockType Relay
Name "stp"
Position [145, 40, 175, 70]
}
Block {
BlockType Outport
Name "ab"
Position [355, 48, 385, 62]
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "stp"
DstPort 1
}
Line {
Name "tri"
Labels [0, 0]
SrcBlock "Repeating\nSequence"
SrcPort 1
Points [35, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "stp"
SrcPort 1
DstBlock "pwm"
DstPort 1
}
Line {
SrcBlock "pwm"
SrcPort 1
DstBlock "3/2"
DstPort 1
}
Line {
SrcBlock "3/2"
SrcPort 1
DstBlock "ab"
DstPort 1
}
Line {
SrcBlock "ABC"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Annotation {
Name "Sinusoidal PWM\nsignal generator"
Position [208, 136]
FontSize 11
FontWeight "bold"
}
}
}
Block {
BlockType Outport
Name "dq"
Position [525, 153, 555, 167]
}
Line {
SrcBlock "Mux3"
SrcPort 1
Points [10, 0]
Branch {
Labels [1, 0]
DstBlock "Fcn"
DstPort 1
}
Branch {
Points [0, 0]
Branch {
DstBlock "Fcn1"
DstPort 1
}
Branch {
DstBlock "Fcn2"
DstPort 1
}
}
}
Line {
Name "thetas"
SrcBlock "thetas"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Mux3"
DstPort 2
}
Branch {
Labels [2, 0]
Points [0, 70; 280, 0; 0, -35]
DstBlock "ab2dq"
DstPort 2
}
}
Line {
SrcBlock "vs"
SrcPort 1
DstBlock "Mux3"
DstPort 1
}
Line {
Name "dq"
Labels [0, 0]
SrcBlock "ab2dq"
SrcPort 1
DstBlock "g2"
DstPort 1
}
Line {
SrcBlock "g2"
SrcPort 1
DstBlock "dq"
DstPort 1
}
Line {
SrcBlock "Mux4"
SrcPort 1
DstBlock "pwm1"
DstPort 1
}
Line {
SrcBlock "Fcn"
SrcPort 1
Points [5, 0]
Branch {
Points [0, -45]
DstBlock "A\n component"
DstPort 1
}
Branch {
DstBlock "Mux4"
DstPort 1
}
}
Line {
SrcBlock "Fcn1"
SrcPort 1
DstBlock "Mux4"
DstPort 2
}
Line {
SrcBlock "Fcn2"
SrcPort 1
DstBlock "Mux4"
DstPort 3
}
Line {
SrcBlock "pwm1"
SrcPort 1
Points [15, 0]
Branch {
Points [20, 0]
DstBlock "ab2dq"
DstPort 1
}
Branch {
Points [0, -75]
DstBlock "\n"
DstPort 1
}
}
Annotation {
Name "ab\ncomponents"
Position [381, 15]
}
}
}
Block {
BlockType Scope
Name "speed"
Ports [1]
Position [845, 141, 880, 189]
NamePlacement "alternate"
Location [528, 429, 1007, 707]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "speed"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "2"
YMin "0"
YMax "1.4"
DataFormat "StructureWithTime"
MaxDataPoints "25000"
Decimation "20"
}
Block {
BlockType Scope
Name "torque"
Ports [1]
Position [780, 36, 815, 84]
NamePlacement "alternate"
Location [529, 60, 1004, 385]
Open on
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "torque"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "2"
YMin "-4"
YMax "4"
DataFormat "StructureWithTime"
MaxDataPoints "25000"
Decimation "20"
}
Block {
BlockType Gain
Name "wo"
Position [125, 169, 175, 201]
Gain "120*pi"
Port {
PortNumber 1
Name "thetas"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Line {
SrcBlock "amplitude"
SrcPort 1
DstBlock "pwm excitation"
DstPort 1
}
Line {
SrcBlock "Integrator"
SrcPort 1
DstBlock "wo"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "ias"
DstPort 1
}
Line {
Name "ias"
Labels [0, 0]
SrcBlock "ias"
SrcPort 1
Points [15, 0; 0, -30]
DstBlock "Mux7"
DstPort 2
}
Line {
Name "Is_mag"
Labels [0, 1]
SrcBlock "mag"
SrcPort 1
Points [20, 0; 0, 40]
DstBlock "Mux7"
DstPort 1
}
Line {
SrcBlock "Mux7"
SrcPort 1
DstBlock "currents"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 2
DstBlock "Mux"
DstPort 2
}
Line {
Name "is"
SrcBlock "IM"
SrcPort 2
Points [0, 0; 10, 0]
Branch {
Labels [1, 0]
DstBlock "mag"
DstPort 1
}
Branch {
Points [0, 85]
DstBlock "Demux"
DstPort 1
}
}
Line {
SrcBlock "Mux6"
SrcPort 1
DstBlock "torque"
DstPort 1
}
Line {
SrcBlock "Step load pu"
SrcPort 1
Points [0, 0; 50, 0]
Branch {
Labels [-1, 1]
DstBlock "Mux6"
DstPort 1
}
Branch {
Points [0, 150]
DstBlock "Mechanical \nsystem"
DstPort 2
}
}
Line {
Name "Te"
Labels [0, 0]
SrcBlock "IM"
SrcPort 1
Points [60, 0; 0, -40]
Branch {
Labels [-1, 1]
Points [0, -65]
DstBlock "Mux6"
DstPort 2
}
Branch {
DstBlock "Mechanical \nsystem"
DstPort 1
}
}
Line {
Name "thetas"
SrcBlock "wo"
SrcPort 1
Points [0, 0]
Branch {
Labels [-1, 1]
DstBlock "pwm excitation"
DstPort 2
}
Branch {
Points [10, 0; 0, 185]
DstBlock "Mux"
DstPort 3
}
}
Line {
Name "wm"
Labels [2, 0]
SrcBlock "Mechanical \nsystem"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
Points [0, 230; -465, 0; 0, -125]
DstBlock "IM"
DstPort 3
}
Branch {
DstBlock "speed"
DstPort 1
}
}
Line {
SrcBlock "pwm excitation"
SrcPort 1
DstBlock "IM"
DstPort 1
}
Line {
Name "ws"
Labels [1, 1]
SrcBlock "frequency"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "IM"
DstPort 2
}
Branch {
DstBlock "Integrator"
DstPort 1
}
}
Annotation {
Name "Synchronous frame"
Position [313, 224]
FontSize 12
FontWeight "bold"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -