📄 trigger1.mdl
字号:
Position [370, 21, 375, 59]
ShowName off
FontName "Arial"
FontSize 12
Inputs "3"
DisplayOption "bar"
Port {
PortNumber 1
Name "Source & Trigger"
PropagatedSignals ", , "
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType Mux
Name "Mux2"
Ports [3, 1]
Position [370, 76, 375, 114]
ShowName off
FontName "Arial"
FontSize 12
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux3"
Ports [3, 1]
Position [370, 146, 375, 184]
ShowName off
FontName "Arial"
FontSize 12
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux4"
Ports [3, 1]
Position [370, 211, 375, 249]
ShowName off
FontName "Arial"
FontSize 12
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType SubSystem
Name "Rising"
Ports [1, 1, 0, 1]
Position [195, 53, 260, 97]
FontName "Arial"
FontSize 12
ShowPortLabels on
TreatAsAtomicUnit on
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Rising"
Location [292, 369, 476, 482]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "In"
Position [20, 68, 50, 82]
Port "1"
Interpolate on
}
Block {
BlockType TriggerPort
Name "Trigger"
Ports []
Position [80, 25, 100, 45]
TriggerType "rising"
ShowOutputPort off
OutputDataType "auto"
}
Block {
BlockType Outport
Name "Out"
Position [130, 68, 160, 82]
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "Out"
DstPort 1
}
}
}
Block {
BlockType Scope
Name "Scope"
Ports [4]
Position [440, 92, 480, 193]
Floating off
Location [594, 109, 863, 556]
Open off
NumInputPorts "4"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
axes4 "%<SignalLabel>"
}
Grid "on"
TimeRange "4"
YMin "-1~-1~-1~-1"
YMax "1~1~1~1"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType SignalGenerator
Name "Signal Generator"
Position [55, 15, 85, 45]
ForegroundColor "blue"
ShowName off
AttributesFormatString "Waveform: %<waveform>\\nFreq: %<Frequency> %<Un"
"its>"
FontName "Arial"
FontSize 12
WaveForm "square"
Amplitude "0.5"
Frequency "1"
Units "Hertz"
VectorParams1D on
}
Block {
BlockType Sin
Name "Sine Wave"
Position [45, 240, 75, 270]
AttributesFormatString "Freq: %<Frequency> rad/sec"
FontName "Arial"
FontSize 12
Amplitude "1"
Frequency "8"
Phase "0"
SampleTime "0"
VectorParams1D on
}
Line {
SrcBlock "Signal Generator"
SrcPort 1
Points [0, 0; 50, 0]
Branch {
Points [0, 95]
Branch {
Points [0, 87; 90, 0]
DstBlock "Either"
DstPort trigger
}
Branch {
Points [90, 0]
DstBlock "Falling"
DstPort trigger
}
}
Branch {
Points [85, 0]
Branch {
DstBlock "Rising"
DstPort trigger
}
Branch {
Points [90, 0; 0, 10]
DstBlock "Mux1"
DstPort 2
}
}
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
Points [0, 0; 85, 0]
Branch {
Points [0, -90]
Branch {
DstBlock "Falling"
DstPort 1
}
Branch {
Points [0, -90]
DstBlock "Rising"
DstPort 1
}
}
Branch {
DstBlock "Either"
DstPort 1
}
Branch {
Points [0, 45; 165, 0; 0, -80]
Branch {
Points [0, -65]
Branch {
DstBlock "Mux3"
DstPort 1
}
Branch {
Points [0, -70]
Branch {
DstBlock "Mux2"
DstPort 1
}
Branch {
Points [0, -55]
DstBlock "Mux1"
DstPort 1
}
}
}
Branch {
DstBlock "Mux4"
DstPort 1
}
}
}
Line {
SrcBlock "Ground"
SrcPort 1
DstBlock "Mux1"
DstPort 3
}
Line {
SrcBlock "Ground1"
SrcPort 1
DstBlock "Mux2"
DstPort 3
}
Line {
SrcBlock "Rising"
SrcPort 1
Points [40, 0; 0, 20]
DstBlock "Mux2"
DstPort 2
}
Line {
SrcBlock "Ground2"
SrcPort 1
DstBlock "Mux3"
DstPort 3
}
Line {
SrcBlock "Falling"
SrcPort 1
DstBlock "Mux3"
DstPort 2
}
Line {
SrcBlock "Either"
SrcPort 1
Points [35, 0; 0, -25]
DstBlock "Mux4"
DstPort 2
}
Line {
Name "Source & Trigger"
Labels [0, 0]
SrcBlock "Mux1"
SrcPort 1
Points [45, 0]
DstBlock "Scope"
DstPort 1
}
Line {
SrcBlock "Mux2"
SrcPort 1
Points [25, 0; 0, 35]
DstBlock "Scope"
DstPort 2
}
Line {
SrcBlock "Mux3"
SrcPort 1
Points [25, 0; 0, -10]
DstBlock "Scope"
DstPort 3
}
Line {
SrcBlock "Mux4"
SrcPort 1
Points [45, 0]
DstBlock "Scope"
DstPort 4
}
Line {
SrcBlock "Ground3"
SrcPort 1
DstBlock "Mux4"
DstPort 3
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -