📄 s4.mdl
字号:
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator"
Position [140, 32, 170, 63]
Operator >
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator1"
Position [140, 92, 170, 123]
Operator <
}
Block {
BlockType Sum
Name "Sum"
Position [215, 64, 235, 91]
Inputs "+-"
}
Block {
BlockType Outport
Name "out_1"
Position [265, 70, 285, 90]
Port "1"
OutputWhenDisabled held
InitialOutput "0"
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "out_1"
DstPort 1
}
Line {
SrcBlock "Relational\nOperator"
SrcPort 1
Points [10, 0; 0, 20]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Relational\nOperator1"
SrcPort 1
Points [10, 0; 0, -25]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [20, 0]
Branch {
Points [0, -60]
DstBlock "Relational\nOperator"
DstPort 2
}
Branch {
DstBlock "Relational\nOperator1"
DstPort 2
}
}
Line {
SrcBlock "in_1"
SrcPort 1
Points [35, 0]
Branch {
Points [0, 60]
DstBlock "Relational\nOperator1"
DstPort 1
}
Branch {
DstBlock "Relational\nOperator"
DstPort 1
}
}
}
}
Block {
BlockType Sum
Name "Sum"
Position [360, 237, 375, 273]
Inputs "-+-"
}
Block {
BlockType Sum
Name "Sum1"
Position [225, 143, 240, 172]
Orientation left
Inputs "-+"
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [420, 16, 465, 34]
VariableName "y"
Buffer "100000"
Decimation "1"
SampleTime "0"
}
Block {
BlockType TransferFcn
Name "Transfer Fcn"
Position [350, 132, 425, 168]
Orientation left
Numerator "[1]"
Denominator "[tf 1]"
}
Block {
BlockType Constant
Name "Vdc"
Position [160, 287, 210, 303]
Value "Vdc"
}
Block {
BlockType TransferFcn
Name "controller"
Position [110, 142, 210, 178]
Orientation left
Numerator "4e4*[1 10*tf]"
Denominator "[1 0]"
}
Block {
BlockType Integrator
Name "iL"
Position [480, 238, 510, 272]
ExternalReset none
InitialConditionSource internal
InitialCondition "iLo"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
}
Block {
BlockType Integrator
Name "vC"
Position [450, 289, 480, 321]
Orientation left
ExternalReset none
InitialConditionSource internal
InitialCondition "vCo"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
}
Block {
BlockType Saturate
Name "wo limit"
Position [60, 146, 90, 174]
Orientation left
UpperLimit "wo"
LowerLimit "0"
}
Line {
SrcBlock "Pref"
SrcPort 1
Points [25, 0; 0, -35]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "controller"
SrcPort 1
DstBlock "wo limit"
DstPort 1
}
Line {
SrcBlock "Transfer Fcn"
SrcPort 1
Points [0, 0]
Branch {
Points [-10, 0; 0, -45; 25, 0]
DstBlock "Mux"
DstPort 3
}
Branch {
DstBlock "Sum1"
DstPort 1
}
}
Line {
SrcBlock "wo limit"
SrcPort 1
Points [-15, 0]
DstBlock "Mux1"
DstPort 1
}
Line {
SrcBlock "Clock"
SrcPort 1
Points [0, 0]
Branch {
Points [10, 0; 0, 15; -130, 0; 0, 145]
DstBlock "Mux1"
DstPort 2
}
Branch {
Points [60, 0]
DstBlock "Mux"
DstPort 1
}
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "Fcn1"
DstPort 1
}
Line {
SrcBlock "vC"
SrcPort 1
Points [0, 0]
Branch {
Points [-30, 0; 0, 30; 190, 0; 0, -235; -95, 0]
DstBlock "Mux"
DstPort 5
}
Branch {
Points [-110, 0; 0, -40]
DstBlock "Sum"
DstPort 3
}
}
Line {
SrcBlock "Inner\nProduct"
SrcPort 1
Points [0, 0]
Branch {
Points [30, 0; 0, -170]
DstBlock "Mux"
DstPort 2
}
Branch {
DstBlock "Sum"
DstPort 2
}
}
Line {
SrcBlock "Sign"
SrcPort 1
DstBlock "Inner\nProduct"
DstPort 1
}
Line {
SrcBlock "Vdc"
SrcPort 1
Points [25, 0; 0, -35]
DstBlock "Inner\nProduct"
DstPort 2
}
Line {
SrcBlock "Fcn1"
SrcPort 1
DstBlock "Sign"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "controller"
DstPort 1
}
Line {
SrcBlock "Load power"
SrcPort 1
DstBlock "Transfer Fcn"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "vC"
DstPort 1
}
Line {
SrcBlock "iL"
SrcPort 1
Points [0, 0]
Branch {
Points [65, 0; 0, -140; -145, 0]
DstBlock "Mux"
DstPort 4
}
Branch {
Points [65, 0; 0, -105]
DstBlock "Load power"
DstPort 1
}
Branch {
Points [65, 0; 0, 50]
DstBlock "Gain"
DstPort 1
}
Branch {
Points [65, 0; 0, -45]
DstBlock "R"
DstPort 1
}
}
Line {
SrcBlock "R"
SrcPort 1
Points [-90, 0; 0, 35]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "1/L"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [0, 0]
Branch {
Points [0, -25]
DstBlock "Scope"
DstPort 1
}
Branch {
Points [0, -25]
DstBlock "To Workspace"
DstPort 1
}
}
Line {
SrcBlock "1/L"
SrcPort 1
DstBlock "iL"
DstPort 1
}
Annotation {
Position [527, 242]
VerticalAlignment top
Text "i"
}
Annotation {
Position [302, 242]
VerticalAlignment top
Text "vS"
}
Annotation {
Position [317, 352]
VerticalAlignment top
Text "Double click on masked block of m4 in this "
"screen or run m4.m in MATLAB command window\nto"
" initialize simulation. After simulation "
"type return after the K>> prompt in MATLAB "
"command \nwindow to obtain a plot of the "
"simulated results."
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -