📄 svpwmqd.mdl
字号:
BlockType SubSystem
Name "Subsystem1"
Ports [3, 3]
Position [325, 127, 365, 213]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Subsystem1"
Location [110, 302, 945, 606]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "t"
Position [25, 43, 55, 57]
ShowName off
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "T1"
Position [25, 73, 55, 87]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "T2"
Position [25, 103, 55, 117]
Port "3"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [3, 3]
Position [385, 125, 425, 185]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Subsystem"
Location [110, 304, 945, 608]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "t"
Position [25, 43, 55, 57]
ShowName off
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "T1"
Position [25, 73, 55, 87]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "T2"
Position [25, 103, 55, 117]
Port "3"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType If
Name "If"
Ports [1, 2]
Position [165, 60, 230, 95]
IfExpression "u1> 0"
}
Block {
BlockType SubSystem
Name "If Action\nSubsystem"
Ports [2, 2, 0, 0, 0, 0, 0, 1]
Position [210, 232, 280, 268]
TreatAsAtomicUnit on
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "If Action\nSubsystem"
Location [339, 457, 837, 757]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [75, 78, 105, 92]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "In2"
Position [80, 113, 110, 127]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType ActionPort
Name "Action Port"
Position [195, 25, 254, 53]
NamePlacement "alternate"
}
Block {
BlockType Outport
Name "Out1"
Position [325, 78, 355, 92]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Out2"
Position [330, 113, 360, 127]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "In2"
SrcPort 1
DstBlock "Out2"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "If Action\nSubsystem1"
Ports [3, 2, 0, 0, 0, 0, 0, 1]
Position [290, 113, 335, 187]
TreatAsAtomicUnit on
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "If Action\nSubsystem1"
Location [403, 272, 901, 572]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [75, 78, 105, 92]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "In2"
Position [75, 133, 105, 147]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "In3"
Position [75, 183, 105, 197]
Port "3"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType ActionPort
Name "Action Port"
Position [215, 30, 274, 58]
}
Block {
BlockType Fcn
Name "Fcn"
Position [220, 95, 280, 125]
Expr "u(1)*u(3)/(u(1)+u(2))"
}
Block {
BlockType Fcn
Name "Fcn1"
Position [220, 145, 280, 175]
Expr "u(2)*u(3)/(u(1)+u(2))"
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [180, 91, 185, 129]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Outport
Name "Out1"
Position [325, 93, 355, 107]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Out2"
Position [325, 138, 355, 152]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Fcn1"
SrcPort 1
Points [10, 0; 0, -15]
DstBlock "Out2"
DstPort 1
}
Line {
SrcBlock "Fcn"
SrcPort 1
Points [10, 0; 0, -10]
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "In3"
SrcPort 1
Points [55, 0]
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [5, 0]
Branch {
Points [0, 50]
DstBlock "Fcn1"
DstPort 1
}
Branch {
DstBlock "Fcn"
DstPort 1
}
}
Line {
SrcBlock "In2"
SrcPort 1
Points [25, 0; 0, -30]
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "In1"
SrcPort 1
Points [25, 0; 0, 15]
DstBlock "Mux"
DstPort 1
}
}
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [455, 116, 465, 194]
ShowName off
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
Port {
PortNumber 1
Name "t1"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Sum
Name "Sum1"
Ports [3, 1]
Position [570, 71, 605, 99]
ShowName off
Inputs "+--"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [720, 133, 755, 162]
ShowName off
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum3"
Ports [2, 1]
Position [725, 218, 760, 247]
ShowName off
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum4"
Ports [2, 1]
Position [445, 201, 455, 279]
ShowName off
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
Port {
PortNumber 1
Name "t2"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Sum
Name "Sum7"
Ports [3, 1]
Position [125, 38, 140, 122]
ShowName off
Inputs "-++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Gain
Name "TCM1"
Position [625, 64, 680, 106]
ShowName off
Gain "0.25"
}
Block {
BlockType Gain
Name "TCM2"
Position [605, 140, 635, 170]
ShowName off
Gain "0.5"
}
Block {
BlockType Gain
Name "TCM3"
Position [610, 225, 640, 255]
ShowName off
Gain "0.5"
}
Block {
BlockType Outport
Name "ta"
Position [780, 78, 810, 92]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "tb"
Position [780, 143, 810, 157]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "tc"
Position [780, 228, 810, 242]
Port "3"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "TCM1"
DstPort 1
}
Line {
SrcBlock "TCM1"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
Points [0, 55]
DstBlock "Sum2"
DstPort 1
}
Branch {
DstBlock "ta"
DstPort 1
}
}
Line {
SrcBlock "TCM2"
SrcPort 1
Points [0, 0; 25, 0]
Branch {
Points [40, 0]
DstBlock "Sum2"
DstPort 2
}
Branch {
Points [0, 70]
DstBlock "Sum3"
DstPort 1
}
}
Line {
SrcBlock "TCM3"
SrcPort 1
Points [65, 0]
DstBlock "Sum3"
DstPort 2
}
Line {
SrcBlock "If Action\nSubsystem"
SrcPort 2
Points [0, 0]
DstBlock "Sum4"
DstPort 2
}
Line {
SrcBlock "If Action\nSubsystem1"
SrcPort 2
Points [35, 0; 0, 50]
DstBlock "Sum4"
DstPort 1
}
Line {
Name "t1"
Labels [0, 0]
SrcBlock "Sum"
SrcPort 1
Points [0, 0; 25, 0]
Branch {
Points [0, -70]
DstBlock "Sum1"
DstPort 2
}
Branch {
Points [95, 0]
DstBlock "TCM2"
DstPort 1
}
}
Line {
SrcBlock "If Action\nSubsystem"
SrcPort 1
Points [125, 0; 0, -65]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "If Action\nSubsystem1"
SrcPort 1
Points [0, 0]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "If"
SrcPort 1
Points [75, 0]
DstBlock "If Action\nSubsystem1"
DstPort ifaction
}
Line {
SrcBlock "Sum7"
SrcPort 1
Points [5, 0]
DstBlock "If"
DstPort 1
}
Line {
SrcBlock "If"
SrcPort 2
Points [10, 0]
DstBlock "If Action\nSubsystem"
DstPort ifaction
}
Line {
SrcBlock "t"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -