📄 simulation.mdl
字号:
Block {
BlockType Inport
Name "ws"
Position [115, 253, 145, 267]
Port "4"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 8]
Position [430, 84, 435, 351]
BackgroundColor "black"
ShowName off
Outputs "8"
}
Block {
BlockType Gain
Name "Gain"
Position [535, 220, 555, 250]
ShowName off
Gain "1/2"
}
Block {
BlockType Mux
Name "Mux1"
Ports [5, 1]
Position [260, 113, 265, 327]
ShowName off
Inputs "5"
DisplayOption "bar"
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [1, 1]
Position [310, 189, 375, 251]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Subsystem"
Location [2, 82, 790, 564]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [25, 33, 55, 47]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType "S-Function"
Name "S-Function"
Ports [1, 1]
Position [80, 25, 140, 55]
FunctionName "sf_mach_asy1"
}
Block {
BlockType Outport
Name "Out1"
Position [165, 33, 195, 47]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "S-Function"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "S-Function"
DstPort 1
}
}
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [200, 290, 220, 310]
ShowName off
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Outport
Name "ids"
Position [585, 88, 615, 102]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "iqs"
Position [585, 123, 615, 137]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "fdr"
Position [585, 158, 615, 172]
Port "3"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Fqr1"
Position [585, 193, 615, 207]
Port "4"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "wr1"
Position [585, 228, 615, 242]
Port "5"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "ce"
Position [585, 263, 615, 277]
Port "6"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "ias"
Position [585, 298, 615, 312]
Port "7"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Theta_s"
Position [585, 333, 615, 347]
Port "8"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Subsystem"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 3
DstBlock "fdr"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 4
DstBlock "Fqr1"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 6
DstBlock "ce"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 5
Points [75, 0]
Branch {
Points [0, 200; -305, 0]
DstBlock "Sum1"
DstPort 2
}
Branch {
DstBlock "Gain"
DstPort 1
}
}
Line {
SrcBlock "Demux"
SrcPort 1
DstBlock "ids"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 2
DstBlock "iqs"
DstPort 1
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "Subsystem"
DstPort 1
}
Line {
SrcBlock "Vds"
SrcPort 1
DstBlock "Mux1"
DstPort 1
}
Line {
SrcBlock "Vqs"
SrcPort 1
DstBlock "Mux1"
DstPort 2
}
Line {
SrcBlock "Demux"
SrcPort 7
DstBlock "ias"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 8
DstBlock "Theta_s"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Mux1"
DstPort 5
}
Line {
SrcBlock "Cr"
SrcPort 1
DstBlock "Mux1"
DstPort 3
}
Line {
SrcBlock "ws"
SrcPort 1
Points [25, 0; 0, 0]
Branch {
DstBlock "Mux1"
DstPort 4
}
Branch {
Points [0, 40]
DstBlock "Sum1"
DstPort 1
}
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "wr1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "park"
Ports [4, 2]
Position [80, 31, 125, 134]
FontName "Times New Roman"
FontSize 12
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "park"
Location [316, 252, 546, 415]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "va"
Position [25, 38, 55, 52]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "vb"
Position [25, 63, 55, 77]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "vc"
Position [25, 88, 55, 102]
Port "3"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "theta"
Position [25, 113, 55, 127]
Port "4"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Fcn
Name "Fcn5"
Position [115, 47, 155, 73]
Expr "sqrt(3/2)*(u(1)*cos(u(4))+u(2)*cos(u(4)"
"-2*pi/3)+u(3)*cos(u(4)+2*pi/3))"
}
Block {
BlockType Fcn
Name "Fcn6"
Position [115, 97, 155, 123]
Expr "sqrt(3/2)*(u(1)*sin(u(4))+u(2)*sin(u(4)"
"-2*pi/3)+u(3)*sin(u(4)+2*pi/3)) "
}
Block {
BlockType Mux
Name "Mux6"
Ports [4, 1]
Position [80, 27, 85, 138]
ShowName off
DisplayOption "bar"
}
Block {
BlockType Outport
Name "vd"
Position [175, 53, 205, 67]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "vq"
Position [175, 103, 205, 117]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Mux6"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
DstBlock "Fcn5"
DstPort 1
}
Branch {
DstBlock "Fcn6"
DstPort 1
}
}
Line {
SrcBlock "Fcn6"
SrcPort 1
DstBlock "vq"
DstPort 1
}
Line {
SrcBlock "Fcn5"
SrcPort 1
DstBlock "vd"
DstPort 1
}
Line {
SrcBlock "va"
SrcPort 1
DstBlock "Mux6"
DstPort 1
}
Line {
SrcBlock "vb"
SrcPort 1
DstBlock "Mux6"
DstPort 2
}
Line {
SrcBlock "vc"
SrcPort 1
DstBlock "Mux6"
DstPort 3
}
Line {
SrcBlock "theta"
SrcPort 1
DstBlock "Mux6"
DstPort 4
}
}
}
Block {
BlockType Outport
Name "ids1"
Position [410, 23, 440, 37]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "iqs2"
Position [410, 58, 440, 72]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "fdr"
Position [435, 83, 465, 97]
Port "3"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "fqr"
Position [420, 113, 450, 127]
Port "4"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "wr"
Position [420, 153, 450, 167]
Port "5"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "ce"
Position [420, 183, 450, 197]
Port "6"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "ias"
Position [430, 213, 460, 227]
Port "7"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "theta_s"
Position [425, 248, 455, 262]
Port "8"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "vds"
Position [140, 13, 170, 27]
Port "9"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "vqs"
Position [195, 18, 225, 32]
Port "10"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Constant3"
SrcPort 1
DstBlock "MAS"
DstPort 4
}
Line {
SrcBlock "Cr"
SrcPort 1
DstBlock "MAS"
DstPort 3
}
Line {
SrcBlock "park"
SrcPort 1
Points [0, -5; 5, 0]
Branch {
Points [35, 0; 0, 5]
DstBlock "MAS"
DstPort 1
}
Branch {
Points [0, -35]
DstBlock "vds"
DstPort 1
}
}
Line {
SrcBlock "park"
SrcPort 2
Points [50, 0]
Branch {
DstBlock "MAS"
DstPort 2
}
Branch {
DstBlock "vqs"
DstPort 1
}
}
Line {
SrcBlock "va"
SrcPort 1
Points [0, 10]
DstBlock "park"
DstPort 1
}
Line {
SrcBlock "vb"
SrcPort 1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -