📄 svpwmhaoyong.mdl
字号:
Name "<Stator current is_b (A)>"
Labels [0, 0]
SrcBlock "Bus\nSelector1"
SrcPort 2
DstBlock "Mux"
DstPort 2
}
Line {
Name "<Stator current is_c (A)>"
Labels [0, 0]
SrcBlock "Bus\nSelector1"
SrcPort 3
Points [50, 0; 0, 5]
DstBlock "Mux"
DstPort 3
}
Line {
Name "<Rotor speed wm (rad/s)>"
Labels [0, 0]
SrcBlock "Bus\nSelector1"
SrcPort 6
Points [0, 10; 150, 0]
DstBlock "wm"
DstPort 1
}
Line {
Name "<Rotor angle thetam (rad)>"
Labels [0, 0]
SrcBlock "Bus\nSelector1"
SrcPort 7
DstBlock "thetam"
DstPort 1
}
Line {
Name "<Electromagnetic torque Te (N*m)>"
Labels [0, 0]
SrcBlock "Bus\nSelector1"
SrcPort 8
Points [0, 20]
DstBlock "Te"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [15, 0]
DstBlock "is_abc"
DstPort 1
}
Line {
Name "<Stator current is_d (A)>"
Labels [0, 0]
SrcBlock "Bus\nSelector1"
SrcPort 5
Points [145, 0]
DstBlock "Id"
DstPort 1
}
Line {
Name "<Stator current is_q (A)>"
Labels [0, 0]
SrcBlock "Bus\nSelector1"
SrcPort 4
Points [115, 0; 0, 5; 15, 0; 0, -25]
DstBlock "Iq"
DstPort 1
}
}
}
Block {
BlockType Gain
Name "Gain"
Position [915, 240, 945, 270]
Gain "4"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain1"
Position [910, 195, 940, 225]
Gain "4"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain2"
Position [660, 515, 690, 545]
Orientation "left"
Gain "30/pi"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "Ground"
Ports [0, 0, 0, 0, 0, 1]
Position [474, 285, 496, 310]
Orientation "down"
ShowName off
SourceBlock "powerlib/Elements/Ground"
SourceType "Ground"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "a"
}
Block {
BlockType SubSystem
Name "Iabc2Ialfbelt"
Ports [1, 2]
Position [610, 422, 660, 493]
Orientation "left"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "Iabc2Ialfbelt"
Location [413, 290, 911, 590]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Iabc"
Position [15, 118, 45, 132]
IconDisplay "Port number"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 3]
Position [65, 83, 70, 167]
BackgroundColor "black"
ShowName off
Outputs "3"
DisplayOption "bar"
}
Block {
BlockType Fcn
Name "Fcn"
Position [235, 65, 295, 95]
Expr "sqrt(2/3)*(u(1)-0.5*u(2)-0.5*u(3))"
}
Block {
BlockType Fcn
Name "Fcn1"
Position [245, 155, 305, 185]
Expr "sqrt(1/2)*(u(2)-u(3))"
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [195, 44, 200, 116]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux1"
Ports [3, 1]
Position [195, 135, 200, 205]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Outport
Name "Ialf"
Position [330, 73, 360, 87]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Ibelta"
Position [335, 163, 365, 177]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Demux"
SrcPort 1
Points [40, 0; 0, -45; 45, 0]
Branch {
DstBlock "Mux"
DstPort 1
}
Branch {
Points [0, 90]
DstBlock "Mux1"
DstPort 1
}
}
Line {
SrcBlock "Demux"
SrcPort 2
Points [40, 0; 0, -5; 30, 0]
Branch {
Points [0, -40]
DstBlock "Mux"
DstPort 2
}
Branch {
Points [0, 50]
DstBlock "Mux1"
DstPort 2
}
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Fcn"
DstPort 1
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "Fcn1"
DstPort 1
}
Line {
SrcBlock "Fcn"
SrcPort 1
DstBlock "Ialf"
DstPort 1
}
Line {
SrcBlock "Fcn1"
SrcPort 1
DstBlock "Ibelta"
DstPort 1
}
Line {
SrcBlock "Iabc"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 3
Points [30, 0; 0, 45; 75, 0]
Branch {
DstBlock "Mux"
DstPort 3
}
Branch {
DstBlock "Mux1"
DstPort 3
}
}
}
}
Block {
BlockType Reference
Name "Permanent Magnet\nSynchronous Machine"
Ports [1, 1, 0, 0, 0, 3]
Position [700, 168, 785, 242]
FontSize 11
SourceBlock "powerlib/Machines/Permanent Magnet\nSynchronous"
" Machine"
SourceType "Permanent Magnet Synchronous Machine"
ShowPortLabels on
FluxDistribution "Sinusoidal"
MechanicalLoad "Torque Tm"
PresetModel "No"
ShowDetailedParameters on
Resistance "2.8750 "
Inductance "8.5e-3"
dqInductances "[8.5e-3, 8.5e-3]"
Flux "0.175"
Flat "120"
Mechanical "[ 1e-3, 0, 4 ] "
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [990, 124, 1020, 156]
Floating off
Location [81, 168, 862, 743]
Open off
NumInputPorts "1"
TickLabels "on"
List {
ListType AxesTitles
axes1 "iaibic(A)"
}
TimeRange "0.2"
YMin "-4"
YMax "4"
SaveName "ScopeData5"
DataFormat "StructureWithTime"
MaxDataPoints "5000000"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [885, 289, 915, 321]
Floating off
Location [-99, 231, 730, 794]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "0.35"
YMin "-4"
YMax "8"
SaveName "ScopeData7"
DataFormat "StructureWithTime"
MaxDataPoints "500000"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope2"
Ports [1]
Position [780, 294, 810, 326]
Floating off
Location [240, 215, 767, 668]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "-350"
YMax "350"
SaveName "ScopeData8"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope3"
Ports [1]
Position [580, 569, 610, 601]
Floating off
Location [9, 81, 932, 691]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "475"
YMax "1050"
SaveName "ScopeData9"
DataFormat "StructureWithTime"
MaxDataPoints "50000000"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope4"
Ports [2]
Position [900, 51, 930, 84]
Floating off
Location [48, 103, 971, 713]
Open off
NumInputPorts "2"
List {
ListType AxesTitles
axes1 "Is_q"
axes2 "Is_d"
}
YMin "0.75~-0.05"
YMax "4~0.325"
SaveName "ScopeData10"
DataFormat "StructureWithTime"
MaxDataPoints "50000000"
SampleTime "0"
}
Block {
BlockType Step
Name "Step"
Position [645, 145, 675, 175]
Time "0.1"
Before "1"
After "3"
SampleTime "0"
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [1, 1]
Position [270, 143, 300, 177]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "Subsystem"
Location [315, 221, 813, 521]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [110, 103, 140, 117]
IconDisplay "Port number"
}
Block {
BlockType Sum
Name "Add"
Ports [2, 1]
Position [305, 80, 330, 200]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain"
Position [175, 95, 205, 125]
Gain "10"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain1"
Position [175, 160, 205, 190]
Gain "2.6"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1]
Position [230, 160, 260, 190]
IgnoreLimit off
}
Block {
BlockType Saturate
Name "Saturation"
Position [365, 125, 395, 155]
UpperLimit "30"
LowerLimit "-30"
}
Block {
BlockType Outport
Name "Out1"
Position [425, 133, 455, 147]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Saturation"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Add"
SrcPort 1
DstBlock "Saturation"
DstPort 1
}
Line {
SrcBlock "Integrator"
SrcPort 1
Points [20, 0; 0, -5]
DstBlock "Add"
DstPort 2
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Add"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
Points [0, 0]
Branch {
Points [5, 0; 0, 65]
DstBlock "Gain1"
DstPort 1
}
Branch {
DstBlock "Gain"
DstPort 1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -