📄 dqtransform.mdl
字号:
Ports [2, 1]
Position [150, 107, 180, 143]
NamePlacement "alternate"
SourceBlock "simulink/Signal\nRouting/Manual Switch"
SourceType "Manual Switch"
sw "0"
action "0"
}
Block {
BlockType Reference
Name "Manual Switch2"
Ports [2, 1]
Position [130, 217, 160, 253]
SourceBlock "simulink/Signal\nRouting/Manual Switch"
SourceType "Manual Switch"
sw "1"
action "0"
}
Block {
BlockType Mux
Name "Mux3"
Ports [3, 1]
Position [425, 98, 430, 222]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux4"
Ports [3, 1]
Position [545, 105, 550, 215]
BackgroundColor "black"
ShowName off
Inputs "3"
DisplayOption "bar"
Port {
PortNumber 1
Name "ABC"
PropagatedSignals ", , "
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Sin
Name "Sine Wave"
Position [80, 55, 110, 85]
ForegroundColor "orange"
NamePlacement "alternate"
SineType "Time based"
Amplitude ".2"
Frequency "7"
SampleTime "0"
}
Block {
BlockType SubSystem
Name "ab2dq"
Ports [2, 1]
Position [685, 143, 745, 212]
TreatAsAtomicUnit off
Port {
PortNumber 1
Name "dq"
PropagatedSignals ", "
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
System {
Name "ab2dq"
Location [241, 522, 648, 778]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "ab"
Position [20, 77, 50, 93]
}
Block {
BlockType Inport
Name "phi"
Position [20, 112, 50, 128]
Port "2"
}
Block {
BlockType Fcn
Name "Fcn"
Position [150, 16, 300, 64]
ShowName off
Expr "u(1)*cos(u(3))+u(2)*sin(u(3))"
}
Block {
BlockType Fcn
Name "Fcn1"
Position [150, 185, 310, 225]
ShowName off
Expr "-u(1)*sin(u(3))+u(2)*cos(u(3))"
}
Block {
BlockType Mux
Name "Mux3"
Ports [2, 1]
Position [125, 12, 130, 63]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux4"
Ports [2, 1]
Position [125, 177, 130, 228]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux5"
Ports [2, 1]
Position [340, 106, 345, 139]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Outport
Name "dq"
Position [370, 118, 400, 132]
}
Line {
SrcBlock "Mux3"
SrcPort 1
DstBlock "Fcn"
DstPort 1
}
Line {
SrcBlock "Mux4"
SrcPort 1
DstBlock "Fcn1"
DstPort 1
}
Line {
SrcBlock "ab"
SrcPort 1
Points [15, 0; 0, 0]
Branch {
Points [0, -60]
DstBlock "Mux3"
DstPort 1
}
Branch {
Points [0, 105]
DstBlock "Mux4"
DstPort 1
}
}
Line {
SrcBlock "phi"
SrcPort 1
Points [125, 0]
Branch {
Points [0, -35; -80, 0; 0, -35]
DstBlock "Mux3"
DstPort 2
}
Branch {
Points [0, 40; -80, 0; 0, 55]
DstBlock "Mux4"
DstPort 2
}
}
Line {
SrcBlock "Fcn1"
SrcPort 1
Points [10, 0]
DstBlock "Mux5"
DstPort 2
}
Line {
SrcBlock "Fcn"
SrcPort 1
Points [20, 0]
DstBlock "Mux5"
DstPort 1
}
Line {
SrcBlock "Mux5"
SrcPort 1
DstBlock "dq"
DstPort 1
}
}
}
Block {
BlockType Constant
Name "phase"
Position [345, 185, 375, 215]
ForegroundColor "orange"
Value "0"
}
Block {
BlockType Scope
Name "signals"
Ports [3]
Position [810, 41, 840, 99]
ForegroundColor "darkGreen"
NamePlacement "alternate"
Location [661, 104, 1120, 803]
Open on
NumInputPorts "3"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "ABC"
axes2 "ab"
axes3 "dq"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
axes3 ""
}
TimeRange "1"
YMin "-0.2~-0.2~-0.2"
YMax "0.2~0.2~0.2"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Step
Name "step"
Position [85, 120, 115, 150]
ForegroundColor "orange"
NamePlacement "alternate"
Time ".2"
Before "1"
After "5/6"
SampleTime "0"
}
Line {
Name "dq"
Labels [0, 0; 3, 0]
SrcBlock "ab2dq"
SrcPort 1
Points [10, 0; 0, -90]
DstBlock "signals"
DstPort 3
}
Line {
Name "ABC"
Labels [0, 0]
SrcBlock "Mux4"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
DstBlock "ABC2ab"
DstPort 1
}
Branch {
Labels [2, 0]
Points [0, -110]
DstBlock "signals"
DstPort 1
}
}
Line {
SrcBlock "Fcn"
SrcPort 1
DstBlock "Mux4"
DstPort 1
}
Line {
SrcBlock "Fcn1"
SrcPort 1
DstBlock "Mux4"
DstPort 2
}
Line {
SrcBlock "Fcn2"
SrcPort 1
DstBlock "Mux4"
DstPort 3
}
Line {
Name "ab"
Labels [0, 0]
SrcBlock "ABC2ab"
SrcPort 1
Points [-5, 0; 20, 0]
Branch {
DstBlock "ab2dq"
DstPort 1
}
Branch {
Labels [2, 0]
Points [0, -90]
DstBlock "signals"
DstPort 2
}
}
Line {
SrcBlock "Base\nfrequency"
SrcPort 1
DstBlock "Integrator"
DstPort 1
}
Line {
Name "phi"
Labels [2, 0]
SrcBlock "Integrator"
SrcPort 1
Points [0, 0; 30, 0]
Branch {
DstBlock "Mux3"
DstPort 2
}
Branch {
Points [0, 85; 250, 0; 0, -50]
DstBlock "ab2dq"
DstPort 2
}
}
Line {
SrcBlock "Mux3"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
DstBlock "Fcn1"
DstPort 1
}
Branch {
Points [0, -35]
DstBlock "Fcn"
DstPort 1
}
Branch {
Points [0, 35]
DstBlock "Fcn2"
DstPort 1
}
}
Line {
SrcBlock "Base \namplitude"
SrcPort 1
DstBlock "Mux3"
DstPort 1
}
Line {
SrcBlock "phase"
SrcPort 1
DstBlock "Mux3"
DstPort 3
}
Line {
SrcBlock "Clock3"
SrcPort 1
DstBlock " ramp "
DstPort 1
}
Line {
SrcBlock "Manual Switch"
SrcPort 1
Points [5, 0; 0, -30]
Branch {
Points [0, -40]
DstBlock "Base \namplitude"
DstPort 1
}
Branch {
DstBlock "Base\nfrequency"
DstPort 1
}
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
Points [20, 0]
DstBlock "Manual Switch1"
DstPort 1
}
Line {
SrcBlock "step"
SrcPort 1
DstBlock "Manual Switch1"
DstPort 2
}
Line {
SrcBlock "Manual Switch1"
SrcPort 1
Points [0, 55]
DstBlock "Manual Switch"
DstPort 1
}
Line {
SrcBlock "Clock1"
SrcPort 1
DstBlock " pulse"
DstPort 1
}
Line {
SrcBlock " ramp "
SrcPort 1
Points [20, 0]
DstBlock "Manual Switch2"
DstPort 1
}
Line {
SrcBlock " pulse"
SrcPort 1
Points [15, 0]
DstBlock "Manual Switch2"
DstPort 2
}
Line {
SrcBlock "Manual Switch2"
SrcPort 1
Points [25, 0; 0, -35]
DstBlock "Manual Switch"
DstPort 2
}
Annotation {
Name "Variable-amplitude variable- frequency\n sinuso"
"idal signals"
Position [289, 34]
ForegroundColor "red"
FontName "Arial"
FontSize 14
FontWeight "bold"
}
Annotation {
Name "3_phase"
Position [604, 63]
ForegroundColor "blue"
FontName "Arial"
FontSize 12
FontWeight "bold"
}
Annotation {
Name "2_phase"
Position [690, 81]
ForegroundColor "blue"
FontName "Arial"
FontSize 12
FontWeight "bold"
}
Annotation {
Name "dq"
Position [782, 113]
ForegroundColor "blue"
FontName "Arial"
FontSize 12
FontWeight "bold"
}
Annotation {
Name "per unit"
Position [114, 177]
FontName "Arial"
FontSize 12
FontWeight "bold"
}
Annotation {
Name "SYNCHRONOUS \nFRAME"
Position [809, 133]
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -