📄 im_scalarcontrol.mdl
字号:
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux1"
Ports [2, 1]
Position [460, 381, 465, 419]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux2"
Ports [2, 1]
Position [735, 426, 740, 464]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux3"
Ports [2, 1]
Position [755, 586, 760, 624]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType RealImagToComplex
Name "Real-Imag to\nComplex"
Ports [2, 1]
Position [130, 219, 165, 261]
ShowName off
}
Block {
BlockType RealImagToComplex
Name "Real-Imag to\nComplex1"
Ports [2, 1]
Position [130, 344, 165, 386]
ShowName off
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [910, 429, 940, 461]
ShowName off
Floating off
Location [137, 318, 926, 763]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "-90"
YMax "140"
SaveName "ScopeData9"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [800, 589, 830, 621]
ShowName off
Floating off
Location [20, 325, 809, 770]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "-90"
YMax "140"
SaveName "ScopeData5"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope2"
Ports [1]
Position [395, 579, 425, 611]
Orientation "left"
BackgroundColor "yellow"
NamePlacement "alternate"
ShowName off
Floating off
Location [20, 325, 809, 770]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "-90"
YMax "140"
SaveName "ScopeData10"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope4"
Ports [1]
Position [670, 204, 700, 236]
Orientation "left"
NamePlacement "alternate"
ShowName off
Floating off
Location [412, 395, 1186, 810]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "0.2881844380403459"
YMin "158.3"
YMax "159.4"
SaveName "ScopeData21"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope6"
Ports [1]
Position [790, 244, 820, 276]
ShowName off
Floating off
Location [428, 395, 1186, 841]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "0.2881844380403459"
YMin "0.940831"
YMax "1.03987"
SaveName "ScopeData6"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [275, 230, 295, 250]
ShowName off
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [675, 540, 695, 560]
ShowName off
IconShape "round"
Inputs "++|"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Terminator
Name "Terminator1"
Position [375, 385, 395, 405]
ShowName off
}
Block {
BlockType Reference
Name "XY Graph"
Ports [2]
Position [790, 54, 820, 96]
ShowName off
SourceBlock "simulink/Sinks/XY Graph"
SourceType "XY scope."
ShowPortLabels on
xmin "-1.5"
xmax "1.5"
ymin "-1.5"
ymax "1.5"
st "-1"
}
Block {
BlockType Outport
Name "theta_se"
Position [795, 543, 825, 557]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Use"
Position [790, 188, 820, 202]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Complex to\nMagnitude-Angle"
SrcPort 1
Points [0, 0; 60, 0]
Branch {
DstBlock "Divide"
DstPort 1
}
Branch {
Points [0, -35]
Branch {
Points [0, -35]
DstBlock "Mag. of voltage vector Use"
DstPort 1
}
Branch {
Points [250, 0]
Branch {
DstBlock "Use"
DstPort 1
}
Branch {
Points [0, 25]
DstBlock "Scope4"
DstPort 1
}
}
}
}
Line {
SrcBlock "Cal Omega"
SrcPort 1
Points [0, 0; 310, 0]
Branch {
DstBlock "Divide"
DstPort 2
}
Branch {
Points [0, -185]
Branch {
DstBlock "Divide2"
DstPort 2
}
Branch {
Points [0, -50]
DstBlock "Divide1"
DstPort 2
}
}
}
Line {
SrcBlock "fs_in"
SrcPort 1
DstBlock "Cal Omega"
DstPort 1
}
Line {
SrcBlock "Complex to\nReal-Imag"
SrcPort 1
DstBlock "Divide1"
DstPort 1
}
Line {
SrcBlock "Complex to\nReal-Imag"
SrcPort 2
DstBlock "Divide2"
DstPort 1
}
Line {
SrcBlock "Divide1"
SrcPort 1
Points [15, 0; 0, 15]
DstBlock "XY Graph"
DstPort 1
}
Line {
SrcBlock "Divide2"
SrcPort 1
Points [15, 0; 0, -15]
DstBlock "XY Graph"
DstPort 2
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Cal PF angle"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
DstBlock "Display"
DstPort 1
}
Branch {
DstBlock "Scope"
DstPort 1
}
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "Cal agl (Us, Use)"
DstPort 1
}
Line {
SrcBlock "Mux2"
SrcPort 1
DstBlock "Gain1"
DstPort 1
}
Line {
SrcBlock "Cal PF angle"
SrcPort 1
DstBlock "Agl shift 2"
DstPort 1
}
Line {
SrcBlock "Cal agl (Us, Use)"
SrcPort 1
DstBlock "Agl shift 1"
DstPort 1
}
Line {
SrcBlock "Divide"
SrcPort 1
DstBlock "Scope6"
DstPort 1
}
Line {
SrcBlock "Gain2"
SrcPort 1
Points [25, 0; 15, 0]
Branch {
DstBlock "Sum"
DstPort 2
}
Branch {
DstBlock "Complex to\nMagnitude-Angle3"
DstPort 1
}
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [0, 0; 25, 0]
Branch {
DstBlock "Complex to\nMagnitude-Angle"
DstPort 1
}
Branch {
Points [0, -175]
DstBlock "Complex to\nReal-Imag"
DstPort 1
}
}
Line {
SrcBlock "Complex to\nMagnitude-Angle1"
SrcPort 1
DstBlock "Terminator1"
DstPort 1
}
Line {
SrcBlock "Complex to\nMagnitude-Angle1"
SrcPort 2
Points [0, 0; 75, 0]
Branch {
Points [0, 35]
DstBlock "Mux"
DstPort 1
}
Branch {
DstBlock "Mux1"
DstPort 2
}
}
Line {
SrcBlock "Complex to\nMagnitude-Angle3"
SrcPort 1
DstBlock "Gain3"
DstPort 1
}
Line {
SrcBlock "Complex to\nMagnitude-Angle3"
SrcPort 2
Points [60, 0; 0, 95]
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Agl shift 1"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
Points [35, 0]
DstBlock "Mux2"
DstPort 1
}
Branch {
DstBlock "Sum1"
DstPort 1
}
}
Line {
SrcBlock "Agl shift 2"
SrcPort 1
DstBlock "Mux2"
DstPort 2
}
Line {
SrcBlock "theta_s"
SrcPort 1
Points [0, 0; 540, 0]
Branch {
DstBlock "Sum1"
DstPort 2
}
Branch {
Points [0, 65]
DstBlock "Mux3"
DstPort 2
}
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
DstBlock "theta_se"
DstPort 1
}
Branch {
Points [0, 45]
Branch {
DstBlock "Mux3"
DstPort 1
}
Branch {
DstBlock "Derivative"
DstPort 1
}
}
}
Line {
SrcBlock "Uab"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 1
DstBlock "Real-Imag to\nComplex"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 2
DstBlock "Real-Imag to\nComplex"
DstPort 2
}
Line {
SrcBlock "Real-Imag to\nComplex"
SrcPort 1
Points [0, 0; 80, 0]
Branch {
DstBlock "Sum"
DstPort 1
}
Branch {
Points [0, 165]
DstBlock "Complex to\nMagnitude-Angle1"
DstPort 1
}
}
Line {
SrcBlock "Demux1"
SrcPort 1
DstBlock "Real-Imag to\nComplex1"
DstPort 1
}
Line {
SrcBlock "iab"
SrcPort 1
DstBlock "Demux1"
DstPort 1
}
Line {
SrcBlock "Real-Imag to\nComplex1"
SrcPort 1
DstBlock "Gain2"
DstPort 1
}
Line {
SrcBlock "Demux1"
SrcPort 2
DstBlock "Real-Imag to\nComplex1"
DstPort 2
}
Line {
SrcBlock "Mux3"
SrcPort 1
DstBlock "Scope1"
DstPort 1
}
Line {
SrcBlock "Complex to\nMagnitude-Angle"
SrcPort 2
Points [35, 0]
DstBlock "Mux1"
DstPort 1
}
Line {
SrcBlock "Derivative"
SrcPort 1
DstBlock "Scope2"
DstPort 1
}
Line {
SrcBlock "Gain3"
SrcPort 1
DstBlock "Mag. of current vector"
DstPort 1
}
Annotation {
Name "Use"
Position [347, 231]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "Omega_Use"
Position [534, 583]
UseDisplayTextAsClickCallback off
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -