📄 tlsvpwm4.mdl
字号:
FontAngle "normal"
ShowName on
}
BlockParameterDefaults {
Block {
BlockType Clock
DisplayTime off
}
Block {
BlockType Constant
Value "1"
VectorParams1D on
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
}
Block {
BlockType Fcn
Expr "sin(u[1])"
SampleTime "-1"
}
Block {
BlockType Gain
Gain "1"
Multiplication "Element-wise(K.*u)"
ParameterDataTypeMode "Same as input"
ParameterDataType "sfix(16)"
ParameterScalingMode "Best Precision: Matrix-wise"
ParameterScaling "2^0"
OutDataTypeMode "Same as input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType MATLABFcn
MATLABFcn "sin"
OutputDimensions "-1"
OutputSignalType "auto"
Output1D on
SampleTime "-1"
}
Block {
BlockType Mux
Inputs "4"
DisplayOption "none"
BusObject "BusObject"
NonVirtualBus off
}
Block {
BlockType Outport
Port "1"
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
Floating off
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 "0"
}
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 "svpwm1"
Location [2, 70, 1022, 702]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Clock
Name "Clock"
Position [80, 185, 100, 205]
Decimation "10"
}
Block {
BlockType Constant
Name "Constant"
Position [145, 55, 175, 85]
ShowName off
Value "0.6*2/3"
}
Block {
BlockType Fcn
Name "Fcn"
Position [320, 80, 380, 110]
ShowName off
Expr "sqrt(3)*u(3)*u(1)/u(2)"
}
Block {
BlockType Fcn
Name "Fcn1"
Position [135, 180, 195, 210]
ShowName off
Expr "u(1)*2*pi*50"
}
Block {
BlockType Fcn
Name "Fcn2"
Position [520, 95, 580, 125]
ShowName off
Expr "u(1)*sin(pi*u(3)/3-u(2))"
}
Block {
BlockType Fcn
Name "Fcn3"
Position [520, 200, 580, 230]
ShowName off
Expr "u(1)*sin(u(2)-(u(3)-1)*pi/3)"
}
Block {
BlockType Fcn
Name "Fcn4"
Position [805, 150, 865, 180]
ShowName off
Expr "(u[4]==1)*(u[1]+u[2]+u[3])+(u[4]==2)*(u[1]+u[2]"
"+u[3])+(u[4]==3)*(u[1]+u[3])+(u[4]==4)*(u[1])+(u[4]==5)*(u[1])+(u[4]==6)*(u[1"
"]+u[2])"
}
Block {
BlockType Fcn
Name "Fcn5"
Position [805, 205, 865, 235]
ShowName off
Expr "(u[4]==1)*(u[1])+(u[4]==2)*(u[1]+u[2])+(u[4]==3"
")*(u[1]+u[2]+u[3])+(u[4]==4)*(u[1]+u[2]+u[3])+(u[4]==5)*(u[1]+u[3])+(u[4]==6)"
"*(u[1])"
}
Block {
BlockType Fcn
Name "Fcn6"
Position [800, 265, 860, 295]
ShowName off
Expr "(u[4]==1)*(u[1]+u[3])+(u[4]==2)*(u[1])+(u[4]==3"
")*(u[1])+(u[4]==4)*(u[1]+u[2])+(u[4]==5)*(u[1]+u[2]+u[3])+(u[4]==6)*(u[1]+u[2"
"]+u[3])"
}
Block {
BlockType Fcn
Name "Fcn7"
Position [960, 145, 1020, 175]
ShowName off
Expr "(u[4]==1)*(u[1])+(u[4]==2)*(u[1])+(u[4]==3)*(u["
"1]+u[2])+(u[4]==4)*(u[1]+u[2]+u[3])+(u[4]==5)*(u[1]+u[2]+u[3])+(u[4]==6)*(u[1"
"]+u[3])"
}
Block {
BlockType Fcn
Name "Fcn8"
Position [955, 205, 1015, 235]
ShowName off
Expr "(u[4]==1)*(u[1]+u[2]+u[3])+(u[4]==2)*(u[1]+u[3]"
")+(u[4]==3)*(u[1])+(u[4]==4)*(u[1])+(u[4]==5)*(u[1]+u[2])+(u[4]==6)*(u[1]+u[2"
"]+u[3])"
}
Block {
BlockType Fcn
Name "Fcn9"
Position [955, 265, 1015, 295]
ShowName off
Expr "(u[4]==1)*(u[1]+u[2])+(u[4]==2)*(u[1]+u[2]+u[3]"
")+(u[4]==3)*(u[1]+u[2]+u[3])+(u[4]==4)*(u[1]+u[3])+(u[4]==5)*(u[1])+(u[4]==6)"
"*(u[1])"
}
Block {
BlockType Gain
Name "Gain"
Position [675, 125, 705, 155]
ShowName off
Gain "0.5"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn"
Position [230, 180, 290, 210]
ShowName off
MATLABFcn "mod(u,2*pi)"
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn1"
Position [315, 180, 375, 210]
ShowName off
MATLABFcn "1+fix(u/(pi/3+1.e-30))"
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [280, 76, 285, 114]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux1"
Ports [3, 1]
Position [415, 70, 420, 230]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux2"
Ports [4, 1]
Position [750, 140, 755, 300]
ShowName off
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux3"
Ports [3, 1]
Position [1120, 150, 1125, 310]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux4"
Ports [3, 1]
Position [970, 320, 975, 480]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux5"
Ports [2, 1]
Position [1095, 66, 1100, 119]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [225, 57, 255, 88]
ShowName off
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [425, 259, 455, 291]
ShowName off
Location [1, 43, 1025, 737]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [740, 34, 770, 66]
ShowName off
Location [5, 47, 1029, 741]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData1"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Scope
Name "Scope2"
Ports [1]
Position [325, 264, 355, 296]
ShowName off
Location [5, 47, 1029, 741]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData2"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Scope
Name "Scope3"
Ports [1]
Position [245, 259, 275, 291]
ShowName off
Location [5, 47, 1029, 741]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData3"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Scope
Name "Scope4"
Ports [1]
Position [1010, 384, 1040, 416]
ShowName off
Location [5, 47, 1029, 741]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData4"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Scope
Name "Scope5"
Ports [1]
Position [1150, 214, 1180, 246]
ShowName off
Location [5, 47, 1029, 741]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData5"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Scope
Name "Scope6"
Ports [1]
Position [1150, 69, 1180, 101]
ShowName off
Location [5, 47, 1029, 741]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData6"
DataFormat "StructureWithTime"
LimitDataPoints off
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -