📄 chou.mdl
字号:
MaskEnableString "on,on,on,on"
MaskVisibilityString "on,on,on,on"
MaskToolTipString "on,on,on,on"
MaskVarAliasString ",,,"
MaskInitialization "Ts=@1; du=@2; ht=@3; stt=@4; ini=ones(length(ht"
"),1); st1=rem(stt,Ts); st2=rem(stt+du,Ts);if(Ts<=1.2*du),ini=zeros(length(ht)"
",1);end;"
MaskDisplay "plot(0,0,100,100,[90,75,75,60,60,35,35,20,20,10"
"],[20,20,80,80,20,20,80,80,20,20])"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "pi/100|0.001|5|0.0005"
System {
Name "抽样脉冲\n(抽样函数)"
Location [158, 441, 759, 682]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Clock
Name "Clock1"
Position [295, 100, 315, 120]
ShowName off
Decimation "10"
}
Block {
BlockType Constant
Name "Constant"
Position [25, 30, 45, 50]
}
Block {
BlockType Constant
Name "Constant1"
Position [295, 149, 320, 171]
Value "stt"
}
Block {
BlockType Gain
Name "Gain"
Position [510, 102, 535, 128]
ShowName off
Gain "ht"
}
Block {
BlockType Logic
Name "Logical\nOperator"
Ports [2, 1]
Position [285, 38, 315, 62]
Operator "XOR"
}
Block {
BlockType Logic
Name "Logical\nOperator1"
Ports [1, 1]
Position [355, 38, 385, 62]
Operator "NOT"
Inputs "1"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [455, 105, 480, 125]
ShowName off
}
Block {
BlockType RelationalOperator
Name "Relational\noperator"
Position [370, 102, 400, 133]
ShowName off
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [135, 35, 155, 55]
ShowName off
Inputs "+-"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [130, 120, 150, 140]
ShowName off
Inputs "+-"
}
Block {
BlockType UnitDelay
Name "Unit Delay"
Position [145, 75, 195, 95]
Orientation "left"
SampleTime "[Ts,st1]"
}
Block {
BlockType UnitDelay
Name "Unit Delay1"
Position [140, 165, 190, 185]
Orientation "left"
X0 "ini"
SampleTime "[Ts,st2]"
}
Block {
BlockType Outport
Name "out_1"
Position [560, 105, 580, 125]
ShowName off
}
Line {
SrcBlock "Logical\nOperator1"
SrcPort 1
Points [40, 0; 0, 60]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Logical\nOperator"
SrcPort 1
DstBlock "Logical\nOperator1"
DstPort 1
}
Line {
SrcBlock "Constant1"
SrcPort 1
Points [20, 0; 0, -35]
DstBlock "Relational\noperator"
DstPort 2
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "out_1"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Relational\noperator"
SrcPort 1
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Clock1"
SrcPort 1
DstBlock "Relational\noperator"
DstPort 1
}
Line {
SrcBlock "Unit Delay"
SrcPort 1
Points [-35, 0; 0, -35]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Unit Delay1"
SrcPort 1
Points [-35, 0; 0, -40]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "Sum"
DstPort 1
}
Branch {
Points [20, 0; 0, 85]
DstBlock "Sum1"
DstPort 1
}
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [0, 0]
Branch {
Points [70, 0; 0, 40]
DstBlock "Unit Delay"
DstPort 1
}
Branch {
DstBlock "Logical\nOperator"
DstPort 1
}
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [0, 0]
Branch {
Points [55, 0; 0, 45]
DstBlock "Unit Delay1"
DstPort 1
}
Branch {
Points [90, 0; 0, -75]
DstBlock "Logical\nOperator"
DstPort 2
}
}
}
}
Block {
BlockType ToWorkspace
Name "环境变量1"
Position [515, 57, 565, 73]
FontName "Arial"
FontSize 11
VariableName "chou_shi_z1"
MaxDataPoints "4096"
SampleTime "0.001"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "环境变量2"
Position [515, 92, 565, 108]
FontName "Arial"
FontSize 11
VariableName "chou_shi_z2"
MaxDataPoints "4096"
SampleTime "0.001"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "环境变量3"
Position [515, 127, 565, 143]
FontName "Arial"
FontSize 11
VariableName "chou_shi_z3"
MaxDataPoints "4096"
SampleTime "0.001"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "环境变量4"
Position [515, 162, 565, 178]
FontName "Arial"
FontSize 11
VariableName "chou_shi_z4"
MaxDataPoints "4096"
SampleTime "0.001"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "时间变量\n"
Position [490, 347, 540, 363]
FontName "Arial"
FontSize 11
VariableName "chou_shi_t"
MaxDataPoints "4096"
SampleTime "0.001"
SaveFormat "Array"
}
Block {
BlockType Clock
Name "时钟\n"
Position [365, 343, 385, 367]
FontName "Arial"
FontSize 11
Decimation "10"
}
Block {
BlockType Scope
Name "示波器\n(抽样后信号)"
Ports [1]
Position [425, 277, 455, 313]
FontName "Arial"
FontSize 11
Location [352, 61, 682, 262]
Open on
NumInputPorts "1"
TickLabels "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "3.000000"
YMin "-14"
YMax "14"
DataFormat "Array"
}
Block {
BlockType Scope
Name "示波器\n(抽样脉冲信号)"
Ports [1]
Position [190, 286, 220, 324]
FontName "Arial"
FontSize 11
Location [684, 62, 1019, 271]
Open on
NumInputPorts "1"
TickLabels "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "1.000000"
YMin "-8"
YMax "8"
DataFormat "Array"
}
Block {
BlockType Scope
Name "示波器\n(恢复信号)"
Ports [1]
Position [525, 197, 555, 233]
FontName "Arial"
FontSize 11
Location [496, 394, 828, 591]
Open on
NumInputPorts "1"
TickLabels "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "3.000000"
YMin "-1"
YMax "1"
DataFormat "Array"
}
Block {
BlockType Scope
Name "示波器\n(滤波后信号)\n"
Ports [1]
Position [310, 122, 340, 158]
FontName "Arial"
FontSize 11
Location [6, 320, 339, 532]
Open on
NumInputPorts "1"
TickLabels "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "3.000000"
YMin "-4"
YMax "4"
DataFormat "Array"
}
Block {
BlockType Scope
Name "示波器\n(输入信号)"
Ports [1]
Position [190, 207, 220, 243]
FontName "Arial"
FontSize 11
Location [10, 61, 338, 238]
Open on
NumInputPorts "1"
TickLabels "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "3.000000"
YMin "-4"
YMax "4"
DataFormat "Array"
}
Block {
BlockType SignalGenerator
Name "信号源\n(输入信号)\n\n"
Position [55, 121, 100, 159]
FontName "Arial"
FontSize 11
Amplitude "2.000000"
Frequency "6.000000"
Units "rad/sec"
}
Line {
SrcBlock "乘法器"
SrcPort 1
Points [30, 0]
Branch {
DstBlock "巴特沃斯\n低通滤波器2"
DstPort 1
}
Branch {
Points [0, 80]
DstBlock "示波器\n(抽样后信号)"
DstPort 1
}
Branch {
Points [0, -80]
DstBlock "环境变量3"
DstPort 1
}
}
Line {
SrcBlock "抽样脉冲\n(抽样函数)"
SrcPort 1
Points [35, 0]
Branch {
Points [135, 0; 0, -55]
DstBlock "乘法器"
DstPort 2
}
Branch {
Points [0, 30]
DstBlock "示波器\n(抽样脉冲信号)"
DstPort 1
}
}
Line {
SrcBlock "巴特沃斯\n低通滤波器2"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "示波器\n(恢复信号)"
DstPort 1
}
Branch {
Points [0, -45]
DstBlock "环境变量4"
DstPort 1
}
}
Line {
SrcBlock "时钟\n"
SrcPort 1
DstBlock "时间变量\n"
DstPort 1
}
Line {
SrcBlock "信号源\n(输入信号)\n\n"
SrcPort 1
Points [15, 0]
Branch {
Points [0, 85]
DstBlock "示波器\n(输入信号)"
DstPort 1
}
Branch {
Points [0, -75]
DstBlock "环境变量1"
DstPort 1
}
Branch {
DstBlock "巴特沃斯\n低通滤波器1"
DstPort 1
}
}
Line {
SrcBlock "巴特沃斯\n低通滤波器1"
SrcPort 1
Points [35, 0]
Branch {
Points [0, 70]
DstBlock "乘法器"
DstPort 1
}
Branch {
DstBlock "示波器\n(滤波后信号)\n"
DstPort 1
}
Branch {
Points [0, -40]
DstBlock "环境变量2"
DstPort 1
}
}
Annotation {
Name "连续时间抽样实验"
Position [132, 22]
VerticalAlignment "top"
ForegroundColor "blue"
FontName "楷体_GB2312
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -