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

📄 casecade.mdl

📁 华东理工大学自动化系《控制系统分析、设计和应用》教材配套程序实例,有关说明: 1. 安装MATLAB软件。安装时
💻 MDL
📖 第 1 页 / 共 2 页
字号:
	Line {
	  SrcBlock		  "Deadtime"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  DstBlock		  "Transfer Fcn"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Gp2"
      Ports		      [1, 1]
      Position		      [350, 165, 405, 195]
      ForegroundColor	      "blue"
      DropShadow	      on
      FontSize		      12
      FontWeight	      "bold"
      ShowPortLabels	      on
      TreatAsAtomicUnit	      off
      RTWSystemCode	      "Auto"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      MaskType		      "One_order\\nplus\\nDeadtime"
      MaskDescription	      "One_order plus deadtime "
      MaskPromptString	      "Gain K|Time Constant T|Deadtime2"
      MaskStyleString	      "edit,edit,edit"
      MaskTunableValueString  "on,on,on"
      MaskCallbackString      "||"
      MaskEnableString	      "on,on,on"
      MaskVisibilityString    "on,on,on"
      MaskToolTipString	      "on,on,on"
      MaskVariables	      "K2=@1;T2=@2;tor2=@3;"
      MaskInitialization      "% K2=4;T2=4;tor2=1;"
      MaskDisplay	      "disp('副对象');"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "4|4|1"
      MaskVariableAliases     ",,"
      System {
	Name			"Gp2"
	Location		[250, 210, 515, 298]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	AutoZoom		on
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [25, 38, 55, 52]
	  Port			  "1"
	  Interpolate		  on
	}
	Block {
	  BlockType		  TransportDelay
	  Name			  "Deadtime"
	  Position		  [155, 30, 185, 60]
	  DelayTime		  "tor2"
	  InitialInput		  "0"
	  BufferSize		  "1024"
	  PadeOrder		  "0"
	}
	Block {
	  BlockType		  TransferFcn
	  Name			  "Transfer Fcn"
	  Position		  [80, 27, 135, 63]
	  Numerator		  "[K2]"
	  Denominator		  "[T2 1]"
	  Realization		  "auto"
	  AbsoluteTolerance	  "auto"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [210, 38, 240, 52]
	  Port			  "1"
	  OutputWhenDisabled	  "held"
	  InitialOutput		  "[]"
	}
	Line {
	  SrcBlock		  "Transfer Fcn"
	  SrcPort		  1
	  DstBlock		  "Deadtime"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Deadtime"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  DstBlock		  "Transfer Fcn"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Gain
      Name		      "K"
      Position		      [180, 98, 210, 122]
      FontSize		      12
      FontWeight	      "bold"
      Gain		      "0.1"
      Multiplication	      "Element-wise(K.*u)"
      SaturateOnIntegerOverflow	on
    }
    Block {
      BlockType		      Mux
      Name		      "Mux"
      Ports		      [4, 1]
      Position		      [590, 70, 615, 110]
      ShowName		      off
      Inputs		      "4"
      DisplayOption	      "none"
    }
    Block {
      BlockType		      Step
      Name		      "S.P."
      Position		      [20, 130, 45, 160]
      FontSize		      12
      FontWeight	      "bold"
      Time		      "0"
      Before		      "0"
      After		      "0"
      SampleTime	      ".1"
      VectorParams1D	      on
    }
    Block {
      BlockType		      Constant
      Name		      "SP"
      Position		      [15, 16, 50, 44]
      ForegroundColor	      "red"
      FontSize		      15
      FontWeight	      "bold"
      Value		      "250"
      VectorParams1D	      on
    }
    Block {
      BlockType		      Reference
      Name		      "SW"
      Ports		      [2, 1]
      Position		      [250, 140, 285, 175]
      FontSize		      12
      FontWeight	      "bold"
      SourceBlock	      "simulink3/Nonlinear/Manual Switch"
      SourceType	      "Manual Switch"
      sw		      "0"
      action		      "0"
    }
    Block {
      BlockType		      Reference
      Name		      "SW1"
      Ports		      [2, 1]
      Position		      [245, 95, 280, 125]
      Orientation	      "down"
      FontSize		      12
      FontWeight	      "bold"
      SourceBlock	      "simulink3/Nonlinear/Manual Switch"
      SourceType	      "Manual Switch"
      sw		      "0"
      action		      "0"
    }
    Block {
      BlockType		      Reference
      Name		      "SW2"
      Ports		      [2, 1]
      Position		      [487, 120, 523, 145]
      Orientation	      "down"
      NamePlacement	      "alternate"
      FontSize		      12
      FontWeight	      "bold"
      SourceBlock	      "simulink3/Nonlinear/Manual Switch"
      SourceType	      "Manual Switch"
      sw		      "0"
      action		      "0"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope"
      Ports		      [1]
      Position		      [585, 126, 625, 174]
      Orientation	      "left"
      FontSize		      12
      Floating		      off
      Location		      [476, 509, 744, 729]
      Open		      on
      NumInputPorts	      "1"
      TickLabels	      "on"
      ZoomMode		      "on"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      Grid		      "on"
      TimeRange		      "200"
      YMin		      "0"
      YMax		      "500"
      SaveToWorkspace	      off
      SaveName		      "ScopeData"
      DataFormat	      "Array"
      LimitDataPoints	      on
      MaxDataPoints	      "10000"
      Decimation	      "1"
      SampleInput	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum"
      Ports		      [2, 1]
      Position		      [540, 135, 555, 190]
      ForegroundColor	      "red"
      ShowName		      off
      IconShape		      "rectangular"
      Inputs		      "++"
      SaturateOnIntegerOverflow	on
    }
    Block {
      BlockType		      Sum
      Name		      "Sum1"
      Ports		      [2, 1]
      Position		      [305, 122, 320, 173]
      ShowName		      off
      IconShape		      "rectangular"
      Inputs		      "++"
      SaturateOnIntegerOverflow	on
    }
    Block {
      BlockType		      Sum
      Name		      "Sum3"
      Ports		      [2, 1]
      Position		      [70, 130, 80, 150]
      ShowName		      off
      IconShape		      "rectangular"
      Inputs		      "++"
      SaturateOnIntegerOverflow	on
    }
    Block {
      BlockType		      Display
      Name		      "T1"
      Ports		      [1]
      Position		      [585, 21, 645, 49]
      ForegroundColor	      "red"
      FontSize		      15
      FontWeight	      "bold"
      Format		      "short"
      Decimation	      "3"
      Floating		      off
      SampleTime	      "1"
    }
    Block {
      BlockType		      Display
      Name		      "T2"
      Ports		      [1]
      Position		      [445, 21, 505, 49]
      ForegroundColor	      "red"
      NamePlacement	      "alternate"
      FontSize		      15
      FontWeight	      "bold"
      Format		      "short"
      Decimation	      "1"
      Floating		      off
      SampleTime	      ".2"
    }
    Block {
      BlockType		      Display
      Name		      "Time"
      Ports		      [1]
      Position		      [115, 21, 175, 49]
      ForegroundColor	      "red"
      FontSize		      15
      FontWeight	      "bold"
      Format		      "short"
      Decimation	      "1"
      Floating		      off
      SampleTime	      ".2"
    }
    Block {
      BlockType		      Display
      Name		      "Y1"
      Ports		      [1]
      Position		      [335, 21, 395, 49]
      Orientation	      "left"
      ForegroundColor	      "red"
      NamePlacement	      "alternate"
      FontSize		      15
      FontWeight	      "bold"
      Format		      "short"
      Decimation	      "1"
      Floating		      off
      SampleTime	      ".2"
    }
    Line {
      SrcBlock		      "F1"
      SrcPort		      1
      Points		      [5, 0; 0, 35]
      Branch {
	DstBlock		"SW1"
	DstPort			1
      }
      Branch {
	Points			[240, 0]
	DstBlock		"SW2"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "F2"
      SrcPort		      1
      Points		      [-10, 0; 0, 25]
      Branch {
	DstBlock		"SW1"
	DstPort			2
      }
      Branch {
	Points			[245, 0]
	DstBlock		"SW2"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "SW1"
      SrcPort		      1
      Points		      [0, 5]
      DstBlock		      "Sum1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Gp2"
      SrcPort		      1
      Points		      [15, 0; 0, -5]
      Branch {
	Points			[0, 0]
	Branch {
	  Points		  [0, -90]
	  Branch {
	    DstBlock		    "Mux"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [0, -50]
	    DstBlock		    "T2"
	    DstPort		    1
	  }
	}
	Branch {
	  DstBlock		  "Gp1"
	  DstPort		  1
	}
      }
      Branch {
	Points			[0, 55; -260, 0]
	DstBlock		"Gc2"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "SW"
      SrcPort		      1
      DstBlock		      "Sum1"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Gp1"
      SrcPort		      1
      DstBlock		      "Sum"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Sum3"
      SrcPort		      1
      Points		      [5, 0]
      Branch {
	DstBlock		"Gc1"
	DstPort			1
      }
      Branch {
	Points			[0, -65]
	DstBlock		"Mux"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "SP"
      SrcPort		      1
      DstBlock		      "Sum3"
      DstPort		      1
    }
    Line {
      SrcBlock		      "S.P."
      SrcPort		      1
      DstBlock		      "Sum3"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Gc2"
      SrcPort		      1
      DstBlock		      "SW"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Sum1"
      SrcPort		      1
      Points		      [10, 0]
      Branch {
	DstBlock		"Gp2"
	DstPort			1
      }
      Branch {
	Points			[0, -5; 75, 0; 0, -50; 0, 0]
	Branch {
	  Points		  [0, 0]
	  DstBlock		  "Y1"
	  DstPort		  1
	}
	Branch {
	  DstBlock		  "Mux"
	  DstPort		  3
	}
      }
    }
    Line {
      SrcBlock		      "K"
      SrcPort		      1
      Points		      [20, 0]
      DstBlock		      "SW"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Gc1"
      SrcPort		      1
      Points		      [0, 0; 5, 0]
      Branch {
	DstBlock		"Gc2"
	DstPort			1
      }
      Branch {
	Points			[0, -45]
	DstBlock		"K"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Sum"
      SrcPort		      1
      Points		      [5, 0; 0, 0]
      Branch {
	Points			[0, 85; -475, 0]
	DstBlock		"Gc1"
	DstPort			2
      }
      Branch {
	Points			[0, -60]
	Branch {
	  Points		  [0, -70]
	  DstBlock		  "T1"
	  DstPort		  1
	}
	Branch {
	  DstBlock		  "Mux"
	  DstPort		  4
	}
      }
    }
    Line {
      SrcBlock		      "Clock"
      SrcPort		      1
      DstBlock		      "Time"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Mux"
      SrcPort		      1
      Points		      [20, 0]
      DstBlock		      "Scope"
      DstPort		      1
    }
    Line {
      SrcBlock		      "SW2"
      SrcPort		      1
      DstBlock		      "Sum"
      DstPort		      1
    }
  }
}

⌨️ 快捷键说明

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