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

📄 block510.mdl

📁 realize analysis and design for computer-controlled system
💻 MDL
字号:
Model {  Name			  "block510"  Version		  2.00  SimParamPage		  Solver  SampleTimeColors	  off  WideVectorLines	  on  PaperOrientation	  landscape  StartTime		  "0.0"  StopTime		  "10"  Solver		  ode45  RelTol		  "1e-8"  AbsTol		  "1e-6"  Refine		  "5"  MaxStep		  "auto"  InitialStep		  "auto"  FixedStep		  "auto"  MaxOrder		  5  OutputOption		  RefineOutputTimes  OutputTimes		  "[]"  LoadExternalInput	  off  ExternalInput		  "[t, u]"  SaveTime		  off  TimeSaveName		  "tout"  SaveState		  off  StateSaveName		  "xout"  SaveOutput		  off  OutputSaveName	  "yout"  LoadInitialState	  off  InitialState		  "xInitial"  SaveFinalState	  off  FinalStateName	  "xFinal"  LimitMaxRows		  off  MaxRows		  "1000"  Decimation		  "1"  AlgebraicLoopMsg	  warning  MinStepSizeMsg	  warning  UnconnectedInputMsg	  warning  UnconnectedOutputMsg	  warning  UnconnectedLineMsg	  warning  ConsistencyChecking	  off  ZeroCross		  on  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  }  System {    Name		    "block510"    Location		    [3, 67, 618, 429]    Open		    on    ScreenColor		    white    Block {      BlockType		      Clock      Name		      "Clock"      Position		      [580, 295, 600, 315]      Orientation	      left      ShowName		      off      DeleteFcn		      "simclock BlockIsBeingDestroyed"      PostSaveFcn	      "simclock Save"      Location		      [30, 40, 140, 75]    }    Block {      BlockType		      SubSystem      Name		      "Double\n integrator"      Position		      [470, 117, 500, 168]      DropShadow	      on      ShowPortLabels	      off      System {	Name			"Double\n integrator"	Location		[423, 580, 744, 789]	Open			off	ScreenColor		white	Block {	  BlockType		  Inport	  Name			  "u"	  Position		  [45, 80, 65, 100]	  Port			  "1"	  PortWidth		  "-1"	  SampleTime		  "-1"	}	Block {	  BlockType		  Gain	  Name			  "Gain"	  Position		  [105, 77, 130, 103]	  ShowName		  off	  Gain			  "K"	}	Block {	  BlockType		  Integrator	  Name			  "x1"	  Position		  [210, 80, 230, 100]	  ExternalReset		  none	  InitialConditionSource  internal	  InitialCondition	  "x10"	  LimitOutput		  off	  UpperSaturationLimit	  "inf"	  LowerSaturationLimit	  "-inf"	  ShowSaturationPort	  off	  ShowStatePort		  off	  AbsoluteTolerance	  "auto"	}	Block {	  BlockType		  Integrator	  Name			  "x2"	  Position		  [165, 80, 185, 100]	  ExternalReset		  none	  InitialConditionSource  internal	  InitialCondition	  "x20"	  LimitOutput		  off	  UpperSaturationLimit	  "inf"	  LowerSaturationLimit	  "-inf"	  ShowSaturationPort	  off	  ShowStatePort		  off	  AbsoluteTolerance	  "auto"	}	Block {	  BlockType		  Outport	  Name			  "y"	  Position		  [255, 80, 275, 100]	  Port			  "1"	  OutputWhenDisabled	  held	  InitialOutput		  "0"	}	Block {	  BlockType		  Outport	  Name			  "ydot"	  Position		  [255, 120, 275, 140]	  Port			  "2"	  OutputWhenDisabled	  held	  InitialOutput		  "0"	}	Line {	  SrcBlock		  "x1"	  SrcPort		  1	  DstBlock		  "y"	  DstPort		  1	}	Line {	  SrcBlock		  "x2"	  SrcPort		  1	  Points		  [0, 0]	  Branch {	    Points		    [0, 40]	    DstBlock		    "ydot"	    DstPort		    1	  }	  Branch {	    DstBlock		    "x1"	    DstPort		    1	  }	}	Line {	  SrcBlock		  "Gain"	  SrcPort		  1	  DstBlock		  "x2"	  DstPort		  1	}	Line {	  SrcBlock		  "u"	  SrcPort		  1	  DstBlock		  "Gain"	  DstPort		  1	}      }    }    Block {      BlockType		      Ground      Name		      "Ground"      Position		      [575, 325, 595, 345]      Orientation	      left      ShowName		      off    }    Block {      BlockType		      Mux      Name		      "Mux"      Position		      [175, 121, 205, 154]      BackgroundColor	      magenta      DropShadow	      on      ShowName		      off      Inputs		      "2"    }    Block {      BlockType		      DiscreteStateSpace      Name		      "RST 2"      Position		      [235, 118, 350, 162]      BackgroundColor	      magenta      DropShadow	      on      A			      "[-r1 1;-r2 0]"      B			      "[t1-t0*r1 -s1+s0*r1; t2-t0*r2 -s2+s0*r2]"      C			      "[1 0]"      D			      "[t0 -s0]"      X0		      "0"      SampleTime	      "h"    }    Block {      BlockType		      Sin      Name		      "Sine Wave"      Position		      [575, 255, 595, 275]      Orientation	      left      DropShadow	      on      ShowName		      off      Amplitude		      "an"      Frequency		      "wn"      Phase		      "0"      SampleTime	      "-1"    }    Block {      BlockType		      Step      Name		      "Step Input"      Position		      [35, 120, 55, 140]      DropShadow	      on      ShowName		      off      Time		      "0"      Before		      "0"      After		      "1"    }    Block {      BlockType		      Step      Name		      "Step Input1"      Position		      [360, 185, 380, 205]      DropShadow	      on      ShowName		      off      Time		      "td"      Before		      "0"      After		      "l0"    }    Block {      BlockType		      Sum      Name		      "Sum"      Position		      [420, 135, 440, 155]      DropShadow	      on      ShowName		      off      Inputs		      "++"    }    Block {      BlockType		      Sum      Name		      "Sum1"      Position		      [365, 250, 385, 270]      Orientation	      left      DropShadow	      on      ShowName		      off      Inputs		      "++"    }    Block {      BlockType		      Switch      Name		      "Switch"      Position		      [500, 275, 530, 305]      Orientation	      left      ShowName		      off      Threshold		      "tn"    }    Block {      BlockType		      Terminator      Name		      "Terminator"      Position		      [520, 145, 540, 165]      ShowName		      off    }    Block {      BlockType		      ZeroOrderHold      Name		      "Zero-Order\nHold"      Position		      [280, 245, 320, 275]      Orientation	      left      BackgroundColor	      magenta      DropShadow	      on      ShowName		      off      SampleTime	      "h"    }    Block {      BlockType		      ZeroOrderHold      Name		      "Zero-Order\nHold1"      Position		      [90, 115, 130, 145]      BackgroundColor	      magenta      DropShadow	      on      ShowName		      off      SampleTime	      "h"    }    Block {      BlockType		      Outport      Name		      "y"      Position		      [575, 120, 595, 140]      Port		      "1"      OutputWhenDisabled      held      InitialOutput	      "0"    }    Block {      BlockType		      Outport      Name		      "u"      Position		      [415, 60, 435, 80]      Port		      "2"      OutputWhenDisabled      held      InitialOutput	      "0"    }    Block {      BlockType		      Outport      Name		      "Outport2"      Position		      [95, 65, 115, 85]      ShowName		      off      Port		      "3"      OutputWhenDisabled      held      InitialOutput	      "0"    }    Line {      SrcBlock		      "Step Input"      SrcPort		      1      Points		      [0, 0]      Branch {	Points			[11, 0; 0, -55]	DstBlock		"Outport2"	DstPort			1      }      Branch {	DstBlock		"Zero-Order\nHold1"	DstPort			1      }    }    Line {      SrcBlock		      "Zero-Order\nHold1"      SrcPort		      1      DstBlock		      "Mux"      DstPort		      1    }    Line {      SrcBlock		      "Mux"      SrcPort		      1      DstBlock		      "RST 2"      DstPort		      1    }    Line {      SrcBlock		      "Zero-Order\nHold"      SrcPort		      1      Points		      [-124, 0; 0, -115]      DstBlock		      "Mux"      DstPort		      2    }    Line {      SrcBlock		      "RST 2"      SrcPort		      1      Points		      [0, 0]      Branch {	Points			[20, 0; 0, -70]	DstBlock		"u"	DstPort			1      }      Branch {	DstBlock		"Sum"	DstPort			1      }    }    Line {      SrcBlock		      "Sum"      SrcPort		      1      DstBlock		      "Double\n integrator"      DstPort		      1    }    Line {      SrcBlock		      "Step Input1"      SrcPort		      1      Points		      [10, 0; 0, -45]      DstBlock		      "Sum"      DstPort		      2    }    Line {      SrcBlock		      "Double\n integrator"      SrcPort		      1      Points		      [0, 0]      Branch {	DstBlock		"y"	DstPort			1      }      Branch {	Points			[50, 0; 0, 125]	DstBlock		"Sum1"	DstPort			1      }    }    Line {      SrcBlock		      "Sum1"      SrcPort		      1      DstBlock		      "Zero-Order\nHold"      DstPort		      1    }    Line {      SrcBlock		      "Switch"      SrcPort		      1      Points		      [-45, 0; 0, -25]      DstBlock		      "Sum1"      DstPort		      2    }    Line {      SrcBlock		      "Clock"      SrcPort		      1      Points		      [-15, 0; 0, -15]      DstBlock		      "Switch"      DstPort		      2    }    Line {      SrcBlock		      "Sine Wave"      SrcPort		      1      Points		      [-10, 0; 0, 15]      DstBlock		      "Switch"      DstPort		      1    }    Line {      SrcBlock		      "Double\n integrator"      SrcPort		      2      DstBlock		      "Terminator"      DstPort		      1    }    Line {      SrcBlock		      "Ground"      SrcPort		      1      Points		      [-25, 0]      DstBlock		      "Switch"      DstPort		      3    }  }}

⌨️ 快捷键说明

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