📄 untitled1.mdl
字号:
Model {
Name "untitled1"
Version 4.00
SampleTimeColors off
LibraryLinkDisplay "none"
WideLines off
ShowLineDimensions off
ShowPortDataTypes off
RecordCoverage off
CovPath "/"
CovSaveName "covdata"
CovNameIncrementing off
CovHtmlReporting on
BlockNameDataTip off
BlockParametersDataTip off
BlockDescriptionStringDataTip off
ToolBar on
StatusBar on
BrowserShowLibraryLinks off
BrowserLookUnderMasks off
Created "Fri Jul 06 14:21:14 2001"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
LastModifiedBy "phillida"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Sun Jul 08 13:45:17 2001"
ModelVersionFormat "1.%<AutoIncrement:4>"
ConfigurationManager "none"
SimParamPage "Solver"
StartTime "0.0"
StopTime "40e-6"
SolverMode "Auto"
Solver "ode45"
RelTol "1e-3"
AbsTol "auto"
Refine "1"
MaxStep "auto"
MinStep "auto"
MaxNumMinSteps "-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 "Array"
LimitDataPoints on
MaxDataPoints "1000"
Decimation "1"
AlgebraicLoopMsg "warning"
MinStepSizeMsg "warning"
UnconnectedInputMsg "warning"
UnconnectedOutputMsg "warning"
UnconnectedLineMsg "warning"
InheritedTsInSrcMsg "warning"
SingleTaskRateTransMsg "none"
MultiTaskRateTransMsg "error"
IntegerOverflowMsg "warning"
CheckForMatrixSingularity "none"
UnnecessaryDatatypeConvMsg "none"
Int32ToFloatConvMsg "warning"
SignalLabelMismatchMsg "none"
LinearizationMsg "none"
VectorMatrixConversionMsg "none"
SfunCompatibilityCheckMsg "none"
BlockPriorityViolationMsg "warning"
ArrayBoundsChecking "none"
ConsistencyChecking "none"
ZeroCross on
Profile off
SimulationMode "normal"
RTWSystemTargetFile "grt.tlc"
RTWInlineParameters off
RTWRetainRTWFile off
RTWTemplateMakefile "grt_default_tmf"
RTWMakeCommand "make_rtw"
RTWGenerateCodeOnly off
TLCProfiler off
TLCDebug off
TLCCoverage off
AccelSystemTargetFile "accel.tlc"
AccelTemplateMakefile "accel_default_tmf"
AccelMakeCommand "make_rtw"
ExtModeMexFile "ext_comm"
ExtModeBatchMode off
ExtModeTrigType "manual"
ExtModeTrigMode "normal"
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 on
ExtModeLogAll on
OptimizeBlockIOStorage on
BufferReuse on
ParameterPooling on
BlockReductionOpt off
BooleanDataType off
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 "untitled1"
Location [6, 74, 1026, 724]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
ReportName "simulink-default.rpt"
Block {
BlockType DiscretePulseGenerator
Name "Discrete Pulse\nGenerator"
Position [90, 410, 120, 440]
Amplitude "1"
Period "65"
PulseWidth "1"
PhaseDelay "0"
SampleTime "14.286e-6"
VectorParams1D on
}
Block {
BlockType SubSystem
Name "Filter"
Ports [1, 1]
Position [475, 400, 550, 440]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "Filter"
Location [12, 74, 1032, 724]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "In1"
Position [85, 173, 115, 187]
Port "1"
Interpolate on
}
Block {
BlockType Reference
Name "Counter"
Ports [2, 1]
Position [280, 135, 350, 195]
FontSize 10
SourceBlock "dspswit3/Counter"
SourceType "Counter"
Direction "Up"
CountEvent "Rising edge"
CounterSize "User defined"
MaxCount "30"
InitialCount "0"
Output "Hit"
HitValue "30"
ResetInput on
SamplesPerFrame "1"
Ts "1"
}
Block {
BlockType DiscretePulseGenerator
Name "Discrete Pulse\nGenerator"
Position [40, 85, 70, 115]
Amplitude "1"
Period "2"
PulseWidth "1"
PhaseDelay "0"
SampleTime "1/4.2e+6"
VectorParams1D on
}
Block {
BlockType Logic
Name "Logical\nOperator"
Ports [2, 1]
Position [180, 80, 215, 115]
Operator "AND"
Inputs "2"
}
Block {
BlockType Reference
Name "S-R\nFlip-Flop"
Ports [2, 2]
Position [520, 160, 565, 235]
FontSize 10
SourceBlock "simulink_extras/Flip Flops/S-R\nFlip-Flop"
SourceType "SRFlipFlop"
initial_condition "0"
}
Block {
BlockType Outport
Name "Out1"
Position [825, 173, 855, 187]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Logical\nOperator"
SrcPort 1
Points [0, 50]
DstBlock "Counter"
DstPort 1
}
Line {
SrcBlock "Discrete Pulse\nGenerator"
SrcPort 1
Points [90, 0]
DstBlock "Logical\nOperator"
DstPort 2
}
Line {
SrcBlock "S-R\nFlip-Flop"
SrcPort 1
Points [165, 0]
Branch {
Points [0, -130; -595, 0; 0, 40]
DstBlock "Logical\nOperator"
DstPort 1
}
Branch {
DstBlock "Out1"
DstPort 1
}
}
Line {
SrcBlock "In1"
SrcPort 1
Points [100, 0]
Branch {
DstBlock "Counter"
DstPort 2
}
Branch {
Points [0, 75; 185, 0; 0, -75]
DstBlock "S-R\nFlip-Flop"
DstPort 1
}
}
Line {
SrcBlock "Counter"
SrcPort 1
Points [30, 0; 0, 50]
DstBlock "S-R\nFlip-Flop"
DstPort 2
}
}
}
Block {
BlockType SubSystem
Name "Filter1"
Ports [1, 1]
Position [465, 75, 540, 115]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "Filter1"
Location [8, 74, 1028, 724]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "In1"
Position [85, 173, 115, 187]
Port "1"
Interpolate on
}
Block {
BlockType Reference
Name "Counter"
Ports [2, 1]
Position [280, 135, 350, 195]
FontSize 10
SourceBlock "dspswit3/Counter"
SourceType "Counter"
Direction "Up"
CountEvent "Rising edge"
CounterSize "User defined"
MaxCount "30"
InitialCount "0"
Output "Hit"
HitValue "30"
ResetInput on
SamplesPerFrame "1"
Ts "1"
}
Block {
BlockType DiscretePulseGenerator
Name "Discrete Pulse\nGenerator"
Position [40, 85, 70, 115]
Amplitude "1"
Period "2"
PulseWidth "1"
PhaseDelay "0"
SampleTime "1/4.2e+6"
VectorParams1D on
}
Block {
BlockType Logic
Name "Logical\nOperator"
Ports [2, 1]
Position [180, 80, 215, 115]
Operator "AND"
Inputs "2"
}
Block {
BlockType Reference
Name "S-R\nFlip-Flop"
Ports [2, 2]
Position [520, 160, 565, 235]
FontSize 10
SourceBlock "simulink_extras/Flip Flops/S-R\nFlip-Flop"
SourceType "SRFlipFlop"
initial_condition "0"
}
Block {
BlockType Outport
Name "Out1"
Position [825, 173, 855, 187]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Logical\nOperator"
SrcPort 1
Points [0, 50]
DstBlock "Counter"
DstPort 1
}
Line {
SrcBlock "Discrete Pulse\nGenerator"
SrcPort 1
Points [90, 0]
DstBlock "Logical\nOperator"
DstPort 2
}
Line {
SrcBlock "S-R\nFlip-Flop"
SrcPort 1
Points [165, 0]
Branch {
Points [0, -130; -595, 0; 0, 40]
DstBlock "Logical\nOperator"
DstPort 1
}
Branch {
DstBlock "Out1"
DstPort 1
}
}
Line {
SrcBlock "In1"
SrcPort 1
Points [100, 0]
Branch {
DstBlock "Counter"
DstPort 2
}
Branch {
Points [0, 75; 185, 0; 0, -75]
DstBlock "S-R\nFlip-Flop"
DstPort 1
}
}
Line {
SrcBlock "Counter"
SrcPort 1
Points [30, 0; 0, 50]
DstBlock "S-R\nFlip-Flop"
DstPort 2
}
}
}
Block {
BlockType Logic
Name "Logical\nOperator"
Ports [2, 1]
Position [380, 402, 410, 433]
Operator "AND"
Inputs "2"
}
Block {
BlockType Logic
Name "Logical\nOperator1"
Ports [1, 1]
Position [265, 64, 295, 96]
Operator "NOT"
Inputs "2"
}
Block {
BlockType Logic
Name "Logical\nOperator2"
Ports [2, 1]
Position [380, 77, 410, 108]
Operator "AND"
Inputs "2"
}
Block {
BlockType Logic
Name "Logical\nOperator3"
Ports [2, 1]
Position [535, 187, 565, 218]
Orientation "left"
NamePlacement "alternate"
Operator "NOR"
Inputs "2"
}
Block {
BlockType Scope
Name "Scope"
Ports [3]
Position [825, 243, 855, 277]
Floating off
Location [1, 49, 1025, 739]
Open on
NumInputPorts "3"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
}
Grid "on"
TimeRange "4e-005"
YMin "0~-1~0"
YMax "1~1~1"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold"
Position [180, 406, 215, 444]
SampleTime "1/4.2e+6"
}
Line {
SrcBlock "Logical\nOperator"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "Filter"
DstPort 1
}
Branch {
Points [0, -150]
DstBlock "Scope"
DstPort 3
}
}
Line {
SrcBlock "Logical\nOperator2"
SrcPort 1
DstBlock "Filter1"
DstPort 1
}
Line {
SrcBlock "Filter1"
SrcPort 1
Points [155, 0; 0, 100]
DstBlock "Logical\nOperator3"
DstPort 1
}
Line {
SrcBlock "Discrete Pulse\nGenerator"
SrcPort 1
DstBlock "Zero-Order\nHold"
DstPort 1
}
Line {
SrcBlock "Logical\nOperator3"
SrcPort 1
Points [-200, 0]
Branch {
Points [0, -105]
DstBlock "Logical\nOperator2"
DstPort 2
}
Branch {
Points [0, 205]
DstBlock "Logical\nOperator"
DstPort 1
}
}
Line {
SrcBlock "Filter"
SrcPort 1
Points [145, 0; 0, -210]
DstBlock "Logical\nOperator3"
DstPort 2
}
Line {
SrcBlock "Zero-Order\nHold"
SrcPort 1
Points [65, 0]
Branch {
DstBlock "Logical\nOperator"
DstPort 2
}
Branch {
Points [0, -165]
DstBlock "Scope"
DstPort 2
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -