📄 final_beta.mdl
字号:
NamePlacement "normal"
FontName "arial"
FontSize 10
FontWeight "normal"
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 Demux
Outputs "4"
DisplayOption "none"
BusSelectionMode off
}
Block {
BlockType Fcn
Expr "sin(u[1])"
SampleTime "-1"
}
Block {
BlockType Mux
Inputs "4"
DisplayOption "none"
UseBusObject off
BusObject "BusObject"
NonVirtualBus off
}
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
}
}
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 "final_beta"
Location [2, 78, 1022, 717]
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 [40, 460, 60, 480]
Decimation "10"
}
Block {
BlockType Constant
Name "Constant3"
Position [55, 390, 85, 420]
Value "201"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 5]
Position [595, 127, 600, 313]
BackgroundColor "black"
ShowName off
Outputs "5"
DisplayOption "bar"
}
Block {
BlockType Fcn
Name "Fcn"
Position [290, 405, 350, 435]
Expr "sin(u(1)*exp(2.3*(-u(2))))"
}
Block {
BlockType Mux
Name "Mux1"
Ports [2, 1]
Position [215, 401, 220, 439]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux2"
Ports [6, 1]
Position [440, 122, 445, 318]
ShowName off
Inputs "6"
DisplayOption "bar"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [155, 357, 185, 388]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType "S-Function"
Name "S-Function3"
Ports [1, 1]
Position [485, 205, 545, 235]
FunctionName "im_sfun"
}
Block {
BlockType Constant
Name "SFrequncy"
Position [50, 310, 80, 340]
Value "50"
SampleTime "1"
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [675, 124, 705, 156]
Floating off
Location [188, 390, 512, 629]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [675, 169, 705, 201]
Floating off
Location [188, 390, 512, 629]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData1"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope2"
Ports [1]
Position [675, 219, 705, 251]
Floating off
Location [-3, 48, 1021, 733]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData2"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope3"
Ports [1]
Position [680, 269, 710, 301]
Floating off
Location [188, 390, 512, 629]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData3"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope4"
Ports [1]
Position [680, 319, 710, 351]
Floating off
Location [188, 390, 512, 629]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData4"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Constant
Name "TL"
Position [55, 510, 85, 540]
Value "8"
}
Block {
BlockType Sin
Name "U_u"
Ports [0, 1]
Position [55, 90, 85, 120]
SineType "Time based"
SampleTime "0"
}
Block {
BlockType Sin
Name "U_v"
Ports [0, 1]
Position [55, 140, 85, 170]
SineType "Time based"
Phase "2/3"
SampleTime "0"
}
Block {
BlockType Sin
Name "U_w"
Ports [0, 1]
Position [55, 210, 85, 240]
SineType "Time based"
Phase "-2/3"
SampleTime "0"
}
Line {
SrcBlock "SFrequncy"
SrcPort 1
Points [30, 0; 0, 40]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Constant3"
SrcPort 1
Points [25, 0; 0, -25]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Product"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
Points [10, 0; 0, -60; 160, 0; 0, -80]
DstBlock "Mux2"
DstPort 4
}
Branch {
DstBlock "Mux1"
DstPort 1
}
}
Line {
SrcBlock "TL"
SrcPort 1
Points [0, -5; 325, 0; 0, -225]
DstBlock "Mux2"
DstPort 6
}
Line {
SrcBlock "Mux2"
SrcPort 1
DstBlock "S-Function3"
DstPort 1
}
Line {
SrcBlock "S-Function3"
SrcPort 1
Points [30, 0]
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 3
Points [25, 0; 0, 15]
DstBlock "Scope2"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 2
DstBlock "Scope1"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 1
Points [25, 0; 0, -10]
DstBlock "Scope"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 4
Points [30, 0; 0, 30]
DstBlock "Scope3"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 5
Points [20, 0; 0, 45]
DstBlock "Scope4"
DstPort 1
}
Line {
SrcBlock "Clock"
SrcPort 1
Points [45, 0; 0, -40]
DstBlock "Mux1"
DstPort 2
}
Line {
SrcBlock "Mux1"
SrcPort 1
Points [50, 0]
DstBlock "Fcn"
DstPort 1
}
Line {
SrcBlock "Fcn"
SrcPort 1
Points [40, 0; 0, -155]
DstBlock "Mux2"
DstPort 5
}
Line {
SrcBlock "U_w"
SrcPort 1
Points [105, 0; 0, -20]
DstBlock "Mux2"
DstPort 3
}
Line {
SrcBlock "U_v"
SrcPort 1
Points [105, 0; 0, 20]
DstBlock "Mux2"
DstPort 2
}
Line {
SrcBlock "U_u"
SrcPort 1
Points [100, 0; 0, 40]
DstBlock "Mux2"
DstPort 1
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -