📄 vecto_control.mdl
字号:
BlockType From
Name "From"
Position [20, 445, 65, 465]
BackgroundColor "[0.501961, 1.000000, 1.000000]"
ShowName off
CloseFcn "tagdialog Close"
GotoTag "Speed"
TagVisibility "global"
}
Block {
BlockType From
Name "From1"
Position [260, 130, 305, 150]
BackgroundColor "[0.000000, 1.000000, 1.000000]"
ShowName off
CloseFcn "tagdialog Close"
GotoTag "Speed"
TagVisibility "global"
}
Block {
BlockType From
Name "From2"
Position [405, 105, 450, 125]
BackgroundColor "[0.000000, 1.000000, 1.000000]"
ShowName off
CloseFcn "tagdialog Close"
GotoTag "Iabc"
TagVisibility "global"
}
Block {
BlockType SubSystem
Name "PI_Vd*1"
Ports [2, 1]
Position [345, 299, 400, 341]
BackgroundColor "lightBlue"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskType "PI controller"
MaskDescription "Proportional-Integral Speed Controller"
MaskPromptString "Proportional gain (Kp)|Integral gain (Ki)|T"
"orque limit (N.m)|Sampling time (s)"
MaskStyleString "edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on"
MaskCallbackString "|||"
MaskEnableString "on,on,on,on"
MaskVisibilityString "on,on,on,on"
MaskToolTipString "on,on,on,on"
MaskVarAliasString ",,,"
MaskVariables "Kp=@1;Ki=@2;Tlim=@3;Ts=@4;"
MaskDisplay "plot(0,0,100,100,[35,35,65],[70,30,30],[35,"
"65],[45,60])"
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "200|50|200|Ts"
MaskTabNameString ",,,"
System {
Name "PI_Vd*1"
Location [284, 304, 1190, 716]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "id"
Position [125, 168, 155, 182]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "id*"
Position [125, 138, 155, 152]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType DiscreteIntegrator
Name "Discrete-Time\nIntegrator"
Ports [1, 1]
Position [290, 157, 355, 203]
ShowName off
IntegratorMethod "Integration: Trapezoidal"
ExternalReset "none"
InitialConditionSource "internal"
SampleTime "Ts"
LimitOutput on
UpperSaturationLimit "Tlim"
LowerSaturationLimit "-Tlim"
IgnoreLimit off
ICPrevOutput "DiscIntNeverNeededParam"
ICPrevScaledInput "DiscIntNeverNeededParam"
}
Block {
BlockType Gain
Name "Gain"
Position [245, 166, 270, 194]
ShowName off
Gain "Ki"
}
Block {
BlockType Gain
Name "Gain1"
Position [245, 111, 275, 139]
ShowName off
Gain "Kp"
}
Block {
BlockType Saturate
Name "Saturation"
Position [450, 145, 470, 165]
ShowName off
UpperLimit "Tlim"
LowerLimit "-Tlim"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [195, 128, 205, 192]
ShowName off
Inputs "+-"
CollapseMode "All dimensions"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [380, 95, 395, 210]
ShowName off
CollapseMode "All dimensions"
}
Block {
BlockType Outport
Name "Vd*"
Position [495, 148, 525, 162]
IconDisplay "Port number"
BusOutputAsStruct off
InitialOutput "0"
}
Line {
SrcBlock "Gain1"
SrcPort 1
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Discrete-Time\nIntegrator"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
Points [0, 20]
DstBlock "Gain"
DstPort 1
}
Branch {
Points [0, -35]
DstBlock "Gain1"
DstPort 1
}
}
Line {
SrcBlock "Discrete-Time\nIntegrator"
SrcPort 1
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "Saturation"
DstPort 1
}
Line {
SrcBlock "Saturation"
SrcPort 1
DstBlock "Vd*"
DstPort 1
}
Line {
SrcBlock "id"
SrcPort 1
Points [0, 0]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "id*"
SrcPort 1
Points [0, 0]
DstBlock "Sum1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "PI_Vq*"
Ports [2, 1]
Position [345, 353, 400, 397]
BackgroundColor "lightBlue"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskType "PI controller"
MaskDescription "Proportional-Integral Speed Controller"
MaskPromptString "Proportional gain (Kp)|Integral gain (Ki)|T"
"orque limit (N.m)|Sampling time (s)"
MaskStyleString "edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on"
MaskCallbackString "|||"
MaskEnableString "on,on,on,on"
MaskVisibilityString "on,on,on,on"
MaskToolTipString "on,on,on,on"
MaskVarAliasString ",,,"
MaskVariables "Kp=@1;Ki=@2;Tlim=@3;Ts=@4;"
MaskDisplay "plot(0,0,100,100,[35,35,65],[70,30,30],[35,"
"65],[45,60])"
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "200|50|600|Ts"
MaskTabNameString ",,,"
System {
Name "PI_Vq*"
Location [284, 304, 1190, 716]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "iq"
Position [125, 168, 155, 182]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "iq*"
Position [125, 138, 155, 152]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType DiscreteIntegrator
Name "Discrete-Time\nIntegrator"
Ports [1, 1]
Position [280, 157, 345, 203]
ShowName off
IntegratorMethod "Integration: Trapezoidal"
ExternalReset "none"
InitialConditionSource "internal"
SampleTime "Ts"
LimitOutput on
UpperSaturationLimit "Tlim"
LowerSaturationLimit "-Tlim"
IgnoreLimit off
ICPrevOutput "DiscIntNeverNeededParam"
ICPrevScaledInput "DiscIntNeverNeededParam"
}
Block {
BlockType Gain
Name "Gain"
Position [240, 166, 265, 194]
ShowName off
Gain "Ki"
}
Block {
BlockType Gain
Name "Gain1"
Position [240, 111, 270, 139]
ShowName off
Gain "Kp"
}
Block {
BlockType Saturate
Name "Saturation"
Position [450, 145, 470, 165]
ShowName off
UpperLimit "Tlim"
LowerLimit "-Tlim"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [195, 128, 205, 192]
ShowName off
Inputs "+-"
CollapseMode "All dimensions"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [380, 95, 395, 210]
ShowName off
CollapseMode "All dimensions"
}
Block {
BlockType Outport
Name "Vq*"
Position [495, 148, 525, 162]
IconDisplay "Port number"
BusOutputAsStruct off
InitialOutput "0"
}
Line {
SrcBlock "iq*"
SrcPort 1
Points [0, 0]
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "iq"
SrcPort 1
Points [0, 0]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Saturation"
SrcPort 1
DstBlock "Vq*"
DstPort 1
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "Saturation"
DstPort 1
}
Line {
SrcBlock "Discrete-Time\nIntegrator"
SrcPort 1
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
DstBlock "Gain1"
DstPort 1
}
Branch {
DstBlock "Gain"
DstPort 1
}
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Discrete-Time\nIntegrator"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
DstBlock "Sum2"
DstPort 1
}
}
}
Block {
BlockType Constant
Name "Phir*"
Position [165, 318, 195, 342]
Value "0.72"
SampleTime "Ts"
}
Block {
BlockType SubSystem
Name "SVPWM"
Ports [2, 1]
Position [590, 267, 640, 378]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskPromptString "PWM period time Tp (s)|DC Bus Voltage Vdc ("
"V)"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskToolTipString "on,on"
MaskVarAliasString ","
MaskVariables "Tp=@1;Vdc=@2;"
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "5e-4|780"
MaskTabNameString ","
System {
Name "SVPWM"
Location [201, 322, 1090, 912]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPage
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -