📄 demo6.mdl
字号:
Simulink.ConfigSet { $PropName "ActiveConfigurationSet" $ObjectID 1 } BlockDefaults { Orientation "right" ForegroundColor "black" BackgroundColor "white" DropShadow off NamePlacement "normal" FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" ShowName on } BlockParameterDefaults { Block { BlockType Display Format "short" Decimation "10" Floating off SampleTime "-1" } Block { BlockType Gain Gain "1" Multiplication "Element-wise(K.*u)" ParamMin "[]" ParamMax "[]" ParameterDataTypeMode "Same as input" ParameterDataType "fixdt(1,16,0)" ParameterScalingMode "Best Precision: Matrix-wise" ParameterScaling "[]" ParamDataTypeStr "Inherit: Same as input" OutMin "[]" OutMax "[]" OutDataTypeMode "Same as input" OutDataType "fixdt(1,16,0)" OutScaling "[]" OutDataTypeStr "Inherit: Same as input" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType Inport Port "1" UseBusObject off BusObject "BusObject" BusOutputAsStruct off PortDimensions "-1" SampleTime "-1" OutMin "[]" OutMax "[]" DataType "auto" OutDataType "fixdt(1,16,0)" OutScaling "[]" OutDataTypeStr "Inherit: auto" SignalType "auto" SamplingMode "auto" LatchByDelayingOutsideSignal off LatchByCopyingInsideSignal off Interpolate on } Block { BlockType Integrator ExternalReset "none" InitialConditionSource "internal" InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" IgnoreLimit off ZeroCross on ContinuousStateAttributes "''" } Block { BlockType MATLABFcn MATLABFcn "sin" OutputDimensions "-1" OutputSignalType "auto" Output1D on SampleTime "-1" } Block { BlockType Outport Port "1" UseBusObject off BusObject "BusObject" BusOutputAsStruct off PortDimensions "-1" SampleTime "-1" OutMin "[]" OutMax "[]" DataType "auto" OutDataType "fixdt(1,16,0)" OutScaling "[]" OutDataTypeStr "Inherit: auto" SignalType "auto" SamplingMode "auto" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType Product Inputs "2" Multiplication "Element-wise(.*)" CollapseMode "All dimensions" CollapseDim "1" InputSameDT on OutMin "[]" OutMax "[]" OutDataTypeMode "Same as first input" OutDataType "fixdt(1,16,0)" OutScaling "[]" OutDataTypeStr "Inherit: Same as first input" LockScale off RndMeth "Zero" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType Scope ModelBased off TickLabels "OneTimeTick" ZoomMode "on" Grid "on" TimeRange "auto" YMin "-5" YMax "5" SaveToWorkspace off SaveName "ScopeData" LimitDataPoints on MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "-1" } Block { BlockType "S-Function" FunctionName "system" SFunctionModules "''" PortCounts "[]" SFunctionDeploymentMode off } Block { BlockType SubSystem ShowPortLabels "FromPortIcon" Permissions "ReadWrite" PermitHierarchicalResolution "All" TreatAsAtomicUnit off CheckFcnCallInpInsideContextMsg off SystemSampleTime "-1" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" SimViewingDevice off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" } Block { BlockType Sum IconShape "rectangular" Inputs "++" CollapseMode "All dimensions" CollapseDim "1" InputSameDT on AccumDataTypeStr "Inherit: Inherit via internal rule" OutMin "[]" OutMax "[]" OutDataTypeMode "Same as first input" OutDataType "fixdt(1,16,0)" OutScaling "[]" OutDataTypeStr "Inherit: Same as first input" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType Constant Value "1" VectorParams1D on SamplingMode "Sample based" OutMin "[]" OutMax "[]" OutDataTypeMode "Inherit from 'Constant value'" OutDataType "fixdt(1,16,0)" ConRadixGroup "Use specified scaling" OutScaling "[]" OutDataTypeStr "Inherit: Inherit from 'Constant value'" SampleTime "inf" FramePeriod "inf" } } AnnotationDefaults { HorizontalAlignment "center" VerticalAlignment "middle" ForegroundColor "black" BackgroundColor "white" DropShadow off FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" UseDisplayTextAsClickCallback off } LineDefaults { FontName "Helvetica" FontSize 9 FontWeight "normal" FontAngle "normal" } System { Name "demo6" Location [437, 190, 1498, 788] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "portrait" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" ReportName "simulink-default.rpt" Block { BlockType Display Name "Cartesian velocity dmd" Ports [1] Position [375, 344, 465, 466] Orientation "left" Format "bank" Decimation "1" Lockdown off } Block { BlockType Gain Name "Gain1" Position [295, 520, 350, 560] Orientation "left" ShowName off Gain "-0.10" } Block { BlockType MATLABFcn Name "MATLAB Fcn" Ports [1, 1] Position [720, 300, 780, 330] BackgroundColor "lightBlue" ShowName off MATLABFcn "reshape(u',prod(size(u)),1)" Port { PortNumber 1 Name "feature vel" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType MATLABFcn Name "MATLAB Fcn1" Ports [1, 1] Position [860, 350, 920, 380] ShowName off MATLABFcn "norm(u)" } Block { BlockType MATLABFcn Name "MATLAB Fcn2" Ports [1, 1] Position [840, 80, 900, 110] ShowName off MATLABFcn "cond(u)" } Block { BlockType Reference Name "Model Info" Ports [] Position [14, 480, 225, 529] ShowName off FontName "Arial" SourceBlock "simulink/Model-Wide\nUtilities/Model Info" SourceType "CMBlock" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" InitialBlockCM "none" BlockCM "none" Frame "on" DisplayStringWithTags "Image-based visual servo control\n%<Creator>\n%<LastModificationDate>" MaskDisplayString "Image-based visual servo control\\npic\\n23-Apr-2008 23:02:56" HorizontalTextAlignment "Left" LeftAlignmentValue "0.02" SourceBlockDiagram "demo6" TagMaxNumber "20" } Block { BlockType Product Name "Product" Ports [2, 1] Position [260, 185, 295, 245] ShowName off Multiplication "Matrix(*)" } Block { BlockType Product Name "Product1" Ports [2, 1] Position [965, 200, 1000, 260] BackgroundColor "lightBlue" ShowName off Multiplication "Matrix(*)" } Block { BlockType Integrator Name "Rate\ncontrolled\nrobot\naxes" Ports [1, 1] Position [325, 192, 360, 238] DropShadow on InitialCondition "[0.3048 -0.9869 0.4483 -0.3513 -1.0595 0.1774]" Port { PortNumber 1 Name "q" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [660, 305, 680, 325] BackgroundColor "lightBlue" ShowName off IconShape "round" Inputs "-+|" } Block { BlockType SubSystem Name "camera" Ports [1, 1] Position [545, 176, 625, 254] BackgroundColor "lightBlue" DropShadow on MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off MaskPromptString "Name|Camera params|Image plane size|Points (nx2)" MaskStyleString "edit,edit,edit,edit" MaskTunableValueString "on,on,on,on" MaskCallbackString "|||" MaskEnableString "on,on,on,on" MaskVisibilityString "on,on,on,on" MaskToolTipString "on,on,on,on" MaskVarAliasString ",,," MaskVariables "cam_name=&1;camdata=@2;dims=@3;points=@4;" MaskInitialization "h=gcamera(cam_name,camcalp_c(camdata),dims);" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "IBVS camera|[8e-3 80e3 80e3 256 256]|[0 511 0 511]|rotz(0.02)*[2 0.2 0.2;2 0.2 -0.2; 2 -0.2 -0.2 ;2 -0.2 0.2]" MaskTabNameString ",,," System { Name "camera" Location [379, 398, 686, 504] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "T" Position [25, 33, 55, 47] IconDisplay "Port number" } Block { BlockType MATLABFcn Name "MATLAB Fcn" Ports [1, 1] Position [110, 25, 170, 55] MATLABFcn "gcamera(h,points, eye(4,4), u)" OutputDimensions "[4,2]" OutputSignalType "real" Output1D off } Block { BlockType Outport Name "uv" Position [230, 33, 260, 47] IconDisplay "Port number" } Line { SrcBlock "MATLAB Fcn"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -