📄 s0606.mdl
字号:
SrcBlock "Sum"
SrcPort 1
Points [45, 0]
Branch {
DstBlock "Out2"
DstPort 1
}
Branch {
Points [0, 50]
DstBlock "Unit Delay"
DstPort 1
}
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Unit Delay"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
}
}
Block {
BlockType SubSystem
Name "enab2"
Ports [1, 2, 1, 1]
Position [340, 146, 445, 199]
ShowPortLabels on
TreatAsAtomicUnit on
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "enab2"
Location [718, 503, 1018, 743]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [65, 73, 95, 87]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType EnablePort
Name "Enable"
Ports []
Position [130, 25, 150, 45]
AttributesFormatString "States when enabling = %<StatesWhenEnabling"
">"
StatesWhenEnabling "held"
ShowOutputPort off
}
Block {
BlockType TriggerPort
Name "Trigger"
Ports []
Position [225, 25, 245, 45]
TriggerType "rising"
ShowOutputPort off
OutputDataType "auto"
}
Block {
BlockType Constant
Name "Constant"
Position [20, 120, 50, 150]
Value "1"
VectorParams1D on
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [75, 125, 95, 145]
ShowName off
IconShape "round"
Inputs "|++"
SaturateOnIntegerOverflow on
}
Block {
BlockType UnitDelay
Name "Unit Delay"
Position [90, 172, 115, 198]
Orientation "left"
X0 "0"
SampleTime "-1"
RTWStateStorageClass "Auto"
}
Block {
BlockType Outport
Name "Out1"
Position [205, 73, 235, 87]
AttributesFormatString "IC=%<InitialOutput>\\nOutput when disabled="
"%<OutputWhenDisabled>"
Port "1"
OutputWhenDisabled "held"
InitialOutput "1"
}
Block {
BlockType Outport
Name "Out2"
Position [205, 128, 235, 142]
AttributesFormatString "IC = %<InitialOutput>\\nOutput when disable"
"d = %<OutputWhenDisabled>"
Port "2"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Unit Delay"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [45, 0]
Branch {
Points [0, 50]
DstBlock "Unit Delay"
DstPort 1
}
Branch {
DstBlock "Out2"
DstPort 1
}
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType DiscretePulseGenerator
Name "离散脉冲信号1"
Position [55, 43, 100, 77]
PulseType "Sample-based"
Amplitude "1"
Period "2"
PulseWidth "1"
PhaseDelay "0"
SampleTime ".25"
VectorParams1D on
Port {
PortNumber 1
Name "触发信号"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType DiscretePulseGenerator
Name "离散脉冲信号2"
Position [55, 106, 95, 134]
PulseType "Sample-based"
Amplitude "1"
Period "20"
PulseWidth "10"
PhaseDelay "0"
SampleTime ".25"
VectorParams1D on
Port {
PortNumber 1
Name "使能信号"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType Sin
Name "正弦信号"
Position [65, 215, 95, 245]
SineType "Sample-based"
Amplitude "2"
Bias "0"
Frequency "1"
Phase "0"
Samples "20"
Offset "0"
SampleTime ".25"
VectorParams1D on
}
Line {
SrcBlock "enab1"
SrcPort 1
Points [10, 0; 0, 90]
DstBlock "Mux1"
DstPort 1
}
Line {
SrcBlock "enab2"
SrcPort 1
Points [15, 0; 0, 125]
DstBlock "Mux2"
DstPort 1
}
Line {
Name "使能信号"
Labels [1, 0]
SrcBlock "离散脉冲信号2"
SrcPort 1
Points [70, 0]
Branch {
Points [195, 0]
Branch {
DstBlock "enab2"
DstPort enable
}
Branch {
Points [150, 0]
DstBlock "Mux"
DstPort 1
}
}
Branch {
Points [0, 10]
DstBlock "enab1"
DstPort enable
}
}
Line {
SrcBlock "正弦信号"
SrcPort 1
Points [0, 0; 30, 0]
Branch {
Points [0, -55]
DstBlock "enab1"
DstPort 1
}
Branch {
Points [185, 0]
Branch {
Points [0, -55]
DstBlock "enab2"
DstPort 1
}
Branch {
DstBlock "Mux"
DstPort 3
}
}
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [55, 0]
DstBlock "Scope"
DstPort 1
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "Scope"
DstPort 2
}
Line {
SrcBlock "enab1"
SrcPort 2
Points [0, 85]
DstBlock "Mux1"
DstPort 2
}
Line {
SrcBlock "Mux2"
SrcPort 1
Points [15, 0]
DstBlock "Scope"
DstPort 3
}
Line {
Labels [2, 0]
SrcBlock "enab2"
SrcPort 2
Points [0, 120]
DstBlock "Mux2"
DstPort 2
}
Line {
Name "触发信号"
Labels [2, 1]
SrcBlock "离散脉冲信号1"
SrcPort 1
Points [0, 0; 125, 0]
Branch {
DstBlock "enab1"
DstPort trigger
}
Branch {
Points [190, 0]
Branch {
DstBlock "enab2"
DstPort trigger
}
Branch {
Points [85, 0; 0, 160]
DstBlock "Mux"
DstPort 2
}
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -