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

📄 block521.mdl

📁 realize analysis and design for computer-controlled system
💻 MDL
字号:
Model {  Name			  "block521"  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		  "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		    "block521"    Location		    [3, 41, 621, 461]    Open		    on    ScreenColor		    white    Block {      BlockType		      SubSystem      Name		      "Band-Limited\nWhite Noise"      Position		      [580, 242, 615, 278]      Orientation	      left      ShowName		      off      ShowPortLabels	      off      MaskType		      "Continuous White Noise."      MaskDescription	      "White noise for continuous (s-domain) systems.\n"			      "Band-limited using zero-order-hold."      MaskHelp		      "Implemented using white noise into Zero-Order "			      "Hold block. The seed and power can be vectors "			      "of the same length to produce a vector of "			      "white noise sources. For faster simulation, "			      "set sample time to the highest value possible "			      "but in accordance with the fastest dynamics "			      "of system."      MaskPromptString	      "Noise Power:|Sample Time:|Seed"      MaskStyleString	      "edit,edit,edit"      MaskInitialization      "Cov = @1; Ts = @2; seed = @3; r = rand(1,12); "			      "r2 = [r(1),r;r,r(12)]; t =[1:13;1:13];"      MaskDisplay	      "plot(t(:),r2(:))"      MaskIconFrame	      on      MaskIconOpaque	      on      MaskIconRotate	      off      MaskIconUnits	      autoscale      MaskValueString	      "[0.0001]|hnoise|[23341]"      System {	Name			"Band-Limited\nWhite Noise"	Location		[54, 341, 339, 470]	Open			off	ScreenColor		white	Block {	  BlockType		  Gain	  Name			  "Gain"	  Position		  [155, 31, 195, 69]	  Gain			  "[sqrt(Cov)]/[sqrt(Ts)]"	}	Block {	  BlockType		  RandomNumber	  Name			  "White Noise"	  Position		  [25, 40, 45, 60]	  Seed			  "seed"	}	Block {	  BlockType		  ZeroOrderHold	  Name			  "Zero-Order\nHold"	  Position		  [85, 34, 120, 66]	  SampleTime		  "Ts"	}	Block {	  BlockType		  Outport	  Name			  "Out_1"	  Position		  [230, 40, 250, 60]	  Port			  "1"	  OutputWhenDisabled	  held	  InitialOutput		  "0"	}	Line {	  SrcBlock		  "Zero-Order\nHold"	  SrcPort		  1	  DstBlock		  "Gain"	  DstPort		  1	}	Line {	  SrcBlock		  "Gain"	  SrcPort		  1	  DstBlock		  "Out_1"	  DstPort		  1	}	Line {	  SrcBlock		  "White Noise"	  SrcPort		  1	  DstBlock		  "Zero-Order\nHold"	  DstPort		  1	}      }    }    Block {      BlockType		      Clock      Name		      "Clock"      Position		      [580, 305, 600, 325]      Orientation	      left      ShowName		      off      DeleteFcn		      "simclock BlockIsBeingDestroyed"      PostSaveFcn	      "simclock Save"      Location		      [30, 40, 140, 75]    }    Block {      BlockType		      Ground      Name		      "Ground"      Position		      [585, 340, 605, 360]      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 5"      Position		      [235, 118, 350, 162]      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		      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		      [415, 250, 435, 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		      TransferFcn      Name		      "Transfer Fcn"      Position		      [465, 124, 515, 166]      DropShadow	      on      ShowName		      off      Numerator		      "[1]"      Denominator	      "[1 0 1]"    }    Block {      BlockType		      TransferFcn      Name		      "Transfer Fcn1"      Position		      [310, 237, 365, 283]      Orientation	      left      ShowName		      off      Numerator		      "bbes"      Denominator	      "abes"    }    Block {      BlockType		      ZeroOrderHold      Name		      "Zero-Order\nHold"      Position		      [215, 245, 255, 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		      [570, 135, 590, 155]      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		      "Ground"      SrcPort		      1      Points		      [-35, 0]      DstBlock		      "Switch"      DstPort		      3    }    Line {      SrcBlock		      "Band-Limited\nWhite Noise"      SrcPort		      1      Points		      [-15, 0; 0, 20]      DstBlock		      "Switch"      DstPort		      1    }    Line {      SrcBlock		      "Transfer Fcn"      SrcPort		      1      Points		      [0, 0]      Branch {	Points			[10, 0; 0, 110]	DstBlock		"Sum1"	DstPort			1      }      Branch {	DstBlock		"y"	DstPort			1      }    }    Line {      SrcBlock		      "Sum1"      SrcPort		      1      DstBlock		      "Transfer Fcn1"      DstPort		      1    }    Line {      SrcBlock		      "Transfer Fcn1"      SrcPort		      1      DstBlock		      "Zero-Order\nHold"      DstPort		      1    }    Line {      SrcBlock		      "Clock"      SrcPort		      1      Points		      [-15, 0; 0, -25]      DstBlock		      "Switch"      DstPort		      2    }    Line {      SrcBlock		      "Switch"      SrcPort		      1      Points		      [-45, 0]      DstBlock		      "Sum1"      DstPort		      2    }    Line {      SrcBlock		      "Step Input1"      SrcPort		      1      Points		      [10, 0; 0, -45]      DstBlock		      "Sum"      DstPort		      2    }    Line {      SrcBlock		      "Sum"      SrcPort		      1      DstBlock		      "Transfer Fcn"      DstPort		      1    }    Line {      SrcBlock		      "RST 5"      SrcPort		      1      Points		      [0, 0]      Branch {	DstBlock		"Sum"	DstPort			1      }      Branch {	Points			[20, 0; 0, -70]	DstBlock		"u"	DstPort			1      }    }    Line {      SrcBlock		      "Zero-Order\nHold"      SrcPort		      1      Points		      [-59, 0; 0, -115]      DstBlock		      "Mux"      DstPort		      2    }    Line {      SrcBlock		      "Mux"      SrcPort		      1      DstBlock		      "RST 5"      DstPort		      1    }    Line {      SrcBlock		      "Zero-Order\nHold1"      SrcPort		      1      DstBlock		      "Mux"      DstPort		      1    }    Line {      SrcBlock		      "Step Input"      SrcPort		      1      Points		      [0, 0]      Branch {	DstBlock		"Zero-Order\nHold1"	DstPort			1      }      Branch {	Points			[11, 0; 0, -55]	DstBlock		"Outport2"	DstPort			1      }    }  }}

⌨️ 快捷键说明

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