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

📄 c8rbf_pid.mdl

📁 控制系统计算机辅助设计——MATLAB语言与应用(源代码)
💻 MDL
📖 第 1 页 / 共 2 页
字号:
  }
  BlockDefaults {
    Orientation		    "right"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    NamePlacement	    "normal"
    FontName		    "Helvetica"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
    ShowName		    on
  }
  BlockParameterDefaults {
    Block {
      BlockType		      Demux
      Outputs		      "4"
      DisplayOption	      "none"
      BusSelectionMode	      off
    }
    Block {
      BlockType		      Inport
      BusObject		      "BusObject"
      BusOutputAsStruct	      off
      PortDimensions	      "-1"
      SampleTime	      "-1"
      DataType		      "auto"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      SignalType	      "auto"
      SamplingMode	      "auto"
      Interpolate	      on
    }
    Block {
      BlockType		      Mux
      Inputs		      "4"
      DisplayOption	      "none"
      BusObject		      "BusObject"
      NonVirtualBus	      off
    }
    Block {
      BlockType		      Outport
      Port		      "1"
      BusObject		      "BusObject"
      BusOutputAsStruct	      off
      PortDimensions	      "-1"
      SampleTime	      "-1"
      DataType		      "auto"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      SignalType	      "auto"
      SamplingMode	      "auto"
      OutputWhenDisabled      "held"
      InitialOutput	      "[]"
    }
    Block {
      BlockType		      Saturate
      UpperLimit	      "0.5"
      LowerLimit	      "-0.5"
      LinearizeAsGain	      on
      ZeroCross		      on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      "S-Function"
      FunctionName	      "system"
      SFunctionModules	      "''"
      PortCounts	      "[]"
    }
    Block {
      BlockType		      UnitDelay
      X0		      "0"
      SampleTime	      "1"
      StateMustResolveToSignalObject off
      RTWStateStorageClass    "Auto"
    }
  }
  AnnotationDefaults {
    HorizontalAlignment	    "center"
    VerticalAlignment	    "middle"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    FontName		    "Helvetica"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  LineDefaults {
    FontName		    "Helvetica"
    FontSize		    9
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  System {
    Name		    "c8rbf_pid"
    Location		    [137, 111, 989, 650]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "portrait"
    PaperPositionMode	    "auto"
    PaperType		    "a4letter"
    PaperUnits		    "centimeters"
    ZoomFactor		    "100"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      Inport
      Name		      "e(k)"
      Position		      [120, 103, 150, 117]
      ShowName		      off
      FontName		      "Times New Roman"
      FontSize		      14
      Port		      "1"
      IconDisplay	      "Port number"
      LatchInput	      off
    }
    Block {
      BlockType		      Inport
      Name		      "y(k)"
      Position		      [120, 153, 150, 167]
      ShowName		      off
      FontName		      "Times New Roman"
      FontSize		      14
      Port		      "2"
      IconDisplay	      "Port number"
      LatchInput	      off
    }
    Block {
      BlockType		      UnitDelay
      Name		      "Delay"
      Position		      [180, 91, 205, 129]
      FontName		      "Times New Roman"
      FontSize		      14
      SampleTime	      "-1"
    }
    Block {
      BlockType		      UnitDelay
      Name		      "Delay1"
      Position		      [235, 92, 260, 128]
      FontName		      "Times New Roman"
      FontSize		      14
      SampleTime	      "-1"
    }
    Block {
      BlockType		      UnitDelay
      Name		      "Delay2"
      Position		      [625, 254, 655, 296]
      Orientation	      "left"
      ShowName		      off
      FontName		      "Times New Roman"
      FontSize		      14
      SampleTime	      "-1"
    }
    Block {
      BlockType		      UnitDelay
      Name		      "Delay3"
      Position		      [306, 175, 334, 215]
      Orientation	      "up"
      NamePlacement	      "alternate"
      ShowName		      off
      FontName		      "Times New Roman"
      FontSize		      14
      SampleTime	      "-1"
    }
    Block {
      BlockType		      UnitDelay
      Name		      "Delay4"
      Position		      [420, 219, 450, 261]
      Orientation	      "left"
      ShowName		      off
      FontName		      "Times New Roman"
      FontSize		      14
      SampleTime	      "-1"
    }
    Block {
      BlockType		      UnitDelay
      Name		      "Delay5"
      Position		      [355, 221, 385, 259]
      Orientation	      "left"
      ShowName		      off
      FontName		      "Times New Roman"
      FontSize		      14
      SampleTime	      "-1"
    }
    Block {
      BlockType		      UnitDelay
      Name		      "Delay6"
      Position		      [530, 184, 560, 226]
      Orientation	      "left"
      ShowName		      off
      FontName		      "Times New Roman"
      FontSize		      14
      SampleTime	      "-1"
    }
    Block {
      BlockType		      UnitDelay
      Name		      "Delay7"
      Position		      [210, 181, 235, 219]
      FontName		      "Times New Roman"
      FontSize		      14
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Demux
      Name		      "Demux"
      Ports		      [1, 3]
      Position		      [555, 112, 560, 158]
      BackgroundColor	      "black"
      ShowName		      off
      FontName		      "Times New Roman"
      FontSize		      14
      Outputs		      "[1,3,5*n_node]"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux"
      Ports		      [10, 1]
      Position		      [445, 73, 450, 197]
      ShowName		      off
      FontName		      "Times New Roman"
      FontSize		      14
      Inputs		      "10"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      "S-Function"
      Name		      "S-Function"
      Ports		      [1, 1]
      Position		      [470, 117, 530, 153]
      FontName		      "Times New Roman"
      FontSize		      14
      FunctionName	      "nnrbf_pid"
      Parameters	      "T,n_node,K_pid,eta_pid,xite,alfa,beta0,w0"
    }
    Block {
      BlockType		      Saturate
      Name		      "Saturation"
      Position		      [615, 98, 660, 142]
      FontName		      "Times New Roman"
      FontSize		      14
      UpperLimit	      "U_m"
      LowerLimit	      "-U_m"
    }
    Block {
      BlockType		      Outport
      Name		      "u(k)"
      Position		      [685, 113, 715, 127]
      ShowName		      off
      FontName		      "Times New Roman"
      FontSize		      14
      IconDisplay	      "Port number"
      BusOutputAsStruct	      off
    }
    Block {
      BlockType		      Outport
      Name		      "PID parameters"
      Position		      [685, 183, 715, 197]
      ShowName		      off
      FontName		      "Times New Roman"
      FontSize		      14
      Port		      "2"
      IconDisplay	      "Port number"
      BusOutputAsStruct	      off
    }
    Line {
      SrcBlock		      "Delay7"
      SrcPort		      1
      Points		      [45, 0; 0, -70]
      DstBlock		      "Mux"
      DstPort		      5
    }
    Line {
      SrcBlock		      "Delay6"
      SrcPort		      1
      Points		      [-100, 0; 0, -25]
      DstBlock		      "Mux"
      DstPort		      10
    }
    Line {
      SrcBlock		      "Delay3"
      SrcPort		      1
      Points		      [0, -20]
      DstBlock		      "Mux"
      DstPort		      7
    }
    Line {
      SrcBlock		      "Demux"
      SrcPort		      3
      Points		      [20, 0; 0, 90]
      DstBlock		      "Delay4"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Delay4"
      SrcPort		      1
      Points		      [0, 0; -10, 0]
      Branch {
	Points			[0, -70]
	DstBlock		"Mux"
	DstPort			9
      }
      Branch {
	DstBlock		"Delay5"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Delay2"
      SrcPort		      1
      Points		      [-325, 0; 0, -135]
      DstBlock		      "Mux"
      DstPort		      6
    }
    Line {
      SrcBlock		      "Delay1"
      SrcPort		      1
      DstBlock		      "Mux"
      DstPort		      3
    }
    Line {
      SrcBlock		      "Demux"
      SrcPort		      2
      Points		      [35, 0; 0, 55]
      Branch {
	Points			[0, 15]
	DstBlock		"Delay6"
	DstPort			1
      }
      Branch {
	DstBlock		"PID parameters"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Demux"
      SrcPort		      1
      DstBlock		      "Saturation"
      DstPort		      1
    }
    Line {
      Labels		      [0, 0]
      SrcBlock		      "y(k)"
      SrcPort		      1
      Points		      [10, 0]
      Branch {
	Points			[0, 40]
	DstBlock		"Delay7"
	DstPort			1
      }
      Branch {
	Points			[110, 0; 0, -40]
	DstBlock		"Mux"
	DstPort			4
      }
    }
    Line {
      SrcBlock		      "e(k)"
      SrcPort		      1
      Points		      [10, 0]
      Branch {
	Points			[0, 0; 0, -45; 255, 0; 0, 25]
	DstBlock		"Mux"
	DstPort			1
      }
      Branch {
	DstBlock		"Delay"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Saturation"
      SrcPort		      1
      Points		      [0, 0; 5, 0]
      Branch {
	DstBlock		"Delay2"
	DstPort			1
      }
      Branch {
	DstBlock		"u(k)"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "S-Function"
      SrcPort		      1
      DstBlock		      "Demux"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Delay"
      SrcPort		      1
      Points		      [-20, 0; 25, 0]
      Branch {
	DstBlock		"Delay1"
	DstPort			1
      }
      Branch {
	Points			[0, -25; 175, 0; 0, 15]
	DstBlock		"Mux"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "Mux"
      SrcPort		      1
      DstBlock		      "S-Function"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Delay5"
      SrcPort		      1
      Points		      [0, 0; -5, 0]
      Branch {
	Points			[0, -80]
	DstBlock		"Mux"
	DstPort			8
      }
      Branch {
	Points			[-25, 0]
	DstBlock		"Delay3"
	DstPort			1
      }
    }
  }
}

⌨️ 快捷键说明

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