📄 svpwmtwelve.mdl
字号:
Branch {
DstBlock "Sum3"
DstPort 1
}
Branch {
Points [0, 85]
DstBlock "Sum2"
DstPort 1
}
}
Line {
SrcBlock "3"
SrcPort 1
Points [-25, 0]
Branch {
DstBlock "Sum3"
DstPort 2
}
Branch {
Points [0, 85]
DstBlock "Sum2"
DstPort 2
}
}
Line {
SrcBlock "Sum3"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
Name "T1"
Labels [0, 0]
SrcBlock "Product"
SrcPort 1
Points [30, 0; 0, 190]
DstBlock "1/1"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Sum2"
SrcPort 1
Points [-110, 0; 0, -35]
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "1/1"
SrcPort 1
Points [-10, 0; 0, 70]
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "4"
SrcPort 1
Points [-10, 0; 0, -5]
DstBlock "Sum1"
DstPort 2
}
Annotation {
Position [530, 16]
Text "md"
}
}
}
Block {
BlockType Reference
Name "Compare\nTo Zero"
Ports [1, 1]
Position [255, 55, 295, 95]
SourceBlock "fixpt_lib_3p1/Logic & Comparison/Compare\nT"
"o Zero"
SourceType "Fixed-Point Compare To Zero"
relop "<="
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 3]
Position [465, 189, 470, 261]
BackgroundColor "black"
ShowName off
Outputs "3"
BusSelectionMode off
}
Block {
BlockType Demux
Name "Demux1"
Ports [1, 3]
Position [500, 253, 505, 317]
BackgroundColor "black"
ShowName off
Outputs "3"
BusSelectionMode off
}
Block {
BlockType Demux
Name "Demux2"
Ports [1, 3]
Position [350, 41, 355, 109]
BackgroundColor "black"
ShowName off
Outputs "3"
BusSelectionMode off
}
Block {
BlockType MultiPortSwitch
Name "Multiport\nSwitch"
Ports [7, 1]
Position [395, 147, 410, 303]
Inputs "6"
}
Block {
BlockType Mux
Name "Mux"
Ports [6, 1]
Position [615, 183, 620, 322]
ShowName off
Inputs "6"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux1"
Ports [2, 1]
Position [285, 369, 295, 431]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Reference
Name "NOT"
Ports [1, 1]
Position [450, 270, 480, 300]
SourceBlock "fixpt_lib_3p1/Logic & Comparison/Logical\nO"
"perator"
SourceType "Fixed-Point Logical Operator"
logicop "NOT"
NumInputPorts "1"
LogicDataType "uint(8)"
}
Block {
BlockType Scope
Name "Scope1"
Ports [4]
Position [620, 72, 650, 148]
BackgroundColor "green"
NamePlacement "alternate"
Floating off
Location [92, 53, 602, 606]
Open off
NumInputPorts "4"
TickLabels "OneTimeTick"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
axes4 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
axes3 ""
axes4 ""
}
Grid "on"
TimeRange "0.06 "
YMin "-1~-1~-1~-1"
YMax "2~2~2~2"
SaveToWorkspace off
SaveName "ScopeData2"
DataFormat "StructureWithTime"
LimitDataPoints off
MaxDataPoints "5000"
Decimation "20"
SampleInput off
SampleTime "5e-6"
}
Block {
BlockType Scope
Name "Scope2"
Ports [4]
Position [400, 47, 430, 123]
BackgroundColor "green"
NamePlacement "alternate"
Floating off
Location [5, 53, 805, 575]
Open off
NumInputPorts "4"
TickLabels "OneTimeTick"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
axes4 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
axes3 ""
axes4 ""
}
Grid "on"
TimeRange "0.06 "
YMin "-0.1~-0.1~-0.1~-1"
YMax "1.1~1.1~1.1~2"
SaveToWorkspace off
SaveName "ScopeData1"
DataFormat "StructureWithTime"
LimitDataPoints off
MaxDataPoints "5000"
Decimation "20"
SampleInput off
SampleTime "5e-6"
}
Block {
BlockType Scope
Name "Scope3"
Ports [1]
Position [335, 380, 365, 420]
BackgroundColor "green"
NamePlacement "alternate"
Floating off
Location [104, 84, 675, 537]
Open off
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
Grid "on"
TimeRange "0.2 "
YMin "0.15"
YMax "0.85"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitDataPoints off
MaxDataPoints "5000"
Decimation "20"
SampleInput off
SampleTime "5e-6"
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [1, 1]
Position [100, 140, 200, 190]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "Subsystem"
Location [2, 74, 790, 555]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "frequency"
Position [15, 73, 45, 87]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Constant
Name "1"
Position [145, 120, 175, 150]
Value "1"
VectorParams1D on
}
Block {
BlockType Clock
Name "Clock"
Position [70, 35, 90, 55]
DisplayTime off
Decimation "10"
}
Block {
BlockType Lookup
Name "Look-Up\nTable"
Position [365, 70, 400, 100]
InputValues "[0,1,2]/2"
OutputValues "[0,1,0]"
}
Block {
BlockType Math
Name "Math\nFunction"
Ports [2, 1]
Position [305, 49, 330, 116]
Operator "rem"
OutputSignalType "auto"
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [150, 29, 165, 96]
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "n"
Position [85, 65, 115, 95]
Gain "12"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Outport
Name "triangle"
Position [490, 78, 520, 92]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Clock"
SrcPort 1
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "Math\nFunction"
SrcPort 1
DstBlock "Look-Up\nTable"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
DstBlock "Math\nFunction"
DstPort 1
}
Line {
SrcBlock "1"
SrcPort 1
Points [80, 0; 0, -35]
DstBlock "Math\nFunction"
DstPort 2
}
Line {
SrcBlock "frequency"
SrcPort 1
DstBlock "n"
DstPort 1
}
Line {
SrcBlock "n"
SrcPort 1
DstBlock "Product1"
DstPort 2
}
Line {
SrcBlock "Look-Up\nTable"
SrcPort 1
DstBlock "triangle"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Subsystem1"
Ports [2, 1]
Position [95, 237, 200, 288]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "Subsystem1"
Location [65, 192, 702, 522]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "frequency"
Position [15, 73, 45, 87]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "N"
Position [15, 113, 45, 127]
Port "2"
LatchInput off
Interpolate on
}
Block {
BlockType Constant
Name "2"
Position [385, 135, 415, 165]
Value "1"
VectorParams1D on
}
Block {
BlockType Constant
Name "6"
Position [100, 140, 130, 170]
Value "6"
VectorParams1D on
}
Block {
BlockType Clock
Name "Clock"
Position [65, 35, 85, 55]
DisplayTime off
Decimation "10"
}
Block {
BlockType DataTypeConversion
Name "Data Type Conversion"
Position [250, 71, 305, 99]
DataType "int16"
SaturateOnIntegerOverflow on
}
Block {
BlockType DataTypeConversion
Name "Data Type Conversion1"
Position [325, 71, 380, 99]
DataType "double"
SaturateOnIntegerOverflow on
}
Block {
BlockType Math
Name "Math\nFunction"
Ports [2, 1]
Position [205, 49, 230, 116]
Operator "rem"
OutputSignalType "auto"
}
Block {
BlockType Product
Name "Product1"
Ports [3, 1]
Position [140, 31, 155, 99]
Inputs "3"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Scope
Name "Scope6"
Ports [1]
Position [215, 169, 245, 201]
Floating off
Location [5, 53, 805, 575]
Open off
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
Grid "on"
TimeRange "auto"
YMin "-1"
YMax "1"
SaveToWorkspace off
SaveName "ScopeData5"
DataFormat "StructureWithTime"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [420, 75, 440, 95]
ShowName off
IconShape "round"
Inputs "|++"
SaturateOnIntegerOverflow on
}
Block {
BlockType Outport
Name "sector"
Position [520, 78, 550, 92]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Clock"
SrcPort 1
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [5, 0; 15, 0]
Branch {
DstBlock "Math\nFunction"
DstPort 1
}
Branch {
Points [0, 120]
DstBlock "Scope6"
DstPort 1
}
}
Line {
SrcBlock "6"
SrcPort 1
Points [40, 0; 0, -55]
DstBlock "Math\nFunction"
DstPort 2
}
Line {
SrcBlock "Math\nFunction"
SrcPort 1
DstBlock "Data Type Conversion"
DstPort 1
}
Line {
SrcBlock "Data Type Conversion"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -