📄 xtsh.mdl
字号:
Position [45, 41, 65, 69]
FontName "宋体"
Value "1"
}
Block {
BlockType Sin
Name "调制信号1"
Position [45, 92, 70, 118]
FontName "宋体"
Amplitude "1"
Frequency "10"
Phase "0"
SampleTime "0.001"
}
Block {
BlockType Gain
Name "放大器"
Position [85, 90, 110, 120]
FontName "宋体"
Gain "0.5"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "加法器"
Ports [2, 1, 0, 0, 0]
Position [135, 49, 155, 76]
FontName "宋体"
IconShape "rectangular"
Inputs "++"
SaturateOnIntegerOverflow on
}
Block {
BlockType Outport
Name "out_1"
Position [185, 55, 205, 75]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "常数"
SrcPort 1
DstBlock "加法器"
DstPort 1
}
Line {
SrcBlock "放大器"
SrcPort 1
Points [0, -35]
DstBlock "加法器"
DstPort 2
}
Line {
SrcBlock "调制信号1"
SrcPort 1
DstBlock "放大器"
DstPort 1
}
Line {
SrcBlock "加法器"
SrcPort 1
DstBlock "out_1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "信号2"
Ports [0, 1, 0, 0, 0]
Position [40, 191, 65, 219]
FontName "宋体"
FontSize 12
ShowPortLabels off
MaskType "Pulse Generator"
MaskDescription "Pulse Generator."
MaskHelp "Pulse generator which ensures pulse\\ntransitio"
"ns are hit. Provides a vector of pulses when the height is entered as a vecto"
"r.\\nUnmask to see how it works."
MaskPromptString "Pulse period (secs):|Pulse width:|Pulse height:"
"|Pulse start time:"
MaskStyleString "edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on"
MaskCallbackString "|||"
MaskEnableString "on,on,on,on"
MaskVisibilityString "on,on,on,on"
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 "1|.5|1|0.1"
System {
Name "信号2"
Location [158, 441, 759, 682]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Clock
Name "Clock1"
Position [295, 100, 315, 120]
ShowName off
DisplayTime off
Decimation "10"
}
Block {
BlockType Constant
Name "Constant"
Position [25, 30, 45, 50]
Value "1"
}
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"
SaturateOnIntegerOverflow on
}
Block {
BlockType Logic
Name "Logical\nOperator"
Ports [2, 1, 0, 0, 0]
Position [285, 38, 315, 62]
Operator "XOR"
Inputs "2"
}
Block {
BlockType Logic
Name "Logical\nOperator1"
Ports [1, 1, 0, 0, 0]
Position [355, 38, 385, 62]
Operator "NOT"
Inputs "1"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1, 0, 0, 0]
Position [455, 105, 480, 125]
ShowName off
Inputs "2"
SaturateOnIntegerOverflow on
}
Block {
BlockType RelationalOperator
Name "Relational\noperator"
Position [370, 102, 400, 133]
ShowName off
Operator ">="
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1, 0, 0, 0]
Position [135, 35, 155, 55]
ShowName off
IconShape "rectangular"
Inputs "+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1, 0, 0, 0]
Position [130, 120, 150, 140]
ShowName off
IconShape "rectangular"
Inputs "+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType UnitDelay
Name "Unit Delay"
Position [145, 75, 195, 95]
Orientation "left"
X0 "0"
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
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Unit Delay1"
SrcPort 1
Points [-35, 0; 0, -40]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [0, 0]
Branch {
Points [90, 0; 0, -75]
DstBlock "Logical\nOperator"
DstPort 2
}
Branch {
Points [55, 0; 0, 45]
DstBlock "Unit Delay1"
DstPort 1
}
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [0, 0]
Branch {
Points [20, 0; 0, 85]
DstBlock "Sum1"
DstPort 1
}
Branch {
DstBlock "Sum"
DstPort 1
}
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "Logical\nOperator"
DstPort 1
}
Branch {
Points [70, 0; 0, 40]
DstBlock "Unit Delay"
DstPort 1
}
}
Line {
SrcBlock "Unit Delay"
SrcPort 1
Points [-35, 0; 0, -35]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Clock1"
SrcPort 1
DstBlock "Relational\noperator"
DstPort 1
}
Line {
SrcBlock "Relational\noperator"
SrcPort 1
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "out_1"
DstPort 1
}
Line {
SrcBlock "Constant1"
SrcPort 1
Points [20, 0; 0, -35]
DstBlock "Relational\noperator"
DstPort 2
}
Line {
SrcBlock "Logical\nOperator"
SrcPort 1
DstBlock "Logical\nOperator1"
DstPort 1
}
Line {
SrcBlock "Logical\nOperator1"
SrcPort 1
Points [40, 0; 0, 60]
DstBlock "Product"
DstPort 1
}
}
}
Line {
SrcBlock " 载波"
SrcPort 1
DstBlock "乘法器"
DstPort 1
}
Line {
SrcBlock "乘法器"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "二阶系统"
DstPort 1
}
Branch {
Points [125, 0]
Branch {
DstBlock "示波器\n(输入信号)"
DstPort 1
}
Branch {
Points [0, 50]
DstBlock "频谱分析仪\n(系统的频率特性)"
DstPort 1
}
}
}
Line {
SrcBlock "二阶系统"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "示波器\n(输出信号)"
DstPort 1
}
Branch {
Points [0, -55]
DstBlock "频谱分析仪\n(系统的频率特性)"
DstPort 2
}
}
Line {
SrcBlock "信号1"
SrcPort 1
Points [10, 0; 0, -40]
DstBlock "乘法器"
DstPort 2
}
Annotation {
Position [122, 32]
VerticalAlignment "top"
ForegroundColor "blue"
Text "系统的谐振特性"
FontName "楷体_GB2312"
FontSize 16
FontWeight "bold"
FontAngle "italic"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -