📄 am.mdl
字号:
}
Block {
BlockType Reference
Name "Digital\nFilter Design"
Ports [1, 1]
Position [270, 62, 335, 118]
UserDataPersistent on
UserData "DataTag0"
SourceBlock "dsparch4/Digital\nFilter Design"
SourceType ""
ShowPortLabels on
}
Block {
BlockType Reference
Name "Digital\nFilter Design1"
Ports [1, 1]
Position [270, 157, 335, 213]
UserDataPersistent on
UserData "DataTag1"
SourceBlock "dsparch4/Digital\nFilter Design"
SourceType ""
ShowPortLabels on
}
Block {
BlockType Reference
Name "Digital\nFilter Design2"
Ports [1, 1]
Position [650, 107, 715, 163]
UserDataPersistent on
UserData "DataTag2"
SourceBlock "dsparch4/Digital\nFilter Design"
SourceType ""
ShowPortLabels on
}
Block {
BlockType Fcn
Name "Fcn"
Position [560, 120, 620, 150]
Expr "(u-0.5)*2"
}
Block {
BlockType FromWorkspace
Name "From\nWorkspace"
Position [15, 113, 80, 137]
VariableName "signal"
SampleTime "1/600"
OutputAfterFinalValue "Setting to zero"
}
Block {
BlockType Math
Name "Math\nFunction"
Ports [1, 1]
Position [390, 170, 420, 200]
Operator "square"
}
Block {
BlockType Math
Name "Math\nFunction1"
Ports [1, 1]
Position [390, 75, 420, 105]
Operator "square"
}
Block {
BlockType Math
Name "Math\nFunction2"
Ports [1, 1]
Position [510, 120, 540, 150]
Operator "sqrt"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [205, 167, 235, 198]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [200, 72, 230, 103]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [390, 234, 420, 266]
Location [439, 389, 763, 628]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [100, 209, 130, 241]
Location [350, 334, 854, 571]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData1"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope2"
Ports [1]
Position [385, 14, 415, 46]
Location [513, 229, 837, 468]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData2"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope3"
Ports [1]
Position [730, 119, 760, 151]
Location [370, 352, 756, 625]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData3"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope4"
Ports [1]
Position [270, 14, 300, 46]
Location [435, 285, 759, 524]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData4"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope5"
Ports [1]
Position [265, 274, 295, 306]
Location [458, 410, 782, 649]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData5"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope6"
Ports [1]
Position [645, 224, 675, 256]
Location [6, 54, 806, 573]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData6"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope7"
Ports [1]
Position [560, 219, 590, 251]
Location [6, 54, 806, 573]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData7"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope8"
Ports [1]
Position [470, 239, 500, 271]
Location [150, 288, 563, 553]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData8"
DataFormat "StructureWithTime"
}
Block {
BlockType Sin
Name "Sine Wave"
Ports [0, 1]
Position [145, 35, 175, 65]
SineType "Time based"
Frequency "2*pi*20"
SampleTime "1/600"
}
Block {
BlockType Sin
Name "Sine Wave1"
Ports [0, 1]
Position [145, 210, 175, 240]
SineType "Time based"
Frequency "2*pi*20"
Phase "pi/2"
SampleTime "1/600"
}
Line {
SrcBlock "Sine Wave1"
SrcPort 1
Points [0, -35]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "From\nWorkspace"
SrcPort 1
Points [5, 0]
Branch {
Points [-5, 0]
DstBlock "Scope1"
DstPort 1
}
Branch {
Points [25, 0]
Branch {
Points [0, -30]
DstBlock "Product1"
DstPort 2
}
Branch {
Points [0, 50]
DstBlock "Product"
DstPort 1
}
}
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
Points [5, 0]
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Digital\nFilter Design"
DstPort 1
}
Branch {
Points [0, -60]
DstBlock "Scope4"
DstPort 1
}
}
Line {
SrcBlock "Product"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -