📄 acdc_test4.mdl
字号:
FunctionWithSeparateData off
MaskHideContents off
MaskType "DC Voltage Regulator"
MaskPromptString "DC voltage setpoint (pu):|Nominal Voltage and "
"Current: [ Vnom (volts) Inom (A) ]"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskToolTipString "on,on"
MaskVarAliasString ","
MaskVariables "Vd_Ref=@1;Par_Nom=@2;"
MaskInitialization "Vnorm=Par_Nom(1);\nInorm=Par_Nom(2);\n"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "982/537/sqrt(3)|[537 1980]"
MaskTabNameString ","
System {
Name "DC Regulator"
Location [2, 82, 1014, 721]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "Vabc_A"
Position [145, 143, 175, 157]
BackgroundColor "yellow"
IconDisplay "Port number"
PortDimensions "3"
}
Block {
BlockType Inport
Name "Iabc_A"
Position [150, 193, 180, 207]
BackgroundColor "yellow"
Port "2"
IconDisplay "Port number"
PortDimensions "3"
}
Block {
BlockType Inport
Name "Vabc_B"
Position [150, 243, 180, 257]
BackgroundColor "yellow"
Port "3"
IconDisplay "Port number"
PortDimensions "3"
}
Block {
BlockType Inport
Name "Iabc_B"
Position [150, 293, 180, 307]
BackgroundColor "yellow"
Port "4"
IconDisplay "Port number"
PortDimensions "3"
}
Block {
BlockType Inport
Name "Vdc"
Position [150, 343, 180, 357]
BackgroundColor "yellow"
Port "5"
IconDisplay "Port number"
PortDimensions "1"
}
Block {
BlockType SubSystem
Name "Average "
Ports [5, 5]
Position [410, 126, 500, 374]
BackgroundColor "yellow"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskType "Anti-aliasing (1st order lowpass)"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Average "
Location [2, 82, 1014, 721]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "Vabc_A"
Position [45, 73, 75, 87]
IconDisplay "Port number"
PortDimensions "3"
}
Block {
BlockType Inport
Name "Iabc_A "
Position [50, 203, 80, 217]
Port "2"
IconDisplay "Port number"
PortDimensions "3"
}
Block {
BlockType Inport
Name "Vabc_B"
Position [55, 328, 85, 342]
Port "3"
IconDisplay "Port number"
PortDimensions "3"
}
Block {
BlockType Inport
Name "Iabc_B"
Position [50, 453, 80, 467]
Port "4"
IconDisplay "Port number"
PortDimensions "3"
}
Block {
BlockType Inport
Name "Vdc"
Position [50, 543, 80, 557]
Port "5"
IconDisplay "Port number"
PortDimensions "1"
}
Block {
BlockType SubSystem
Name "Subsystem1"
Ports [1, 1]
Position [210, 49, 250, 111]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "Subsystem1"
Location [2, 82, 1014, 721]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins "[0.500000, 0.500000, 0.500000, 0.5000"
"00]"
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "in"
Position [25, 188, 55, 202]
IconDisplay "Port number"
PortDimensions "3"
}
Block {
BlockType Demux
Name "Demux2"
Ports [1, 3]
Position [80, 158, 85, 232]
BackgroundColor "black"
ShowName off
Outputs "3"
}
Block {
BlockType Reference
Name "Downsample"
Ports [1, 1]
Position [440, 68, 480, 102]
SourceBlock "dspsigops/Downsample"
SourceType "Downsample"
N "3"
phase "0"
ic "0"
smode "Allow multirate"
fmode "Maintain input frame rate"
}
Block {
BlockType Reference
Name "Downsample1"
Ports [1, 1]
Position [440, 193, 480, 227]
SourceBlock "dspsigops/Downsample"
SourceType "Downsample"
N "3"
phase "0"
ic "0"
smode "Allow multirate"
fmode "Maintain input frame rate"
}
Block {
BlockType Reference
Name "Downsample2"
Ports [1, 1]
Position [440, 318, 480, 352]
SourceBlock "dspsigops/Downsample"
SourceType "Downsample"
N "3"
phase "0"
ic "0"
smode "Allow multirate"
fmode "Maintain input frame rate"
}
Block {
BlockType Gain
Name "Gain"
Position [385, 70, 415, 100]
Gain "1/3"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain1"
Position [385, 195, 415, 225]
Gain "1/3"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain2"
Position [385, 320, 415, 350]
Gain "1/3"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Mux
Name "Mux4"
Ports [3, 1]
Position [530, 173, 535, 247]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Sum
Name "Sum1"
Ports [3, 1]
Position [330, 28, 350, 142]
ShowName off
Inputs "|+++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum2"
Ports [3, 1]
Position [330, 153, 350, 267]
ShowName off
Inputs "|+++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum3"
Ports [3, 1]
Position [330, 278, 350, 392]
ShowName off
Inputs "|+++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType UnitDelay
Name "Unit Delay1"
Position [135, 178, 160, 212]
SampleTime "-1"
}
Block {
BlockType UnitDelay
Name "Unit Delay2"
Position [135, 53, 160, 87]
SampleTime "-1"
}
Block {
BlockType UnitDelay
Name "Unit Delay3"
Position [225, 53, 250, 87]
SampleTime "-1"
}
Block {
BlockType UnitDelay
Name "Unit Delay4"
Position [225, 178, 250, 212]
SampleTime "-1"
}
Block {
BlockType UnitDelay
Name "Unit Delay5"
Position [135, 303, 160, 337]
SampleTime "-1"
}
Block {
BlockType UnitDelay
Name "Unit Delay6"
Position [225, 303, 250, 337]
SampleTime "-1"
}
Block {
BlockType Outport
Name "out"
Position [550, 203, 580, 217]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Mux4"
SrcPort 1
Points [0, 0]
DstBlock "out"
DstPort 1
}
Line {
SrcBlock "Downsample2"
SrcPort 1
Points [15, 0; 0, -100]
DstBlock "Mux4"
DstPort 3
}
Line {
SrcBlock "Downsample"
SrcPort 1
Points [15, 0; 0, 100]
DstBlock "Mux4"
DstPort 1
}
Line {
SrcBlock "Downsample1"
SrcPort 1
Points [0, 0]
DstBlock "Mux4"
DstPort 2
}
Line {
SrcBlock "in"
SrcPort 1
Points [0, 0]
DstBlock "Demux2"
DstPort 1
}
Line {
SrcBlock "Demux2"
SrcPort 1
Points [15, 0; 0, -40]
Branch {
DstBlock "Sum1"
DstPort 3
}
Branch {
Points [0, -60]
DstBlock "Unit Delay2"
DstPort 1
}
}
Line {
SrcBlock "Demux2"
SrcPort 3
Points [5, 0; 0, 100]
Branch {
Points [0, 60]
DstBlock "Sum3"
DstPort 3
}
Branch {
DstBlock "Unit Delay5"
DstPort 1
}
}
Line {
SrcBlock "Gain2"
SrcPort 1
DstBlock "Downsample2"
DstPort 1
}
Line {
SrcBlock "Sum3"
SrcPort 1
DstBlock "Gain2"
DstPort 1
}
Line {
SrcBlock "Unit Delay6"
SrcPort 1
DstBlock "Sum3"
DstPort 1
}
Line {
SrcBlock "Unit Delay5"
SrcPort 1
Points [0, 0; 30, 0]
Branch {
Points [0, 30]
DstBlock "Sum3"
DstPort 2
}
Branch {
DstBlock "Unit Delay6"
DstPort 1
}
}
Line {
SrcBlock "Demux2"
SrcPort 2
Points [0, 0; 25, 0]
Branch {
Points [0, 60]
DstBlock "Sum2"
DstPort 3
}
Branch {
DstBlock "Unit Delay1"
DstPort 1
}
}
Line {
SrcBlock "Gain1"
SrcPort 1
DstBlock "Downsample1"
DstPort 1
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "Gain1"
DstPort 1
}
Line {
SrcBlock "Unit Delay4"
SrcPort 1
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Unit Delay1"
SrcPort 1
Points [0, 0; 30, 0]
Branch {
DstBlock "Unit Delay4"
DstPort 1
}
Branch {
Points [0, 30]
DstBlock "Sum2"
DstPort 2
}
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Downsample"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Unit Delay3"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Unit Delay2"
SrcPort 1
Points [30, 0]
Branch {
DstBlock "Unit Delay3"
DstPort 1
}
Branch {
Points [0, 30]
DstBlock "Sum1"
DstPort 2
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -