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

📄 chap9_6.mdl

📁 该程序是由matlab语言针对<先进PID控制及其MATLAB仿真>编写的,希望对大家有用.
💻 MDL
📖 第 1 页 / 共 2 页
字号:
Model {
  Name			  "chap9_6"
  Version		  3.00
  SimParamPage		  "Solver"
  SampleTimeColors	  on
  InvariantConstants	  off
  WideVectorLines	  on
  ShowLineWidths	  on
  ShowPortDataTypes	  off
  StartTime		  "0"
  StopTime		  "5"
  SolverMode		  "Auto"
  Solver		  "ode45"
  RelTol		  "1e-3"
  AbsTol		  "auto"
  Refine		  "1"
  MaxStep		  "auto"
  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		  "Matrix"
  LimitMaxRows		  off
  MaxRows		  "1000"
  Decimation		  "1"
  AlgebraicLoopMsg	  "warning"
  MinStepSizeMsg	  "warning"
  UnconnectedInputMsg	  "warning"
  UnconnectedOutputMsg	  "warning"
  UnconnectedLineMsg	  "warning"
  InheritedTsInSrcMsg	  "warning"
  IntegerOverflowMsg	  "warning"
  UnnecessaryDatatypeConvMsg "none"
  Int32ToFloatConvMsg	  "warning"
  SignalLabelMismatchMsg  "none"
  ConsistencyChecking	  "off"
  ZeroCross		  on
  SimulationMode	  "normal"
  BlockDataTips		  on
  BlockParametersDataTip  on
  BlockAttributesDataTip  off
  BlockPortWidthsDataTip  off
  BlockDescriptionStringDataTip	off
  BlockMaskParametersDataTip off
  ToolBar		  on
  StatusBar		  on
  BrowserShowLibraryLinks off
  BrowserLookUnderMasks	  off
  OptimizeBlockIOStorage  on
  BufferReuse		  on
  BooleanDataType	  off
  RTWSystemTargetFile	  "grt.tlc"
  RTWInlineParameters	  off
  RTWRetainRTWFile	  off
  RTWTemplateMakefile	  "grt_default_tmf"
  RTWMakeCommand	  "make_rtw"
  RTWGenerateCodeOnly	  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
  Created		  "Mon Sep 18 10:59:00 2000"
  UpdateHistory		  "UpdateHistoryNever"
  ModifiedByFormat	  "%<Auto>"
  ModifiedDateFormat	  "%<Auto>"
  LastModifiedDate	  "Thu Jun 10 23:26:13 2004"
  ModelVersionFormat	  "1.%<AutoIncrement:689>"
  ConfigurationManager	  "none"
  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		    "chap9_6"
    Location		    [9, 66, 809, 579]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "usletter"
    PaperUnits		    "inches"
    ZoomFactor		    "100"
    AutoZoom		    on
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      FromWorkspace
      Name		      "From\nWorkspace"
      Position		      [75, 158, 140, 182]
      VariableName	      "[time,rin]"
      SampleTime	      "0.001"
      Interpolate	      on
      HoldFinalValue	      off
    }
    Block {
      BlockType		      FromWorkspace
      Name		      "From\nWorkspace1"
      Position		      [75, 318, 140, 342]
      VariableName	      "[time,drin]"
      SampleTime	      "0.001"
      Interpolate	      on
      HoldFinalValue	      off
    }
    Block {
      BlockType		      SubSystem
      Name		      "General Plant"
      Ports		      [1, 2, 0, 0, 0]
      Position		      [415, 139, 450, 201]
      ShowPortLabels	      on
      System {
	Name			"General Plant"
	Location		[8, 74, 808, 587]
	Open			on
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"automatic"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	AutoZoom		on
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [30, 168, 60, 182]
	  Port			  "1"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	  DataType		  "auto"
	  SignalType		  "auto"
	  Interpolate		  on
	}
	Block {
	  BlockType		  Gain
	  Name			  " "
	  Position		  [405, 180, 430, 210]
	  Gain			  "kl"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  TransferFcn
	  Name			  "    "
	  Position		  [520, 177, 565, 213]
	  Numerator		  "[1]"
	  Denominator		  "[Jl bl]"
	}
	Block {
	  BlockType		  Gain
	  Name			  " 2"
	  Position		  [120, 160, 145, 190]
	  Gain			  "kd"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Gain
	  Name			  " 4"
	  Position		  [515, 338, 540, 362]
	  Orientation		  "left"
	  Gain			  "1"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Gain
	  Name			  " 5"
	  Position		  [165, 160, 190, 190]
	  Gain			  "ku"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Fcn
	  Name			  "Friction model1"
	  Position		  [562, 300, 608, 330]
	  Orientation		  "down"
	  Expr			  "Fc*sgn(u)+bc*u"
	}
	Block {
	  BlockType		  Integrator
	  Name			  "Integrator"
	  Ports			  [1, 1, 0, 0, 0]
	  Position		  [315, 178, 340, 212]
	  ExternalReset		  "none"
	  InitialConditionSource  "internal"
	  InitialCondition	  "0"
	  LimitOutput		  off
	  UpperSaturationLimit	  "inf"
	  LowerSaturationLimit	  "-inf"
	  ShowSaturationPort	  off
	  ShowStatePort		  off
	  AbsoluteTolerance	  "auto"
	}
	Block {
	  BlockType		  Integrator
	  Name			  "Integrator1"
	  Ports			  [1, 1, 0, 0, 0]
	  Position		  [615, 180, 630, 210]
	  ExternalReset		  "none"
	  InitialConditionSource  "internal"
	  InitialCondition	  "0"
	  LimitOutput		  off
	  UpperSaturationLimit	  "inf"
	  LowerSaturationLimit	  "-inf"
	  ShowSaturationPort	  off
	  ShowStatePort		  off
	  AbsoluteTolerance	  "auto"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Kv"
	  Position		  [135, 295, 165, 325]
	  Orientation		  "left"
	  Gain			  "kv"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Motor Model"
	  Ports			  [2, 1, 0, 0, 0]
	  Position		  [210, 156, 255, 229]
	  ForegroundColor	  "lightBlue"
	  ShowPortLabels	  on
	  System {
	    Name		    "Motor Model"
	    Location		    [7, 74, 659, 587]
	    Open		    on
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "automatic"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "98"
	    AutoZoom		    on
	    Block {
	      BlockType		      Inport
	      Name		      "In1"
	      Position		      [25, 163, 55, 177]
	      Port		      "1"
	      PortWidth		      "-1"
	      SampleTime	      "-1"
	      DataType		      "auto"
	      SignalType	      "auto"
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "In3"
	      Position		      [25, 218, 55, 232]
	      Port		      "2"
	      PortWidth		      "-1"
	      SampleTime	      "-1"
	      DataType		      "auto"
	      SignalType	      "auto"
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "\n\n\n\n"
	      Position		      [275, 270, 305, 300]
	      Orientation	      "left"
	      Gain		      "Ce"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "\n\n\n\n \n"
	      Position		      [160, 110, 190, 140]
	      Orientation	      "left"
	      Gain		      "ki"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "  "
	      Position		      [265, 151, 305, 189]
	      Gain		      "km"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      TransferFcn
	      Name		      "   "
	      Position		      [165, 152, 210, 188]
	      Numerator		      "[1]"
	      Denominator	      "[L R]"
	    }
	    Block {
	      BlockType		      TransferFcn
	      Name		      "    "
	      Position		      [375, 150, 430, 190]
	      Numerator		      "[1]"
	      Denominator	      "[Jm bm]"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum4"
	      Ports		      [3, 1, 0, 0, 0]
	      Position		      [95, 155, 125, 185]
	      ForegroundColor	      "red"
	      NamePlacement	      "alternate"
	      ShowName		      off
	      IconShape		      "round"
	      Inputs		      "-+-"
	      SaturateOnIntegerOverflow	off
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum6"
	      Ports		      [2, 1, 0, 0, 0]
	      Position		      [320, 160, 340, 180]
	      ShowName		      off
	      IconShape		      "round"
	      Inputs		      "|+-"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out1"
	      Position		      [505, 163, 535, 177]
	      Port		      "1"
	      OutputWhenDisabled      "held"
	      InitialOutput	      "[]"
	    }
	    Line {
	      SrcBlock		      "    "
	      SrcPort		      1
	      Points		      [30, 0]
	      Branch {
		Points			[0, 115]
		DstBlock		"\n\n\n\n"
		DstPort			1
	      }
	      Branch {
		DstBlock		"Out1"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Sum4"
	      SrcPort		      1
	      DstBlock		      "   "
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "   "
	      SrcPort		      1
	      Points		      [15, 0]
	      Branch {
		Points			[0, -45]
		DstBlock		"\n\n\n\n \n"
		DstPort			1
	      }
	      Branch {
		DstBlock		"  "
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "\n\n\n\n \n"
	      SrcPort		      1
	      Points		      [-45, 0]
	      DstBlock		      "Sum4"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "In1"
	      SrcPort		      1
	      DstBlock		      "Sum4"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "  "
	      SrcPort		      1
	      DstBlock		      "Sum6"
	      DstPort		      1
	    }

⌨️ 快捷键说明

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