📄 zohtrigger.mdl
字号:
Model {
Name "myTRIGGERED"
Version 3.00
SimParamPage "Solver"
SampleTimeColors off
InvariantConstants off
WideVectorLines on
ShowLineWidths off
ShowPortDataTypes off
StartTime "0.0"
StopTime "10.0"
SolverMode "SingleTasking"
Solver "ode45"
RelTol "1e-3"
AbsTol "1e-6"
Refine "1"
MaxStep "0.1"
InitialStep "auto"
FixedStep "auto"
MaxOrder 5
OutputOption "RefineOutputTimes"
OutputTimes "[]"
LoadExternalInput off
ExternalInput "[t, u]"
SaveTime on
TimeSaveName "tout"
SaveState off
StateSaveName "xout"
SaveOutput on
OutputSaveName "yout"
LoadInitialState off
InitialState "xInitial"
SaveFinalState off
FinalStateName "xFinal"
SaveFormat "Matrix"
LimitMaxRows off
MaxRows "1000"
Decimation "1"
AlgebraicLoopMsg "warning"
MinStepSizeMsg "warning"
UnconnectedInputMsg "warning"
UnconnectedOutputMsg "warning"
UnconnectedLineMsg "warning"
InheritedTsInSrcMsg "warning"
IntegerOverflowMsg "warning"
UnnecessaryDatatypeConvMsg "none"
Int32ToFloatConvMsg "warning"
SignalLabelMismatchMsg "none"
ConsistencyChecking "off"
ZeroCross on
SimulationMode "normal"
BlockDataTips on
BlockParametersDataTip on
BlockAttributesDataTip off
BlockPortWidthsDataTip off
BlockDescriptionStringDataTip off
BlockMaskParametersDataTip off
ToolBar on
StatusBar on
BrowserShowLibraryLinks off
BrowserLookUnderMasks off
OptimizeBlockIOStorage on
BufferReuse on
BooleanDataType off
RTWSystemTargetFile "grt.tlc"
RTWInlineParameters off
RTWRetainRTWFile off
RTWTemplateMakefile "grt_default_tmf"
RTWMakeCommand "make_rtw"
RTWGenerateCodeOnly off
ExtModeMexFile "ext_comm"
ExtModeBatchMode off
ExtModeTrigType "manual"
ExtModeTrigMode "oneshot"
ExtModeTrigPort "1"
ExtModeTrigElement "any"
ExtModeTrigDuration 1000
ExtModeTrigHoldOff 0
ExtModeTrigDelay 0
ExtModeTrigDirection "rising"
ExtModeTrigLevel 0
ExtModeArchiveMode "off"
ExtModeAutoIncOneShot off
ExtModeIncDirWhenArm off
ExtModeAddSuffixToVar off
ExtModeWriteAllDataToWs off
ExtModeArmWhenConnect off
Created "Tue Mar 30 14:34:29 1999"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
LastModifiedBy "difronzo"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Wed Oct 04 14:09:22 2000"
ModelVersionFormat "1.%<AutoIncrement:6>"
ConfigurationManager "none"
BlockDefaults {
Orientation "right"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
NamePlacement "normal"
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "Helvetica"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "myTRIGGERED"
Location [120, 144, 828, 675]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom off
ReportName "simulink-default.rpt"
Block {
BlockType SubSystem
Name "Either"
Ports [1, 1, 0, 1, 0]
Position [135, 382, 205, 428]
ShowPortLabels on
System {
Name "Either"
Location [284, 337, 593, 549]
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 [25, 68, 55, 82]
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType TriggerPort
Name "Trigger"
Ports [0, 0, 0, 0, 0]
Position [50, 15, 70, 35]
TriggerType "either"
ShowOutputPort off
OutputDataType "auto"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold"
Position [75, 56, 110, 94]
SampleTime "-1"
}
Block {
BlockType Outport
Name "Out"
Position [135, 68, 165, 82]
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
}
Line {
SrcBlock "Zero-Order\nHold"
SrcPort 1
DstBlock "Out"
DstPort 1
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "Zero-Order\nHold"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Falling"
Ports [1, 1, 0, 1, 0]
Position [140, 268, 210, 312]
ShowPortLabels on
System {
Name "Falling"
Location [284, 319, 630, 553]
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 [25, 68, 55, 82]
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType TriggerPort
Name "Trigger"
Ports [0, 0, 0, 0, 0]
Position [85, 15, 105, 35]
TriggerType "falling"
ShowOutputPort off
OutputDataType "auto"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold"
Position [75, 56, 110, 94]
SampleTime "-1"
}
Block {
BlockType Outport
Name "Out"
Position [135, 68, 165, 82]
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "Zero-Order\nHold"
DstPort 1
}
Line {
SrcBlock "Zero-Order\nHold"
SrcPort 1
DstBlock "Out"
DstPort 1
}
}
}
Block {
BlockType Mux
Name "Mux2"
Ports [2, 1, 0, 0, 0]
Position [280, 380, 285, 475]
ShowName off
Inputs "2"
DisplayOption "bar"
Port {
PortNumber 1
Name "Either"
TestPoint off
RTWStorageClass "Auto"
}
}
Block {
BlockType Mux
Name "Mux3"
Ports [2, 1, 0, 0, 0]
Position [280, 265, 285, 360]
ShowName off
Inputs "2"
DisplayOption "bar"
Port {
PortNumber 1
Name "Falling"
TestPoint off
RTWStorageClass "Auto"
}
}
Block {
BlockType Mux
Name "Mux4"
Ports [2, 1, 0, 0, 0]
Position [280, 150, 285, 245]
ShowName off
Inputs "2"
DisplayOption "bar"
Port {
PortNumber 1
Name "Rising"
TestPoint off
RTWStorageClass "Auto"
}
}
Block {
BlockType Scope
Name "Outputs"
Ports [4, 0, 0, 0, 0]
Position [400, 25, 545, 490]
Floating off
Location [216, 170, 959, 734]
Open on
NumInputPorts "4"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
axes4 "%<SignalLabel>"
}
Grid "on"
TimeRange "10"
YMin "-2~-1~-1~-1"
YMax "2~1~1~1"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "Matrix"
LimitMaxRows on
MaxRows "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType SubSystem
Name "Rising"
Ports [1, 1, 0, 1, 0]
Position [135, 153, 200, 197]
ShowPortLabels on
System {
Name "Rising"
Location [284, 319, 614, 533]
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, 63, 50, 77]
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType TriggerPort
Name "Trigger"
Ports [0, 0, 0, 0, 0]
Position [75, 15, 95, 35]
TriggerType "rising"
ShowOutputPort off
OutputDataType "auto"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold"
Position [70, 51, 105, 89]
SampleTime "-1"
}
Block {
BlockType Outport
Name "Out"
Position [130, 63, 160, 77]
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
}
Line {
SrcBlock "Zero-Order\nHold"
SrcPort 1
DstBlock "Out"
DstPort 1
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "Zero-Order\nHold"
DstPort 1
}
}
}
Block {
BlockType SignalGenerator
Name "Sin Wave\nFreq: 1.3 Hz"
Position [20, 435, 50, 465]
NamePlacement "alternate"
WaveForm "sine"
Amplitude "1"
Frequency "1.3"
Units "Hertz"
}
Block {
BlockType SignalGenerator
Name "Square Wave\nFreq: 1 Hz"
Position [20, 70, 50, 100]
WaveForm "square"
Amplitude "1"
Frequency "1"
Units "Hertz"
Port {
PortNumber 1
Name "Square Wave (Trigger Signal)"
TestPoint off
RTWStorageClass "Auto"
}
}
Line {
SrcBlock "Falling"
SrcPort 1
DstBlock "Mux3"
DstPort 1
}
Line {
SrcBlock "Either"
SrcPort 1
DstBlock "Mux2"
DstPort 1
}
Line {
Name "Either"
Labels [1, 1]
SrcBlock "Mux2"
SrcPort 1
DstBlock "Outputs"
DstPort 4
}
Line {
Name "Falling"
Labels [1, 1]
SrcBlock "Mux3"
SrcPort 1
DstBlock "Outputs"
DstPort 3
}
Line {
SrcBlock "Rising"
SrcPort 1
DstBlock "Mux4"
DstPort 1
}
Line {
Name "Rising"
Labels [1, 1]
SrcBlock "Mux4"
SrcPort 1
DstBlock "Outputs"
DstPort 2
}
Line {
SrcBlock "Sin Wave\nFreq: 1.3 Hz"
SrcPort 1
Points [50, 0]
Branch {
DstBlock "Mux2"
DstPort 2
}
Branch {
Points [0, -45]
Branch {
DstBlock "Either"
DstPort 1
}
Branch {
Points [0, -70]
Branch {
Points [0, -45]
Branch {
Points [0, -70]
Branch {
Points [0, -45]
DstBlock "Rising"
DstPort 1
}
Branch {
DstBlock "Mux4"
DstPort 2
}
}
Branch {
DstBlock "Falling"
DstPort 1
}
}
Branch {
DstBlock "Mux3"
DstPort 2
}
}
}
}
Line {
Name "Square Wave (Trigger Signal)"
SrcBlock "Square Wave\nFreq: 1 Hz"
SrcPort 1
Points [15, 0]
Branch {
Labels [-1, 0]
DstBlock "Outputs"
DstPort 1
}
Branch {
Points [0, 50]
Branch {
Points [0, 115]
Branch {
Points [105, 0]
DstBlock "Falling"
DstPort trigger
}
Branch {
Points [0, 117]
DstBlock "Either"
DstPort trigger
}
}
Branch {
Points [95, 0]
DstBlock "Rising"
DstPort trigger
}
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -