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

📄 testbcirobot3e_ext.mdl

📁 simulink real-time workshop for dragon12 development board from
💻 MDL
📖 第 1 页 / 共 5 页
字号:
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Ports			  [2, 1]
	  Position		  [255, 365, 275, 385]
	  ShowName		  off
	  IconShape		  "round"
	  Inputs		  "|+-"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	}
	Block {
	  BlockType		  ZeroOrderHold
	  Name			  "Zero-Order\nHold"
	  Position		  [755, 121, 790, 159]
	  SampleTime		  "0.1"
	}
	Block {
	  BlockType		  ZeroOrderHold
	  Name			  "Zero-Order\nHold1"
	  Position		  [255, 156, 290, 194]
	  SampleTime		  "0.1"
	}
	Block {
	  BlockType		  Constant
	  Name			  "dark"
	  Position		  [415, 404, 535, 426]
	  Value			  "[0 0 0 0 0 0 0 0]"
	  ShowAdditionalParam	  on
	  OutDataTypeMode	  "double"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "myDLatch"
	  Ports			  [1, 1]
	  Position		  [505, 170, 570, 210]
	  NamePlacement		  "alternate"
	  TreatAsAtomicUnit	  off
	  System {
	    Name		    "myDLatch"
	    Location		    [52, 117, 528, 412]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In1"
	      Position		      [45, 128, 75, 142]
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant"
	      Position		      [105, 154, 125, 176]
	      ShowName		      off
	      Value		      "0"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "D Latch"
	      Ports		      [2, 2]
	      Position		      [225, 122, 275, 173]
	      SourceBlock	      "simulink_extras/Flip Flops/D Latch"
	      SourceType	      "DLatch"
	    }
	    Block {
	      BlockType		      RelationalOperator
	      Name		      "Relational\nOperator"
	      Position		      [160, 142, 190, 173]
	      ShowName		      off
	      Operator		      "~="
	      InputSameDT	      off
	    }
	    Block {
	      BlockType		      Scope
	      Name		      "Scope"
	      Ports		      [2]
	      Position		      [340, 50, 370, 85]
	      Location		      [188, 365, 512, 604]
	      Open		      off
	      NumInputPorts	      "2"
	      List {
		ListType		AxesTitles
		axes1			"%<SignalLabel>"
		axes2			"%<SignalLabel>"
	      }
	      YMin		      "-5~-5"
	      YMax		      "5~5"
	      SaveName		      "ScopeData3"
	      DataFormat	      "StructureWithTime"
	    }
	    Block {
	      BlockType		      Terminator
	      Name		      "Terminator"
	      Position		      [320, 150, 340, 170]
	      ShowName		      off
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out1"
	      Position		      [360, 128, 390, 142]
	    }
	    Line {
	      SrcBlock		      "Relational\nOperator"
	      SrcPort		      1
	      DstBlock		      "D Latch"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Constant"
	      SrcPort		      1
	      DstBlock		      "Relational\nOperator"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "In1"
	      SrcPort		      1
	      Points		      [0, 0; 55, 0]
	      Branch {
		Points			[65, 0]
		Branch {
		  Points		  [0, -75]
		  DstBlock		  "Scope"
		  DstPort		  1
		}
		Branch {
		  DstBlock		  "D Latch"
		  DstPort		  1
		}
	      }
	      Branch {
		Points			[0, 15]
		DstBlock		"Relational\nOperator"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "D Latch"
	      SrcPort		      1
	      Points		      [20, 0]
	      Branch {
		Points			[0, -60]
		DstBlock		"Scope"
		DstPort			2
	      }
	      Branch {
		DstBlock		"Out1"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "D Latch"
	      SrcPort		      2
	      DstBlock		      "Terminator"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Outport
	  Name			  "left"
	  Position		  [890, 43, 920, 57]
	}
	Block {
	  BlockType		  Outport
	  Name			  "dir_L"
	  Position		  [890, 223, 920, 237]
	  Port			  "2"
	}
	Block {
	  BlockType		  Outport
	  Name			  "right"
	  Position		  [890, 93, 920, 107]
	  Port			  "3"
	}
	Block {
	  BlockType		  Outport
	  Name			  "dir_R"
	  Position		  [890, 258, 920, 272]
	  Port			  "4"
	}
	Line {
	  SrcBlock		  "dark"
	  SrcPort		  1
	  DstBlock		  "Multiport\nSwitch"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "L"
	  SrcPort		  1
	  DstBlock		  "Multiport\nSwitch"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "R"
	  SrcPort		  1
	  DstBlock		  "Multiport\nSwitch"
	  DstPort		  4
	}
	Line {
	  SrcBlock		  "Constant"
	  SrcPort		  1
	  DstBlock		  "Relational\nOperator"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "'0'"
	  SrcPort		  1
	  Points		  [15, 0]
	  DstBlock		  "Sum"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "FreePortComms_RX"
	  SrcPort		  1
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Line {
	  Name			  "top centre"
	  Labels		  [-1, 1]
	  SrcBlock		  "Demux"
	  SrcPort		  1
	  DstBlock		  "Display"
	  DstPort		  1
	}
	Line {
	  Name			  "top right"
	  Labels		  [-1, 1]
	  SrcBlock		  "Demux"
	  SrcPort		  2
	  DstBlock		  "Display"
	  DstPort		  2
	}
	Line {
	  Name			  "bottom right"
	  Labels		  [-1, 1]
	  SrcBlock		  "Demux"
	  SrcPort		  3
	  DstBlock		  "Display"
	  DstPort		  3
	}
	Line {
	  Name			  "bottom centre"
	  Labels		  [-1, 1]
	  SrcBlock		  "Demux"
	  SrcPort		  4
	  DstBlock		  "Display"
	  DstPort		  4
	}
	Line {
	  Name			  "bottom left"
	  Labels		  [-1, 1]
	  SrcBlock		  "Demux"
	  SrcPort		  5
	  DstBlock		  "Display"
	  DstPort		  5
	}
	Line {
	  Name			  "top left"
	  Labels		  [-1, 1]
	  SrcBlock		  "Demux"
	  SrcPort		  6
	  DstBlock		  "Display"
	  DstPort		  6
	}
	Line {
	  Name			  "centre"
	  Labels		  [-1, 1]
	  SrcBlock		  "Demux"
	  SrcPort		  7
	  DstBlock		  "Display"
	  DstPort		  7
	}
	Line {
	  Name			  "dot"
	  Labels		  [-1, 1]
	  SrcBlock		  "Demux"
	  SrcPort		  8
	  DstBlock		  "Display"
	  DstPort		  8
	}
	Line {
	  SrcBlock		  "Multiport\nSwitch"
	  SrcPort		  1
	  DstBlock		  "Demux"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "S"
	  SrcPort		  1
	  DstBlock		  "Multiport\nSwitch"
	  DstPort		  5
	}
	Line {
	  SrcBlock		  "Data Type Conversion"
	  SrcPort		  1
	  DstBlock		  "left"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Data Type Conversion1"
	  SrcPort		  1
	  DstBlock		  "right"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  " left "
	  SrcPort		  1
	  DstBlock		  "Multiport\nSwitch1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  " right "
	  SrcPort		  1
	  DstBlock		  "Multiport\nSwitch1"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  " straight "
	  SrcPort		  1
	  DstBlock		  "Multiport\nSwitch1"
	  DstPort		  4
	}
	Line {
	  SrcBlock		  "Multiport\nSwitch1"
	  SrcPort		  1
	  DstBlock		  "Demux1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux1"
	  SrcPort		  1
	  DstBlock		  "Data Type Conversion2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux1"
	  SrcPort		  2
	  DstBlock		  "Data Type Conversion3"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "1 ... 3"
	  SrcPort		  1
	  Points		  [20, 0]
	  Branch {
	    DstBlock		    "Multiport\nSwitch1"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, -65; -485, 0; 0, 50]
	    DstBlock		    "Zero-Order\nHold1"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Data Type Conversion2"
	  SrcPort		  1
	  DstBlock		  "dir_L"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Data Type Conversion3"
	  SrcPort		  1
	  DstBlock		  "dir_R"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Relational\nOperator"
	  SrcPort		  1
	  Points		  [85, 0]
	  Branch {
	    Points		    [0, -25]
	    DstBlock		    "Data Type Conversion"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 25; 95, 0]
	    Branch {
	      DstBlock		      "Data Type Conversion1"
	      DstPort		      1
	    }
	    Branch {
	      Points		      [0, 40]
	      DstBlock		      "Zero-Order\nHold"
	      DstPort		      1
	    }
	  }
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  DstBlock		  "0 ... 3"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "myDLatch"
	  SrcPort		  1
	  DstBlock		  "1 ... 3"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Zero-Order\nHold"
	  SrcPort		  1
	  DstBlock		  "Display1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Zero-Order\nHold1"
	  SrcPort		  1
	  DstBlock		  "Display2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "0 ... 3"
	  SrcPort		  1
	  Points		  [115, 0]
	  Branch {
	    Points		    [0, -185]
	    Branch {
	      DstBlock		      "myDLatch"
	      DstPort		      1
	    }
	    Branch {
	      Points		      [0, -110]
	      DstBlock		      "Relational\nOperator"
	      DstPort		      2
	    }
	  }
	  Branch {
	    DstBlock		    "Multiport\nSwitch"
	    DstPort		    1
	  }
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Direction left"
      Ports		      [1]
      Position		      [775, 107, 870, 143]
      BackgroundColor	      "lightBlue"
      AncestorBlock	      "mc9S12tool/Digital output"
      List {
	ListType		RTWdata
	portStr			"PORTA"
	ddrStr			"DDRA"
	pinStr			"6"
      }
      FontSize		      12
      ShowPortLabels	      off
      TreatAsAtomicUnit	      off
      MaskHelp		      "helpview('C:\\Program Files\\Metrowerks\\rtmc9S"
"12_CW_R13\\bin\\mc9S12.map', 'mc9S12_DOUT_In_blkref')"
      MaskPromptString	      "Port (see hardware manuals for valid options)|P"
"in (see hardware manuals for valid options)|Sample time|On-threshold (Von)|Of"
"f-threshold (Voff)"
      MaskStyleString	      "popup(Port A|Port B|Port H|Port J|Port M|Port P"
"|Port S|Port T),edit,edit,edit,edit"
      MaskTunableValueString  "off,off,off,on,on"
      MaskCallbackString      "||||"
      MaskEnableString	      "on,on,on,on,on"
      MaskVisibilityString    "on,on,on,on,on"
      MaskToolTipString	      "on,on,on,on,on"
      MaskVarAliasString      ",,,,"
      MaskVariables	      "port=@1;pin=&2;sampletime=@3;Von=@4;Voff=@5;"
      MaskInitialization      "[portstr, pinstr, pins] = mbc_digitaloutput(por"
"t, pin, sampletime, Von, Voff);"
      MaskDisplay	      "fprintf('%s\\nPins: %s', portstr, pinstr)"
      MaskSelfModifiable      on
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "Port A|5|0.002|0.5|0.5"
      System {
	Name			"Direction left"
	Location		[262, 82, 829, 357]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"

⌨️ 快捷键说明

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