⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 doublewishbonevr.mdl

📁 This demo shows how to use MATLAB, Optimization Toolbox, and Genetic Algorithm and Direct Search Too
💻 MDL
📖 第 1 页 / 共 5 页
字号:
	    PropName		    "Components"
	  }
	}
	MECH.SimMechanicsCC {
	  $ObjectID		  11
	  Version		  "1.2.0"
	  Name			  "SimMechanics"
	  WarnOnRedundantConstraints on
	  WarnOnSingularInitialAssembly	off
	  ShowCutJoints		  off
	  VisOnUpdateDiagram	  off
	  VisDuringSimulation	  off
	}
	PropName		"Components"
      }
      Name		      "Configuration"
      SimulationMode	      "normal"
      CurrentDlgPage	      "Diagnostics"
    }
    PropName		    "ConfigurationSets"
  }
  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		      Actuator
      SubClassName	      "unknown"
      PortType		      "blob"
    }
    Block {
      BlockType		      Assignment
      IndexMode		      "One-based"
      OutputDimensions	      "[1]"
      DiagnosticForDimensions "None"
      SampleTime	      "-1"
    }
    Block {
      BlockType		      BusCreator
      Inputs		      "4"
      DisplayOption	      "none"
      UseBusObject	      off
      BusObject		      "BusObject"
      NonVirtualBus	      off
    }
    Block {
      BlockType		      BusSelector
      OutputAsBus	      off
    }
    Block {
      BlockType		      Clock
      DisplayTime	      off
    }
    Block {
      BlockType		      Constant
    }
    Block {
      BlockType		      DataTypeConversion
      OutDataTypeMode	      "Inherit via back propagation"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      ConvertRealWorld	      "Real World Value (RWV)"
      RndMeth		      "Zero"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Demux
      Outputs		      "4"
      DisplayOption	      "none"
      BusSelectionMode	      off
    }
    Block {
      BlockType		      From
      IconDisplay	      "Tag"
    }
    Block {
      BlockType		      Gain
      Gain		      "1"
      Multiplication	      "Element-wise(K.*u)"
      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
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Goto
      IconDisplay	      "Tag"
    }
    Block {
      BlockType		      Ground
    }
    Block {
      BlockType		      Inport
      Port		      "1"
      UseBusObject	      off
      BusObject		      "BusObject"
      BusOutputAsStruct	      off
      PortDimensions	      "-1"
      SampleTime	      "-1"
      DataType		      "auto"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      SignalType	      "auto"
      SamplingMode	      "auto"
      LatchByDelayingOutsideSignal off
      LatchByCopyingInsideSignal off
      Interpolate	      on
    }
    Block {
      BlockType		      Math
      Operator		      "exp"
      OutputSignalType	      "auto"
      SampleTime	      "-1"
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
    }
    Block {
      BlockType		      Mux
      Inputs		      "4"
      DisplayOption	      "none"
      UseBusObject	      off
      BusObject		      "BusObject"
      NonVirtualBus	      off
    }
    Block {
      BlockType		      Outport
      Port		      "1"
      UseBusObject	      off
      BusObject		      "BusObject"
      BusOutputAsStruct	      off
      PortDimensions	      "-1"
      SampleTime	      "-1"
      DataType		      "auto"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      SignalType	      "auto"
      SamplingMode	      "auto"
      OutputWhenDisabled      "held"
      InitialOutput	      "[]"
    }
    Block {
      BlockType		      PMComponent
      SubClassName	      "unknown"
    }
    Block {
      BlockType		      PMIOPort
    }
    Block {
      BlockType		      Product
      Inputs		      "2"
      Multiplication	      "Element-wise(.*)"
      InputSameDT	      on
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      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		      Selector
      IndexMode		      "One-based"
      InputPortWidth	      "-1"
      OutputPortSize	      "1"
    }
    Block {
      BlockType		      Sensor
      SubClassName	      "unknown"
      PortType		      "blob"
    }
    Block {
      BlockType		      "S-Function"
      FunctionName	      "system"
      SFunctionModules	      "''"
      PortCounts	      "[]"
    }
    Block {
      BlockType		      Signum
      ZeroCross		      on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      SubSystem
      ShowPortLabels	      on
      Permissions	      "ReadWrite"
      PermitHierarchicalResolution "All"
      TreatAsAtomicUnit	      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		      "++"
      InputSameDT	      on
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Terminator
    }
    Block {
      BlockType		      Trigonometry
      Operator		      "sin"
      OutputSignalType	      "auto"
      SampleTime	      "-1"
    }
  }
  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		    "DoubleWishboneVR"
    Location		    [3, 74, 819, 478]
    Open		    on
    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"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      Reference
      Name		      "Body Sensor"
      Ports		      [0, 1, 0, 0, 0, 1]
      Position		      [445, 155, 485, 195]
      DialogController	      "MECH.DynMechDlgSource"
      SourceBlock	      "mblibv1/Sensors & \nActuators/Body Sensor"
      SourceType	      "msb"
      ShowPortLabels	      on
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      PhysicalDomain	      "Mechanical"
      PortType		      "blob"
      Muxed		      "on"
      Pose		      "off"
      Angle		      "on"
      AngleUnits	      "deg"
      ArcVelocity	      "off"
      ArcVelocityUnits	      "deg/s"
      ArcAcceleration	      "off"
      ArcAccelerationUnits    "deg/s^2"
      CoordPosition	      "on"
      CoordPositionUnits      "m"
      Velocity		      "off"
      VelocityUnits	      "m/s"
      Acceleration	      "off"
      AccelerationUnits	      "m/s^2"
      Quaternion	      "on"
      QuaternionDT	      "off"
      QuaternionDDT	      "off"
      QuaternionUnits	      "off"
      OutputVector	      "[ 3 ]"
      ActiveIO		      "on"
      Width		      "3"
      ClassName		      "BodySensor"
      DialogClass	      "MechanicalSensorBlock"
      ReferenceFrame	      "Absolute (World)"
    }
    Block {
      BlockType		      Reference
      Name		      "Camber vs. Travel Distance"
      Ports		      [2]
      Position		      [725, 275, 755, 310]
      SourceBlock	      "simulink/Sinks/XY Graph"
      SourceType	      "XY scope."
      ShowPortLabels	      on
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      xmin		      "-.15"
      xmax		      "0.25"
      ymin		      "-10"
      ymax		      "0"
      st		      "-1"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Double Wishbone"
      Ports		      [0, 0, 0, 0, 0, 1, 3]
      Position		      [270, 96, 375, 204]
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      MaskHideContents	      off
      MaskType		      "Double Wishbone Suspension"
      MaskPromptString	      "Upper Arm Length (in)|Upper Arm Front Connectio"
"n Point [x y z] (in)|Upper Arm Back Connection Point [x y z] (in)|Lower Arm L"
"ength (in)|Lower Arm Front Connection Point [x y z] (in)|Lower Arm Back Conne"
"ction Point [x y z] (in)|Connecting Ling Length (in)|Shock Spring Constant (l"
"bf/in)|Shock Damping Constant (lbf-s/in)|Shock Pre-Set Force (lbf)"
      MaskStyleString	      "edit,edit,edit,edit,edit,edit,edit,edit,edit,ed"
"it"
      MaskTunableValueString  "on,on,on,on,on,on,on,on,on,on"
      MaskCallbackString      "|||||||||"
      MaskEnableString	      "on,on,on,on,on,on,on,on,on,on"
      MaskVisibilityString    "on,on,on,on,on,on,on,on,on,on"
      MaskToolTipString	      "on,on,on,on,on,on,on,on,on,on"
      MaskVarAliasString      ",,,,,,,,,"
      MaskVariables	      "LU=@1;UFPt=@2;UBPt=@3;LL=@4;LFPt=@5;LBPt=@6;LC="
"@7;k=@8;b=@9;Fps=@10;"
      MaskInitialization      "UPV = UBPt - UFPt;\nUBase = sqrt(UPV(1)^2+UPV(2"
")^2+UPV(3)^2);\nULink = sqrt(LU*LU + UBase*UBase/4);\nLPV = LBPt - LFPt;\nLBa"
"se = sqrt(LPV(1)^2+LPV(2)^2+LPV(3)^2);\nLLink = sqrt(LL*LL + LBase*LBase/4);"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "x(1)|x(2:4)|x(5:7)|x(8)|x(9:11)|x(12:14)|x(15)|"
"300|20|20000"
      MaskTabNameString	      ",,,,,,,,,"
      System {
	Name			"Double Wishbone"
	Location		[350, 224, 931, 633]
	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		  Reference
	  Name			  "Body"
	  Ports			  [0, 0, 0, 0, 0, 1, 7]
	  Position		  [80, 52, 160, 348]
	  DialogController	  "MECH.DynMechDlgSource"
	  SourceBlock		  "mblibv1/Bodies/Body"
	  SourceType		  "msb"
	  PhysicalDomain	  "mechanical"
	  SubClassName		  "Unknown"
	  LeftPortType		  "workingframe"
	  RightPortType		  "workingframe"
	  LConnTagsString	  "CS1"
	  RConnTagsString	  "CS2|CS3|CS4|CS5|CS6|CS7|CS8"
	  ClassName		  "Body"
	  DialogClass		  "MechanicalBodyBlock"
	  Mass			  "1000"
	  MassUnits		  "lbm"
	  InertiaUnits		  "lbm*in^2"
	  Inertia		  "eye(3)"
	  Shape			  "Cylinder"
	  ShapeDims		  "[1 1]"
	  ShapeUnits		  "m"
	  ShapeUse		  "false"
	  Density		  "1"
	  DensityUnits		  "kg/m^3"
	  DensityUse		  "false"
	  CG			  "Left$CG$[0 0 0]$CS1$CS1$in$[0 0 0]$Euler X-"
"Y-Z$deg$CS1$false"
	  WorkingFrames		  "Left$CS1$[0 0 0]$ADJOINING$ADJOINING$in$[0 "
"0 0]$Euler X-Y-Z$deg$ADJOINING$true#Right$CS2$UFPt$CG$CG$in$[0 0 0]$Euler X-Y"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -