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

📄 simpletrans.mdl

📁 这是关于matlab stateflow的源码例子
💻 MDL
字号:
Model {
  Name			  "simpletrans"
  Version		  4.00
  SampleTimeColors	  off
  LibraryLinkDisplay	  "none"
  WideLines		  off
  ShowLineDimensions	  off
  ShowPortDataTypes	  off
  ShowStorageClass	  off
  ExecutionOrder	  off
  RecordCoverage	  off
  CovPath		  "/"
  CovSaveName		  "covdata"
  CovMetricSettings	  "dw"
  CovNameIncrementing	  off
  CovHtmlReporting	  on
  BlockNameDataTip	  off
  BlockParametersDataTip  off
  BlockDescriptionStringDataTip	off
  ToolBar		  on
  StatusBar		  on
  BrowserShowLibraryLinks off
  BrowserLookUnderMasks	  off
  Created		  "Wed Mar 19 15:09:28 2003"
  UpdateHistory		  "UpdateHistoryNever"
  ModifiedByFormat	  "%<Auto>"
  LastModifiedBy	  "wyh"
  ModifiedDateFormat	  "%<Auto>"
  LastModifiedDate	  "Wed Mar 19 17:04:00 2003"
  ModelVersionFormat	  "1.%<AutoIncrement:2>"
  ConfigurationManager	  "None"
  SimParamPage		  "Solver"
  StartTime		  "0.0"
  StopTime		  "10.0"
  SolverMode		  "Auto"
  Solver		  "ode45"
  RelTol		  "1e-3"
  AbsTol		  "auto"
  Refine		  "1"
  MaxStep		  "auto"
  MinStep		  "auto"
  MaxNumMinSteps	  "-1"
  InitialStep		  "auto"
  FixedStep		  "auto"
  MaxOrder		  5
  OutputOption		  "RefineOutputTimes"
  OutputTimes		  "[]"
  LoadExternalInput	  off
  ExternalInput		  "[t, u]"
  SaveTime		  on
  TimeSaveName		  "tout"
  SaveState		  off
  StateSaveName		  "xout"
  SaveOutput		  on
  OutputSaveName	  "yout"
  LoadInitialState	  off
  InitialState		  "xInitial"
  SaveFinalState	  off
  FinalStateName	  "xFinal"
  SaveFormat		  "Array"
  LimitDataPoints	  on
  MaxDataPoints		  "1000"
  Decimation		  "1"
  AlgebraicLoopMsg	  "warning"
  MinStepSizeMsg	  "warning"
  UnconnectedInputMsg	  "warning"
  UnconnectedOutputMsg	  "warning"
  UnconnectedLineMsg	  "warning"
  InheritedTsInSrcMsg	  "warning"
  SingleTaskRateTransMsg  "none"
  MultiTaskRateTransMsg	  "error"
  IntegerOverflowMsg	  "warning"
  CheckForMatrixSingularity "none"
  UnnecessaryDatatypeConvMsg "none"
  Int32ToFloatConvMsg	  "warning"
  InvalidFcnCallConnMsg	  "error"
  SignalLabelMismatchMsg  "none"
  LinearizationMsg	  "none"
  VectorMatrixConversionMsg "none"
  SfunCompatibilityCheckMsg "none"
  BlockPriorityViolationMsg "warning"
  ArrayBoundsChecking	  "none"
  ConsistencyChecking	  "none"
  ZeroCross		  on
  Profile		  off
  SimulationMode	  "normal"
  RTWSystemTargetFile	  "grt.tlc"
  RTWInlineParameters	  off
  RTWRetainRTWFile	  off
  RTWTemplateMakefile	  "grt_default_tmf"
  RTWMakeCommand	  "make_rtw"
  RTWGenerateCodeOnly	  off
  TLCProfiler		  off
  TLCDebug		  off
  TLCCoverage		  off
  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 on
  OptimizeBlockIOStorage  on
  BufferReuse		  on
  ParameterPooling	  on
  BlockReductionOpt	  on
  RTWExpressionDepthLimit 5
  BooleanDataType	  off
  BlockDefaults {
    Orientation		    "right"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    NamePlacement	    "normal"
    FontName		    "Helvetica"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
    ShowName		    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		    "simpletrans"
    Location		    [466, 212, 966, 513]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "automatic"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "A4"
    PaperUnits		    "centimeters"
    ZoomFactor		    "100"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      Constant
      Name		      "Constant"
      Position		      [70, 75, 100, 105]
      Value		      "2000"
      VectorParams1D	      on
    }
    Block {
      BlockType		      Constant
      Name		      "Constant1"
      Position		      [75, 125, 105, 155]
      Value		      "23"
      VectorParams1D	      on
    }
    Block {
      BlockType		      SubSystem
      Name		      "Subsystem"
      Ports		      [2, 1]
      Position		      [175, 77, 275, 128]
      FontSize		      10
      ShowPortLabels	      on
      TreatAsAtomicUnit	      off
      RTWSystemCode	      "Auto"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      System {
	Name			"Subsystem"
	Location		[487, 272, 985, 572]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "ne"
	  Position		  [110, 43, 140, 57]
	  Port			  "1"
	  LatchInput		  off
	  Interpolate		  on
	}
	Block {
	  BlockType		  Inport
	  Name			  "alpha"
	  Position		  [110, 118, 140, 132]
	  Port			  "2"
	  LatchInput		  off
	  Interpolate		  on
	}
	Block {
	  BlockType		  Reference
	  Name			  "Look-Up\nTable (2-D)"
	  Ports			  [2, 1]
	  Position		  [240, 62, 295, 113]
	  FontSize		  10
	  SourceBlock		  "simulink3/Functions\n& Tables/Look-Up\nTabl"
"e (2-D)"
	  SourceType		  "Lookup Table (2-D)"
	  x			  "[1200,1400,1600,1800,2000,2200,2400,2600,28"
"00,3000,3200,3400,3600,3900,4200,4600]"
	  y			  "[5 10 15 20 25 30 35 40 45 50 55 60 65 70 7"
"5 80 85 90 95 100]"
	  t			  "[19.8000 11.0000 4.4000 -10.4000 -24.1000 -"
"17.6000 -30.6000 -35.7000 0 0 0 0 0 0 0 0;29.5000 10.6000 3.5000 -9.3000 -20."
"8000 -14.8000 -32.9000 -35.6000 0 0 0 0 0 0 0 0; 54.1000 28.7000 19.0000 10.8"
"000 3.5000 2.0000 -5.8000 -13.7000 0 0 0 0 0 0 0 0;79.2000 55.5000 44.7000 33"
".4000 25.3000 19.8000 17.6000 11.8000 8.2000 5.9000 -2.3000 -3.6000 -5.4000 -"
"13.4000 -17.0000 -46.0000;115.8000 86.1000 71.4000 61.6000 48.8000 43.0000 38"
".3000 32.7000 29.0000 25.2000 18.9000 15.7000 13.4000 7.1000 0.9000 -46.7000;"
"138.7000 114.5000 104.0000 93.0000 79.1000 73.7000 67.3000 60.5000 54.6000 49"
".5000 41.9000 38.4000 35.5000 29.2000 22.3000 14.2000;154.9000 138.1000 132.1"
"000 122.9000 112.4000 106.3000 99.2000 93.1000 86.2000 79.1000 72.4000 66.700"
"0 62.3000 53.6000 46.2000 36.5000; 160.8000 154.9000 148.3000 145.1000 134.60"
"00 132.2000 125.3000 116.6000 112.4000 106.0000 99.4000 93.8000 87.0000 77.40"
"00 68.9000 58.2000; 157.6000 159.5000 158.4000 155.1000 147.9000 143.3000 136"
".9000 134.8000 130.6000 125.5000 118.9000 113.4000 107.2000 99.2000 89.7000 7"
"7.7000; 151.5000 156.1000 158.1000 158.0000 155.5000 154.6000 148.5000 146.50"
"00 141.9000 138.6000 133.5000 129.4000 122.8000 114.3000 105.8000 93.2000; 15"
"0.3000 155.3000 159.4000 161.5000 161.0000 162.1000 156.3000 154.0000 151.600"
"0 149.5000 144.2000 140.3000 135.6000 127.2000 117.2000 105.0000;147.9000 154"
".2000 161.2000 159.0000 165.5000 165.4000 166.8000 161.3000 158.5000 156.9000"
" 152.1000 148.6000 144.1000 136.1000 125.9000 118.0000;151.4000 154.3000 159."
"0000 160.3000 164.7000 169.8000 166.6000 165.3000 162.1000 161.1000 157.3000 "
"154.9000 150.3000 142.5000 131.8000 124.1000;142.9000 153.2000 159.5000 162.3"
"000 165.6000 172.0000 170.6000 168.5000 167.2000 166.8000 162.5000 161.3000 1"
"57.0000 147.4000 140.6000 128.5000;144.1000 156.9000 166.6000 170.0000 167.70"
"00 172.6000 169.9000 171.8000 169.7000 169.5000 167.0000 164.3000 160.5000 15"
"0.8000 144.1000 131.8000;146.7000 156.3000 165.2000 171.7000 173.1000 178.200"
"0 176.3000 178.1000 172.9000 172.3000 169.7000 167.0000 162.6000 157.6000 147"
".8000 133.6000;160.8000 151.8000 165.2000 174.2000 171.8000 177.9000 178.5000"
" 178.9000 179.4000 175.5000 175.3000 168.8000 166.6000 159.9000 150.5000 136."
"6000; 139.9000 152.6000 164.4000 174.9000 171.4000 178.3000 179.2000 178.5000"
" 180.4000 175.2000 178.6000 173.6000 171.6000 162.1000 153.0000 138.5000; 147"
".0000 156.3000 165.5000 165.7000 172.9000 178.4000 178.0000 179.0000 182.3000"
" 176.6000 181.1000 176.1000 174.1000 163.4000 154.8000 139.8000;142.5000 156."
"6000 168.7000 172.5000 172.1000 178.0000 177.5000 178.7000 181.4000 178.0000 "
"178.1000 175.3000 173.0000 163.3000 154.0000 139.0000;]"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [360, 83, 390, 97]
	  Port			  "1"
	  OutputWhenDisabled	  "held"
	  InitialOutput		  "[]"
	}
	Line {
	  SrcBlock		  "ne"
	  SrcPort		  1
	  Points		  [15, 0; 0, 25]
	  DstBlock		  "Look-Up\nTable (2-D)"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "alpha"
	  SrcPort		  1
	  Points		  [15, 0; 0, -25]
	  DstBlock		  "Look-Up\nTable (2-D)"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Look-Up\nTable (2-D)"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
      }
    }
    Line {
      SrcBlock		      "Constant"
      SrcPort		      1
      DstBlock		      "Subsystem"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Constant1"
      SrcPort		      1
      Points		      [25, 0; 0, -25]
      DstBlock		      "Subsystem"
      DstPort		      2
    }
  }
}

⌨️ 快捷键说明

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