📄 bifilarpendulumlib.mdl
字号:
Library {
Name "BifilarPendulumLib"
Version 6.6
MdlSubVersion 0
SavedCharacterEncoding "windows-1252"
LibraryType "BlockLibrary"
SaveDefaultBlockParams on
SampleTimeColors off
LibraryLinkDisplay "user"
WideLines off
ShowLineDimensions off
ShowPortDataTypes off
ShowLoopsOnError on
IgnoreBidirectionalLines off
ShowStorageClass off
ShowTestPointIcons on
ShowViewerIcons on
SortedOrder off
ExecutionContextIcon off
ShowLinearizationAnnotations on
ScopeRefreshTime 0.035000
OverrideScopeRefreshTime on
DisableAllScopes off
BlockNameDataTip off
BlockParametersDataTip off
BlockDescriptionStringDataTip off
ToolBar on
StatusBar on
BrowserShowLibraryLinks off
BrowserLookUnderMasks off
Created "Wed Mar 28 21:25:37 2007"
Creator "mjardin"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
LastModifiedBy "mjardin"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Mon Aug 06 17:58:39 2007"
ModelVersionFormat "1.%<AutoIncrement:28>"
ConfigurationManager "None"
SimulationMode "normal"
LinearizationMsg "none"
Profile off
ParamWorkspaceSource "MATLABWorkspace"
AccelVerboseBuild off
CovSaveName "covdata"
CovMetricSettings "dw"
CovNameIncrementing off
CovHtmlReporting on
covSaveCumulativeToWorkspaceVar on
CovSaveSingleToWorkspaceVar on
CovCumulativeReport off
CovReportOnPause on
ExtModeBatchMode off
ExtModeEnableFloating on
ExtModeTrigType "manual"
ExtModeTrigMode "normal"
ExtModeTrigPort "1"
ExtModeTrigElement "any"
ExtModeTrigDuration 1000
ExtModeTrigDurationFloating "auto"
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
ProdHWDeviceType "32-bit Generic"
ShowModelReferenceBlockVersion off
ShowModelReferenceBlockIO off
BlockDefaults {
Orientation "right"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
NamePlacement "normal"
FontName "Arial"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
BlockParameterDefaults {
Block {
BlockType Abs
SaturateOnIntegerOverflow on
ZeroCross on
SampleTime "-1"
}
Block {
BlockType Constant
Value "1"
VectorParams1D on
SamplingMode "Sample based"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
FramePeriod "inf"
}
Block {
BlockType From
IconDisplay "Tag"
}
Block {
BlockType Fcn
Expr "sin(u[1])"
SampleTime "-1"
}
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 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 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 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 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 Product
Inputs "2"
Multiplication "Element-wise(.*)"
CollapseMode "All dimensions"
CollapseDim "1"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Zero"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType RandomNumber
Mean "0"
Variance "1"
Seed "0"
SampleTime "-1"
VectorParams1D on
}
Block {
BlockType SubSystem
ShowPortLabels "FromPortIcon"
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 "++"
CollapseMode "All dimensions"
CollapseDim "1"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Arial"
FontSize 10
FontWeight "normal"
FontAngle "normal"
UseDisplayTextAsClickCallback off
}
LineDefaults {
FontName "Arial"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
System {
Name "BifilarPendulumLib"
Location [198, 337, 834, 781]
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 SubSystem
Name "Bifilar_Pendulum_With_ViscDamping"
Ports [5, 1]
Position [60, 35, 570, 385]
FontSize 14
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskType "Bifilar Pendulum Simulation"
MaskDescription "This block simulates the response of a Bifilar "
"Pendulum to an initial angular displacement. The parameters of the pendulum m"
"ay be entered in the Mask Dialog."
MaskHelp "No help yet."
MaskPromptString "Wire Displacement (D, meters)|D Uncertainty (Si"
"gD, meters)|Wire Height (h, meters)|h Uncertainty (Sigh, meters)|Theta Uncert"
"ainty (SigTh, radians)|Theta Random Seed"
MaskStyleString "edit,edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on,on"
MaskCallbackString "|||||"
MaskEnableString "on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on"
MaskVarAliasString ",,,,,"
MaskVariables "D=@1;SigD=@2;h=@3;Sigh=@4;SigTh=@5;ThSeed=@6;"
MaskDisplay "image(imread('inertiaexperimentcartoon_b.jpg'))"
";\nport_label('input',1,'mass (kg)')\nport_label('input',2,'Moment of Inertia"
" (kg*m^2)','texmode','on')\nport_label('input',3','C, Viscous Damping Paramet"
"er (kg*m^2/s)','texmode','on')\nport_label('input',4,'KD, Square-Law Damping "
"Parameter (kg*m^2)','texmode','on')\nport_label('input',5,'\\theta_0 (rad)','"
"texmode','on');\nport_label('output',1,'\\theta (rad)','texmode','on');"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "0.3|0|2.5|0|0|0"
MaskTabNameString ",,,,,"
System {
Name "Bifilar_Pendulum_With_ViscDamping"
Location [103, 142, 1076, 679]
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 "107"
Block {
BlockType Inport
Name "m"
Position [40, 253, 70, 267]
FontSize 14
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "I"
Position [40, 143, 70, 157]
FontSize 14
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "C"
Position [40, 188, 70, 202]
FontSize 14
Port "3"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "KD"
Position [40, 93, 70, 107]
FontSize 14
Port "4"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Theta0"
Position [40, 458, 70, 472]
FontSize 14
Port "5"
IconDisplay "Port number"
}
Block {
BlockType Abs
Name "Abs"
Position [290, 30, 320, 60]
FontSize 14
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Add"
Ports [3, 1]
Position [440, 94, 470, 126]
ShowName off
FontSize 14
Inputs "---"
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType SubSystem
Name "Displacement"
Ports [0, 1]
Position [40, 341, 85, 369]
FontSize 14
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "Displacement"
Location [433, 403, 931, 703]
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 Constant
Name "Displacement"
Position [105, 95, 175, 125]
Value "D"
}
Block {
BlockType Constant
Name "Displacement Disturbance"
Position [105, 170, 175, 200]
Value "SigD*randn(1)"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [240, 100, 260, 120]
ShowName off
IconShape "round"
Inputs "|++"
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "D"
Position [360, 103, 390, 117]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Displacement"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "D"
DstPort 1
}
Line {
SrcBlock "Displacement Disturbance"
SrcPort 1
Points [70, 0]
DstBlock "Sum"
DstPort 2
}
}
}
Block {
BlockType From
Name "From"
Position [435, 152, 480, 168]
CloseFcn "tagdialog Close"
FontSize 14
GotoTag "TH_0"
}
Block {
BlockType From
Name "From1"
Position [180, 181, 200, 199]
CloseFcn "tagdialog Close"
FontSize 14
GotoTag "C"
}
Block {
BlockType Gain
Name "Gain"
Position [285, 294, 325, 326]
ShowName off
FontSize 14
Gain ".25"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -