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

📄 ballbeam_simulink.mdl

📁 我的智能控制作业
💻 MDL
📖 第 1 页 / 共 2 页
字号:
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Inport
      BusObject		      "BusObject"
      BusOutputAsStruct	      off
      PortDimensions	      "-1"
      SampleTime	      "-1"
      DataType		      "auto"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      SignalType	      "auto"
      SamplingMode	      "auto"
      Interpolate	      on
    }
    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		      Outport
      Port		      "1"
      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		      Product
      Inputs		      "2"
      Multiplication	      "Element-wise(.*)"
      InputSameDT	      on
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Zero"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    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		    "Ballbeam_simulink"
    Location		    [2, 82, 1014, 721]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "A4"
    PaperUnits		    "centimeters"
    ZoomFactor		    "100"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      Inport
      Name		      "in_1"
      Position		      [270, 187, 300, 203]
      Port		      "1"
      IconDisplay	      "Port number"
      LatchInput	      off
    }
    Block {
      BlockType		      SubSystem
      Name		      "Ball-beam system"
      Ports		      [1, 4]
      Position		      [335, 141, 385, 244]
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskPromptString	      "Initial conditions:"
      MaskStyleString	      "edit"
      MaskTunableValueString  "on"
      MaskEnableString	      "on"
      MaskVisibilityString    "on"
      MaskToolTipString	      "on"
      MaskVariables	      "init_cond=@1;"
      MaskDisplay	      "disp('Ball-beam\\nsystem')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "[0 0 0 0]"
      System {
	Name			"Ball-beam system"
	Location		[2, 78, 1022, 717]
	Open			on
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "in_1"
	  Position		  [60, 225, 80, 245]
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Product
	  Name			  "Product"
	  Ports			  [2, 1]
	  Position		  [150, 88, 170, 132]
	  Orientation		  "left"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Ports			  [2, 1]
	  Position		  [55, 135, 75, 155]
	  Orientation		  "left"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	}
	Block {
	  BlockType		  Gain
	  Name			  "a"
	  Position		  [55, 34, 120, 66]
	  Gain			  "0.7143"
	}
	Block {
	  BlockType		  Gain
	  Name			  "b"
	  Position		  [120, 170, 190, 200]
	  Orientation		  "left"
	  Gain			  "-9.81"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	}
	Block {
	  BlockType		  Integrator
	  Name			  "r"
	  Ports			  [1, 1]
	  Position		  [230, 39, 275, 61]
	  InitialCondition	  "init_cond(1)"
	}
	Block {
	  BlockType		  Integrator
	  Name			  "r dot"
	  Ports			  [1, 1]
	  Position		  [135, 39, 175, 61]
	  InitialCondition	  "init_cond(2)"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "sin(x3)"
	  Position		  [225, 173, 275, 197]
	  Orientation		  "left"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	}
	Block {
	  BlockType		  Integrator
	  Name			  "theta"
	  Ports			  [1, 1]
	  Position		  [225, 223, 275, 247]
	  InitialCondition	  "init_cond(3)"
	}
	Block {
	  BlockType		  Integrator
	  Name			  "theta dot"
	  Ports			  [1, 1]
	  Position		  [140, 225, 160, 245]
	  InitialCondition	  "init_cond(4)"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "x4^2"
	  Position		  [230, 108, 275, 132]
	  Orientation		  "left"
	  Expr			  "u[1]^2"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	}
	Block {
	  BlockType		  Outport
	  Name			  "out_1"
	  Position		  [380, 40, 400, 60]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	  InitialOutput		  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "out_2"
	  Position		  [380, 95, 400, 115]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	  InitialOutput		  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "out_3"
	  Position		  [380, 225, 400, 245]
	  Port			  "3"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	  InitialOutput		  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "out_4"
	  Position		  [380, 270, 400, 290]
	  Port			  "4"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "in_1"
	  SrcPort		  1
	  DstBlock		  "theta dot"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "theta"
	  SrcPort		  1
	  Points		  [0, 0; 35, 0]
	  Branch {
	    Points		    [0, -50]
	    DstBlock		    "sin(x3)"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "out_3"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "theta dot"
	  SrcPort		  1
	  Points		  [0, 0; 25, 0]
	  Branch {
	    Points		    [0, 45; 155, 0]
	    Branch {
	      Points		      [0, -160]
	      DstBlock		      "x4^2"
	      DstPort		      1
	    }
	    Branch {
	      Points		      [30, 0]
	      DstBlock		      "out_4"
	      DstPort		      1
	    }
	  }
	  Branch {
	    DstBlock		    "theta"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "a"
	  SrcPort		  1
	  DstBlock		  "r dot"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  Points		  [-20, 0; 0, -95]
	  DstBlock		  "a"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "b"
	  SrcPort		  1
	  Points		  [-15, 0; 0, -35]
	  DstBlock		  "Sum"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Product"
	  SrcPort		  1
	  Points		  [-45, 0; 0, 30]
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "sin(x3)"
	  SrcPort		  1
	  DstBlock		  "b"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "x4^2"
	  SrcPort		  1
	  DstBlock		  "Product"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "r"
	  SrcPort		  1
	  Points		  [0, 0; 35, 0]
	  Branch {
	    Points		    [0, 50]
	    DstBlock		    "Product"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "out_1"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "r dot"
	  SrcPort		  1
	  Points		  [0, 0; 25, 0]
	  Branch {
	    Points		    [0, -20; 140, 0; 0, 75]
	    DstBlock		    "out_2"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "r"
	    DstPort		    1
	  }
	}
      }
    }
    Block {
      BlockType		      Outport
      Name		      "out_1"
      Position		      [450, 148, 465, 162]
      IconDisplay	      "Port number"
      BusOutputAsStruct	      off
      InitialOutput	      "0"
    }
    Block {
      BlockType		      Outport
      Name		      "out_2"
      Position		      [445, 174, 465, 186]
      Port		      "2"
      IconDisplay	      "Port number"
      BusOutputAsStruct	      off
      InitialOutput	      "0"
    }
    Block {
      BlockType		      Outport
      Name		      "out_3"
      Position		      [445, 199, 465, 211]
      Port		      "3"
      IconDisplay	      "Port number"
      BusOutputAsStruct	      off
      InitialOutput	      "0"
    }
    Block {
      BlockType		      Outport
      Name		      "out_4"
      Position		      [450, 223, 465, 237]
      Port		      "4"
      IconDisplay	      "Port number"
      BusOutputAsStruct	      off
      InitialOutput	      "0"
    }
    Line {
      SrcBlock		      "Ball-beam system"
      SrcPort		      1
      DstBlock		      "out_1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Ball-beam system"
      SrcPort		      2
      DstBlock		      "out_2"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Ball-beam system"
      SrcPort		      3
      DstBlock		      "out_3"
      DstPort		      1
    }
    Line {
      SrcBlock		      "in_1"
      SrcPort		      1
      DstBlock		      "Ball-beam system"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Ball-beam system"
      SrcPort		      4
      DstBlock		      "out_4"
      DstPort		      1
    }
  }
}

⌨️ 快捷键说明

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