?? triggerexamp.mdl
字號(hào):
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 Scope
Name "Outputs"
Ports [4]
Position [430, 130, 475, 185]
StartFcn "open_system(gcbh)"
FontName "Arial"
FontSize 12
Floating off
Location [454, 58, 898, 767]
Open on
NumInputPorts "4"
TickLabels "on"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
axes4 "%<SignalLabel>"
}
Grid "on"
TimeRange "8"
YMin "-1.5~-1.5~-1.5~-1.5"
YMax "1.5~1.5~1.5~1.5"
SaveToWorkspace on
SaveName "trigsubdata"
DataFormat "Structure"
LimitDataPoints off
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
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"
Port {
PortNumber 1
Name "Rising"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
System {
Name "Rising"
Location [284, 325, 472, 473]
Open on
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, 15, 100, 35]
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 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 {
Name "Source & Trigger"
FontName "Arial"
FontSize 12
SrcBlock "Mux1"
SrcPort 1
Points [25, 0; 0, 95]
DstBlock "Outputs"
DstPort 1
}
Line {
SrcBlock "Mux2"
SrcPort 1
Points [10, 0; 0, 55]
DstBlock "Outputs"
DstPort 2
}
Line {
SrcBlock "Ground1"
SrcPort 1
DstBlock "Mux2"
DstPort 3
}
Line {
Name "Rising"
Labels [0, 0]
SrcBlock "Rising"
SrcPort 1
Points [40, 0; 0, 20]
DstBlock "Mux2"
DstPort 2
}
Line {
SrcBlock "Ground2"
SrcPort 1
DstBlock "Mux3"
DstPort 3
}
Line {
SrcBlock "Mux3"
SrcPort 1
DstBlock "Outputs"
DstPort 3
}
Line {
Name "Falling"
Labels [0, 0]
SrcBlock "Falling"
SrcPort 1
DstBlock "Mux3"
DstPort 2
}
Line {
SrcBlock "Ground3"
SrcPort 1
DstBlock "Mux4"
DstPort 3
}
Line {
SrcBlock "Mux4"
SrcPort 1
Points [25, 0; 0, -50]
DstBlock "Outputs"
DstPort 4
}
Line {
Name "Either"
Labels [0, 0]
SrcBlock "Either"
SrcPort 1
Points [35, 0; 0, -25]
DstBlock "Mux4"
DstPort 2
}
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -