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

📄 lsh.mdl

📁 我自己编写的飞行器控制系统设计代码
💻 MDL
📖 第 1 页 / 共 2 页
字号:
      BlockType		      Outport
      Port		      "1"
      UseBusObject	      off
      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		      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		      Step
      Time		      "1"
      Before		      "0"
      After		      "1"
      SampleTime	      "-1"
      VectorParams1D	      on
      ZeroCross		      on
    }
    Block {
      BlockType		      SubSystem
      ShowPortLabels	      on
      Permissions	      "ReadWrite"
      PermitHierarchicalResolution "All"
      SystemSampleTime	      "-1"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      SimViewingDevice	      off
      DataTypeOverride	      "UseLocalSettings"
      MinMaxOverflowLogging   "UseLocalSettings"
    }
    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
    }
  }
  AnnotationDefaults {
    HorizontalAlignment	    "center"
    VerticalAlignment	    "middle"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    FontName		    "Arial"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  LineDefaults {
    FontName		    "Arial"
    FontSize		    9
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  System {
    Name		    "lsh"
    Location		    [2, 82, 1014, 727]
    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		      [600, 560, 620, 580]
      Decimation	      "10"
    }
    Block {
      BlockType		      Demux
      Name		      "Demux2"
      Ports		      [1, 3]
      Position		      [775, 224, 780, 296]
      BackgroundColor	      "black"
      ShowName		      off
      Outputs		      "3"
    }
    Block {
      BlockType		      Gain
      Name		      "Gain8"
      Position		      [240, 245, 270, 275]
      ParameterDataTypeMode   "Inherit via internal rule"
      OutDataTypeMode	      "Inherit via internal rule"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Mux
      Name		      "Mux1"
      Ports		      [3, 1]
      Position		      [290, 226, 300, 294]
      ShowName		      off
      Inputs		      "3"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope4"
      Ports		      [1]
      Position		      [1065, 154, 1095, 186]
      Location		      [139, 160, 924, 625]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      YMin		      "-2.2e+053"
      YMax		      "0"
      SaveToWorkspace	      on
      SaveName		      "nonlingamma4"
      DataFormat	      "Array"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      Scope
      Name		      "Scope5"
      Ports		      [1]
      Position		      [1100, 239, 1130, 271]
      Location		      [6, 56, 1034, 768]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      TimeRange		      "10              "
      YMin		      "-4e+065"
      YMax		      "2.5e+064"
      SaveToWorkspace	      on
      SaveName		      "nonlingamma5"
      DataFormat	      "Array"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      Scope
      Name		      "Scope6"
      Ports		      [1]
      Position		      [1010, 299, 1040, 331]
      Location		      [6, 290, 1034, 821]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      YMin		      "5e-049"
      YMax		      "6.5e-049"
      SaveToWorkspace	      on
      SaveName		      "nonlingamma7"
      DataFormat	      "Array"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      Scope
      Name		      "Scope8"
      Ports		      [1]
      Position		      [610, 164, 640, 196]
      Location		      [41, 231, 714, 762]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      YMin		      "34.9"
      YMax		      "35.1"
      SaveToWorkspace	      on
      SaveName		      "nonlingamma6"
      DataFormat	      "Array"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      StateSpace
      Name		      "State-Space1"
      Position		      [375, 243, 480, 277]
      A			      "ak1(:,:,11)"
      B			      "bk1(:,:,11)"
      C			      "ck1(:,:,11)"
      D			      "dk1(:,:,11)"
    }
    Block {
      BlockType		      Step
      Name		      "Step1"
      Position		      [15, 155, 45, 185]
      Time		      "0"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum1"
      Ports		      [2, 1]
      Position		      [195, 241, 220, 279]
      ShowName		      off
      Inputs		      "|+-"
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "To Workspace1"
      Position		      [780, 545, 840, 575]
      VariableName	      "tt"
      MaxDataPoints	      "inf"
      SampleTime	      "0.02"
      SaveFormat	      "Array"
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "To Workspace4"
      Position		      [1145, 270, 1205, 300]
      VariableName	      "h1"
      MaxDataPoints	      "inf"
      SampleTime	      "0.02"
      SaveFormat	      "Array"
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "To Workspace6"
      Position		      [1140, 170, 1200, 200]
      VariableName	      "q1"
      MaxDataPoints	      "inf"
      SampleTime	      "0.02"
      SaveFormat	      "Array"
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "To Workspace7"
      Position		      [1145, 355, 1205, 385]
      VariableName	      "vt1"
      MaxDataPoints	      "inf"
      SampleTime	      "0.02"
      SaveFormat	      "Array"
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "To Workspace8"
      Position		      [285, 155, 345, 185]
      VariableName	      "input1"
      MaxDataPoints	      "inf"
      SampleTime	      "0.02"
      SaveFormat	      "Array"
    }
    Block {
      BlockType		      SubSystem
      Name		      "open loop system1"
      Ports		      [1, 1]
      Position		      [600, 239, 725, 281]
      NamePlacement	      "alternate"
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"open loop system1"
	Location		[2, 78, 1022, 714]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "Control Inputs"
	  Position		  [95, 155, 125, 165]
	  NamePlacement		  "alternate"
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  StateSpace
	  Name			  "State-Space"
	  Position		  [210, 143, 315, 177]
	  NamePlacement		  "alternate"
	  A			  "Along(:,:,1)"
	  B			  "Blong(:,:,1)"
	  C			  "Clong(:,:,1)"
	  D			  "Dlong(:,:,1)"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Outputs"
	  Position		  [390, 155, 420, 165]
	  NamePlacement		  "alternate"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  "Control Inputs"
	  SrcPort		  1
	  DstBlock		  "State-Space"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "State-Space"
	  SrcPort		  1
	  DstBlock		  "Outputs"
	  DstPort		  1
	}
      }
    }
    Line {
      SrcBlock		      "open loop system1"
      SrcPort		      1
      DstBlock		      "Demux2"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Step1"
      SrcPort		      1
      Points		      [0, 0; 90, 0]
      Branch {
	Points			[90, 0]
	Branch {
	  Points		  [0, 35; 365, 0]
	  DstBlock		  "Scope8"
	  DstPort		  1
	}
	Branch {
	  DstBlock		  "To Workspace8"
	  DstPort		  1
	}
      }
      Branch {
	Points			[0, 100]
	DstBlock		"Sum1"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "Demux2"
      SrcPort		      2
      Points		      [0, 0; 55, 0]
      Branch {
	Points			[130, 0; 0, 25]
	Branch {
	  DstBlock		  "To Workspace4"
	  DstPort		  1
	}
	Branch {
	  Points		  [0, -30]
	  DstBlock		  "Scope5"
	  DstPort		  1
	}
      }
      Branch {
	Points			[0, 185; -695, 0; 0, -185]
	DstBlock		"Sum1"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Demux2"
      SrcPort		      3
      Points		      [0, 0; 15, 0]
      Branch {
	Points			[110, 0; 0, 30; 55, 0]
	Branch {
	  Points		  [0, 55]
	  DstBlock		  "To Workspace7"
	  DstPort		  1
	}
	Branch {
	  DstBlock		  "Scope6"
	  DstPort		  1
	}
      }
      Branch {
	Points			[0, 120; -600, 0; 0, -115; 75, 0]
	DstBlock		"Mux1"
	DstPort			3
      }
    }
    Line {
      SrcBlock		      "Demux2"
      SrcPort		      1
      Points		      [0, 0; 95, 0]
      Branch {
	Points			[85, 0; 0, -35]
	Branch {
	  Points		  [160, 0]
	  DstBlock		  "To Workspace6"
	  DstPort		  1
	}
	Branch {
	  Points		  [0, -30]
	  DstBlock		  "Scope4"
	  DstPort		  1
	}
      }
      Branch {
	Points			[0, 260; -765, 0; 0, -270; 160, 0]
	DstBlock		"Mux1"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Mux1"
      SrcPort		      1
      DstBlock		      "State-Space1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "State-Space1"
      SrcPort		      1
      DstBlock		      "open loop system1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Sum1"
      SrcPort		      1
      DstBlock		      "Gain8"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Gain8"
      SrcPort		      1
      DstBlock		      "Mux1"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Clock"
      SrcPort		      1
      Points		      [70, 0; 0, -10]
      DstBlock		      "To Workspace1"
      DstPort		      1
    }
  }
}

⌨️ 快捷键说明

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