igrun.mdl
来自「关于电机的.m程序」· MDL 代码 · 共 2,708 行 · 第 1/5 页
MDL
2,708 行
MaskValueString "2.5|0.5|.4"
Port {
PortNumber 1
Name "wm"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
System {
Name "Mechanical system"
Location [137, 478, 749, 709]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Tw"
Position [35, 47, 65, 63]
}
Block {
BlockType Inport
Name "Te"
Position [35, 138, 65, 152]
Port "2"
}
Block {
BlockType Inport
Name "wmo"
Position [35, 92, 65, 108]
Port "3"
}
Block {
BlockType Gain
Name "1/2H"
Position [170, 37, 230, 73]
NamePlacement "alternate"
ShowName off
FontWeight "bold"
Gain "0.5/Hw"
}
Block {
BlockType Gain
Name "1/2H1"
Position [165, 127, 225, 163]
NamePlacement "alternate"
ShowName off
FontWeight "bold"
Gain ".5/Hg"
}
Block {
BlockType Gain
Name "1/2H2"
Position [460, 89, 515, 121]
NamePlacement "alternate"
ShowName off
FontWeight "bold"
Gain "Km"
}
Block {
BlockType Gain
Name "Gain1"
Position [330, 51, 350, 79]
ShowName off
Gain "2*pi*60"
}
Block {
BlockType Gain
Name "Gain2"
Position [335, 141, 355, 169]
ShowName off
Gain "2*pi*60"
}
Block {
BlockType Integrator
Name "Integrator1"
Ports [2, 1]
Position [270, 137, 300, 168]
ShowName off
InitialConditionSource "external"
InitialCondition "wmo"
}
Block {
BlockType Integrator
Name "Integrator2"
Ports [2, 1]
Position [270, 47, 300, 78]
ShowName off
InitialConditionSource "external"
InitialCondition "wmo"
Port {
PortNumber 1
Name "wt"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Integrator
Name "Integrator3"
Ports [1, 1]
Position [385, 49, 415, 81]
ShowName off
}
Block {
BlockType Integrator
Name "Integrator4"
Ports [1, 1]
Position [385, 139, 415, 171]
ShowName off
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [120, 45, 140, 65]
ShowName off
IconShape "round"
Inputs "+-|"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [120, 135, 140, 155]
ShowName off
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum3"
Ports [2, 1]
Position [420, 95, 440, 115]
ShowName off
IconShape "round"
Inputs "-+"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Outport
Name "wm"
Position [555, 178, 585, 192]
}
Line {
SrcBlock "Tw"
SrcPort 1
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "1/2H"
DstPort 1
}
Line {
SrcBlock "Te"
SrcPort 1
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "1/2H"
SrcPort 1
DstBlock "Integrator2"
DstPort 1
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "1/2H1"
DstPort 1
}
Line {
SrcBlock "1/2H1"
SrcPort 1
DstBlock "Integrator1"
DstPort 1
}
Line {
SrcBlock "Integrator3"
SrcPort 1
Points [10, 0]
DstBlock "Sum3"
DstPort 1
}
Line {
SrcBlock "Sum3"
SrcPort 1
DstBlock "1/2H2"
DstPort 1
}
Line {
SrcBlock "1/2H2"
SrcPort 1
Points [10, 0]
Branch {
Points [0, -85; -400, 0]
DstBlock "Sum1"
DstPort 1
}
Branch {
Points [0, 110; -400, 0]
DstBlock "Sum2"
DstPort 2
}
}
Line {
SrcBlock "Gain1"
SrcPort 1
DstBlock "Integrator3"
DstPort 1
}
Line {
Name "wt"
Labels [1, 0]
SrcBlock "Integrator2"
SrcPort 1
DstBlock "Gain1"
DstPort 1
}
Line {
SrcBlock "Gain2"
SrcPort 1
DstBlock "Integrator4"
DstPort 1
}
Line {
SrcBlock "Integrator4"
SrcPort 1
Points [10, 0]
DstBlock "Sum3"
DstPort 2
}
Line {
SrcBlock "Integrator1"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Gain2"
DstPort 1
}
Branch {
Points [0, 30]
DstBlock "wm"
DstPort 1
}
}
Line {
SrcBlock "wmo"
SrcPort 1
Points [175, 0]
Branch {
Points [0, -30]
DstBlock "Integrator2"
DstPort 2
}
Branch {
Points [0, 60]
DstBlock "Integrator1"
DstPort 2
}
}
Annotation {
Name "wm"
Position [315, 142]
}
}
}
Block {
BlockType Mux
Name "Mux1"
Ports [2, 1]
Position [845, 106, 850, 144]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux2"
Ports [2, 1]
Position [940, 41, 945, 79]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux3"
Ports [2, 1]
Position [470, 479, 475, 561]
ShowName off
Inputs "2"
DisplayOption "bar"
Port {
PortNumber 1
Name "Vr"
PropagatedSignals "vrd, vrq"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Scope
Name "Pr"
Ports [1]
Position [1110, 378, 1140, 422]
NamePlacement "alternate"
Location [694, 580, 1131, 827]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "Pr [pu]"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "30"
YMin "-0.8"
YMax "0.6"
SaveName "ScopeData5"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Scope
Name "Ps"
Ports [1]
Position [1100, 213, 1130, 257]
NamePlacement "alternate"
Location [694, 567, 1147, 761]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "Ps [pu]"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "30"
YMin "-2"
YMax "2"
SaveName "ScopeData2"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Scope
Name "Qr"
Ports [1]
Position [1110, 443, 1140, 487]
Location [706, 603, 1143, 827]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "Qr [pu]"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "30"
YMin "-1"
YMax "1"
SaveName "ScopeData6"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Scope
Name "Qs"
Ports [1]
Position [1105, 268, 1135, 312]
Location [679, 463, 1116, 653]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "Qs [pu]"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "30"
YMin "-3"
YMax "1"
SaveName "ScopeData3"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Lookup
Name "Qsref"
Position [80, 526, 115, 564]
BackgroundColor "yellow"
NamePlacement "alternate"
FontWeight "bold"
InputValues "[0 5 5.01 30 ] "
OutputValues "[0 0 -.5 -.5 ]"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [265, 450, 285, 470]
ShowName off
IconShape "round"
Inputs "-+|"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [265, 535, 285, 555]
ShowName off
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum4"
Ports [2, 1]
Position [435, 330, 455, 350]
ShowName off
IconShape "round"
Inputs "|+-"
}
Block {
BlockType Lookup
Name "Tw"
Position [90, 166, 125, 204]
BackgroundColor "yellow"
NamePlacement "alternate"
FontWeight "bold"
InputValues "[0 5 5.01 30 ] "
OutputValues "[0 0 -1 -1]"
}
Block {
BlockType Scope
Name "Vabc_r"
Ports [1]
Position [1110, 538, 1145, 592]
ForegroundColor "red"
Location [18, 77, 505, 333]
Open on
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "Var Vbr Vcr"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "30"
YMin "-0.8"
YMax "0.8"
SaveName "ScopeData11"
DataFormat "StructureWithTime"
LimitDataPoints off
MaxDataPoints "20000"
}
Block {
BlockType Scope
Name "Vr"
Ports [1]
Position [765, 538, 795, 582]
NamePlacement "alternate"
Location [700, 182, 1137, 466]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "Vrd Vrq [pu]"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "30"
YMin "-0.8"
YMax "0.6"
SaveName "ScopeData10"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Scope
Name "Vr1"
Ports [2]
Position [765, 588, 795, 632]
Location [706, 431, 1143, 829]
Open on
NumInputPorts "2"
ZoomMode "xonly"
List {
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?