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

📄 s0604.mdl

📁 MATLAB仿真技术与实例应用教程
💻 MDL
📖 第 1 页 / 共 2 页
字号:
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "常量2"
	  SrcPort		  1
	  DstBlock		  "Discrete-Time\nIntegrator2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Discrete-Time\nIntegrator1"
	  SrcPort		  1
	  DstBlock		  "保持输出"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "常量1"
	  SrcPort		  1
	  DstBlock		  "Discrete-Time\nIntegrator1"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Mux
      Name		      "Reset States"
      Ports		      [4, 1]
      Position		      [390, 18, 395, 247]
      ShowName		      off
      Inputs		      "4"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Sin
      Name		      "Sine Wave"
      Position		      [95, 113, 125, 137]
      ShowName		      off
      SineType		      "Time-based"
      Amplitude		      "1"
      Bias		      "0"
      Frequency		      "1/2*pi"
      Phase		      "0"
      Samples		      "10"
      Offset		      "0"
      SampleTime	      "0.1"
      VectorParams1D	      on
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "To Workspace2"
      Position		      [250, 112, 310, 138]
      VariableName	      "discEnable"
      MaxDataPoints	      "inf"
      Decimation	      "1"
      SampleTime	      "-1"
      SaveFormat	      "Array"
    }
    Block {
      BlockType		      SubSystem
      Name		      "离散保持状态"
      Ports		      [0, 2, 1]
      Position		      [115, 162, 290, 233]
      ShowPortLabels	      on
      TreatAsAtomicUnit	      on
      RTWSystemCode	      "Auto"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      System {
	Name			"离散保持状态"
	Location		[467, 122, 767, 312]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  EnablePort
	  Name			  "Enable"
	  Ports			  []
	  Position		  [255, 5, 275, 25]
	  StatesWhenEnabling	  "held"
	  ShowOutputPort	  off
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Discrete-Time\nIntegrator1"
	  Ports			  [1, 1]
	  Position		  [115, 19, 155, 61]
	  ShowPortLabels	  on
	  TreatAsAtomicUnit	  off
	  RTWSystemCode		  "Auto"
	  RTWFcnNameOpts	  "Auto"
	  RTWFileNameOpts	  "Auto"
	  MaskType		  "Discrete-Time Integrator"
	  MaskDescription	  "Discrete-Time Integrator:"
	  MaskHelp		  "Implements a zeroth order discrete\\nintegr"
"ation using a gain, a sum, and\\na unit delay. Inputs may be scalar\\nor vect"
"or.\\n"
	  MaskPromptString	  "Initial Condition:|Sample Time:"
	  MaskStyleString	  "edit,edit"
	  MaskTunableValueString  "on,on"
	  MaskCallbackString	  "|"
	  MaskEnableString	  "on,on"
	  MaskVisibilityString	  "on,on"
	  MaskToolTipString	  "on,on"
	  MaskInitialization	  "X0=@1;Ts=@2;"
	  MaskDisplay		  "dpoly(Ts,[1 -1],'z')"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "0|.1"
	  MaskVariableAliases	  ","
	  System {
	    Name		    "Discrete-Time\nIntegrator1"
	    Location		    [385, 609, 758, 827]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "in_1"
	      Position		      [25, 70, 45, 90]
	      Port		      "1"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Gain"
	      Position		      [80, 61, 110, 99]
	      Gain		      "Ts"
	      Multiplication	      "Element-wise(K.*u)"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [2, 1]
	      Position		      [150, 63, 180, 127]
	      IconShape		      "rectangular"
	      Inputs		      "++"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      UnitDelay
	      Name		      "Unit Delay"
	      Position		      [210, 85, 260, 105]
	      X0		      "X0"
	      SampleTime	      "Ts"
	      RTWStateStorageClass    "Auto"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out_1"
	      Position		      [320, 85, 340, 105]
	      Port		      "1"
	      OutputWhenDisabled      "held"
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "Unit Delay"
	      SrcPort		      1
	      Points		      [20, 0]
	      Branch {
		DstBlock		"out_1"
		DstPort			1
	      }
	      Branch {
		Points			[0, 70; -165, 0; 0, -55]
		DstBlock		"Sum"
		DstPort			2
	      }
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      DstBlock		      "Unit Delay"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "in_1"
	      SrcPort		      1
	      DstBlock		      "Gain"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Gain"
	      SrcPort		      1
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Discrete-Time\nIntegrator2"
	  Ports			  [1, 1]
	  Position		  [115, 109, 155, 151]
	  ShowPortLabels	  on
	  TreatAsAtomicUnit	  off
	  RTWSystemCode		  "Auto"
	  RTWFcnNameOpts	  "Auto"
	  RTWFileNameOpts	  "Auto"
	  MaskType		  "Discrete-Time Integrator"
	  MaskDescription	  "Discrete-Time Integrator:"
	  MaskHelp		  "Implements a zeroth order discrete\\nintegr"
"ation using a gain, a sum, and\\na unit delay. Inputs may be scalar\\nor vect"
"or.\\n"
	  MaskPromptString	  "Initial Condition:|Sample Time:"
	  MaskStyleString	  "edit,edit"
	  MaskTunableValueString  "on,on"
	  MaskCallbackString	  "|"
	  MaskEnableString	  "on,on"
	  MaskVisibilityString	  "on,on"
	  MaskToolTipString	  "on,on"
	  MaskInitialization	  "X0=@1;Ts=@2;"
	  MaskDisplay		  "dpoly(Ts,[1 -1],'z')"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "0|.1"
	  MaskVariableAliases	  ","
	  System {
	    Name		    "Discrete-Time\nIntegrator2"
	    Location		    [385, 609, 758, 827]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "in_1"
	      Position		      [25, 70, 45, 90]
	      Port		      "1"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Gain"
	      Position		      [80, 61, 110, 99]
	      Gain		      "Ts"
	      Multiplication	      "Element-wise(K.*u)"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [2, 1]
	      Position		      [150, 63, 180, 127]
	      IconShape		      "rectangular"
	      Inputs		      "++"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      UnitDelay
	      Name		      "Unit Delay"
	      Position		      [210, 85, 260, 105]
	      X0		      "X0"
	      SampleTime	      "Ts"
	      RTWStateStorageClass    "Auto"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out_1"
	      Position		      [320, 85, 340, 105]
	      Port		      "1"
	      OutputWhenDisabled      "held"
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "Unit Delay"
	      SrcPort		      1
	      Points		      [20, 0]
	      Branch {
		Points			[0, 70; -165, 0; 0, -55]
		DstBlock		"Sum"
		DstPort			2
	      }
	      Branch {
		DstBlock		"out_1"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      DstBlock		      "Unit Delay"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "in_1"
	      SrcPort		      1
	      DstBlock		      "Gain"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Gain"
	      SrcPort		      1
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Constant
	  Name			  "常量1"
	  Position		  [45, 30, 65, 50]
	  Value			  "1"
	  VectorParams1D	  on
	}
	Block {
	  BlockType		  Constant
	  Name			  "常量2"
	  Position		  [45, 120, 65, 140]
	  Value			  "1"
	  VectorParams1D	  on
	}
	Block {
	  BlockType		  Outport
	  Name			  "保持输出"
	  Position		  [215, 30, 235, 50]
	  Port			  "1"
	  OutputWhenDisabled	  "held"
	  InitialOutput		  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "使零输出"
	  Position		  [215, 120, 235, 140]
	  Port			  "2"
	  OutputWhenDisabled	  "reset"
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "Discrete-Time\nIntegrator2"
	  SrcPort		  1
	  DstBlock		  "使零输出"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "常量2"
	  SrcPort		  1
	  DstBlock		  "Discrete-Time\nIntegrator2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Discrete-Time\nIntegrator1"
	  SrcPort		  1
	  DstBlock		  "保持输出"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "常量1"
	  SrcPort		  1
	  DstBlock		  "Discrete-Time\nIntegrator1"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Scope
      Name		      "输   出\n离散信号"
      Ports		      [1]
      Position		      [460, 120, 490, 150]
      Floating		      off
      Location		      [556, 57, 880, 297]
      Open		      on
      NumInputPorts	      "1"
      TickLabels	      "on"
      ZoomMode		      "on"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      Grid		      "on"
      TimeRange		      "auto"
      YMin		      "-5"
      YMax		      "5"
      SaveToWorkspace	      on
      SaveName		      "sys"
      DataFormat	      "Structure"
      LimitDataPoints	      on
      MaxDataPoints	      "5000"
      Decimation	      "1"
      SampleInput	      off
      SampleTime	      "0"
    }
    Line {
      SrcBlock		      "离散保持状态"
      SrcPort		      1
      Points		      [60, 0; 0, -20]
      DstBlock		      "Reset States"
      DstPort		      3
    }
    Line {
      SrcBlock		      "离散保持状态"
      SrcPort		      2
      DstBlock		      "Reset States"
      DstPort		      4
    }
    Line {
      SrcBlock		      " 离散重置状态"
      SrcPort		      1
      DstBlock		      "Reset States"
      DstPort		      1
    }
    Line {
      SrcBlock		      " 离散重置状态"
      SrcPort		      2
      Points		      [60, 0; 0, 20]
      DstBlock		      "Reset States"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Sine Wave"
      SrcPort		      1
      Points		      [0, 0; 70, 0]
      Branch {
	DstBlock		"离散保持状态"
	DstPort			enable
      }
      Branch {
	DstBlock		" 离散重置状态"
	DstPort			enable
      }
      Branch {
	DstBlock		"To Workspace2"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Reset States"
      SrcPort		      1
      DstBlock		      "输   出\n离散信号"
      DstPort		      1
    }
    Annotation {
      Position		      [55, 130]
      Text		      "离散系统\n"
      FontSize		      12
    }
  }
}

⌨️ 快捷键说明

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