📄 dfigpwm.mdl
字号:
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
LatchByDelayingOutsideSignal off
LatchByCopyingInsideSignal off
Interpolate on
}
Block {
BlockType Integrator
ExternalReset "none"
InitialConditionSource "internal"
InitialCondition "0"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
IgnoreLimit off
ZeroCross on
}
Block {
BlockType Logic
Operator "AND"
Inputs "2"
AllPortsSameDT on
OutDataTypeMode "Logical (see Configuration Parameters: Optimiza"
"tion)"
LogicDataType "uint(8)"
SampleTime "-1"
}
Block {
BlockType Mux
Inputs "4"
DisplayOption "none"
UseBusObject off
BusObject "BusObject"
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 Reference
}
Block {
BlockType RelationalOperator
Operator ">="
InputSameDT on
LogicOutDataTypeMode "Logical (see Configuration Parameters: Optimiza"
"tion)"
LogicDataType "uint(8)"
ZeroCross on
SampleTime "-1"
}
Block {
BlockType Saturate
UpperLimit "0.5"
LowerLimit "-0.5"
LinearizeAsGain on
ZeroCross 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 Signum
ZeroCross on
SampleTime "-1"
}
Block {
BlockType Step
Time "1"
Before "0"
After "1"
SampleTime "-1"
VectorParams1D on
ZeroCross on
}
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"
}
Block {
BlockType Switch
Criteria "u2 >= Threshold"
Threshold "0"
InputSameDT on
OutDataTypeMode "Inherit via internal rule"
RndMeth "Floor"
SaturateOnIntegerOverflow on
ZeroCross on
SampleTime "-1"
}
Block {
BlockType Terminator
}
Block {
BlockType Trigonometry
Operator "sin"
OutputSignalType "auto"
SampleTime "-1"
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "arial"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "arial"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "DFIGpwm"
Location [135, 89, 1147, 719]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Constant
Name " "
Position [230, 180, 260, 210]
Value "-10"
}
Block {
BlockType SubSystem
Name "DFIG"
Ports [4, 5]
Position [405, 21, 580, 219]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "DFIG"
Location [2, 82, 1270, 775]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "us_abc"
Position [265, 58, 295, 72]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "ur_abc"
Position [375, 238, 405, 252]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "w1"
Position [25, 168, 55, 182]
Port "3"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Tm"
Position [370, 348, 400, 362]
Port "4"
IconDisplay "Port number"
}
Block {
BlockType SubSystem
Name "2r/3s"
Ports [3, 1]
Position [930, 152, 1000, 238]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "2r/3s"
Location [433, 408, 1028, 547]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "id"
Position [25, 28, 55, 42]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "iq"
Position [100, 38, 130, 52]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "sin_cos"
Position [285, 73, 315, 87]
Port "3"
IconDisplay "Port number"
}
Block {
BlockType Constant
Name "0"
Position [205, 55, 235, 85]
Value "0"
}
Block {
BlockType Reference
Name "2r/3s"
Ports [2, 1]
Position [380, 30, 440, 85]
SourceBlock "powerlib_extras/Measurements/dq0_to_abc"
"\nTransformation"
SourceType "dq0 to abc Transformation"
ShowPortLabels "on"
}
Block {
BlockType Mux
Name "Mux2"
Ports [3, 1]
Position [300, 26, 305, 64]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Outport
Name "i_abc"
Position [525, 53, 555, 67]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "0"
SrcPort 1
Points [15, 0; 0, -15]
DstBlock "Mux2"
DstPort 3
}
Line {
SrcBlock "iq"
SrcPort 1
Points [0, 0]
DstBlock "Mux2"
DstPort 2
}
Line {
SrcBlock "id"
SrcPort 1
Points [0, 0]
DstBlock "Mux2"
DstPort 1
}
Line {
SrcBlock "Mux2"
SrcPort 1
DstBlock "2r/3s"
DstPort 1
}
Line {
SrcBlock "sin_cos"
SrcPort 1
Points [20, 0; 0, -10]
DstBlock "2r/3s"
DstPort 2
}
Line {
SrcBlock "2r/3s"
SrcPort 1
Points [0, 0]
DstBlock "i_abc"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "2r/3s1"
Ports [3, 1]
Position [935, 262, 1005, 348]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "2r/3s1"
Location [540, 479, 1120, 592]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "id"
Position [25, 28, 55, 42]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "iq"
Position [100, 38, 130, 52]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "sin_cos"
Position [285, 73, 315, 87]
Port "3"
IconDisplay "Port number"
}
Block {
BlockType Constant
Name "0"
Position [205, 55, 235, 85]
Value "0"
}
Block {
BlockType Reference
Name "2r/3s"
Ports [2, 1]
Position [380, 30, 440, 85]
SourceBlock "powerlib_extras/Measurements/dq0_to_abc"
"\nTransformation"
SourceType "dq0 to abc Transformation"
ShowPortLabels "on"
}
Block {
BlockType Mux
Name "Mux2"
Ports [3, 1]
Position [300, 26, 305, 64]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Outport
Name "i_abc"
Position [525, 53, 555, 67]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "0"
SrcPort 1
Points [15, 0; 0, -15]
DstBlock "Mux2"
DstPort 3
}
Line {
SrcBlock "iq"
SrcPort 1
Points [0, 0]
DstBlock "Mux2"
DstPort 2
}
Line {
SrcBlock "id"
SrcPort 1
Points [0, 0]
DstBlock "Mux2"
DstPort 1
}
Line {
SrcBlock "Mux2"
SrcPort 1
DstBlock "2r/3s"
DstPort 1
}
Line {
SrcBlock "sin_cos"
SrcPort 1
Points [20, 0; 0, -10]
DstBlock "2r/3s"
DstPort 2
}
Line {
SrcBlock "2r/3s"
SrcPort 1
Points [0, 0]
DstBlock "i_abc"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "3s/2r"
Ports [2, 2]
Position [480, 44, 550, 126]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "3s/2r"
Location [613, 370, 1128, 525]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "u_abc"
Position [85, 33, 115, 47]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "sin_cos"
Position [25, 63, 55, 77]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -