📄 vid_focus.mdl
字号:
Model {
Name "vid_focus"
Version 5.0
Description "Simulink video focus assessment
\n"
SaveDefaultBlockParams on
SampleTimeColors off
LibraryLinkDisplay "none"
WideLines on
ShowLineDimensions on
ShowPortDataTypes on
ShowLoopsOnError on
IgnoreBidirectionalLines off
ShowStorageClass off
ExecutionOrder off
RecordCoverage off
CovPath "/"
CovSaveName "covdata"
CovMetricSettings "dw"
CovNameIncrementing off
CovHtmlReporting on
covSaveCumulativeToWorkspaceVar on
CovSaveSingleToWorkspaceVar on
CovCumulativeVarName "covCumulativeData"
CovCumulativeReport off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
MinMaxOverflowArchiveMode "Overwrite"
BlockNameDataTip off
BlockParametersDataTip off
BlockDescriptionStringDataTip off
ToolBar on
StatusBar on
BrowserShowLibraryLinks off
BrowserLookUnderMasks off
PreLoadFcn "load vid_focus
\n"
CloseFcn "clear vidR"
Created "Wed Sep 18 09:38:17 2002"
Creator "don"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
LastModifiedBy "don"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Fri Mar 07 09:41:37 2003"
ModelVersionFormat "1.%<AutoIncrement:287>"
ConfigurationManager "None"
SimParamPage "Solver"
LinearizationMsg "none"
Profile off
ParamWorkspaceSource "MATLABWorkspace"
AccelSystemTargetFile "accel.tlc"
AccelTemplateMakefile "accel_default_tmf"
AccelMakeCommand "make_rtw"
TryForcingSFcnDF off
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
ExtModeSkipDownloadWhenConnect off
ExtModeLogAll on
ExtModeAutoUpdateStatusClock on
BufferReuse on
RTWExpressionDepthLimit 5
SimulationMode "normal"
Solver "FixedStepDiscrete"
SolverMode "Auto"
StartTime "0.0"
StopTime "inf"
MaxOrder 5
MaxStep "auto"
MinStep "auto"
MaxNumMinSteps "-1"
InitialStep "auto"
FixedStep "auto"
RelTol "1e-3"
AbsTol "auto"
OutputOption "RefineOutputTimes"
OutputTimes "[]"
Refine "1"
LoadExternalInput off
ExternalInput "[t, u]"
LoadInitialState off
InitialState "xInitial"
SaveTime off
TimeSaveName "tout"
SaveState off
StateSaveName "xout"
SaveOutput off
OutputSaveName "yout"
SaveFinalState off
FinalStateName "xFinal"
SaveFormat "Array"
Decimation "1"
LimitDataPoints off
MaxDataPoints "1000"
SignalLoggingName "sigsOut"
ConsistencyChecking "none"
ArrayBoundsChecking "none"
AlgebraicLoopMsg "warning"
BlockPriorityViolationMsg "warning"
MinStepSizeMsg "warning"
InheritedTsInSrcMsg "warning"
DiscreteInheritContinuousMsg "warning"
MultiTaskRateTransMsg "error"
SingleTaskRateTransMsg "none"
CheckForMatrixSingularity "none"
IntegerOverflowMsg "warning"
Int32ToFloatConvMsg "warning"
ParameterDowncastMsg "error"
ParameterOverflowMsg "error"
ParameterPrecisionLossMsg "warning"
UnderSpecifiedDataTypeMsg "none"
UnnecessaryDatatypeConvMsg "none"
VectorMatrixConversionMsg "none"
InvalidFcnCallConnMsg "error"
SignalLabelMismatchMsg "none"
UnconnectedInputMsg "warning"
UnconnectedOutputMsg "warning"
UnconnectedLineMsg "warning"
SfunCompatibilityCheckMsg "none"
RTWInlineParameters on
BlockReductionOpt on
BooleanDataType on
ConditionallyExecuteInputs on
ParameterPooling on
OptimizeBlockIOStorage on
ZeroCross on
AssertionControl "UseLocalSettings"
ProdHWDeviceType "Microprocessor"
ProdHWWordLengths "8,16,32,32"
RTWSystemTargetFile "grt.tlc"
RTWTemplateMakefile "grt_default_tmf"
RTWMakeCommand "make_rtw"
RTWGenerateCodeOnly off
RTWRetainRTWFile off
TLCProfiler off
TLCDebug off
TLCCoverage off
TLCAssertion off
RTWOptions "-aEnforceIntegerDowncast=1 -aExtMode=0 -aExtModeTes"
"ting=0 -aExtModeTransport=\"tcpip\" -aFoldNonRolledExpr=1 -aForceParamTrailCo"
"mments=0 -aGenerateComments=1 -aGenerateFullHeader=1 -aGenerateReport=0 -aIgn"
"oreCustomStorageClasses=1 -aIncDataTypeInIds=0 -aIncHierarchyInIds=0 -aInline"
"InvariantSignals=1 -aInlinedPrmAccess=\"Literals\" -aLocalBlockOutputs=1 -aLo"
"gVarNameModifier=\"rt_\" -aMaxRTWIdLen=31 -aPrefixModelToSubsysFcnNames=1 -aR"
"TWVerbose=1 -aRollThreshold=5 -aShowEliminatedStatements=0"
BlockDefaults {
Orientation "right"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
NamePlacement "normal"
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
BlockParameterDefaults {
Block {
BlockType Constant
Value "1"
VectorParams1D on
ShowAdditionalParam off
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
}
Block {
BlockType DataTypeConversion
DataType "auto"
SaturateOnIntegerOverflow on
}
Block {
BlockType FrameConversion
OutFrame "Frame-based"
}
Block {
BlockType FromWorkspace
VariableName "simulink_input"
SampleTime "-1"
Interpolate on
OutputAfterFinalValue "Extrapolation"
}
Block {
BlockType Gain
Gain "1"
Multiplication "Element-wise(K.*u)"
ShowAdditionalParam off
ParameterDataTypeMode "Same as input"
ParameterDataType "sfix(16)"
ParameterScalingMode "Best Precision: Matrix-wise"
ParameterScaling "2^0"
OutDataTypeMode "Same as input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
}
Block {
BlockType Inport
Port "1"
PortDimensions "-1"
SampleTime "-1"
ShowAdditionalParam off
LatchInput off
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
Interpolate on
}
Block {
BlockType Math
Operator "exp"
OutputSignalType "auto"
}
Block {
BlockType Outport
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Product
Inputs "2"
Multiplication "Element-wise(.*)"
ShowAdditionalParam off
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
}
Block {
BlockType "S-Function"
FunctionName "system"
PortCounts "[]"
SFunctionModules "''"
}
Block {
BlockType SubSystem
ShowPortLabels on
Permissions "ReadWrite"
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType Sum
IconShape "rectangular"
Inputs "++"
ShowAdditionalParam off
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow 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 "vid_focus"
Location [17, 542, 510, 734]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType FromWorkspace
Name "Drosophila\nFly"
Position [25, 33, 90, 57]
VariableName "vidR"
SampleTime "1/15"
Interpolate off
OutputAfterFinalValue "Cyclic repetition"
}
Block {
BlockType SubSystem
Name "Focus\nMetrics"
Ports [1, 2]
Position [235, 16, 290, 69]
TreatAsAtomicUnit off
System {
Name "Focus\nMetrics"
Location [90, 436, 955, 640]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Video"
Position [15, 93, 45, 107]
}
Block {
BlockType SubSystem
Name "Collect\nFrequency\nMatrix"
Ports [1, 1]
Position [420, 81, 465, 119]
NamePlacement "alternate"
TreatAsAtomicUnit off
System {
Name "Collect\nFrequency\nMatrix"
Location [201, 294, 691, 520]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In"
Position [25, 98, 55, 112]
}
Block {
BlockType Reference
Name "Flip"
Ports [1, 1]
Position [200, 151, 235, 179]
ShowName off
SourceBlock "dspindex/Flip"
SourceType "Flip"
dim "Columns"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation"
Ports [2, 1]
Position [325, 74, 380, 116]
NamePlacement "alternate"
ShowName off
SourceBlock "simulink/Math\nOperations/Matrix\nConca"
"tenation"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Vertical"
}
Block {
BlockType Reference
Name "Q1"
Ports [1, 1]
Position [110, 84, 155, 126]
SourceBlock "dspmtrx3/Submatrix"
SourceType "Submatrix"
RowSpan "Range of rows"
RowStartMode "Index"
RowStartIndex "2"
RowEndMode "Index"
RowEndIndex "16"
ColSpan "Range of columns"
ColStartMode "First"
ColStartIndex "1"
ColEndMode "Index"
ColEndIndex "16"
}
Block {
BlockType Reference
Name "Q1dc"
Ports [1, 1]
Position [110, 24, 155, 66]
SourceBlock "dspmtrx3/Submatrix"
SourceType "Submatrix"
RowSpan "One row"
RowStartMode "First"
RowStartIndex "14"
RowEndMode "Last"
RowEndIndex "16"
ColSpan "Range of columns"
ColStartMode "First"
ColStartIndex "-64"
ColEndMode "Index"
ColEndIndex "16"
}
Block {
BlockType Reference
Name "Q2"
Ports [1, 1]
Position [110, 144, 155, 186]
SourceBlock "dspmtrx3/Submatrix"
SourceType "Submatrix"
RowSpan "Range of rows"
RowStartMode "Offset from last"
RowStartIndex "14"
RowEndMode "Last"
RowEndIndex "16"
ColSpan "Range of columns"
ColStartMode "First"
ColStartIndex "-64"
ColEndMode "Index"
ColEndIndex "16"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [255, 95, 275, 115]
ShowName off
IconShape "round"
Inputs "|++"
}
Block {
BlockType Outport
Name "Out"
Position [445, 88, 475, 102]
}
Line {
SrcBlock "Q2"
SrcPort 1
DstBlock "Flip"
DstPort 1
}
Line {
SrcBlock "Q1"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "In"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
Points [0, 60]
Branch {
Points [0, -120]
DstBlock "Q1dc"
DstPort 1
}
Branch {
DstBlock "Q2"
DstPort 1
}
}
Branch {
DstBlock "Q1"
DstPort 1
}
}
Line {
SrcBlock "Flip"
SrcPort 1
Points [25, 0]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Q1dc"
SrcPort 1
Points [150, 0]
DstBlock "Matrix\nConcatenation"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Matrix\nConcatenation"
DstPort 2
}
Line {
SrcBlock "Matrix\nConcatenation"
SrcPort 1
DstBlock "Out"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "FFT Data"
Ports [1]
Position [635, 25, 680, 75]
NamePlacement "alternate"
SourceBlock "dspsnks4/Matrix\nViewer"
SourceType "Matrix Viewer"
ImageParams on
CMapStr "hot(256)"
YMin "0"
YMax "8"
AxisColorbar on
AxisParams off
AxisOrigin "Upper left corner"
XLabel "X-axis"
YLabel "Y-axis"
ZLabel "Z-axis"
FigPos "[442 555 207 184]"
AxisZoom on
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -