📄 apf.mdl
字号:
NonVirtualBus off
}
Block {
BlockType Outport
Port "1"
UseBusObject off
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Product
Inputs "2"
Multiplication "Element-wise(.*)"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Zero"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType Scope
ModelBased off
TickLabels "OneTimeTick"
ZoomMode "on"
Grid "on"
TimeRange "auto"
YMin "-5"
YMax "5"
SaveToWorkspace off
SaveName "ScopeData"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "-1"
}
Block {
BlockType "S-Function"
FunctionName "system"
SFunctionModules "''"
PortCounts "[]"
}
Block {
BlockType Sin
SineType "Time based"
TimeSource "Use simulation time"
Amplitude "1"
Bias "0"
Frequency "1"
Phase "0"
Samples "10"
Offset "0"
SampleTime "-1"
VectorParams1D on
}
Block {
BlockType StateSpace
A "1"
B "1"
C "1"
D "1"
X0 "0"
AbsoluteTolerance "auto"
Realization "auto"
}
Block {
BlockType SubSystem
ShowPortLabels on
Permissions "ReadWrite"
PermitHierarchicalResolution "All"
SystemSampleTime "-1"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType Sum
IconShape "rectangular"
Inputs "++"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "Helvetica"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "ActivePowerFilter"
Location [46, 168, 1065, 803]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType SubSystem
Name "C"
Ports [2, 2]
Position [370, 134, 410, 196]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
Port {
PortNumber 1
Name "ip"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
Port {
PortNumber 2
Name "iq"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
System {
Name "C"
Location [111, 290, 1130, 643]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [25, 173, 55, 187]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "In2"
Position [25, 198, 55, 212]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Demux
Name "Demux1"
Ports [1, 2]
Position [625, 106, 630, 144]
BackgroundColor "black"
ShowName off
Outputs "2"
}
Block {
BlockType Gain
Name "Gain"
Position [100, 40, 130, 70]
Gain "-1"
}
Block {
BlockType Gain
Name "Gain1"
Position [100, 105, 130, 135]
Gain "-1"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation"
Ports [2, 1]
Position [175, 19, 230, 61]
SourceBlock "simulink/Math\nOperations/Matrix\nConcatena"
"tion"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Vertical"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation1"
Ports [2, 1]
Position [235, 89, 290, 131]
SourceBlock "simulink/Math\nOperations/Matrix\nConcatena"
"tion"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Vertical"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation2"
Ports [2, 1]
Position [340, 29, 395, 71]
SourceBlock "simulink/Math\nOperations/Matrix\nConcatena"
"tion"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Horizontal"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation3"
Ports [2, 1]
Position [415, 159, 470, 201]
SourceBlock "simulink/Math\nOperations/Matrix\nConcatena"
"tion"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Vertical"
}
Block {
BlockType Product
Name "Matrix Multiply"
Ports [2, 1]
Position [535, 106, 590, 144]
Multiplication "Matrix(*)"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sin
Name "Sine Wave"
Ports [0, 1]
Position [40, 15, 70, 45]
SineType "Time based"
Frequency "2*pi*50"
SampleTime "0"
}
Block {
BlockType Sin
Name "cos"
Ports [0, 1]
Position [40, 95, 70, 125]
SineType "Time based"
Frequency "2*pi*50"
Phase "-pi/2"
SampleTime "0"
}
Block {
BlockType Outport
Name "Out1"
Position [690, 93, 720, 107]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Out2"
Position [690, 148, 720, 162]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "In1"
SrcPort 1
Points [340, 0]
DstBlock "Matrix\nConcatenation3"
DstPort 1
}
Line {
SrcBlock "In2"
SrcPort 1
Points [340, 0]
DstBlock "Matrix\nConcatenation3"
DstPort 2
}
Line {
SrcBlock "Matrix\nConcatenation3"
SrcPort 1
Points [20, 0; 0, -45]
DstBlock "Matrix Multiply"
DstPort 2
}
Line {
SrcBlock "Matrix Multiply"
SrcPort 1
DstBlock "Demux1"
DstPort 1
}
Line {
SrcBlock "Demux1"
SrcPort 1
Points [40, 0]
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Demux1"
SrcPort 2
Points [40, 0]
DstBlock "Out2"
DstPort 1
}
Line {
SrcBlock "Matrix\nConcatenation"
SrcPort 1
Points [0, 0]
DstBlock "Matrix\nConcatenation2"
DstPort 1
}
Line {
SrcBlock "Matrix\nConcatenation1"
SrcPort 1
Points [15, 0; 0, -50]
DstBlock "Matrix\nConcatenation2"
DstPort 2
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
DstBlock "Matrix\nConcatenation"
DstPort 1
}
Branch {
DstBlock "Gain1"
DstPort 1
}
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [10, 0; 0, -5]
Branch {
DstBlock "Matrix\nConcatenation"
DstPort 2
}
Branch {
Points [0, 50]
DstBlock "Matrix\nConcatenation1"
DstPort 1
}
}
Line {
SrcBlock "cos"
SrcPort 1
Points [5, 0; 0, -55]
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [0, 0]
DstBlock "Matrix\nConcatenation1"
DstPort 2
}
Line {
SrcBlock "Matrix\nConcatenation2"
SrcPort 1
Points [60, 0; 0, 65]
DstBlock "Matrix Multiply"
DstPort 1
}
Annotation {
Position [587, 228]
UseDisplayTextAsClickCallback off
}
}
}
Block {
BlockType Gain
Name "C23"
Position [630, 150, 660, 180]
Gain "sqrt(2/3)*[1 0;-1/2 sqrt(3)/2;-1/2 -sqrt(3)/2]"
Multiplication "Matrix(K*u)"
}
Block {
BlockType Gain
Name "C32"
Position [230, 145, 260, 175]
Gain "sqrt(2/3)*[1 -1/2 -1/2;0 sqrt(3)/2 -sqrt(3)/2]"
Multiplication "Matrix(K*u)"
}
Block {
BlockType SubSystem
Name "C_1"
Ports [2, 1]
Position [535, 134, 575, 196]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "C_1"
Location [2, 82, 1142, 818]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In3"
Position [25, 173, 55, 187]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "In4"
Position [25, 198, 55, 212]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Gain
Name "Gain"
Position [80, 40, 110, 70]
Gain "-1"
}
Block {
BlockType Gain
Name "Gain1"
Position [80, 105, 110, 135]
Gain "-1"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation"
Ports [2, 1]
Position [155, 19, 210, 61]
SourceBlock "simulink/Math\nOperations/Matrix\nConcatena"
"tion"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Vertical"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation1"
Ports [2, 1]
Position [215, 89, 270, 131]
SourceBlock "simulink/Math\nOperations/Matrix\nConcatena"
"tion"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Vertical"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation2"
Ports [2, 1]
Position [320, 29, 375, 71]
SourceBlock "simulink/Math\nOperations/Matrix\nConcatena"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -