📄 doublewishbone.mdl
字号:
Name "Double Wish"
Location [185, 107, 961, 642]
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 "VR Car"
Position [460, 443, 490, 457]
IconDisplay "Port number"
}
Block {
BlockType Mux
Name "Mux"
Ports [7, 1]
Position [570, 84, 575, 166]
ShowName off
Inputs "7"
DisplayOption "bar"
}
Block {
BlockType SubSystem
Name "Spindle"
Ports [0, 2, 0, 0, 0, 2, 2]
Position [405, 120, 460, 200]
Orientation "down"
NamePlacement "alternate"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskPromptString "Radius (in)|Height (in)|Material Densit"
"y (lbm/in^3)|Rotation [Rx, Ry, Rz] (degrees)"
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 "r=@1;h=@2;rho=@3;Rot=@4;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "0.25|12|0.05|[0 0 -90]"
MaskTabNameString ",,,"
System {
Name "Spindle"
Location [405, 179, 922, 617]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins "[0.500000, 0.500000, 0.500000, 0.5000"
"00]"
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Reference
Name "Body"
Ports [0, 0, 0, 0, 0, 3, 3]
Position [165, 46, 230, 154]
DialogController "MECH.DynMechDlgSource"
SourceBlock "mblibv1/Bodies/Body"
SourceType "msb"
PhysicalDomain "mechanical"
SubClassName "Unknown"
LeftPortType "workingframe"
RightPortType "workingframe"
LConnTagsString "CS1|CS5|CG"
RConnTagsString "CS2|CS3|CS4"
ClassName "Body"
DialogClass "MechanicalBodyBlock"
Mass "rho*pi*r*r*h"
MassUnits "lbm"
InertiaUnits "lbm*in^2"
Inertia "rho*pi*r*r*h*[(3*r*r + h*h) 0 0;0 6"
"*r*r 0;0 0 (3*r*r + h*h)]/12"
Shape "Cylinder"
ShapeDims "[1 1]"
ShapeUnits "m"
ShapeUse "false"
Density "1"
DensityUnits "kg/m^3"
DensityUse "false"
CG "Left$CG$[0 h/2 0]$CS1$CS1$in$[0 0 0"
"]$Euler X-Y-Z$deg$CS1$true"
WorkingFrames "Left$CS1$[0 0 0]$ADJOINING$ADJOININ"
"G$in$Rot$Euler X-Y-Z$deg$ADJOINING$true#Right$CS2$[0 h/2 0]$CG$CG$in$[0 0 0]$"
"Euler X-Y-Z$deg$CG$true#Right$CS3$[0 0 0]$CG$CG$m$[0 0 0]$Euler X-Y-Z$deg$WOR"
"LD$true#Right$CS4$[0 0 0]$CG$CG$m$[0 0 0]$Euler X-Y-Z$deg$CG$true#Left$CS5$[0"
" 0 0]$CG$CG$m$[0 0 115]$Euler X-Y-Z$deg$CG$true"
CGPos "[0 h/2 0]"
CGRot "[0 0 0]"
CS0Pos "[]"
CS0Rot "[]"
CS1Pos "[0 0 0]"
CS1Rot "Rot"
CS2Pos "[0 h/2 0]"
CS2Rot "[0 0 0]"
CS3Pos "[0 0 0]"
CS3Rot "[0 0 0]"
CS4Pos "[0 0 0]"
CS4Rot "[0 0 0]"
CS5Pos "[0 0 0]"
CS5Rot "[0 0 115]"
CS6Pos "[]"
CS6Rot "[]"
CS7Pos "[]"
CS7Rot "[]"
CS8Pos "[]"
CS8Rot "[]"
CS9Pos "[]"
CS9Rot "[]"
CS10Pos "[]"
CS10Rot "[]"
CS11Pos "[]"
CS11Rot "[]"
CS12Pos "[]"
CS12Rot "[]"
CS13Pos "[]"
CS13Rot "[]"
CS14Pos "[]"
CS14Rot "[]"
CS15Pos "[]"
CS15Rot "[]"
CS16Pos "[]"
CS16Rot "[]"
CS17Pos "[]"
CS17Rot "[]"
CS18Pos "[]"
CS18Rot "[]"
CS19Pos "[]"
CS19Rot "[]"
CS20Pos "[]"
CS20Rot "[]"
}
Block {
BlockType Reference
Name "Disassembled Spherical"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [325, 35, 375, 85]
DialogController "MECH.DynMechDlgSource"
SourceBlock "mblibv1/Joints/Disassembled Joints/"
"Disassembled Spherical"
SourceType "msb"
PhysicalDomain "mechanical"
SubClassName "disassembled_spherical_joint"
LeftPortType "blob"
RightPortType "blob"
LConnTagsString "__newl0"
RConnTagsString "__newr0"
DialogClass "JointBlock"
ClassName "DisassembledSpherical"
Primitives "prismatic_prismatic"
PrimitiveProps "Base$INERTIAL$[1 0 0]$prismatic#Fol"
"lower$INERTIAL$[0 1 0]$prismatic"
BaseAxis "[1 0 0]"
FollowerAxis "[0 1 0]"
}
Block {
BlockType Reference
Name "Spherical"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [85, 45, 135, 95]
DialogController "MECH.DynMechDlgSource"
SourceBlock "mblibv1/Joints/Spherical"
SourceType "msb"
PhysicalDomain "mechanical"
SubClassName "Unknown"
LeftPortType "blob"
RightPortType "blob"
LConnTagsString "__newl0"
RConnTagsString "__newr0"
NumSAPorts "0"
CutJoint "off"
MarkAsCut "off"
Primitives "spherical"
PrimitiveProps "S$INERTIAL$[0 0 0]$spherical"
ClassName "Joint"
DialogClass "JointBlock"
SAxis "[0 0 0]"
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [0, 1, 0, 0, 0, 1]
Position [175, 167, 240, 203]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "Subsystem"
Location [355, 387, 903, 673]
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 Sensor"
Ports [0, 2, 0, 0, 0, 1]
Position [85, 35, 125, 75]
DialogController "MECH.DynMechDlgSource"
SourceBlock "mblibv1/Sensors & \nActuators/Bod"
"y 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 "off"
Pose "on"
Angle "on"
AngleUnits "deg"
ArcVelocity "off"
ArcVelocityUnits "deg/s"
ArcAcceleration "off"
ArcAccelerationUnits "deg/s^2"
CoordPosition "on"
CoordPositionUnits "in"
Velocity "off"
VelocityUnits "m/s"
Acceleration "off"
AccelerationUnits "m/s^2"
Quaternion "on"
QuaternionDT "off"
QuaternionDDT "off"
QuaternionUnits "off"
OutputVector "[ 3 9 ]"
ActiveIO "on"
Width "12"
ClassName "BodySensor"
DialogClass "MechanicalSensorBlock"
ReferenceFrame "Absolute (World)"
Port {
PortNumber 1
Name "Translation"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType BusCreator
Name "Bus\nCreator"
Ports [4, 1]
Position [420, 26, 435, 184]
ShowName off
DisplayOption "bar"
}
Block {
BlockType Reference
Name "Convert from Rotation Matrix to\n"
"Virtual Reality Toolbox"
Tag "Pose2VR"
Ports [1, 1]
Position [170, 66, 310, 104]
SourceBlock "mblibv1/Utilities/Convert from Ro"
"tation Matrix to\nVirtual Reality Toolbox"
SourceType "RotationMatrix2VR"
Port {
PortNumber 1
Name "Rotation"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Constant
Name "Height"
Position [270, 145, 300, 175]
Value "h"
VectorParams1D on
SamplingMode "Sample based"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
FramePeriod "inf"
Port {
PortNumber 1
Name "Height"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Constant
Name "Radius"
Position [270, 210, 300, 240]
Value "r"
VectorParams1D on
SamplingMode "Sample based"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
FramePeriod "inf"
Port {
PortNumber 1
Name "Radius"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType PMIOPort
Name "CG"
Position [25, 48, 55, 62]
Port "1"
Side "Left"
}
Block {
BlockType Outport
Name "VR"
Position [465, 98, 495, 112]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Bus\nCreator"
SrcPort 1
DstBlock "VR"
DstPort 1
}
Line {
Name "Radius"
Labels [0, 0]
SrcBlock "Radius"
SrcPort 1
Points [100, 0]
DstBlock "Bus\nCreator"
DstPort 4
}
Line {
Name "Height"
Labels [0, 0]
SrcBlock "Height"
SrcPort 1
Points [45, 0; 0, -35]
DstBlock "Bus\nCreator"
DstPort 3
}
Line {
Name "Rotation"
Labels [0, 0]
SrcBlock "Convert from Rotation Matrix to\n"
"Virtual Reality Toolbox"
SrcPort 1
DstBlock "Bus\nCreator"
DstPort 2
}
Line {
Name "Translation"
Labels [0, 0]
SrcBlock "Body Sensor"
SrcPort 1
DstBlock "Bus\nCreator"
DstPort 1
}
Line {
LineType "Connection"
SrcBlock "CG"
SrcPort RConn1
DstBlock "Body Sensor"
DstPort LConn1
}
Line {
SrcBlock "Body Sensor"
SrcPort 2
Points [15, 0; 0, 20]
DstBlock "Convert from Rotation Matrix to\n"
"Virtual Reality Toolbox"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Subsystem1"
Ports [0, 1, 0, 0, 0, 1]
Position [175, 232, 240, 268]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "Subsystem1"
Location [587, 149, 1158, 461]
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 Sensor"
Ports [0, 2, 0, 0, 0, 1]
Position [85, 75, 125, 115]
DialogController "MECH.DynMechDlgSource"
SourceBlock "mblibv1/Sensors & \nActuators/Bod"
"y Sensor"
SourceType "msb"
ShowPortLabels on
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -