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

📄 block525.mdl

📁 realize analysis and design for computer-controlled system
💻 MDL
字号:
Model {  Name			  "block525"  Version		  2.00  SimParamPage		  Solver  SampleTimeColors	  off  WideVectorLines	  on  PaperOrientation	  landscape  StartTime		  "0.0"  StopTime		  "999999"  Solver		  ode45  RelTol		  "1e-3"  AbsTol		  "1e-6"  Refine		  "1"  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		    "block525"    Location		    [3, 144, 621, 461]    Open		    on    ScreenColor		    white    Block {      BlockType		      Mux      Name		      "Mux"      Position		      [170, 86, 200, 119]      BackgroundColor	      magenta      DropShadow	      on      ShowName		      off      Inputs		      "2"    }    Block {      BlockType		      SubSystem      Name		      "Pulse"      Position		      [275, 163, 300, 187]      DropShadow	      on      ShowPortLabels	      off      MaskType		      "Pulse"      MaskDescription	      "Pulse Generator."      MaskHelp		      "Pulse generator which ensures pulse\\ntransition"			      "s are hit. Provides a vector of pulses when "			      "the height is entered as a vector.\\nUnmask "			      "to see how it works."      MaskPromptString	      "Pulse width:|Pulse height:|Pulse start time:"      MaskStyleString	      "edit,edit,edit"      MaskInitialization      "width=@1;height=@2;tstep=@3;"      MaskDisplay	      "plot(-30,-10,100,100,[60,35,35,20,20,0],[20,20,8"			      "0,80,20,20])"      MaskIconFrame	      on      MaskIconOpaque	      on      MaskIconRotate	      off      MaskIconUnits	      autoscale      MaskValueString	      "0.1|-10|25"      System {	Name			"Pulse"	Location		[100, 215, 335, 385]	Open			off	ScreenColor		white	Block {	  BlockType		  Step	  Name			  "Step Input1"	  Position		  [65, 50, 85, 70]	  ShowName		  off	  Time			  "tstep"	  Before		  "0"	  After			  "height"	}	Block {	  BlockType		  Step	  Name			  "Step Input2"	  Position		  [65, 105, 85, 125]	  ShowName		  off	  Time			  "tstep+width"	  Before		  "0"	  After			  "height"	}	Block {	  BlockType		  Sum	  Name			  "Sum"	  Position		  [145, 75, 165, 95]	  Inputs		  "+-"	}	Block {	  BlockType		  Outport	  Name			  "out_1"	  Position		  [205, 75, 225, 95]	  Port			  "1"	  OutputWhenDisabled	  held	  InitialOutput		  "0"	}	Line {	  SrcBlock		  "Sum"	  SrcPort		  1	  DstBlock		  "out_1"	  DstPort		  1	}	Line {	  SrcBlock		  "Step Input1"	  SrcPort		  1	  Points		  [15, 0; 0, 20]	  DstBlock		  "Sum"	  DstPort		  1	}	Line {	  SrcBlock		  "Step Input2"	  SrcPort		  1	  Points		  [25, 0; 0, -25]	  DstBlock		  "Sum"	  DstPort		  2	}      }    }    Block {      BlockType		      DiscreteStateSpace      Name		      "RST 5"      Position		      [230, 83, 345, 127]      BackgroundColor	      magenta      DropShadow	      on      A			      "[-r1 1 0 0 0;-r2 0 1 0 0; -r3 0 0 1 0; -r4 "			      "0 0 0 1;-r5 0 0 0 0]"      B			      "[t1-t0*r1 -s1+s0*r1; t2-t0*r2 -s2+s0*r2; "			      "t3-t0*r3 -s3+s0*r3; t4-t0*r4 -s4+s0*r4; t5-t0*r5"			      " -s5+s0*r5]"      C			      "[1 0 0 0 0]"      D			      "[t0 -s0]"      X0		      "0"      SampleTime	      "h"    }    Block {      BlockType		      SubSystem      Name		      "Robot"      Position		      [385, 90, 415, 145]      DropShadow	      on      ShowPortLabels	      off      System {	Name			"Robot"	Location		[42, 411, 453, 592]	Open			off	ScreenColor		white	Block {	  BlockType		  Inport	  Name			  "u"	  Position		  [30, 40, 50, 60]	  Port			  "1"	  PortWidth		  "-1"	  SampleTime		  "-1"	}	Block {	  BlockType		  Inport	  Name			  "v"	  Position		  [30, 85, 50, 105]	  Port			  "2"	  PortWidth		  "-1"	  SampleTime		  "-1"	}	Block {	  BlockType		  Demux	  Name			  "Demux"	  Position		  [260, 56, 300, 89]	  Outputs		  "[1 3]"	}	Block {	  BlockType		  Mux	  Name			  "Mux2"	  Position		  [90, 56, 120, 89]	  DropShadow		  on	  ShowName		  off	  Inputs		  "2"	}	Block {	  BlockType		  StateSpace	  Name			  "robmech"	  Position		  [150, 54, 225, 96]	  A			  "om0*[0 1 -1;  al-1 -be1 be1; al  be2 -be2]"	  B			  "[0 0; ga de; 0 0]"	  C			  "[0 0 om0;1 0 0; 0 1 0; 0 0 1]"	  D			  "[0 0; 0 0; 0 0; 0 0]"	  X0			  "0"	}	Block {	  BlockType		  Outport	  Name			  "y"	  Position		  [350, 25, 370, 45]	  Port			  "1"	  OutputWhenDisabled	  held	  InitialOutput		  "0"	}	Block {	  BlockType		  Outport	  Name			  "x"	  Position		  [350, 70, 370, 90]	  Port			  "2"	  OutputWhenDisabled	  held	  InitialOutput		  "0"	}	Line {	  SrcBlock		  "Demux"	  SrcPort		  1	  Points		  [15, 0; 0, -30]	  DstBlock		  "y"	  DstPort		  1	}	Line {	  SrcBlock		  "u"	  SrcPort		  1	  Points		  [5, 0; 0, 15]	  DstBlock		  "Mux2"	  DstPort		  1	}	Line {	  SrcBlock		  "v"	  SrcPort		  1	  Points		  [5, 0; 0, -15]	  DstBlock		  "Mux2"	  DstPort		  2	}	Line {	  SrcBlock		  "Demux"	  SrcPort		  2	  DstBlock		  "x"	  DstPort		  1	}	Line {	  SrcBlock		  "Mux2"	  SrcPort		  1	  DstBlock		  "robmech"	  DstPort		  1	}	Line {	  SrcBlock		  "robmech"	  SrcPort		  1	  DstBlock		  "Demux"	  DstPort		  1	}      }    }    Block {      BlockType		      Step      Name		      "Step Input"      Position		      [30, 85, 50, 105]      DropShadow	      on      ShowName		      off      Time		      "0"      Before		      "0"      After		      "1"    }    Block {      BlockType		      Terminator      Name		      "Terminator"      Position		      [445, 145, 465, 165]      ShowName		      off    }    Block {      BlockType		      TransferFcn      Name		      "Transfer Fcn"      Position		      [445, 80, 580, 130]      DropShadow	      on      ShowName		      off      Numerator		      "[0 omf*omf]"      Denominator	      "[1 1.4*omf omf*omf]"    }    Block {      BlockType		      ZeroOrderHold      Name		      "Zero-Order\nHold"      Position		      [275, 250, 315, 280]      Orientation	      left      BackgroundColor	      magenta      DropShadow	      on      ShowName		      off      SampleTime	      "h"    }    Block {      BlockType		      ZeroOrderHold      Name		      "Zero-Order\nHold1"      Position		      [85, 80, 125, 110]      BackgroundColor	      magenta      DropShadow	      on      ShowName		      off      SampleTime	      "h"    }    Block {      BlockType		      Outport      Name		      "ym"      Position		      [625, 95, 645, 115]      Port		      "1"      OutputWhenDisabled      held      InitialOutput	      "0"    }    Block {      BlockType		      Outport      Name		      "u"      Position		      [385, 35, 405, 55]      Port		      "2"      OutputWhenDisabled      held      InitialOutput	      "0"    }    Block {      BlockType		      Outport      Name		      "Outport2"      Position		      [90, 30, 110, 50]      ShowName		      off      Port		      "3"      OutputWhenDisabled      held      InitialOutput	      "0"    }    Line {      SrcBlock		      "Robot"      SrcPort		      2      Points		      [10, 0]      DstBlock		      "Terminator"      DstPort		      1    }    Line {      SrcBlock		      "RST 5"      SrcPort		      1      Points		      [0, 0]      Branch {	Points			[9, 0; 0, -60]	DstBlock		"u"	DstPort			1      }      Branch {	DstBlock		"Robot"	DstPort			1      }    }    Line {      SrcBlock		      "Pulse"      SrcPort		      1      Points		      [54, 0; 0, -45]      DstBlock		      "Robot"      DstPort		      2    }    Line {      SrcBlock		      "Mux"      SrcPort		      1      DstBlock		      "RST 5"      DstPort		      1    }    Line {      SrcBlock		      "Zero-Order\nHold"      SrcPort		      1      Points		      [-121, 0; 0, -155]      DstBlock		      "Mux"      DstPort		      2    }    Line {      SrcBlock		      "Step Input"      SrcPort		      1      Points		      [0, 0]      Branch {	Points			[9, 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		      "Transfer Fcn"      SrcPort		      1      Points		      [0, 0]      Branch {	Points			[14, 0; 0, 160]	DstBlock		"Zero-Order\nHold"	DstPort			1      }      Branch {	DstBlock		"ym"	DstPort			1      }    }    Line {      SrcBlock		      "Robot"      SrcPort		      1      DstBlock		      "Transfer Fcn"      DstPort		      1    }  }}

⌨️ 快捷键说明

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