📄 simple.mdl
字号:
ShowName off
Decimation "10"
}
Block {
BlockType Constant
Name "Constant"
Position [220, 393, 255, 427]
ShowName off
Value "3"
}
Block {
BlockType Constant
Name "Constant1"
Position [185, 123, 220, 157]
ShowName off
Value "0"
}
Block {
BlockType Fcn
Name "Fcn"
Position [350, 345, 410, 375]
ShowName off
Expr "sin(u(1))"
}
Block {
BlockType Fcn
Name "Fcn1"
Position [610, 255, 670, 285]
Orientation "left"
NamePlacement "alternate"
ShowName off
Expr "sin(u(1))"
}
Block {
BlockType Gain
Name "Gain"
Position [595, 191, 645, 219]
ShowName off
Gain "1/(2*3.14)"
}
Block {
BlockType Gain
Name "Gain1"
Position [450, 495, 560, 535]
ShowName off
Gain "1/(2*3.14)"
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1]
Position [600, 125, 630, 155]
ShowName off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [220, 340, 255, 375]
ShowName off
InputSameDT off
}
Block {
BlockType Product
Name "Product3"
Ports [2, 1]
Position [475, 260, 510, 295]
Orientation "left"
NamePlacement "alternate"
ShowName off
InputSameDT off
}
Block {
BlockType Scope
Name "Scope"
Ports [6]
Position [920, 110, 960, 240]
ShowName off
Location [6, 60, 1030, 741]
Open off
NumInputPorts "6"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
axes4 "%<SignalLabel>"
axes5 "%<SignalLabel>"
axes6 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
axes3 ""
axes4 ""
axes5 ""
axes6 ""
}
YMin "-5~-5~-5~-5~-5~-5"
YMax "5~5~5~5~5~5"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [475, 19, 505, 51]
ShowName off
Location [640, 356, 964, 595]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData1"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope2"
Ports [1]
Position [355, 14, 385, 46]
ShowName off
Location [188, 365, 512, 604]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData2"
DataFormat "StructureWithTime"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [300, 350, 320, 370]
ShowName off
IconShape "round"
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [260, 130, 280, 150]
ShowName off
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum3"
Ports [2, 1]
Position [485, 130, 505, 150]
ShowName off
IconShape "round"
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Line {
SrcBlock " "
SrcPort 1
Points [40, 0; 0, 25; 45, 0]
Branch {
Points [0, -60]
DstBlock "Product1"
DstPort 2
}
Branch {
Points [0, 90]
DstBlock "Gain1"
DstPort 1
}
}
Line {
SrcBlock "Product1"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [50, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Clock"
SrcPort 1
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Fcn"
DstPort 1
}
Line {
SrcBlock "Fcn"
SrcPort 1
Points [130, 0; 0, 10; 30, 0]
Branch {
Points [185, 0; 0, -245]
DstBlock "Scope"
DstPort 1
}
Branch {
Points [0, -85]
DstBlock "Product3"
DstPort 2
}
}
Line {
SrcBlock "Product3"
SrcPort 1
DstBlock " "
DstPort 1
}
Line {
SrcBlock "Constant1"
SrcPort 1
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock " "
SrcPort 1
Points [0, 0; -100, 0]
Branch {
DstBlock "Sum2"
DstPort 2
}
Branch {
Points [0, 30; 515, 0; 0, -165]
DstBlock "Scope"
DstPort 2
}
}
Line {
SrcBlock "Sum2"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
Points [0, -45; 515, 0; 0, 70]
DstBlock "Scope"
DstPort 3
}
Branch {
Points [10, 0]
Branch {
DstBlock " "
DstPort 1
}
Branch {
Points [0, -110]
DstBlock "Scope2"
DstPort 1
}
}
}
Line {
SrcBlock " "
SrcPort 1
Points [0, 0; 20, 0]
Branch {
DstBlock "Sum3"
DstPort 1
}
Branch {
Points [0, -105]
DstBlock "Scope1"
DstPort 1
}
}
Line {
SrcBlock "Sum3"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
DstBlock "Integrator"
DstPort 1
}
Branch {
Points [0, 65]
DstBlock "Gain"
DstPort 1
}
}
Line {
SrcBlock "Fcn1"
SrcPort 1
DstBlock "Product3"
DstPort 1
}
Line {
SrcBlock "Integrator"
SrcPort 1
Points [60, 0; 0, 130]
DstBlock "Fcn1"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [245, 0; 0, -330]
DstBlock "Scope"
DstPort 4
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [0, 0; 180, 0]
Branch {
DstBlock "Scope"
DstPort 5
}
Branch {
Points [0, 20]
DstBlock "Analog\nFilter Design"
DstPort 1
}
}
Line {
SrcBlock "Analog\nFilter Design"
SrcPort 1
DstBlock "Scope"
DstPort 6
}
Line {
SrcBlock " "
SrcPort 1
Points [80, 0]
DstBlock "Sum3"
DstPort 2
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -