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

📄 test.mdl

📁 rtai-3.1-test3的源代码(Real-Time Application Interface )
💻 MDL
字号:
Model {  Name			  "test"  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		  "Wed Sep 10 14:10:55 2003"  Creator		  "bucher"  UpdateHistory		  "UpdateHistoryNever"  ModifiedByFormat	  "%<Auto>"  LastModifiedBy	  "root"  ModifiedDateFormat	  "%<Auto>"  LastModifiedDate	  "Fri Jan 16 12:15:33 2004"  ModelVersionFormat	  "1.%<AutoIncrement:4>"  ConfigurationManager	  "none"  SimParamPage		  "RTW"  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	  "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 off  BufferReuse		  on  RTWExpressionDepthLimit 5  SimulationMode	  "normal"  Solver		  "FixedStepDiscrete"  SolverMode		  "Auto"  StartTime		  "0.0"  StopTime		  "10.0"  MaxOrder		  5  MaxStep		  "auto"  MinStep		  "auto"  MaxNumMinSteps	  "-1"  InitialStep		  "auto"  FixedStep		  "auto"  RelTol		  "1e-3"  AbsTol		  "auto"  OutputOption		  "RefineOutputTimes"  OutputTimes		  "[]"  Refine		  "1"  LoadExternalInput	  off  ExternalInput		  "[t, u]"  LoadInitialState	  off  InitialState		  "xInitial"  SaveTime		  on  TimeSaveName		  "tout"  SaveState		  off  StateSaveName		  "xout"  SaveOutput		  on  OutputSaveName	  "yout"  SaveFinalState	  off  FinalStateName	  "xFinal"  SaveFormat		  "Array"  Decimation		  "1"  LimitDataPoints	  on  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	  on  ConditionallyExecuteInputs on  ParameterPooling	  on  OptimizeBlockIOStorage  on  ZeroCross		  on  AssertionControl	  "UseLocalSettings"  ProdHWDeviceType	  "Microprocessor"  ProdHWWordLengths	  "8,16,32,32"  RTWSystemTargetFile	  "rtai.tlc"  RTWTemplateMakefile	  "rtai.tmf"  RTWMakeCommand	  "make_rtw"  RTWGenerateCodeOnly	  off  RTWRetainRTWFile	  off  TLCProfiler		  off  TLCDebug		  off  TLCCoverage		  off  TLCAssertion		  off  RTWOptions		  " -aEnforceIntegerDowncast=1 -aFoldNonRolledExpr=1 -""aForceParamTrailComments=0 -aGenerateComments=1 -aGenerateReport=0 -aIncDataT""ypeInIds=0 -aIncHierarchyInIds=0 -aInlineInvariantSignals=0 -aInlineParameter""s=0 -aInlinedPrmAccess=\"Literals\" -aLocalBlockOutputs=1 -aMaxRTWIdLen=31 -a""PrefixModelToSubsysFcnNames=1 -aRTWVerbose=1 -aRollThreshold=5 -aShowEliminat""edStatements=0"  BlockDefaults {    Orientation		    "right"    ForegroundColor	    "black"    BackgroundColor	    "white"    DropShadow		    off    NamePlacement	    "normal"    FontName		    "Helvetica"    FontSize		    10    FontWeight		    "normal"    FontAngle		    "normal"    ShowName		    on  }  BlockParameterDefaults {    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		      DiscretePulseGenerator      PulseType		      "Sample based"      Amplitude		      "1"      Period		      "2"      PulseWidth	      "1"      PhaseDelay	      "0"      SampleTime	      "1"      VectorParams1D	      on    }    Block {      BlockType		      DiscreteTransferFcn      Numerator		      "[1]"      Denominator	      "[1 0.5]"      SampleTime	      "1"      Realization	      "auto"      RTWStateStorageClass    "Auto"    }    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		      "S-Function"      FunctionName	      "system"      PortCounts	      "[]"      SFunctionModules	      "''"    }    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		    "test"    Location		    [115, 120, 685, 454]    Open		    on    ModelBrowserVisibility  off    ModelBrowserWidth	    200    ScreenColor		    "white"    PaperOrientation	    "landscape"    PaperPositionMode	    "auto"    PaperType		    "usletter"    PaperUnits		    "inches"    ZoomFactor		    "100"    ReportName		    "simulink-default.rpt"    Block {      BlockType		      Constant      Name		      "Constant"      Position		      [145, 275, 175, 305]      Value		      "-0.5"    }    Block {      BlockType		      DiscreteTransferFcn      Name		      "Discrete\nTransfer Fcn"      Position		      [240, 32, 300, 68]      Numerator		      "[0.000009987,0.000009973]"      Denominator	      "[1,-1.996,0.996]"      SampleTime	      "1e-3"    }    Block {      BlockType		      Gain      Name		      "Gain"      Position		      [100, 35, 130, 65]    }    Block {      BlockType		      Gain      Name		      "Gain1"      Position		      [380, 95, 410, 125]      Gain		      "0.5"    }    Block {      BlockType		      "S-Function"      Name		      "IO"      Ports		      [2]      Position		      [435, 22, 500, 58]      AncestorBlock	      "rtai_lib/RTAI_SCOPE"      FunctionName	      "sfun_rtai_scope"      Parameters	      "numch,ts"      MaskType		      "RTAI SCOPE"      MaskDescription	      "RTAI run-time scope"      MaskPromptString	      "Channels:|Sampling Time (-1 for inherited)"      MaskStyleString	      "popup(1|2|3|4|5),edit"      MaskTunableValueString  "on,on"      MaskCallbackString      "|"      MaskEnableString	      "on,on"      MaskVisibilityString    "on,on"      MaskToolTipString	      "on,on"      MaskVarAliasString      ","      MaskVariables	      "numch=@1;ts=@2;"      MaskDisplay	      "disp('RTAI\\nScope')"      MaskIconFrame	      on      MaskIconOpaque	      on      MaskIconRotate	      "none"      MaskIconUnits	      "autoscale"      MaskValueString	      "2|-1"    }    Block {      BlockType		      "S-Function"      Name		      "METER"      Ports		      [1]      Position		      [435, 91, 500, 129]      AncestorBlock	      "rtai_lib/RTAI_METER"      FunctionName	      "sfun_rtai_meter"      Parameters	      "dt"      MaskType		      "RTAI_METER"      MaskDescription	      "RTAI run time meter"      MaskPromptString	      "Sample time [s] (-1 for inherited) :"      MaskStyleString	      "edit"      MaskTunableValueString  "off"      MaskEnableString	      "on"      MaskVisibilityString    "on"      MaskToolTipString	      "on"      MaskVariables	      "dt=@1;"      MaskDisplay	      "disp('RTAI\\nMeters')"      MaskIconFrame	      on      MaskIconOpaque	      on      MaskIconRotate	      "none"      MaskIconUnits	      "autoscale"      MaskValueString	      "-1"    }    Block {      BlockType		      DiscretePulseGenerator      Name		      "Pulse\nGenerator"      Position		      [20, 33, 65, 67]      Period		      "10000"      PulseWidth	      "5000"      SampleTime	      "1e-3"    }    Block {      BlockType		      "S-Function"      Name		      "RTAI_LED"      Ports		      [1]      Position		      [430, 232, 500, 278]      AncestorBlock	      "rtai_lib/RTAI_LED"      FunctionName	      "sfun_rtai_led"      Parameters	      "n_leds,dt"      MaskType		      "RTAI_LED"      MaskDescription	      "RTAI run time led"      MaskPromptString	      "Number of leds (max 32) :|Sample time [s] (-1 f""or inherited) :"      MaskStyleString	      "edit,edit"      MaskTunableValueString  "off,off"      MaskCallbackString      "|"      MaskEnableString	      "on,on"      MaskVisibilityString    "on,on"      MaskToolTipString	      "on,on"      MaskVarAliasString      ","      MaskVariables	      "n_leds=@1;dt=@2;"      MaskDisplay	      "disp('RTAI\\nLEDS')\n"      MaskIconFrame	      on      MaskIconOpaque	      on      MaskIconRotate	      "none"      MaskIconUnits	      "autoscale"      MaskValueString	      "1|-1"    }    Block {      BlockType		      Sum      Name		      "Sum"      Ports		      [2, 1]      Position		      [170, 40, 190, 60]      ShowName		      off      IconShape		      "round"      Inputs		      "|+-"      InputSameDT	      off      OutDataTypeMode	      "Inherit via internal rule"    }    Block {      BlockType		      Sum      Name		      "Sum1"      Ports		      [2, 1]      Position		      [195, 245, 215, 265]      ShowName		      off      IconShape		      "round"      Inputs		      "|++"      InputSameDT	      off      OutDataTypeMode	      "Inherit via internal rule"    }    Block {      BlockType		      "S-Function"      Name		      "U"      Ports		      [1]      Position		      [435, 167, 500, 203]      AncestorBlock	      "rtai_lib/RTAI_SCOPE"      FunctionName	      "sfun_rtai_scope"      Parameters	      "numch,ts"      MaskType		      "RTAI SCOPE"      MaskDescription	      "RTAI run-time scope"      MaskPromptString	      "Channels:|Sampling Time (-1 for inherited)"      MaskStyleString	      "popup(1|2|3|4|5),edit"      MaskTunableValueString  "on,on"      MaskCallbackString      "|"      MaskEnableString	      "on,on"      MaskVisibilityString    "on,on"      MaskToolTipString	      "on,on"      MaskVarAliasString      ","      MaskVariables	      "numch=@1;ts=@2;"      MaskDisplay	      "disp('RTAI\\nScope')"      MaskIconFrame	      on      MaskIconOpaque	      on      MaskIconRotate	      "none"      MaskIconUnits	      "autoscale"      MaskValueString	      "1|-1"    }    Line {      SrcBlock		      "Gain"      SrcPort		      1      Points		      [0, 0; 15, 0]      Branch {	Points			[0, 205]	DstBlock		"Sum1"	DstPort			1      }      Branch {	DstBlock		"Sum"	DstPort			1      }      Branch {	Points			[0, -40; 270, 0]	DstBlock		"IO"	DstPort			1      }    }    Line {      SrcBlock		      "Sum"      SrcPort		      1      Points		      [0, 0; 10, 0]      Branch {	DstBlock		"Discrete\nTransfer Fcn"	DstPort			1      }      Branch {	Points			[0, 135]	DstBlock		"U"	DstPort			1      }    }    Line {      SrcBlock		      "Discrete\nTransfer Fcn"      SrcPort		      1      Points		      [0, 0; 40, 0]      Branch {	Points			[15, 0]	Branch {	  Points		  [0, 60]	  DstBlock		  "Gain1"	  DstPort		  1	}	Branch {	  DstBlock		  "IO"	  DstPort		  2	}      }      Branch {	Points			[0, 65; -165, 0]	DstBlock		"Sum"	DstPort			2      }    }    Line {      SrcBlock		      "Constant"      SrcPort		      1      Points		      [25, 0]      DstBlock		      "Sum1"      DstPort		      2    }    Line {      SrcBlock		      "Pulse\nGenerator"      SrcPort		      1      DstBlock		      "Gain"      DstPort		      1    }    Line {      SrcBlock		      "Gain1"      SrcPort		      1      DstBlock		      "METER"      DstPort		      1    }    Line {      SrcBlock		      "Sum1"      SrcPort		      1      DstBlock		      "RTAI_LED"      DstPort		      1    }  }}

⌨️ 快捷键说明

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