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

📄 chap6_4sim.mdl

📁 滑模变结构控制MATLAB仿真书籍的源码
💻 MDL
📖 第 1 页 / 共 2 页
字号:
      YMax		      "0.0001"
      SaveToWorkspace	      off
      SaveName		      "ScopeData"
      DataFormat	      "StructureWithTime"
      LimitMaxRows	      on
      MaxRows		      "50000"
      Decimation	      "1"
      SampleInput	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope3"
      Ports		      [1, 0, 0, 0, 0]
      Position		      [465, 34, 500, 56]
      Floating		      off
      Location		      [5, 30, 797, 566]
      Open		      off
      NumInputPorts	      "1"
      TickLabels	      "OneTimeTick"
      ZoomMode		      "on"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      Grid		      "on"
      TimeRange		      "auto"
      YMin		      "0.2"
      YMax		      "2.3"
      SaveToWorkspace	      off
      SaveName		      "ScopeData"
      DataFormat	      "StructureWithTime"
      LimitMaxRows	      on
      MaxRows		      "50000"
      Decimation	      "1"
      SampleInput	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      SignalGenerator
      Name		      "Signal\nGenerator1"
      Position		      [25, 95, 55, 125]
      WaveForm		      "sine"
      Amplitude		      "0.5"
      Frequency		      "3"
      Units		      "Hertz"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum"
      Ports		      [2, 1, 0, 0, 0]
      Position		      [100, 92, 115, 128]
      ShowName		      off
      IconShape		      "rectangular"
      Inputs		      "|+-"
      SaturateOnIntegerOverflow	on
    }
    Block {
      BlockType		      Sum
      Name		      "Sum1"
      Ports		      [2, 1, 0, 0, 0]
      Position		      [540, 175, 560, 195]
      Orientation	      "left"
      NamePlacement	      "alternate"
      ShowName		      off
      IconShape		      "round"
      Inputs		      "|-+"
      SaturateOnIntegerOverflow	on
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "To Workspace"
      Position		      [150, 273, 180, 297]
      VariableName	      "t"
      Buffer		      "inf"
      Decimation	      "1"
      SampleTime	      "-1"
      SaveFormat	      "Matrix"
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "To Workspace5"
      Position		      [680, 310, 700, 340]
      VariableName	      "y"
      Buffer		      "inf"
      Decimation	      "1"
      SampleTime	      "-1"
      SaveFormat	      "Matrix"
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "To Workspace6"
      Position		      [420, 195, 450, 215]
      Orientation	      "up"
      ShowName		      off
      VariableName	      "u"
      Buffer		      "inf"
      Decimation	      "1"
      SampleTime	      "-1"
      SaveFormat	      "Matrix"
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "To Workspace7"
      Position		      [510, 319, 535, 341]
      VariableName	      "s"
      Buffer		      "inf"
      Decimation	      "1"
      SampleTime	      "-1"
      SaveFormat	      "Matrix"
    }
    Line {
      SrcBlock		      "Sum1"
      SrcPort		      1
      Points		      [-95, 0]
      Branch {
	Points			[-205, 0; 0, 30]
	Branch {
	  DstBlock		  "Mux"
	  DstPort		  1
	}
	Branch {
	  Points		  [0, 35]
	  DstBlock		  "Derivative1"
	  DstPort		  1
	}
      }
      Branch {
	Points			[0, -30]
	DstBlock		"Scope2"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Derivative1"
      SrcPort		      1
      DstBlock		      "Mux"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Derivative2"
      SrcPort		      1
      Points		      [-130, 0; 0, -45]
      DstBlock		      "Mux"
      DstPort		      4
    }
    Line {
      SrcBlock		      "Demux"
      SrcPort		      2
      Points		      [0, 50]
      DstBlock		      "To Workspace7"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Demux"
      SrcPort		      1
      Points		      [10, 0]
      Branch {
	DstBlock		"Practical plant"
	DstPort			1
      }
      Branch {
	Points			[0, -25]
	Branch {
	  Points		  [0, -20]
	  DstBlock		  "Scope1"
	  DstPort		  1
	}
	Branch {
	  Points		  [-45, 0]
	  DstBlock		  "To Workspace6"
	  DstPort		  1
	}
      }
    }
    Line {
      SrcBlock		      "Clock"
      SrcPort		      1
      DstBlock		      "To Workspace"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Mux"
      SrcPort		      1
      DstBlock		      "SMC"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Derivative"
      SrcPort		      1
      DstBlock		      "Mux2"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Sum"
      SrcPort		      1
      Points		      [5, 0]
      Branch {
	DstBlock		"Derivative"
	DstPort			1
      }
      Branch {
	Points			[0, -45]
	DstBlock		"Mux2"
	DstPort			1
      }
      Branch {
	DstBlock		"Integrator"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Integrator"
      SrcPort		      1
      DstBlock		      "Mux2"
      DstPort		      3
    }
    Line {
      SrcBlock		      "SMC"
      SrcPort		      1
      DstBlock		      "Saturation"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Saturation"
      SrcPort		      1
      DstBlock		      "Demux"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Signal\nGenerator1"
      SrcPort		      1
      Points		      [10, 0]
      Branch {
	DstBlock		"Sum"
	DstPort			1
      }
      Branch {
	Points			[0, 290; 550, 0]
	DstBlock		"Mux1"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "Mux2"
      SrcPort		      1
      DstBlock		      "S-Function"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Mux1"
      SrcPort		      1
      Points		      [5, 0]
      Branch {
	DstBlock		"Scope"
	DstPort			1
      }
      Branch {
	Points			[0, 55]
	DstBlock		"To Workspace5"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Practical plant"
      SrcPort		      1
      Points		      [5, 0]
      Branch {
	Points			[0, -15]
	Branch {
	  Points		  [0, -45]
	  DstBlock		  "Sum1"
	  DstPort		  2
	}
	Branch {
	  DstBlock		  "Mux1"
	  DstPort		  1
	}
      }
      Branch {
	Points			[0, 95]
	DstBlock		"Derivative2"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Nominal plant"
      SrcPort		      1
      Points		      [30, 0]
      Branch {
	DstBlock		"Sum1"
	DstPort			1
      }
      Branch {
	Points			[0, -85; -500, 0; 0, 95]
	DstBlock		"Sum"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "S-Function"
      SrcPort		      1
      Points		      [45, 0]
      Branch {
	Points			[0, -65]
	DstBlock		"Scope3"
	DstPort			1
      }
      Branch {
	Points			[0, 0]
	Branch {
	  DstBlock		  "Nominal plant"
	  DstPort		  1
	}
	Branch {
	  Points		  [0, 45; -165, 0; 0, 130]
	  DstBlock		  "Mux"
	  DstPort		  3
	}
      }
    }
    Annotation {
      Position		      [102, 138]
      Text		      "Sum"
    }
  }
}

⌨️ 快捷键说明

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