power_3levelvsc.mdl
来自「三电平异步电机控制程序」· MDL 代码 · 共 2,135 行 · 第 1/5 页
MDL
2,135 行
FunctionWithSeparateData off
MaskHideContents off
MaskType "Anti-aliasing (2nd order lowpass)"
MaskPromptString "Cut-off frequency (Hz):|Sample time:"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskToolTipString "on,on"
MaskVarAliasString ","
MaskVariables "Fc=@1;Ts=@2;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "750|Ts_Power"
MaskTabNameString ","
System {
Name "Anti-aliasing\nFilters (7)"
Location [295, 108, 764, 755]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "Vabc"
Position [50, 108, 80, 122]
IconDisplay "Port number"
PortDimensions "3"
}
Block {
BlockType Inport
Name "Iabc "
Position [50, 348, 80, 362]
Port "2"
IconDisplay "Port number"
PortDimensions "3"
}
Block {
BlockType Inport
Name "Vdc "
Position [45, 538, 75, 552]
Port "3"
IconDisplay "Port number"
PortDimensions "1"
}
Block {
BlockType Reference
Name "2nd-Order\nFilter"
Ports [1, 1]
Position [190, 25, 245, 65]
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib_extras/Discrete \nControl Bloc"
"ks/Discrete \n2nd-Order\nFilter"
SourceType "Discrete 2nd-Order Filter"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
FilterType "Lowpass"
Fo "Fc"
Zeta "0.707"
Ts "Ts"
Initialize off
Vac_Init "[0.8 -25 60]"
Vdc_Init "-0.4"
PlotResponse off
param1 "[1 2000 0.2]"
}
Block {
BlockType Reference
Name "2nd-Order\nFilter1"
Ports [1, 1]
Position [190, 95, 245, 135]
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib_extras/Discrete \nControl Bloc"
"ks/Discrete \n2nd-Order\nFilter"
SourceType "Discrete 2nd-Order Filter"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
FilterType "Lowpass"
Fo "Fc"
Zeta "0.707"
Ts "Ts"
Initialize off
Vac_Init "[0.8 -25 60]"
Vdc_Init "-0.4"
PlotResponse off
param1 "[1 5000 0.1]"
}
Block {
BlockType Reference
Name "2nd-Order\nFilter2"
Ports [1, 1]
Position [190, 170, 245, 210]
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib_extras/Discrete \nControl Bloc"
"ks/Discrete \n2nd-Order\nFilter"
SourceType "Discrete 2nd-Order Filter"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
FilterType "Lowpass"
Fo "Fc"
Zeta "0.707"
Ts "Ts"
Initialize off
Vac_Init "[0.8 -25 60]"
Vdc_Init "-0.4"
PlotResponse off
param1 "[1 5000 0.1]"
}
Block {
BlockType Reference
Name "2nd-Order\nFilter3"
Ports [1, 1]
Position [190, 270, 245, 310]
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib_extras/Discrete \nControl Bloc"
"ks/Discrete \n2nd-Order\nFilter"
SourceType "Discrete 2nd-Order Filter"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
FilterType "Lowpass"
Fo "Fc"
Zeta "0.707"
Ts "Ts"
Initialize off
Vac_Init "[0.8 -25 60]"
Vdc_Init "-0.4"
PlotResponse off
param1 "[1 2000 0.2]"
}
Block {
BlockType Reference
Name "2nd-Order\nFilter4"
Ports [1, 1]
Position [190, 340, 245, 380]
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib_extras/Discrete \nControl Bloc"
"ks/Discrete \n2nd-Order\nFilter"
SourceType "Discrete 2nd-Order Filter"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
FilterType "Lowpass"
Fo "Fc"
Zeta "0.707"
Ts "Ts"
Initialize off
Vac_Init "[0.8 -25 60]"
Vdc_Init "-0.4"
PlotResponse off
param1 "[1 5000 0.1]"
}
Block {
BlockType Reference
Name "2nd-Order\nFilter5"
Ports [1, 1]
Position [190, 415, 245, 455]
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib_extras/Discrete \nControl Bloc"
"ks/Discrete \n2nd-Order\nFilter"
SourceType "Discrete 2nd-Order Filter"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
FilterType "Lowpass"
Fo "Fc"
Zeta "0.707"
Ts "Ts"
Initialize off
Vac_Init "[0.8 -25 60]"
Vdc_Init "-0.4"
PlotResponse off
param1 "[1 5000 0.1]"
}
Block {
BlockType Reference
Name "2nd-Order\nFilter6"
Ports [1, 1]
Position [185, 525, 240, 565]
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib_extras/Discrete \nControl Bloc"
"ks/Discrete \n2nd-Order\nFilter"
SourceType "Discrete 2nd-Order Filter"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
FilterType "Lowpass"
Fo "Fc"
Zeta "0.707"
Ts "Ts"
Initialize off
Vac_Init "[0.8 -25 60]"
Vdc_Init "-0.4"
PlotResponse off
param1 "[1 5000 0.1]"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 3]
Position [125, 78, 130, 152]
BackgroundColor "black"
ShowName off
Outputs "3"
}
Block {
BlockType Demux
Name "Demux1"
Ports [1, 3]
Position [125, 323, 130, 397]
BackgroundColor "black"
ShowName off
Outputs "3"
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [305, 78, 310, 152]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux1"
Ports [3, 1]
Position [305, 323, 310, 397]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Outport
Name " Vabc*"
Position [350, 108, 380, 122]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Iabc*"
Position [350, 348, 380, 362]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name " Vdc*"
Position [360, 538, 390, 552]
Port "3"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Mux1"
SrcPort 1
Points [10, 0; 0, -5]
DstBlock "Iabc*"
DstPort 1
}
Line {
SrcBlock "Demux1"
SrcPort 2
DstBlock "2nd-Order\nFilter4"
DstPort 1
}
Line {
SrcBlock "Demux1"
SrcPort 3
Points [40, 0]
DstBlock "2nd-Order\nFilter5"
DstPort 1
}
Line {
SrcBlock "2nd-Order\nFilter5"
SrcPort 1
Points [40, 0]
DstBlock "Mux1"
DstPort 3
}
Line {
SrcBlock "2nd-Order\nFilter4"
SrcPort 1
DstBlock "Mux1"
DstPort 2
}
Line {
SrcBlock "2nd-Order\nFilter3"
SrcPort 1
Points [40, 0]
DstBlock "Mux1"
DstPort 1
}
Line {
SrcBlock "Demux1"
SrcPort 1
Points [25, 0; 0, -45]
DstBlock "2nd-Order\nFilter3"
DstPort 1
}
Line {
SrcBlock "Iabc "
SrcPort 1
Points [20, 0; 0, 5]
DstBlock "Demux1"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 2
DstBlock "2nd-Order\nFilter1"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 3
Points [40, 0]
DstBlock "2nd-Order\nFilter2"
DstPort 1
}
Line {
SrcBlock "2nd-Order\nFilter2"
SrcPort 1
Points [40, 0]
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "2nd-Order\nFilter1"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "2nd-Order\nFilter6"
SrcPort 1
DstBlock " Vdc*"
DstPort 1
}
Line {
SrcBlock "Vdc "
SrcPort 1
DstBlock "2nd-Order\nFilter6"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock " Vabc*"
DstPort 1
}
Line {
SrcBlock "2nd-Order\nFilter"
SrcPort 1
Points [40, 0]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Vabc"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 1
Points [25, 0; 0, -45]
DstBlock "2nd-Order\nFilter"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Controller"
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?