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

📄 dlb.mdl

📁 二级倒立摆的建模及仿真
💻 MDL
📖 第 1 页 / 共 2 页
字号:
      Decimation	      "1"
      SampleInput	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      "S-Function"
      FunctionName	      "system"
      SFunctionModules	      "''"
      PortCounts	      "[]"
    }
    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"
    }
  }
  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		    "dlb"
    Location		    [2, 77, 1270, 760]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "A4"
    PaperUnits		    "centimeters"
    ZoomFactor		    "100"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      Gain
      Name		      "Gain"
      Position		      [760, 90, 790, 120]
      Gain		      "[0 1 0]"
      Multiplication	      "Matrix(K*u)"
    }
    Block {
      BlockType		      Gain
      Name		      "Gain1"
      Position		      [755, 180, 785, 210]
      Gain		      "[0 0 1]"
      Multiplication	      "Matrix(K*u)"
    }
    Block {
      BlockType		      Gain
      Name		      "Gain2"
      Position		      [775, 255, 805, 285]
      Gain		      "[1 0 0]"
      Multiplication	      "Matrix(K*u)"
    }
    Block {
      BlockType		      "S-Function"
      Name		      "S-Function"
      Ports		      [1, 1]
      Position		      [555, 180, 615, 210]
      FunctionName	      "dlbmx"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope"
      Ports		      [1]
      Position		      [1030, 89, 1060, 121]
      Location		      [6, 55, 1014, 519]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      TimeRange		      "10"
      YMin		      "-2"
      YMax		      "2"
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope1"
      Ports		      [1]
      Position		      [970, 149, 1000, 181]
      Location		      [91, 86, 1099, 550]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      TimeRange		      "10"
      YMin		      "-2"
      YMax		      "2"
      SaveName		      "ScopeData1"
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Subsystem"
      Ports		      [3, 1]
      Position		      [570, 325, 640, 445]
      Orientation	      "left"
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      System {
	Name			"Subsystem"
	Location		[227, 332, 842, 692]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [545, 53, 575, 67]
	  Orientation		  "left"
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "In2"
	  Position		  [550, 103, 580, 117]
	  Orientation		  "left"
	  Port			  "2"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "In3"
	  Position		  [560, 153, 590, 167]
	  Orientation		  "left"
	  Port			  "3"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Sum
	  Name			  "Add"
	  Ports			  [6, 1]
	  Position		  [165, 31, 220, 339]
	  Orientation		  "left"
	  NamePlacement		  "alternate"
	  Inputs		  "++++++"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutScaling		  "2^-10"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Derivative
	  Name			  "Derivative1"
	  Position		  [295, 245, 325, 275]
	  Orientation		  "left"
	  NamePlacement		  "alternate"
	}
	Block {
	  BlockType		  Derivative
	  Name			  "Derivative2"
	  Position		  [300, 295, 330, 325]
	  Orientation		  "left"
	  NamePlacement		  "alternate"
	}
	Block {
	  BlockType		  Derivative
	  Name			  "Derivative6"
	  Position		  [295, 195, 325, 225]
	  Orientation		  "left"
	  NamePlacement		  "alternate"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain3"
	  Position		  [365, 95, 395, 125]
	  Orientation		  "left"
	  NamePlacement		  "alternate"
	  Gain			  "15.9147"
	  ParameterDataTypeMode	  "Inherit via internal rule"
	  OutDataTypeMode	  "Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain4"
	  Position		  [365, 45, 395, 75]
	  Orientation		  "left"
	  NamePlacement		  "alternate"
	  Gain			  "3.1623"
	  ParameterDataTypeMode	  "Inherit via internal rule"
	  OutDataTypeMode	  "Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain5"
	  Position		  [365, 145, 395, 175]
	  Orientation		  "left"
	  NamePlacement		  "alternate"
	  Gain			  "137.4317"
	  ParameterDataTypeMode	  "Inherit via internal rule"
	  OutDataTypeMode	  "Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain6"
	  Position		  [365, 195, 395, 225]
	  Orientation		  "left"
	  NamePlacement		  "alternate"
	  Gain			  "4.5197"
	  ParameterDataTypeMode	  "Inherit via internal rule"
	  OutDataTypeMode	  "Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain7"
	  Position		  [370, 245, 400, 275]
	  Orientation		  "left"
	  NamePlacement		  "alternate"
	  Gain			  "16.8082"
	  ParameterDataTypeMode	  "Inherit via internal rule"
	  OutDataTypeMode	  "Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain8"
	  Position		  [370, 295, 400, 325]
	  Orientation		  "left"
	  NamePlacement		  "alternate"
	  Gain			  "18.6170"
	  ParameterDataTypeMode	  "Inherit via internal rule"
	  OutDataTypeMode	  "Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain9"
	  Position		  [80, 170, 110, 200]
	  Orientation		  "left"
	  NamePlacement		  "alternate"
	  Gain			  "[-1]"
	  ParameterDataTypeMode	  "Inherit via internal rule"
	  OutDataTypeMode	  "Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [25, 178, 55, 192]
	  Orientation		  "left"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  Points		  [0, 0; -70, 0]
	  Branch {
	    Points		    [0, 150]
	    DstBlock		    "Gain6"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Gain4"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Gain6"
	  SrcPort		  1
	  DstBlock		  "Derivative6"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Gain7"
	  SrcPort		  1
	  DstBlock		  "Derivative1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Gain8"
	  SrcPort		  1
	  DstBlock		  "Derivative2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Gain4"
	  SrcPort		  1
	  DstBlock		  "Add"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Gain3"
	  SrcPort		  1
	  DstBlock		  "Add"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Gain5"
	  SrcPort		  1
	  DstBlock		  "Add"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Derivative6"
	  SrcPort		  1
	  DstBlock		  "Add"
	  DstPort		  4
	}
	Line {
	  SrcBlock		  "Derivative1"
	  SrcPort		  1
	  DstBlock		  "Add"
	  DstPort		  5
	}
	Line {
	  SrcBlock		  "Derivative2"
	  SrcPort		  1
	  DstBlock		  "Add"
	  DstPort		  6
	}
	Line {
	  SrcBlock		  "Add"
	  SrcPort		  1
	  Points		  [0, 0]
	  DstBlock		  "Gain9"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In2"
	  SrcPort		  1
	  Points		  [0, 0; -45, 0]
	  Branch {
	    DstBlock		    "Gain3"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 150]
	    DstBlock		    "Gain7"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "In3"
	  SrcPort		  1
	  Points		  [0, 0; -15, 0]
	  Branch {
	    DstBlock		    "Gain5"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 150]
	    DstBlock		    "Gain8"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Gain9"
	  SrcPort		  1
	  Points		  [0, 0]
	  DstBlock		  "Out1"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Sum
      Name		      "Sum"
      Ports		      [2, 1]
      Position		      [870, 155, 890, 175]
      ShowName		      off
      IconShape		      "round"
      Inputs		      "|++"
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
      SaturateOnIntegerOverflow	off
    }
    Line {
      SrcBlock		      "S-Function"
      SrcPort		      1
      Points		      [0, 0; 85, 0]
      Branch {
	Points			[0, -90]
	DstBlock		"Gain"
	DstPort			1
      }
      Branch {
	DstBlock		"Gain1"
	DstPort			1
      }
      Branch {
	Points			[0, 75]
	DstBlock		"Gain2"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Gain"
      SrcPort		      1
      Points		      [0, 0; 30, 0]
      Branch {
	Points			[0, 60]
	DstBlock		"Sum"
	DstPort			1
      }
      Branch {
	Points			[75, 0]
	Branch {
	  DstBlock		  "Scope"
	  DstPort		  1
	}
	Branch {
	  Points		  [0, 280]
	  DstBlock		  "Subsystem"
	  DstPort		  2
	}
      }
    }
    Line {
      SrcBlock		      "Gain1"
      SrcPort		      1
      Points		      [0, 0; 50, 0]
      Branch {
	Points			[40, 0]
	DstBlock		"Sum"
	DstPort			2
      }
      Branch {
	Points			[0, 230]
	DstBlock		"Subsystem"
	DstPort			3
      }
    }
    Line {
      SrcBlock		      "Sum"
      SrcPort		      1
      DstBlock		      "Scope1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Subsystem"
      SrcPort		      1
      Points		      [-175, 0; 0, -190]
      DstBlock		      "S-Function"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Gain2"
      SrcPort		      1
      Points		      [10, 0; 0, 75]
      DstBlock		      "Subsystem"
      DstPort		      1
    }
  }
}

⌨️ 快捷键说明

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