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

📄 sim19.mdl

📁 matlab源代码,适用于开发研究,带来很好的学习效果.
💻 MDL
📖 第 1 页 / 共 2 页
字号:
      Period		      "2"
      PulseWidth	      "1"
      PhaseDelay	      "0"
      SampleTime	      "1"
      VectorParams1D	      on
    }
    Block {
      BlockType		      Gain
      Gain		      "1"
      Multiplication	      "Element-wise(K.*u)"
      ParameterDataTypeMode   "Same as input"
      ParameterDataType	      "sfix(16)"
      ParameterScalingMode    "Best Precision: Matrix-wise"
      ParameterScaling	      "2^0"
      OutDataTypeMode	      "Same as input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Integrator
      ExternalReset	      "none"
      InitialConditionSource  "internal"
      InitialCondition	      "0"
      LimitOutput	      off
      UpperSaturationLimit    "inf"
      LowerSaturationLimit    "-inf"
      ShowSaturationPort      off
      ShowStatePort	      off
      AbsoluteTolerance	      "auto"
      ZeroCross		      on
    }
    Block {
      BlockType		      Mux
      Inputs		      "4"
      DisplayOption	      "none"
      BusObject		      "BusObject"
      NonVirtualBus	      off
    }
    Block {
      BlockType		      Scope
      Floating		      off
      ModelBased	      off
      TickLabels	      "OneTimeTick"
      ZoomMode		      "on"
      Grid		      "on"
      TimeRange		      "auto"
      YMin		      "-5"
      YMax		      "5"
      SaveToWorkspace	      off
      SaveName		      "ScopeData"
      LimitDataPoints	      on
      MaxDataPoints	      "5000"
      Decimation	      "1"
      SampleInput	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      StateSpace
      A			      "1"
      B			      "1"
      C			      "1"
      D			      "1"
      X0		      "0"
      AbsoluteTolerance	      "auto"
      Realization	      "auto"
    }
    Block {
      BlockType		      Sum
      IconShape		      "rectangular"
      Inputs		      "++"
      InputSameDT	      on
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      ToWorkspace
      VariableName	      "simulink_output"
      MaxDataPoints	      "1000"
      Decimation	      "1"
      SampleTime	      "0"
      FixptAsFi		      off
    }
    Block {
      BlockType		      TransferFcn
      Numerator		      "[1]"
      Denominator	      "[1 2 1]"
      AbsoluteTolerance	      "auto"
      Realization	      "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		    "Sim19"
    Location		    [2, 78, 1022, 717]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "A4"
    PaperUnits		    "centimeters"
    ZoomFactor		    "100"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      Clock
      Name		      "Clock"
      Position		      [50, 239, 90, 281]
      BackgroundColor	      "lightBlue"
      Decimation	      "10"
    }
    Block {
      BlockType		      TransferFcn
      Name		      "G(s)"
      Position		      [320, 312, 405, 358]
      BackgroundColor	      "magenta"
      Numerator		      "[0.7]"
      Denominator	      "[1 0.4 0.9]"
    }
    Block {
      BlockType		      Gain
      Name		      "Gain"
      Position		      [310, 209, 360, 251]
      Orientation	      "left"
      BackgroundColor	      "cyan"
      ShowName		      off
      Gain		      "-0.9"
      ParameterDataTypeMode   "Inherit via internal rule"
      OutDataTypeMode	      "Inherit via internal rule"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Gain
      Name		      "Gain1"
      Position		      [130, 51, 180, 89]
      BackgroundColor	      "cyan"
      NamePlacement	      "alternate"
      ShowName		      off
      Gain		      "0.7"
      ParameterDataTypeMode   "Inherit via internal rule"
      OutDataTypeMode	      "Inherit via internal rule"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Gain
      Name		      "Gain2"
      Position		      [270, 160, 325, 200]
      Orientation	      "left"
      BackgroundColor	      "cyan"
      ShowName		      off
      Gain		      "0.4"
      ParameterDataTypeMode   "Inherit via internal rule"
      OutDataTypeMode	      "Inherit via internal rule"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Integrator
      Name		      "Integrator"
      Ports		      [1, 1]
      Position		      [340, 62, 390, 118]
      BackgroundColor	      "magenta"
      ShowName		      off
    }
    Block {
      BlockType		      Integrator
      Name		      "Integrator1"
      Ports		      [1, 1]
      Position		      [450, 64, 495, 116]
      BackgroundColor	      "magenta"
      ShowName		      off
    }
    Block {
      BlockType		      Mux
      Name		      "Mux"
      Ports		      [2, 1]
      Position		      [590, 213, 595, 277]
      ShowName		      off
      Inputs		      "2"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      DiscretePulseGenerator
      Name		      "Pulse\nGenerator"
      Ports		      [0, 1]
      Position		      [45, 43, 95, 97]
      BackgroundColor	      "[0.501961, 0.000000, 1.000000]"
      PulseType		      "Time based"
      Period		      "2.5"
      PulseWidth	      "50"
    }
    Block {
      BlockType		      DiscretePulseGenerator
      Name		      "Pulse1"
      Ports		      [0, 1]
      Position		      [175, 413, 225, 467]
      BackgroundColor	      "[0.501961, 0.000000, 1.000000]"
      PulseType		      "Time based"
      Period		      "2.5"
      PulseWidth	      "50"
    }
    Block {
      BlockType		      Scope
      Name		      "Sc"
      Ports		      [1]
      Position		      [490, 309, 530, 361]
      BackgroundColor	      "[0.501961, 0.000000, 1.000000]"
      Location		      [182, 298, 506, 537]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      YMin		      "-0.5"
      YMax		      "0.5"
      SaveName		      "ScopeData1"
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      Scope
      Name		      "Sc1"
      Ports		      [1]
      Position		      [510, 414, 550, 466]
      BackgroundColor	      "[0.501961, 0.000000, 1.000000]"
      ShowName		      off
      Location		      [190, 303, 514, 542]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      YMin		      "-0.5"
      YMax		      "0.5"
      SaveName		      "ScopeData2"
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope"
      Ports		      [1]
      Position		      [565, 66, 605, 114]
      BackgroundColor	      "[0.501961, 0.000000, 1.000000]"
      Location		      [398, 294, 722, 533]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      YMin		      "-0.5"
      YMax		      "0.5"
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      StateSpace
      Name		      "State-Space"
      Position		      [340, 417, 440, 463]
      BackgroundColor	      "magenta"
      A			      "[0,1;-0.9,-0.4]"
      B			      "[0;0.7]"
      C			      "[1,0]"
      D			      "0"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum "
      Ports		      [3, 1]
      Position		      [250, 56, 295, 124]
      BackgroundColor	      "[0.501961, 0.250980, 0.250980]"
      Inputs		      "++-"
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
      OutScaling	      "2^-10"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "To Workspace"
      Position		      [645, 230, 705, 260]
      BackgroundColor	      "red"
      VariableName	      "ScopeData"
      MaxDataPoints	      "inf"
      SampleTime	      "-1"
      SaveFormat	      "Structure With Time"
    }
    Block {
      BlockType		      DiscretePulseGenerator
      Name		      "U(s)\n"
      Ports		      [0, 1]
      Position		      [190, 308, 240, 362]
      BackgroundColor	      "[0.501961, 0.000000, 1.000000]"
      PulseType		      "Time based"
      Period		      "2.5"
      PulseWidth	      "50"
    }
    Line {
      SrcBlock		      "Sum "
      SrcPort		      1
      DstBlock		      "Integrator"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Integrator"
      SrcPort		      1
      Points		      [0, 0; 25, 0]
      Branch {
	DstBlock		"Integrator1"
	DstPort			1
      }
      Branch {
	Points			[0, 90]
	DstBlock		"Gain2"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Integrator1"
      SrcPort		      1
      Points		      [0, 0; 15, 0]
      Branch {
	DstBlock		"Scope"
	DstPort			1
      }
      Branch {
	Points			[0, 140]
	Branch {
	  DstBlock		  "Gain"
	  DstPort		  1
	}
	Branch {
	  DstBlock		  "Mux"
	  DstPort		  1
	}
      }
    }
    Line {
      SrcBlock		      "Gain"
      SrcPort		      1
      Points		      [-135, 0; 0, -140]
      DstBlock		      "Sum "
      DstPort		      2
    }
    Line {
      SrcBlock		      "Pulse\nGenerator"
      SrcPort		      1
      DstBlock		      "Gain1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Gain1"
      SrcPort		      1
      DstBlock		      "Sum "
      DstPort		      1
    }
    Line {
      Labels		      [0, 0]
      SrcBlock		      "Gain2"
      SrcPort		      1
      Points		      [-75, 0; 0, -70]
      DstBlock		      "Sum "
      DstPort		      3
    }
    Line {
      SrcBlock		      "Clock"
      SrcPort		      1
      DstBlock		      "Mux"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Mux"
      SrcPort		      1
      DstBlock		      "To Workspace"
      DstPort		      1
    }
    Line {
      SrcBlock		      "U(s)\n"
      SrcPort		      1
      DstBlock		      "G(s)"
      DstPort		      1
    }
    Line {
      SrcBlock		      "G(s)"
      SrcPort		      1
      DstBlock		      "Sc"
      DstPort		      1
    }
    Line {
      SrcBlock		      "State-Space"
      SrcPort		      1
      DstBlock		      "Sc1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Pulse1"
      SrcPort		      1
      DstBlock		      "State-Space"
      DstPort		      1
    }
  }
}

⌨️ 快捷键说明

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