📄 mrefrobotarm2.mdl
字号:
# $Revision: 1.1.2.1 $
Model {
Name "mrefrobotarm2"
Version 5.0
SaveDefaultBlockParams on
SampleTimeColors off
LibraryLinkDisplay "none"
WideLines off
ShowLineDimensions off
ShowPortDataTypes off
ShowLoopsOnError on
IgnoreBidirectionalLines off
ShowStorageClass off
ExecutionOrder off
RecordCoverage off
CovPath "/"
CovSaveName "covdata"
CovMetricSettings "dw"
CovNameIncrementing off
CovHtmlReporting on
covSaveCumulativeToWorkspaceVar on
CovSaveSingleToWorkspaceVar on
CovCumulativeVarName "covCumulativeData"
CovCumulativeReport off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
MinMaxOverflowArchiveMode "Overwrite"
BlockNameDataTip off
BlockParametersDataTip off
BlockDescriptionStringDataTip off
ToolBar on
StatusBar on
BrowserShowLibraryLinks off
BrowserLookUnderMasks off
Created "Fri Oct 16 21:07:47 1998"
Creator "eyarrow"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
LastModifiedBy "eyarrow"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Tue Jul 30 11:33:39 2002"
ModelVersionFormat "1.%<AutoIncrement:281>"
ConfigurationManager "none"
SimParamPage "Solver"
LinearizationMsg "none"
Profile off
ParamWorkspaceSource "MATLABWorkspace"
AccelSystemTargetFile "accel.tlc"
AccelTemplateMakefile "accel_default_tmf"
AccelMakeCommand "make_rtw"
TryForcingSFcnDF off
ExtModeMexFile "ext_comm"
ExtModeBatchMode off
ExtModeTrigType "manual"
ExtModeTrigMode "oneshot"
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 off
ExtModeSkipDownloadWhenConnect off
ExtModeLogAll on
ExtModeAutoUpdateStatusClock on
TunableVars "prueba"
TunableVarsStorageClass "Auto"
BufferReuse on
RTWExpressionDepthLimit 5
SimulationMode "normal"
Solver "ode45"
SolverMode "SingleTasking"
StartTime "0.0"
StopTime "60"
MaxOrder 5
MaxStep "auto"
MinStep "auto"
MaxNumMinSteps "-1"
InitialStep "auto"
FixedStep "auto"
RelTol "1e-3"
AbsTol "1e-6"
OutputOption "RefineOutputTimes"
OutputTimes "[]"
Refine "1"
LoadExternalInput off
ExternalInput "[t, u]"
LoadInitialState off
InitialState "xInitial"
SaveTime on
TimeSaveName "tout"
SaveState off
StateSaveName "xout"
SaveOutput off
OutputSaveName "yout"
SaveFinalState off
FinalStateName "xFinal"
SaveFormat "Array"
Decimation "1"
LimitDataPoints off
MaxDataPoints "1000"
SignalLoggingName "sigsOut"
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"
RTWInlineParameters off
BlockReductionOpt on
BooleanDataType off
ConditionallyExecuteInputs on
ParameterPooling on
OptimizeBlockIOStorage on
ZeroCross on
AssertionControl "UseLocalSettings"
ProdHWDeviceType "Microprocessor"
ProdHWWordLengths "8,16,32,32"
RTWSystemTargetFile "grt.tlc"
RTWTemplateMakefile "grt_vc.tmf"
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 DiscreteStateSpace
A "1"
B "1"
C "1"
D "1"
X0 "0"
SampleTime "1"
Realization "auto"
RTWStateStorageClass "Auto"
}
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 Math
Operator "exp"
OutputSignalType "auto"
}
Block {
BlockType Mux
Inputs "4"
DisplayOption "none"
}
Block {
BlockType Outport
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Saturate
UpperLimit "0.5"
LowerLimit "-0.5"
LinearizeAsGain on
ZeroCross on
}
Block {
BlockType "S-Function"
FunctionName "system"
PortCounts "[]"
SFunctionModules "''"
}
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
}
Block {
BlockType Switch
Criteria "u2 >= Threshold"
Threshold "0"
ShowAdditionalParam off
InputSameDT on
OutDataTypeMode "Inherit via internal rule"
RndMeth "Floor"
SaturateOnIntegerOverflow on
ZeroCross on
}
Block {
BlockType Terminator
}
Block {
BlockType UniformRandomNumber
Minimum "-1"
Maximum "1"
Seed "0"
SampleTime "-1"
VectorParams1D on
}
Block {
BlockType UnitDelay
X0 "0"
SampleTime "1"
RTWStateStorageClass "Auto"
}
Block {
BlockType ZeroOrderHold
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 "mrefrobotarm2"
Location [29, 164, 788, 480]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 212
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Clock
Name "Clock"
Position [620, 35, 640, 55]
Decimation "10"
}
Block {
BlockType SubSystem
Name "Model Reference Controller"
Ports [2, 1]
Position [230, 27, 400, 138]
BackgroundColor "cyan"
DropShadow on
NamePlacement "alternate"
OpenFcn "nncontrolutil('nnmodref','',gcbh,gcb,'');"
TreatAsAtomicUnit off
MaskType "NN Model Reference Control"
MaskDescription "Neural network model reference controller. You"
" first train a neural network model of the plant to be controlled. Then trai"
"n the controller so that the plant output will follow the output of a referen"
"ce model. Double-click the Model Reference Control block to begin the plant "
"and controller training."
MaskPromptString "Sample time|S1|Ni|Nj|sim_file|Training function"
" Identification|Use_Validation|Use_Testing|Use_Inc_training|Use_previous_weig"
"hts|max_i|min_i|max_r|min_r|sam_training|sam_training_c|epochs|epochs_c|minp|"
"maxp|mint|maxt|Normalize|IW|LW1_2|LW2_1|B1|B2|S1c|Limit output|min_output|max"
"_output|Ref_file|Nrc|Nic|Njc|IW_y|IW_u|IW_r|B1_c|B2_c|LW_c|retraining_c|max_i"
"_int|min_i_int|max_r_int|min_r_int"
MaskStyleString "edit,edit,edit,edit,edit,popup(trainbfg|trainbr"
" |traincgb|traincgf|traincgp|traingd|traingdm|traingda|traingdx|trainlm |trai"
"noss|trainrp |trainscg),edit,edit,edit,edit,edit,edit,edit,edit,edit,edit,edi"
"t,edit,edit,edit,edit,edit,edit,edit,edit,edit,edit,edit,edit,edit,edit,edit,"
"edit,edit,edit,edit,edit,edit,edit,edit,edit,edit,edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on"
",on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,o"
"n,on,on,on,on,on"
MaskCallbackString "||||||||||||||||||||||||||||||||||||||||||||||"
MaskEnableString "on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on"
",on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,o"
"n,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on"
",on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,o"
"n,on,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on"
",on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,o"
"n,on,on,on,on,on"
MaskVarAliasString ",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,"
MaskVariables "Ts=@1;S1=@2;Ni=@3;Nj=@4;sim_file=&5;trainfun=@6"
";Use_validation=@7;Use_Testing=@8;Use_Inc_training=@9;Use_previous_weights=@1"
"0;max_i=@11;min_i=@12;max_r=@13;min_r=@14;sam_training=@15;sam_training_c=@16"
";epochs=@17;epochs_c=@18;minp=@19;maxp=@20;mint=@21;maxt=@22;Normalize=@23;IW"
"=@24;LW1_2=@25;LW2_1=@26;B1=@27;B2=@28;S1c=@29;Limit_output=@30;min_output=@3"
"1;max_output=@32;Ref_file=&33;Nrc=@34;Nic=@35;Njc=@36;IW_y=@37;IW_u=@38;IW_r="
"@39;B1_c=@40;B2_c=@41;LW_c=@42;retraining_c=@43;max_i_int=@44;min_i_int=@45;m"
"ax_r_int=@46;min_r_int=@47;"
MaskInitialization "xl = [0 .53 .53 .92 .92 .53 .53"
" NaN ];\nyl = [.95 .95 1.05 1.05 .3 .3 .95 NaN ];\nx2 = [0 .53 NaN ."
"92 1.2 ];\ny2 = [.39 .39 NaN .65 .65 ];\nt=(0:24)/24*2*pi;\nxs = .07*cos("
"t)+.9;\nys = .07*sin(t)+.75;\n\nx1t=.03; y1t=.31;\nx2t=.03; y2t=.8;\nx3t=.77;"
" y3t=.53;\nx4t=.77; y4t=.44;\nx5t=.45; y5t=.66;\nx6t=.45; y6t=.55;\nx7t=.45; "
"y7t=.44;"
MaskDisplay "plot([[xl NaN x2]*.9-.075 ], [[yl NaN y2]*.9-."
"1 ]);\ntext(x1t,y1t,'Plant Output');\ntext(x2t,y2t,'Reference');\ntext(x3t,y3"
"t,'Control');\ntext(x4t,y4t,'Signal');\ntext(x5t,y5t,'Neural');\ntext(x6t,y6t"
",'Network');\ntext(x7t,y7t,'Controller');"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "normalized"
MaskValueString "0.05|10|2|2|robotarm|trainlm |1|1|0|1|15|-15|0."
"7|-0.7|10000|6000|300|10|-14.988293499961703|14.923704088055537|-3.3363903927"
"128264|3.3206956917347106|1|[-0.011469687396173215 0.040727561644111239;1.075"
"316793085894 3.6796838641403276;-1.0685679888493944 -1.4205632700292121;0.143"
"67732817658238 0.6152803692703297;-0.46805195984615566 2.5890011355180014;-0."
"00099986462717487263 -0.0007252338745319933;0.020940253545379157 -0.065457349"
"807555854;3.418928376293219 -2.1823823167283654;-0.0059345736730259191 -0.007"
"0551937494547938;-2.1494988517134881 -2.6774267562058767]|[-1.365916801644290"
"2 3.6192798596548861;5.3731109044400727 0.69786952127836066;1.445074360980941"
"6 -1.9984706683615918;2.5525543014913454 -1.4826245221004251;3.45599237438072"
"79 -2.3555418718376742;-0.35124450033305005 0.17636235061342501;4.26900270313"
"24904 -4.7193108091953446;-3.6662434033635201 3.7972392042066518;-1.918760884"
"2814841 0.75056361802973048;4.6610943267477873 1.5166165956758935]|[0.0134034"
"72002469021 -2.3473487105238961e-005 7.2702651156598242e-005 0.00134829235935"
"79168 -0.00016616129434688127 -5.8011812414478516 -0.010014055898134575 3.853"
"0349704142433e-005 -0.19642052374504862 0.00010666269673941641]|[-1.579254583"
"9864678;-1.1799157268366136;0.14188462146879066;-0.17920873848457491;-0.41999"
"647602943724;0.34136385139415004;-0.37981883756521306;3.4871946858243157;-1.2"
"726850310343014;5.4629125163629446]|1.7477024054779804|13|1|-3.1|3.1|robotref"
"|2|1|2|[-0.28830069175292433 -0.40646751091557659;0.28595139003619108 -0.5741"
"7214335064837;0.1336707314980988 -0.093036501318070008;-0.2019599111771567 -0"
".025678078476613929;0.84713300279901316 0.72007254571163293;0.367486363960464"
"36 1.0000215468311262;0.066756131692085038 0.38725405501697979;-0.17019741781"
"512493 0.5165521764796247;0.46609436858091502 0.6239894923394288;0.4632454126"
"1221525 0.086935183955805476;-0.44961103869309321 0.25383246728779613;-0.0482"
"18807870090009 -0.39894955367872065;-0.61986971529707569 0.058497236367605482"
"]|[-0.07687034475824113;-0.040567981957116965;-0.25789970936411499;-0.0187210"
"32897876001;0.028817060765054997;-0.31264836826089376;0.18921583903705724;-0."
"61261686016868233;-0.16307742563522379;-0.074462566067034761;0.05674650444094"
"9669;0.21187656712469111;-0.056770151099039622]|[-1.0362660354173303 1.468860"
"5237132542;0.42403471351339406 0.09884618409637784;1.4428485632037449 2.67609"
"30779748908;1.8930687109886244 -1.6745583333584542;1.065008106228545 -0.87008"
"906986887113;-1.7918541807535311 1.0744242311327989;1.7753415232484064 1.3072"
"326174145978;1.5573152998068889 -0.888848087048283;-1.2394371299457376 1.3050"
"943120462382;1.0278618084899167 -0.18597892573437988;-1.0916083269493662 1.91"
"25168626791282;0.99122416074121877 -0.14414702314486633;0.95925862503152526 -"
"0.61012901799671015]|[2.306994450802522;-1.9000153414921086;-1.30086306497240"
"51;1.258877310519851;-0.12980477297087051;0.12368183073014268;-0.856449031094"
"57482;-0.41889440632432878;0.98725693995885255;1.1772875199263355;-1.63494734"
"04405293;2.0825629905810632;-2.3440725161816367]|0.82217357531165991|[-0.5552"
"9719028462121 -0.31761057023184625 -0.015052391499648663 0.30814748264618441 "
"0.98893787454368642 0.37299266080087584 0.016791395741317917 0.40413014544500"
"553 -0.069013433882631259 0.18826999272001291 -0.21076173160301825 -0.6409979"
"8332438396 0.28967605954116094]|5|2|0.1|2|0.1"
Port {
PortNumber 1
Name "Torque"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
System {
Name "Model Reference Controller"
Location [513, 156, 985, 497]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Reference"
Position [60, 75, 90, 95]
}
Block {
BlockType Inport
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -