📄 mrlib.mdl
字号:
Library {
Name "mrlib"
Version 5.0
SaveDefaultBlockParams on
LibraryLinkDisplay "none"
ShowLoopsOnError on
IgnoreBidirectionalLines off
CovSaveName "covdata"
CovMetricSettings "dw"
CovNameIncrementing off
CovHtmlReporting on
covSaveCumulativeToWorkspaceVar on
CovSaveSingleToWorkspaceVar on
CovCumulativeReport off
BlockNameDataTip off
BlockParametersDataTip off
BlockDescriptionStringDataTip off
ToolBar on
StatusBar on
BrowserShowLibraryLinks off
BrowserLookUnderMasks off
Created "Sun Dec 05 16:07:25 2004"
Creator "M. Riaz"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
LastModifiedBy "M. Riaz"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Mon Feb 28 13:40:58 2005"
ModelVersionFormat "1.%<AutoIncrement:20>"
ConfigurationManager "None"
SimParamPage "Solver"
LinearizationMsg "none"
Profile off
ParamWorkspaceSource "MATLABWorkspace"
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
SimulationMode "normal"
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"
ProdHWDeviceType "Microprocessor"
ProdHWWordLengths "8,16,32,32"
RTWMakeCommand "make_rtw"
RTWGenerateCodeOnly off
RTWRetainRTWFile off
TLCProfiler off
TLCDebug off
TLCCoverage off
TLCAssertion off
BlockDefaults {
Orientation "right"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
NamePlacement "normal"
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
BlockParameterDefaults {
Block {
BlockType Clock
DisplayTime off
}
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 Demux
Outputs "4"
DisplayOption "none"
BusSelectionMode off
}
Block {
BlockType Derivative
}
Block {
BlockType Fcn
Expr "sin(u[1])"
}
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 Integrator
ExternalReset "none"
InitialConditionSource "internal"
InitialCondition "0"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
ZeroCross on
}
Block {
BlockType Mux
Inputs "4"
DisplayOption "none"
}
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 Reference
}
Block {
BlockType Relay
OnSwitchValue "eps"
OffSwitchValue "eps"
OnOutputValue "1"
OffOutputValue "0"
ShowAdditionalParam off
OutputDataTypeScalingMode "All ports same datatype"
OutDataType "sfix(16)"
OutScaling "2^0"
ConRadixGroup "Use specified scaling"
ZeroCross on
}
Block {
BlockType Saturate
UpperLimit "0.5"
LowerLimit "-0.5"
LinearizeAsGain on
ZeroCross on
}
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 "mrlib"
Location [31, 371, 653, 781]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "green"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType SubSystem
Name "DC \nMOTOR"
Ports [2, 2]
Position [260, 177, 415, 328]
ForegroundColor "blue"
ShowName off
FontName "Arial"
FontSize 12
FontWeight "bold"
TreatAsAtomicUnit off
MaskPromptString "Armature resistance [ohm]|Armature inductance ["
"H]|Moment of inertia [Kg.m^2]|Frictional torque cefficient|Electromechanical "
"coupling coefficient [N.m/A]"
MaskStyleString "edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on"
MaskCallbackString "||||"
MaskEnableString "on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on"
MaskToolTipString "on,on,on,on,on"
MaskVarAliasString ",,,,"
MaskVariables "Ra=@1;La=@2;J=@3;Bm=@4;K=@5;"
MaskDisplay "patch([-1.3 -1.3 1.2 1.2 -1.3],[-1.3 1.3 1.3 -1"
".3 -1.3],[0.9 .9 .9] )\nplot(-1.5,-1.5,1.5,1.5,cos(0:.01:7),sin(0:.01:7),[-.5"
" -1 1 .5],[-.866 -1.2 -1.2 -.866] )\ndisp('DC\\nMOTOR')"
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "2.0|5.2e-3|1.5e-4|1e-3|0.1"
System {
Name "DC \nMOTOR"
Location [7, 164, 636, 433]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "lightBlue"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "va"
Position [15, 53, 45, 67]
}
Block {
BlockType Inport
Name "Tl"
Position [285, 118, 315, 132]
Port "2"
}
Block {
BlockType SubSystem
Name " ckt"
Ports []
Position [540, 211, 589, 251]
BackgroundColor "gray"
DropShadow on
ShowName off
OpenFcn "web(which('dcmeqs.html'));"
FontWeight "bold"
TreatAsAtomicUnit off
MaskDisplay "disp('HELP')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name " ckt"
Location [116, 520, 441, 651]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
}
}
Block {
BlockType Gain
Name "1/J"
Position [385, 42, 440, 78]
Gain "1/J"
}
Block {
BlockType Gain
Name "1/La"
Position [120, 42, 175, 78]
Gain "1/La"
}
Block {
BlockType Gain
Name "Bm"
Position [410, 105, 460, 135]
Orientation "left"
Gain "Bm"
Port {
PortNumber 1
Name "Tf"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1]
Position [195, 45, 225, 75]
ShowName off
Port {
PortNumber 1
Name "ia"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Integrator
Name "Integrator1"
Ports [1, 1]
Position [470, 44, 500, 76]
ShowName off
Port {
PortNumber 1
Name "wm"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Gain
Name "Kt"
Position [275, 44, 310, 76]
Gain "K"
Port {
PortNumber 1
Name "Te"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Gain
Name "Kv"
Position [275, 170, 310, 200]
Orientation "left"
Gain "K"
}
Block {
BlockType Gain
Name "Ra"
Position [170, 105, 200, 135]
Orientation "left"
Gain "Ra"
}
Block {
BlockType Sum
Name "Sum"
Ports [3, 1]
Position [70, 45, 100, 75]
ShowName off
IconShape "round"
Inputs "||+--"
}
Block {
BlockType Sum
Name "Sum1"
Ports [3, 1]
Position [335, 45, 365, 75]
ShowName off
IconShape "round"
Inputs "||+--"
}
Block {
BlockType Outport
Name "ia"
Position [245, 15, 275, 30]
Orientation "up"
}
Block {
BlockType Outport
Name "wm"
Position [575, 52, 605, 68]
Port "2"
}
Line {
SrcBlock "Kv"
SrcPort 1
Points [-206, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Ra"
SrcPort 1
Points [-80, 0]
DstBlock "Sum"
DstPort 3
}
Line {
Name "Te"
Labels [1, 0]
SrcBlock "Kt"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
Name "Tf"
Labels [0, 0]
SrcBlock "Bm"
SrcPort 1
Points [-55, 0]
DstBlock "Sum1"
DstPort 3
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "1/La"
DstPort 1
}
Line {
SrcBlock "1/La"
SrcPort 1
DstBlock "Integrator"
DstPort 1
}
Line {
Name "ia"
Labels [1, 0]
SrcBlock "Integrator"
SrcPort 1
Points [30, 0]
Branch {
Points [0, 60]
DstBlock "Ra"
DstPort 1
}
Branch {
Points [0, 0]
Branch {
DstBlock "Kt"
DstPort 1
}
Branch {
DstBlock "ia"
DstPort 1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -