blockpred.mdl

来自「realize analysis and design for computer」· MDL 代码 · 共 357 行

MDL
357
字号
Model {  Name			  "blockpred"  Version		  2.00  SimParamPage		  Solver  SampleTimeColors	  off  WideVectorLines	  off  PaperOrientation	  landscape  StartTime		  "0.0"  StopTime		  "999999"  Solver		  VariableStepDiscrete  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		    "blockpred"    Location		    [3, 123, 621, 328]    Open		    on    ScreenColor		    white    Block {      BlockType		      SubSystem      Name		      "Band-Limited\nWhite Noise"      Position		      [60, 127, 105, 163]      DropShadow	      on      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	      "1|1|[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		      DiscreteFilter      Name		      "Filter"      Position		      [155, 126, 215, 164]      DropShadow	      on      ShowName		      off      Numerator		      "Cpol"      Denominator	      "Apol"      SampleTime	      "1"    }    Block {      BlockType		      DiscreteFilter      Name		      "Filter1"      Position		      [260, 126, 320, 164]      DropShadow	      on      ShowName		      off      Numerator		      "Gpol"      Denominator	      "Cpol"      SampleTime	      "1"    }    Block {      BlockType		      UnitDelay      Name		      "Unit Delay"      Position		      [360, 134, 395, 156]      DropShadow	      on      ShowName		      off      X0		      "0"      SampleTime	      "1"    }    Block {      BlockType		      UnitDelay      Name		      "Unit Delay1"      Position		      [435, 134, 470, 156]      DropShadow	      on      ShowName		      off      X0		      "0"      SampleTime	      "1"    }    Block {      BlockType		      UnitDelay      Name		      "Unit Delay2"      Position		      [505, 134, 540, 156]      DropShadow	      on      ShowName		      off      X0		      "0"      SampleTime	      "1"    }    Block {      BlockType		      UnitDelay      Name		      "Unit Delay3"      Position		      [580, 134, 615, 156]      DropShadow	      on      ShowName		      off      X0		      "0"      SampleTime	      "1"    }    Block {      BlockType		      UnitDelay      Name		      "Unit Delay4"      Position		      [645, 134, 680, 156]      DropShadow	      on      ShowName		      off      X0		      "0"      SampleTime	      "1"    }    Block {      BlockType		      Outport      Name		      "Outport"      Position		      [250, 65, 270, 85]      ShowName		      off      Port		      "1"      OutputWhenDisabled      held      InitialOutput	      "0"    }    Block {      BlockType		      Outport      Name		      "Outport1"      Position		      [445, 65, 465, 85]      ShowName		      off      Port		      "2"      OutputWhenDisabled      held      InitialOutput	      "0"    }    Block {      BlockType		      Outport      Name		      "Outport2"      Position		      [515, 65, 535, 85]      ShowName		      off      Port		      "3"      OutputWhenDisabled      held      InitialOutput	      "0"    }    Block {      BlockType		      Outport      Name		      "Outport3"      Position		      [590, 65, 610, 85]      ShowName		      off      Port		      "4"      OutputWhenDisabled      held      InitialOutput	      "0"    }    Block {      BlockType		      Outport      Name		      "Outport4"      Position		      [655, 65, 675, 85]      ShowName		      off      Port		      "5"      OutputWhenDisabled      held      InitialOutput	      "0"    }    Block {      BlockType		      Outport      Name		      "Outport5"      Position		      [725, 135, 745, 155]      ShowName		      off      Port		      "6"      OutputWhenDisabled      held      InitialOutput	      "0"    }    Line {      SrcBlock		      "Unit Delay3"      SrcPort		      1      Points		      [0, 0]      Branch {	Points			[10, 0; 0, -70]	DstBlock		"Outport4"	DstPort			1      }      Branch {	DstBlock		"Unit Delay4"	DstPort			1      }    }    Line {      SrcBlock		      "Unit Delay2"      SrcPort		      1      Points		      [0, 0]      Branch {	Points			[15, 0; 0, -70]	DstBlock		"Outport3"	DstPort			1      }      Branch {	DstBlock		"Unit Delay3"	DstPort			1      }    }    Line {      SrcBlock		      "Unit Delay1"      SrcPort		      1      Points		      [0, 0]      Branch {	Points			[10, 0; 0, -70]	DstBlock		"Outport2"	DstPort			1      }      Branch {	DstBlock		"Unit Delay2"	DstPort			1      }    }    Line {      SrcBlock		      "Unit Delay"      SrcPort		      1      Points		      [0, 0]      Branch {	Points			[15, 0; 0, -70]	DstBlock		"Outport1"	DstPort			1      }      Branch {	DstBlock		"Unit Delay1"	DstPort			1      }    }    Line {      SrcBlock		      "Unit Delay4"      SrcPort		      1      DstBlock		      "Outport5"      DstPort		      1    }    Line {      SrcBlock		      "Filter"      SrcPort		      1      Points		      [0, 0]      Branch {	Points			[5, 0; 0, -70]	DstBlock		"Outport"	DstPort			1      }      Branch {	DstBlock		"Filter1"	DstPort			1      }    }    Line {      SrcBlock		      "Filter1"      SrcPort		      1      DstBlock		      "Unit Delay"      DstPort		      1    }    Line {      SrcBlock		      "Band-Limited\nWhite Noise"      SrcPort		      1      DstBlock		      "Filter"      DstPort		      1    }  }}

⌨️ 快捷键说明

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