📄 ctrlc0.mdl
字号:
Ports [1]
Position [210, 394, 240, 426]
Location [822, 417, 1144, 706]
Open on
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "40"
YMin "-0.6"
YMax "1"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope4"
Ports [1]
Position [420, 394, 450, 426]
Location [821, 79, 1145, 354]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "40"
YMin "-0.6"
YMax "1"
DataFormat "StructureWithTime"
}
Block {
BlockType StateSpace
Name "State-Space"
Position [325, 393, 385, 427]
A "[-0.25 -1;1 0]"
B "[1;0]"
C "[1 0]"
D "0"
}
Block {
BlockType Step
Name "Step"
Position [35, 25, 65, 55]
SampleTime "0"
Port {
PortNumber 1
Name "e"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Step
Name "Step1"
Position [45, 215, 75, 245]
SampleTime "0"
Port {
PortNumber 1
Name "e"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Step
Name "Step2"
Position [25, 395, 55, 425]
SampleTime "0"
Port {
PortNumber 1
Name "e"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Sum
Name "Sum"
Ports [3, 1]
Position [125, 25, 155, 55]
ShowName off
IconShape "round"
Inputs "||+--"
Port {
PortNumber 1
Name "vL"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Sum
Name "Sum1"
Ports [3, 1]
Position [125, 215, 155, 245]
ShowName off
IconShape "round"
Inputs "||+--"
Port {
PortNumber 1
Name "vR"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType TransferFcn
Name "Y(s)"
Position [105, 392, 165, 428]
Numerator "[1 0]"
Denominator "[1 .25 1]"
Port {
PortNumber 1
Name "i"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType SubSystem
Name "comments"
Ports []
Position [57, 454, 128, 505]
ForegroundColor "red"
DropShadow on
ShowName off
FontSize 11
FontWeight "bold"
TreatAsAtomicUnit off
MaskDisplay "disp('COMMENTS')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "comments"
Location [392, 536, 886, 772]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Annotation {
Name "Transient response of an RLC series circuit"
Position [238, 17]
ForegroundColor "blue"
FontSize 12
FontWeight "bold"
}
Annotation {
Name "This demonstration illustrates different"
" SIMULINK implementations of the transient\nresponse of an RLC series circuit"
":\n a) A feedback system representation utilizing two integrators. This "
"arrangement is\n the preferred one when parametric responses are des"
"ired (such as shown by\n expressing the resistance R as a vector); a"
"nother advantage is the inherent\n capability of including initial c"
"onditions. \n b) A feedback system representation utilizing one integrat"
"or and one differentiator.\n This arrangement is not recommended bec"
"ause of its lack of accuracy due to\n the presence of an algebraic l"
"oop.\n c) Transfer function and state-space representations are useful o"
"nly when the \n parameters are fixed. \n d) Double clicking the"
" SCRIPT block runs an ODE m-file."
Position [15, 35]
HorizontalAlignment "left"
VerticalAlignment "top"
FontSize 12
}
}
}
Block {
BlockType SubSystem
Name "space vector"
Ports []
Position [363, 451, 430, 508]
ForegroundColor "orange"
DropShadow on
ShowName off
OpenFcn "G=inline('[x(2);1-x(2)*.25-x(1)]','t','x') ; "
" \nopt=odeset('reltol',1e-3); "
" \n[t,x]=ode45(G,[0 40],[0;0],opt)"
"; \nfigure(1),plot(t,x(:,2)"
",'-r',t,x(:,1),'-b'),grid,title('Transients in RLC circuit')\nfigure(2),plot("
"x(:,2),x(:,1),'-g') ,grid,title('Phase plane plot') "
FontWeight "bold"
TreatAsAtomicUnit off
MaskDisplay "plot(-1.5,-1.5,1.5,1.5,cos(0:.01:7),sin(0:.01:7"
") )\ndisp('SCRIPT')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "space vector"
Location [81, 508, 528, 696]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
}
}
Block {
BlockType Scope
Name "vc"
Ports [1]
Position [50, 124, 80, 156]
Orientation "left"
Location [517, 457, 874, 708]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "40"
YMin "0"
YMax "2"
DataFormat "StructureWithTime"
}
Line {
Name "vL"
Labels [1, 0]
SrcBlock "Sum"
SrcPort 1
DstBlock "1/L"
DstPort 1
}
Line {
SrcBlock "1/L"
SrcPort 1
DstBlock "Integrator"
DstPort 1
}
Line {
Name "vR"
Labels [2, 1]
SrcBlock "R"
SrcPort 1
Points [-15, 0]
DstBlock "Sum"
DstPort 3
}
Line {
Name "e"
Labels [0, 1]
SrcBlock "Step1"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
Name "vR"
Labels [1, 0]
SrcBlock "Sum1"
SrcPort 1
DstBlock "1/R"
DstPort 1
}
Line {
SrcBlock "1/C"
SrcPort 1
DstBlock "Integrator1"
DstPort 1
}
Line {
SrcBlock "L"
SrcPort 1
DstBlock "Derivative"
DstPort 1
}
Line {
SrcBlock "1/C1"
SrcPort 1
DstBlock "Integrator3"
DstPort 1
}
Line {
Name "vL"
Labels [0, 0]
SrcBlock "Derivative"
SrcPort 1
Points [-40, 0]
DstBlock "Sum1"
DstPort 3
}
Line {
Name "i"
Labels [1, 0]
SrcBlock "1/R"
SrcPort 1
Points [65, 0; 0, 55]
Branch {
DstBlock "L"
DstPort 1
}
Branch {
Points [0, 0]
Branch {
Points [0, 55]
DstBlock "1/C1"
DstPort 1
}
Branch {
Points [0, 0]
DstBlock "Scope2"
DstPort 1
}
}
}
Line {
Name "i"
Labels [1, 0]
SrcBlock "Y(s)"
SrcPort 1
DstBlock "Scope3"
DstPort 1
}
Line {
Name "e"
Labels [2, 0]
SrcBlock "Step2"
SrcPort 1
Points [15, 0; 0, 0]
Branch {
DstBlock "Y(s)"
DstPort 1
}
Branch {
Points [0, 35; 205, 0; 0, -35]
DstBlock "State-Space"
DstPort 1
}
}
Line {
SrcBlock "State-Space"
SrcPort 1
DstBlock "Scope4"
DstPort 1
}
Line {
Name "vC"
Labels [0, 0]
SrcBlock "Integrator3"
SrcPort 1
Points [-66, 0; 0, -89]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Integrator1"
SrcPort 1
Points [-90, 0]
Branch {
Points [0, -79]
DstBlock "Sum"
DstPort 2
}
Branch {
Points [-30, 0]
DstBlock "vc"
DstPort 1
}
}
Line {
Name "e"
Labels [1, 0]
SrcBlock "Step"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
Name "i"
SrcBlock "Integrator"
SrcPort 1
Points [55, 0; 0, 50]
Branch {
DstBlock "R"
DstPort 1
}
Branch {
Points [0, 50]
DstBlock "1/C"
DstPort 1
}
Branch {
Labels [1, 0]
DstBlock "Scope1"
DstPort 1
}
}
Annotation {
Name "RLC SERIES CIRCUIT"
Position [244, 479]
ForegroundColor "white"
BackgroundColor "blue"
FontSize 14
FontWeight "bold"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -