📄 mli_ond_charge.mdl
字号:
ShowAdditionalParam on
InputSameDT off
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator1"
Position [255, 157, 285, 188]
Operator "<"
ShowAdditionalParam on
InputSameDT off
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator2"
Position [255, 247, 285, 278]
Operator "<"
ShowAdditionalParam on
InputSameDT off
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [745, 29, 775, 61]
Location [5, 60, 805, 573]
Open on
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
SaveName "ScopeData1"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope2"
Ports [1]
Position [745, 94, 775, 126]
Location [5, 60, 805, 573]
Open on
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope3"
Ports [1]
Position [740, 164, 770, 196]
Location [5, 60, 805, 573]
Open on
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
SaveName "ScopeData2"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope4"
Ports [1]
Position [720, 254, 750, 286]
Location [5, 60, 805, 573]
Open on
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
SaveName "ScopeData3"
DataFormat "StructureWithTime"
}
Block {
BlockType Selector
Name "Selector"
Ports [1, 1]
Position [600, 331, 640, 369]
Elements "[2 ]"
InputPortWidth "3"
}
Block {
BlockType Sin
Name "Sine Wave"
Position [90, 145, 120, 175]
SineType "Time based"
Amplitude "mi"
Frequency "(2*pi)*fr"
SampleTime "0"
}
Block {
BlockType Sin
Name "Sine Wave1"
Position [70, 235, 100, 265]
SineType "Time based"
Amplitude "mi"
Frequency "2*pi*fr"
Phase "(2*pi)/3"
SampleTime "0"
}
Block {
BlockType Sin
Name "Sine Wave2"
Position [75, 320, 105, 350]
SineType "Time based"
Amplitude "mi"
Frequency "2*pi*fr"
Phase "(4*pi)/3"
SampleTime "0"
}
Block {
BlockType StateSpace
Name "State-Space"
Position [595, 143, 655, 177]
A "a"
B "b"
C "c"
D "d"
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [630, 20, 690, 50]
VariableName "simout"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Structure"
}
Block {
BlockType ToWorkspace
Name "To Workspace1"
Position [360, 365, 420, 395]
VariableName "simout1"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Structure"
}
Block {
BlockType Scope
Name "ia,van"
Ports [1]
Position [725, 339, 755, 371]
Location [5, 60, 805, 573]
Open on
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
SaveName "ScopeData4"
DataFormat "StructureWithTime"
}
Block {
BlockType Reference
Name "porteuse"
Ports [0, 1]
Position [45, 50, 75, 80]
SourceBlock "simulink/Sources/Repeating\nSequence"
SourceType "Repeating table"
rep_seq_t "[0 1/(4*fp) 1/(2*fp) 3/(4*fp) 1/fp]"
rep_seq_y "[0 1 0 -1 0]"
}
Block {
BlockType Gain
Name "tensions_copos閑s"
Position [555, 335, 585, 365]
Gain "[1 -1 0;0 1 -1; -1 0 1]"
Multiplication "Matrix(K*u)"
}
Line {
SrcBlock "porteuse"
SrcPort 1
Points [30, 0]
Branch {
Points [60, 0; 0, 20; 35, 0]
Branch {
Points [35, 0]
DstBlock "Relational\nOperator"
DstPort 1
}
Branch {
Points [0, 80]
Branch {
DstBlock "Relational\nOperator1"
DstPort 1
}
Branch {
Points [0, 90]
DstBlock "Relational\nOperator2"
DstPort 1
}
}
}
Branch {
Labels [1, 0]
Points [0, 220]
DstBlock "Mux2"
DstPort 2
}
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
Points [20, 0]
Branch {
Points [20, 0; 0, -60; 75, 0]
DstBlock "Relational\nOperator"
DstPort 2
}
Branch {
Points [0, 75]
DstBlock "Mux1"
DstPort 1
}
}
Line {
SrcBlock "Sine Wave1"
SrcPort 1
Points [65, 0]
Branch {
Points [65, 0; 0, -70]
DstBlock "Relational\nOperator1"
DstPort 2
}
Branch {
Points [0, -5]
DstBlock "Mux1"
DstPort 2
}
}
Line {
SrcBlock "Sine Wave2"
SrcPort 1
Points [65, 0; 0, -65; 45, 0]
Branch {
DstBlock "Relational\nOperator2"
DstPort 2
}
Branch {
Points [0, -15]
DstBlock "Mux1"
DstPort 3
}
}
Line {
SrcBlock "Relational\nOperator"
SrcPort 1
Points [45, 0; 0, 100]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Relational\nOperator1"
SrcPort 1
Points [35, 0; 0, 15]
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Relational\nOperator2"
SrcPort 1
Points [45, 0; 0, -65]
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "Mux1"
SrcPort 1
Points [160, 0]
DstBlock "Mux2"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Data Type Conversion"
DstPort 1
}
Line {
SrcBlock "Data Type Conversion"
SrcPort 1
Points [0, -30]
Branch {
Points [-40, 0; 0, -85]
DstBlock "Matrix\nGain"
DstPort 1
}
Branch {
Points [0, 135]
DstBlock "Mux2"
DstPort 3
}
}
Line {
SrcBlock "State-Space"
SrcPort 1
Points [5, 0]
Branch {
Points [15, 0]
DstBlock "Demux"
DstPort 1
}
Branch {
Points [0, -35; -50, 0]
DstBlock "To Workspace"
DstPort 1
}
}
Line {
SrcBlock "Demux"
SrcPort 1
Points [5, 0]
Branch {
Points [5, 0; 0, -55]
DstBlock "Scope1"
DstPort 1
}
Branch {
Points [0, 35; -45, 0; 0, 195; -10, 0]
DstBlock "Mux4"
DstPort 1
}
}
Line {
SrcBlock "Demux"
SrcPort 2
DstBlock "Scope2"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 3
Points [10, 0; 0, 60]
DstBlock "Scope3"
DstPort 1
}
Line {
SrcBlock "Mux2"
SrcPort 1
Points [45, 0; 0, -15]
DstBlock "Scope4"
DstPort 1
}
Line {
SrcBlock "Clock"
SrcPort 1
Points [20, 0; 0, -5]
DstBlock "To Workspace1"
DstPort 1
}
Line {
SrcBlock "Mux4"
SrcPort 1
DstBlock "ia,van"
DstPort 1
}
Line {
SrcBlock "Matrix\nGain"
SrcPort 1
Points [10, 0; 0, 20]
Branch {
DstBlock "Demux1"
DstPort 1
}
Branch {
Points [0, 255]
DstBlock "tensions_copos閑s"
DstPort 1
}
}
Line {
SrcBlock "Demux1"
SrcPort 1
DstBlock "Mux3"
DstPort 1
}
Line {
SrcBlock "Demux1"
SrcPort 2
DstBlock "Mux3"
DstPort 2
}
Line {
SrcBlock "Demux1"
SrcPort 3
DstBlock "Mux3"
DstPort 3
}
Line {
SrcBlock "Mux3"
SrcPort 1
Points [0, 40; -15, 0]
DstBlock "State-Space"
DstPort 1
}
Line {
SrcBlock "tensions_copos閑s"
SrcPort 1
DstBlock "Selector"
DstPort 1
}
Line {
SrcBlock "Selector"
SrcPort 1
Points [0, 15]
DstBlock "Mux4"
DstPort 2
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -