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

📄 salib.mdl

📁 power window related simulink simulation
💻 MDL
📖 第 1 页 / 共 5 页
字号:
	Line {	  SrcBlock		  "10 ms"	  SrcPort		  1	  DstBlock		  "control"	  DstPort		  trigger	}	Line {	  SrcBlock		  "position"	  SrcPort		  1	  DstBlock		  "detect_obstacle_endstop"	  DstPort		  1	}	Line {	  SrcBlock		  "detect_obstacle_endstop"	  SrcPort		  1	  DstBlock		  "reset"	  DstPort		  1	}	Line {	  SrcBlock		  "detect_obstacle_endstop"	  SrcPort		  3	  Points		  [-150, 0]	  DstBlock		  "control"	  DstPort		  1	}	Line {	  SrcBlock		  "detect_obstacle_endstop"	  SrcPort		  2	  Points		  [-160, 0; 0, 115]	  DstBlock		  "control"	  DstPort		  2	}      }    }    Block {      BlockType		      SubSystem      Name		      "power_window_control_system"      Ports		      [7, 2]      Position		      [400, 245, 560, 425]      ShowPortLabels	      on      TreatAsAtomicUnit	      off      RTWSystemCode	      "Auto"      RTWFcnNameOpts	      "Auto"      RTWFileNameOpts	      "Auto"      System {	Name			"power_window_control_system"	Location		[33, 118, 795, 502]	Open			off	ModelBrowserVisibility	off	ModelBrowserWidth	200	ScreenColor		"white"	PaperOrientation	"landscape"	PaperPositionMode	"auto"	PaperType		"usletter"	PaperUnits		"inches"	ZoomFactor		"100"	Block {	  BlockType		  Inport	  Name			  "armature_current"	  Position		  [695, 38, 725, 52]	  Orientation		  "left"	  Port			  "1"	  LatchInput		  off	  Interpolate		  on	}	Block {	  BlockType		  Inport	  Name			  "driver_neutral"	  Position		  [70, 83, 100, 97]	  Port			  "2"	  LatchInput		  off	  Interpolate		  on	}	Block {	  BlockType		  Inport	  Name			  "driver_up"	  Position		  [110, 113, 140, 127]	  Port			  "3"	  LatchInput		  off	  Interpolate		  on	}	Block {	  BlockType		  Inport	  Name			  "driver_down"	  Position		  [150, 143, 180, 157]	  Port			  "4"	  LatchInput		  off	  Interpolate		  on	}	Block {	  BlockType		  Inport	  Name			  "passenger_neutral"	  Position		  [65, 328, 95, 342]	  Port			  "5"	  LatchInput		  off	  Interpolate		  on	}	Block {	  BlockType		  Inport	  Name			  "passenger_up"	  Position		  [115, 298, 145, 312]	  Port			  "6"	  LatchInput		  off	  Interpolate		  on	}	Block {	  BlockType		  Inport	  Name			  "passenger_down"	  Position		  [150, 268, 180, 282]	  Port			  "7"	  LatchInput		  off	  Interpolate		  on	}	Block {	  BlockType		  DiscretePulseGenerator	  Name			  "10 ms"	  Position		  [429, 100, 461, 120]	  Orientation		  "down"	  ForegroundColor	  "magenta"	  PulseType		  "Time-based"	  Amplitude		  "1"	  Period		  "1e-2"	  PulseWidth		  "1"	  PhaseDelay		  "0"	  SampleTime		  "1e-3"	  VectorParams1D	  on	}	Block {	  BlockType		  From	  Name			  "From"	  Position		  [65, 172, 130, 188]	  ForegroundColor	  "darkGreen"	  CloseFcn		  "tagdialog Close"	  GotoTag		  "reset"	}	Block {	  BlockType		  From	  Name			  "From2"	  Position		  [65, 237, 130, 253]	  ForegroundColor	  "darkGreen"	  NamePlacement		  "alternate"	  CloseFcn		  "tagdialog Close"	  GotoTag		  "reset"	}	Block {	  BlockType		  Goto	  Name			  "Goto1"	  Position		  [395, 27, 455, 43]	  Orientation		  "left"	  ForegroundColor	  "darkGreen"	  GotoTag		  "reset"	  TagVisibility		  "local"	}	Block {	  BlockType		  SubSystem	  Name			  "control"	  Ports			  [4, 2, 0, 1]	  Position		  [380, 137, 515, 238]	  ForegroundColor	  "magenta"	  ShowPortLabels	  on	  TreatAsAtomicUnit	  on	  RTWSystemCode		  "Auto"	  RTWFcnNameOpts	  "Auto"	  RTWFileNameOpts	  "Auto"	  MaskType		  "Stateflow"	  MaskDescription	  "Stateflow diagram"	  MaskDisplay		  "plot(sf('Private','sfblk','xIcon'),sf('Priv""ate','sfblk','yIcon'));text(0.5,0,sf('Private', 'sfblk', 'tIcon'),'Horizontal""Al','Center','VerticalAl','Bottom');"	  MaskSelfModifiable	  on	  MaskIconFrame		  off	  MaskIconOpaque	  off	  MaskIconRotate	  "none"	  MaskIconUnits		  "autoscale"	  System {	    Name		    "control"	    Location		    [257, 457, 812, 717]	    Open		    off	    ModelBrowserVisibility  off	    ModelBrowserWidth	    200	    ScreenColor		    "white"	    PaperOrientation	    "landscape"	    PaperPositionMode	    "auto"	    PaperType		    "usletter"	    PaperUnits		    "inches"	    ZoomFactor		    "100"	    Block {	      BlockType		      Inport	      Name		      "endstop"	      Position		      [20, 101, 40, 119]	      Port		      "1"	      LatchInput	      off	      PortDimensions	      "1"	      Interpolate	      on	    }	    Block {	      BlockType		      Inport	      Name		      "obstacle"	      Position		      [20, 136, 40, 154]	      Port		      "2"	      LatchInput	      off	      PortDimensions	      "1"	      Interpolate	      on	    }	    Block {	      BlockType		      Inport	      Name		      "driver"	      Position		      [20, 171, 40, 189]	      Port		      "3"	      LatchInput	      off	      PortDimensions	      "3"	      Interpolate	      on	    }	    Block {	      BlockType		      Inport	      Name		      "passenger"	      Position		      [20, 206, 40, 224]	      Port		      "4"	      LatchInput	      off	      PortDimensions	      "3"	      Interpolate	      on	    }	    Block {	      BlockType		      TriggerPort	      Name		      "ticks"	      Ports		      [0, 1]	      Position		      [20, 246, 40, 264]	      TriggerType	      "rising"	      ShowOutputPort	      on	      OutputDataType	      "auto"	      ZeroCross		      off	    }	    Block {	      BlockType		      Demux	      Name		      " Demux "	      Ports		      [1, 1]	      Position		      [270, 220, 320, 260]	      Outputs		      "1"	      BusSelectionMode	      off	    }	    Block {	      BlockType		      "S-Function"	      Name		      " SFunction "	      Tag		      "Stateflow S-Function salib 1"	      Ports		      [5, 3]	      Position		      [180, 100, 230, 220]	      FunctionName	      "sf_sfun"	      PortCounts	      "[5 3]"	      SFunctionModules	      "''"	      Port {		PortNumber		2		Name			"moveUp"		TestPoint		off		LinearAnalysisOutput	off		LinearAnalysisInput	off		RTWStorageClass		"Auto"	      }	      Port {		PortNumber		3		Name			"moveDown"		TestPoint		off		LinearAnalysisOutput	off		LinearAnalysisInput	off		RTWStorageClass		"Auto"	      }	    }	    Block {	      BlockType		      Terminator	      Name		      " Terminator "	      Position		      [460, 231, 480, 249]	    }	    Block {	      BlockType		      Outport	      Name		      "moveUp"	      Position		      [460, 101, 480, 119]	      Port		      "1"	      OutputWhenDisabled      "held"	      InitialOutput	      "[]"	    }	    Block {	      BlockType		      Outport	      Name		      "moveDown"	      Position		      [460, 136, 480, 154]	      Port		      "2"	      OutputWhenDisabled      "held"	      InitialOutput	      "[]"	    }	    Line {	      SrcBlock		      " SFunction "	      SrcPort		      1	      Points		      [0, 120]	      DstBlock		      " Demux "	      DstPort		      1	    }	    Line {	      SrcBlock		      " Demux "	      SrcPort		      1	      DstBlock		      " Terminator "	      DstPort		      1	    }	    Line {	      SrcBlock		      "endstop"	      SrcPort		      1	      DstBlock		      " SFunction "	      DstPort		      1	    }	    Line {	      SrcBlock		      "obstacle"	      SrcPort		      1	      Points		      [120, 0]	      DstBlock		      " SFunction "	      DstPort		      2	    }	    Line {	      SrcBlock		      "driver"	      SrcPort		      1	      DstBlock		      " SFunction "	      DstPort		      3	    }	    Line {	      SrcBlock		      "passenger"	      SrcPort		      1	      DstBlock		      " SFunction "	      DstPort		      4	    }	    Line {	      SrcBlock		      "ticks"	      SrcPort		      1	      DstBlock		      " SFunction "	      DstPort		      5	    }	    Line {	      Name		      "moveUp"	      Labels		      [0, 0]	      SrcBlock		      " SFunction "	      SrcPort		      2	      DstBlock		      "moveUp"	      DstPort		      1	    }	    Line {	      Name		      "moveDown"	      Labels		      [0, 0]	      SrcBlock		      " SFunction "	      SrcPort		      3	      DstBlock		      "moveDown"	      DstPort		      1	    }	  }	}	Block {	  BlockType		  SubSystem	  Name			  "detect_obstacle_endstop"	  Ports			  [2, 3]	  Position		  [510, 24, 635, 96]	  Orientation		  "left"	  ShowPortLabels	  on	  TreatAsAtomicUnit	  off	  RTWSystemCode		  "Auto"	  RTWFcnNameOpts	  "Auto"	  RTWFileNameOpts	  "Auto"	  System {	    Name		    "detect_obstacle_endstop"	    Location		    [50, 135, 584, 380]	    Open		    off	    ModelBrowserVisibility  off	    ModelBrowserWidth	    200	    ScreenColor		    "white"	    PaperOrientation	    "landscape"	    PaperPositionMode	    "auto"	    PaperType		    "usletter"	    PaperUnits		    "inches"	    ZoomFactor		    "100"	    Block {	      BlockType		      Inport	      Name		      "armature_current"	      Position		      [40, 113, 70, 127]	      Port		      "1"	      LatchInput	      off	      Interpolate	      on	    }	    Block {	      BlockType		      Inport	      Name		      "move_up"	      Position		      [40, 33, 70, 47]	      Port		      "2"	      LatchInput	      off	      Interpolate	      on	    }	    Block {	      BlockType		      Abs	      Name		      "Abs"	      Position		      [115, 105, 145, 135]	      ForegroundColor	      "gray"	      SaturateOnIntegerOverflow	on	      ZeroCross		      off	    }	    Block {	      BlockType		      SubSystem	      Name		      "detect_endstop"	      Ports		      [1, 1]	      Position		      [185, 137, 325, 203]	      ForegroundColor	      "gray"	      ShowPortLabels	      on	      TreatAsAtomicUnit	      off	      RTWSystemCode	      "Auto"	      RTWFcnNameOpts	      "Auto"	      RTWFileNameOpts	      "Auto"	      System {		Name			"detect_endstop"		Location		[166, 159, 585, 363]		Open			off		ModelBrowserVisibility	off		ModelBrowserWidth	200		ScreenColor		"white"		PaperOrientation	"landscape"		PaperPositionMode	"auto"		PaperType		"usletter"		PaperUnits		"inches"		ZoomFactor		"100"		Block {		  BlockType		  Inport		  Name			  "armature_current"		  Position		  [90, 43, 120, 57]		  Port			  "1"		  LatchInput		  off		  Interpolate		  on		}		Block {		  BlockType		  Constant		  Name			  "Constant6"		  Position		  [90, 99, 125, 121]		  ShowName		  off		  Value			  "15"		  VectorParams1D	  on		}		Block {		  BlockType		  RelationalOperator		  Name			  "current_limit"		  Position		  [195, 87, 225, 118]		  Operator		  ">"		  ZeroCross		  off		}		Block {		  BlockType		  Outport		  Name			  "endstop"		  Position		  [275, 98, 305, 112]		  ForegroundColor	  "darkGreen"		  Port			  "1"		  OutputWhenDisabled	  "held"		  InitialOutput		  "[]"		}		Line {		  SrcBlock		  "current_limit"		  SrcPort		  1		  DstBlock		  "endstop"		  DstPort		  1		}		Line {		  SrcBlock		  "armature_current"		  SrcPort		  1		  Points		  [40, 0; 0, 45]		  DstBlock		  "current_limit"		  DstPort		  1		}		Line {		  SrcBlock		  "Constant6"		  SrcPort		  1		  DstBlock		  "current_limit"		  DstPort		  2		}	      }	    }	    Block {	      BlockType		      SubSystem	      Name		      "detect_obstacle"	      Ports		      [2, 1]	      Position		      [190, 24, 325, 86]	      ForegroundColor	      "gray"	      ShowPortLabels	      on	      TreatAsAtomicUnit	      off	      RTWSystemCode	      "Auto"	      RTWFcnNameOpts	      "Auto"	      RTWFileNameOpts	      "Auto"	      System {		Name			"detect_obstacle"		Location		[166, 135, 696, 364]		Open			off		ModelBrowserVisibility	off		ModelBrowserWidth	200		ScreenColor		"white"		PaperOrientation	"landscape"		PaperPositionMode	"auto"		PaperType		"usletter"		PaperUnits		"inches"		ZoomFactor		"100"		Block {		  BlockType		  Inport		  Name			  "move_up"		  Position		  [415, 138, 445, 152]		  Orientation		  "left"		  Port			  "1"		  LatchInput		  off		  Interpolate		  on		}		Block {		  BlockType		  Inport		  Name			  "armature_current"		  Position		  [30, 123, 60, 137]		  Port			  "2"		  LatchInput		  off		  Interpolate		  on		}		Block {		  BlockType		  Constant		  Name			  "Constant1"		  Position		  [35, 178, 65, 202]		  ForegroundColor	  "magenta"		  ShowName		  off		  Value			  "1.6"		  VectorParams1D	  on		}		Block {		  BlockType		  Product		  Name			  "Product"		  Ports			  [2, 1]		  Position		  [178, 125, 207, 155]		  Orientation		  "up"		  ForegroundColor	  "magenta"		  NamePlacement		  "alternate"		  Inputs		  "2"		  Multiplication	  "Element-wise(.*)"		  SaturateOnIntegerOverflow on		}		Block {		  BlockType		  UnitDelay		  Name			  "break\ndependency"		  Position		  [350, 125, 385, 165]		  Orientation		  "left"		  ForegroundColor	  "magenta"		  X0			  "0"		  SampleTime		  "0.01"		  RTWStateStorageClass	  "Auto"		}		Block {		  BlockType		  SubSystem		  Name			  "delay 500 ms"		  Ports			  [0, 1, 1]		  Position		  [250, 168, 310, 202]		  Orientation		  "left"		  ForegroundColor	  "magenta"		  ShowPortLabels	  on

⌨️ 快捷键说明

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