📄 ch2example14.mdl
字号:
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType TransferFcn
Name "LRC电路的传递函数建模"
Position [130, 19, 240, 71]
FontName "Arial"
FontSize 12
Denominator "[L*C R*C 1]"
}
Block {
BlockType Scope
Name "Scope"
Ports [3]
Position [455, 38, 485, 72]
Location [659, 241, 937, 570]
Open on
NumInputPorts "3"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
axes3 ""
}
TimeRange "0.0005"
YMin "-1~-1~-1"
YMax "2~2~2"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType StateSpace
Name "State-Space"
Position [150, 98, 210, 132]
A "[-R/L, -1/L; 1/C, 0]"
B "[1/L; 0]"
C "[0, 1]"
D "0"
}
Block {
BlockType Step
Name "Step"
Position [25, 30, 55, 60]
Time "1e-4"
SampleTime "0"
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [1, 1]
Position [145, 158, 225, 202]
DropShadow on
TreatAsAtomicUnit off
MaskType "这里写入封装类型或模块名称:RCL 电路模型子系统"
MaskDescription "这里写入对封装子系统的简单功能描述:这是一个RLC"
"串联二阶低通滤波器模型。\n参数设置:输入R,L,C的取值。"
MaskHelp "这里写入封装子系统的说明文档。<p>\n其内容将出现"
"在该子系统的联机帮助文档系统中。<p>\n文档使用html语言格式来排版。<p>\n这是一"
"个RCL 电路模型的模块,......"
MaskPromptString "电阻值 R|电容值 C|电感值 L"
MaskStyleString "edit,edit,edit"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "on,on,on"
MaskVisibilityString "on,on,on"
MaskToolTipString "on,on,on"
MaskVarAliasString ",,"
MaskVariables "R=@1;C=@2;L=@3;"
MaskInitialization "\n"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "R|C|L"
System {
Name "Subsystem"
Location [339, 550, 864, 705]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [40, 22, 70, 38]
}
Block {
BlockType Gain
Name "Gain"
Position [275, 19, 320, 51]
Gain "1/C"
}
Block {
BlockType Gain
Name "Gain1"
Position [175, 69, 235, 101]
Orientation "left"
Gain "-R/L"
}
Block {
BlockType Gain
Name "Gain2"
Position [245, 106, 305, 134]
Orientation "left"
Gain "-1/L"
}
Block {
BlockType Gain
Name "Gain3"
Position [100, 15, 130, 45]
Gain "1/L"
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1]
Position [215, 20, 245, 50]
}
Block {
BlockType Integrator
Name "Integrator1"
Ports [1, 1]
Position [335, 20, 365, 50]
}
Block {
BlockType Sum
Name "Sum"
Ports [3, 1]
Position [155, 15, 185, 55]
ShowName off
Inputs "|+++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Outport
Name "Out1"
Position [410, 28, 440, 42]
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Integrator"
DstPort 1
}
Line {
SrcBlock "Gain3"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [-30, 0]
DstBlock "Sum"
DstPort 3
}
Line {
SrcBlock "Gain2"
SrcPort 1
Points [-110, 0; 0, -80]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Integrator"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
DstBlock "Gain"
DstPort 1
}
Branch {
Points [0, 50]
DstBlock "Gain1"
DstPort 1
}
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Integrator1"
DstPort 1
}
Line {
SrcBlock "Integrator1"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
Points [0, 85]
DstBlock "Gain2"
DstPort 1
}
Branch {
DstBlock "Out1"
DstPort 1
}
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Gain3"
DstPort 1
}
Annotation {
Name "信号流图建模"
Position [314, 85]
FontName "Arial"
FontSize 12
}
}
}
Line {
SrcBlock "Step"
SrcPort 1
Points [25, 0]
Branch {
DstBlock "LRC电路的传递函数建模"
DstPort 1
}
Branch {
Points [0, 70]
Branch {
DstBlock "State-Space"
DstPort 1
}
Branch {
Points [0, 65]
DstBlock "Subsystem"
DstPort 1
}
}
}
Line {
SrcBlock "LRC电路的传递函数建模"
SrcPort 1
DstBlock "Scope"
DstPort 1
}
Line {
SrcBlock "State-Space"
SrcPort 1
Points [55, 0; 0, -60]
DstBlock "Scope"
DstPort 2
}
Line {
SrcBlock "Subsystem"
SrcPort 1
Points [90, 0; 0, -115]
DstBlock "Scope"
DstPort 3
}
Annotation {
Name "传递函数建模"
Position [284, 30]
FontName "Arial"
FontSize 12
}
Annotation {
Name "状态空间建模"
Position [254, 130]
FontName "Arial"
FontSize 12
}
Annotation {
Name "将信流图部分转化为子系统\nR=100; L=2e-3; C=1e-7"
";\n文件名:\nch2example14.mdl"
Position [411, 174]
DropShadow on
FontName "Arial"
FontSize 12
}
Annotation {
Name "信流图子系统"
Position [274, 200]
FontName "Arial"
FontSize 12
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -