📄 power_acdrive.mdl
字号:
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
PhasorSimulation off
OutputType "Magnitude"
PSBequivalent "0"
Port {
PortNumber 1
Name "Vab (V)"
PropagatedSignals "signal"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType SubSystem
Name "Vector Control"
Ports [1, 1]
Position [285, 95, 375, 145]
Orientation "left"
ForegroundColor "blue"
BackgroundColor "cyan"
NamePlacement "alternate"
FontName "Arial"
FontWeight "bold"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "Vector Control"
Location [234, 212, 839, 576]
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 Inport
Name "speed"
Position [35, 318, 65, 332]
IconDisplay "Port number"
}
Block {
BlockType SubSystem
Name "ABC to dq\nconversion"
Ports [2, 2]
Position [395, 74, 450, 121]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "ABC to dq\nconversion"
Location [220, 231, 594, 356]
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 Inport
Name "Iabc"
Position [15, 83, 45, 97]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Teta"
Position [15, 23, 45, 37]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Fcn
Name "Fcn"
Position [75, 49, 115, 71]
ShowName off
Expr "sin(u)"
}
Block {
BlockType Fcn
Name "Fcn1"
Position [75, 19, 115, 41]
ShowName off
Expr "cos(u)"
}
Block {
BlockType Gain
Name "Gain"
Position [255, 25, 285, 55]
ShowName off
Gain "2/3"
}
Block {
BlockType Gain
Name "Gain1"
Position [255, 60, 285, 90]
ShowName off
Gain "2/3"
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [145, 15, 150, 105]
ShowName off
Inputs "[1 1 3]"
}
Block {
BlockType Fcn
Name "id"
Position [185, 28, 225, 52]
NamePlacement "alternate"
Expr "u[1]*u[3]+(1.7320508*u[2]-u[1])*u[4]*0."
"5+(-u[1]-1.7320508*u[2])*u[5]*0.5"
}
Block {
BlockType Fcn
Name "iq"
Position [185, 63, 225, 87]
Expr "-u[2]*u[3]+(u[2]+1.7320508*u[1])*u[4]*0"
".5+(u[2]-1.7320508*u[1])*u[5]*0.5"
}
Block {
BlockType Outport
Name "Id"
Position [315, 33, 345, 47]
IconDisplay "Port number"
BusOutputAsStruct off
InitialOutput "0"
}
Block {
BlockType Outport
Name "Iq"
Position [315, 68, 345, 82]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
InitialOutput "0"
}
Line {
SrcBlock "Fcn"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Fcn1"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Teta"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Fcn1"
DstPort 1
}
Branch {
Points [0, 30]
DstBlock "Fcn"
DstPort 1
}
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [5, 0]
Branch {
Points [0, 15]
DstBlock "iq"
DstPort 1
}
Branch {
Points [0, -20]
DstBlock "id"
DstPort 1
}
}
Line {
SrcBlock "Iabc"
SrcPort 1
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "iq"
SrcPort 1
DstBlock "Gain1"
DstPort 1
}
Line {
SrcBlock "id"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Id"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
DstBlock "Iq"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Current\nRegulator"
Ports [2, 1]
Position [465, 230, 525, 290]
BackgroundColor "lightBlue"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskType "Regulateur de courant a hysteresis"
MaskPromptString "Hysteresis band (A)"
MaskStyleString "edit"
MaskTunableValueString "on"
MaskEnableString "on"
MaskVisibilityString "on"
MaskToolTipString "on"
MaskVariables "h=@1;"
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "20"
System {
Name "Current\nRegulator"
Location [2, 78, 1022, 718]
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 Inport
Name "Iabc"
Position [25, 33, 55, 47]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Iabc*"
Position [25, 128, 55, 142]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType DataTypeConversion
Name "Data Type \nConversion"
Position [260, 44, 280, 66]
ShowName off
OutDataTypeMode "boolean"
}
Block {
BlockType DataTypeConversion
Name "Data Type \nConversion1"
Position [345, 44, 365, 66]
ShowName off
OutDataTypeMode "double"
}
Block {
BlockType DataTypeConversion
Name "Data Type \nConversion2"
Position [345, 94, 365, 116]
ShowName off
OutDataTypeMode "double"
}
Block {
BlockType DataTypeConversion
Name "Data Type \nConversion3"
Position [345, 144, 365, 166]
ShowName off
OutDataTypeMode "double"
}
Block {
BlockType DataTypeConversion
Name "Data Type \nConversion4"
Position [250, 94, 270, 116]
ShowName off
OutDataTypeMode "boolean"
}
Block {
BlockType DataTypeConversion
Name "Data Type \nConversion5"
Position [250, 144, 270, 166]
ShowName off
OutDataTypeMode "boolean"
}
Block {
BlockType Demux
Name "Demux1"
Ports [1, 3]
Position [85, 20, 90, 60]
ShowName off
Outputs "3"
}
Block {
BlockType Demux
Name "Demux2"
Ports [1, 3]
Position [85, 115, 90, 155]
ShowName off
Outputs "3"
}
Block {
BlockType Logic
Name "Logical\nOperator"
Ports [1, 1]
Position [295, 45, 325, 65]
ShowName off
Operator "NOT"
}
Block {
BlockType Logic
Name "Logical\nOperator1"
Ports [1, 1]
Position [290, 95, 320, 115]
ShowName off
Operator "NOT"
}
Block {
BlockType Logic
Name "Logical\nOperator2"
Ports [1, 1]
Position [290, 145, 320, 165]
ShowName off
Operator "NOT"
}
Block {
BlockType Mux
Name "Mux"
Ports [6, 1]
Position [400, 15, 405, 170]
ShowName off
Inputs "6"
}
Block {
BlockType Relay
Name "Relay"
Position [200, 17, 220, 43]
ShowName off
OnSwitchValue "h/2"
OffSwitchValue "-h/2"
}
Block {
BlockType Relay
Name "Relay1"
Position [200, 67, 220, 93]
ShowName off
OnSwitchValue "h/2"
OffSwitchValue "-h/2"
}
Block {
BlockType Relay
Name "Relay2"
Position [200, 117, 220, 143]
ShowName off
OnSwitchValue "h/2"
OffSwitchValue "-h/2"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [160, 19, 180, 41]
ShowName off
Inputs "-+"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [160, 69, 180, 91]
ShowName off
Inputs "-+"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [160, 119, 180, 141]
ShowName off
Inputs "-+"
}
Block {
BlockType Outport
Name "Pulses"
Position [425, 88, 455, 102]
IconDisplay "Port number"
BusOutputAsStruct off
InitialOutput "0"
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Relay"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Relay1"
DstPort 1
}
Line {
SrcBlock "Demux1"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -