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

📄 testbcirobot3b.mdl

📁 simulink real-time workshop for dragon12 development board from
💻 MDL
📖 第 1 页 / 共 5 页
字号:
	    DataLoggingNameMode	    "SignalName"
	    DataLoggingDecimateData off
	    DataLoggingDecimation   "2"
	    DataLoggingLimitDataPoints off
	    DataLoggingMaxPoints    "5000"
	  }
	  Port {
	    PortNumber		    4
	    Name		    "bottom centre"
	    TestPoint		    off
	    LinearAnalysisOutput    off
	    LinearAnalysisInput	    off
	    RTWStorageClass	    "Auto"
	    DataLogging		    off
	    DataLoggingNameMode	    "SignalName"
	    DataLoggingDecimateData off
	    DataLoggingDecimation   "2"
	    DataLoggingLimitDataPoints off
	    DataLoggingMaxPoints    "5000"
	  }
	  Port {
	    PortNumber		    5
	    Name		    "bottom left"
	    TestPoint		    off
	    LinearAnalysisOutput    off
	    LinearAnalysisInput	    off
	    RTWStorageClass	    "Auto"
	    DataLogging		    off
	    DataLoggingNameMode	    "SignalName"
	    DataLoggingDecimateData off
	    DataLoggingDecimation   "2"
	    DataLoggingLimitDataPoints off
	    DataLoggingMaxPoints    "5000"
	  }
	  Port {
	    PortNumber		    6
	    Name		    "top left"
	    TestPoint		    off
	    LinearAnalysisOutput    off
	    LinearAnalysisInput	    off
	    RTWStorageClass	    "Auto"
	    DataLogging		    off
	    DataLoggingNameMode	    "SignalName"
	    DataLoggingDecimateData off
	    DataLoggingDecimation   "2"
	    DataLoggingLimitDataPoints off
	    DataLoggingMaxPoints    "5000"
	  }
	  Port {
	    PortNumber		    7
	    Name		    "centre"
	    TestPoint		    off
	    LinearAnalysisOutput    off
	    LinearAnalysisInput	    off
	    RTWStorageClass	    "Auto"
	    DataLogging		    off
	    DataLoggingNameMode	    "SignalName"
	    DataLoggingDecimateData off
	    DataLoggingDecimation   "2"
	    DataLoggingLimitDataPoints off
	    DataLoggingMaxPoints    "5000"
	  }
	  Port {
	    PortNumber		    8
	    Name		    "dot"
	    TestPoint		    off
	    LinearAnalysisOutput    off
	    LinearAnalysisInput	    off
	    RTWStorageClass	    "Auto"
	    DataLogging		    off
	    DataLoggingNameMode	    "SignalName"
	    DataLoggingDecimateData off
	    DataLoggingDecimation   "2"
	    DataLoggingLimitDataPoints off
	    DataLoggingMaxPoints    "5000"
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Display"
	  Ports			  [8]
	  Position		  [705, 121, 835, 394]
	  BackgroundColor	  "[1.000000, 1.000000, 0.000000]"
	  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\\rt"
"mc9S12_CW_R13\\bin\\mc9S12.map', 'mc9S12_DOUT_In_blkref')"
	  MaskPromptString	  "Port (see hardware manuals for valid option"
"s)|Pin (see hardware manuals for valid options)|Sample time|On-threshold (Von"
")|Off-threshold (Voff)"
	  MaskStyleString	  "popup(Port A|Port B|Port H|Port J|Port M|Po"
"rt 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"
"(port, pin, sampletime, Von, Voff);"
	  MaskDisplay		  "fprintf('%s\\nPins: %s', portstr, pinstr)"
	  MaskSelfModifiable	  on
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "Port H|0:7|0.1|0.5|0.5"
	  System {
	    Name		    "Display"
	    Location		    [262, 82, 702, 273]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In1"
	      Position		      [30, 20, 50, 40]
	      FontSize		      12
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "In2"
	      Position		      [30, 65, 50, 85]
	      FontSize		      12
	      Port		      "2"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "In3"
	      Position		      [30, 110, 50, 130]
	      FontSize		      12
	      Port		      "3"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "In4"
	      Position		      [30, 155, 50, 175]
	      FontSize		      12
	      Port		      "4"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "In5"
	      Position		      [30, 200, 50, 220]
	      FontSize		      12
	      Port		      "5"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "In6"
	      Position		      [30, 245, 50, 265]
	      FontSize		      12
	      Port		      "6"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "In7"
	      Position		      [30, 290, 50, 310]
	      FontSize		      12
	      Port		      "7"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "In8"
	      Position		      [30, 335, 50, 355]
	      FontSize		      12
	      Port		      "8"
	    }
	    Block {
	      BlockType		      "S-Function"
	      Name		      "Digital Output SFcn"
	      Tag		      "MC9S12target"
	      Ports		      [1]
	      Position		      [255, 81, 380, 119]
	      List {
		ListType		RTWdata
		portStr			"PTH"
		ddrStr			"DDRH"
		pinMask			"255"
		pinStr			"0,1,2,3,4,5,6,7"
	      }
	      FontSize		      12
	      FunctionName	      "digOut_sfcn_9S12"
	      Parameters	      "sampletime, port, pins, Von, Voff"
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux"
	      Ports		      [8, 1]
	      Position		      [165, 40, 170, 220]
	      ShowName		      off
	      Inputs		      "8"
	      DisplayOption	      "bar"
	    }
	    Line {
	      SrcBlock		      "In1"
	      SrcPort		      1
	      Points		      [95, 0]
	      DstBlock		      "Mux"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Mux"
	      SrcPort		      1
	      Points		      [0, -30]
	      DstBlock		      "Digital Output SFcn"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "In2"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "In3"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "In4"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      4
	    }
	    Line {
	      SrcBlock		      "In5"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      5
	    }
	    Line {
	      SrcBlock		      "In6"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      6
	    }
	    Line {
	      SrcBlock		      "In7"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      7
	    }
	    Line {
	      SrcBlock		      "In8"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      8
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "FreePortComms_RX"
	  Tag			  "MC9S12Target_FreePortCom"
	  Ports			  [0, 1]
	  Position		  [30, 149, 190, 251]
	  AncestorBlock		  "mc9S12tool/Send user data"
	  FontSize		  12
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  MaskHelp		  "helpview('C:\\Documents and Settings\\fworn"
"le\\My Documents\\frank\\_cProgs\\Motorola\\rtmc9S12_CW_R13\\bin\\mc9S12.map'"
", 'mc9S12_FPTXD_In_blkref')"
	  MaskPromptString	  "Sample time|Communication port|Baudrate|Cha"
"nnel number|Number of elements|Data Type|Block receives raw data|Block output"
" is double"
	  MaskStyleString	  "edit,popup(SCI0|SCI1|COM1|COM2|COM3|COM4),p"
"opup(300|600|1200|2400|4800|9600|19200|38400|57600|115200),edit,edit,popup(SI"
"NGLE|INT8|UINT8|INT16|UINT16|INT32|UINT32|BOOLEAN),checkbox,checkbox"
	  MaskTunableValueString  "on,on,on,on,on,on,on,on"
	  MaskCallbackString	  "|||||||"
	  MaskEnableString	  "on,on,on,on,on,on,on,on"
	  MaskVisibilityString	  "on,on,on,off,on,off,on,on"
	  MaskToolTipString	  "on,on,on,on,on,on,on,on"
	  MaskVarAliasString	  ",,,,,,,"
	  MaskVariables		  "sampletime=@1;port=@2;baudrate=@3;channel=@"
"4;buf_size=@5;data_type=@6;format=@7;outformat=@8;"
	  MaskInitialization	  "[buf_sizestr, portNamestr, baudratestr, cha"
"nnelstr, data_type_str, sampletime_str] = mbc_freeportrxd(sampletime, port, b"
"audrate, channel, buf_size, data_type, format, outformat);\n"
	  MaskDisplay		  "fprintf('Receive %s element(s)\\nComm port:"
" %s\\nBaudrate: %s bps\\nChannel: %s\\nData type: %s\\n Sample rate: %s', buf"
"_sizestr, portNamestr, baudratestr, channelstr, data_type_str, sampletime_str"
")"
	  MaskSelfModifiable	  on
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "0.1|SCI1|115200|0|1|UINT8|on|on"
	  System {
	    Name		    "FreePortComms_RX"
	    Location		    [542, 167, 996, 332]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      DataTypeConversion
	      Name		      "Data Type Conversion"
	      Position		      [240, 61, 295, 89]
	      DataType		      "double"
	    }
	    Block {
	      BlockType		      "S-Function"
	      Name		      "RECEIVE_FROM_FREE_PORT"
	      Tag		      "MC9S12target"
	      Ports		      [0, 1]
	      Position		      [35, 54, 165, 96]
	      List {
		ListType		RTWdata
		portStr			"1"
		portNameStr		"SCI1"
		baudrateStr		"115200"
		formatStr		"1"
	      }
	      FontSize		      12
	      FunctionName	      "freePortComms_rxd"
	      Parameters	      "sampletime, channel, buf_size, data_typ"
"e, port, baudrate, format"
	      MaskIconFrame	      on
	      MaskIconOpaque	      on
	      MaskIconRotate	      "none"
	      MaskIconUnits	      "autoscale"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out"
	      Position		      [400, 64, 420, 86]
	    }
	    Line {
	      SrcBlock		      "Data Type Conversion"
	      SrcPort		      1
	      DstBlock		      "Out"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "RECEIVE_FROM_FREE_PORT"
	      SrcPort		      1
	      DstBlock		      "Data Type Conversion"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Constant
	  Name			  "L"
	  Position		  [345, 269, 465, 291]
	  Value			  "[0 0 0 1 1 1 0 0 ]"
	  ShowAdditionalParam	  on
	  OutDataTypeMode	  "double"
	}
	Block {
	  BlockType		  MultiPortSwitch
	  Name			  "Multiport\nSwitch"
	  Ports			  [4, 1]
	  Position		  [525, 182, 560, 338]
	  Inputs		  "3"
	  ShowAdditionalParam	  on
	  zeroidx		  on
	  InputSameDT		  off
	}
	Block {
	  BlockType		  RelationalOperator
	  Name			  "Relational\nOperator"
	  Position		  [395, 22, 425, 53]
	  ShowName		  off
	  Operator		  "=="
	  InputSameDT		  off
	  LogicOutDataTypeMode	  "Specify via dialog"
	}
	Block {
	  BlockType		  RelationalOperator
	  Name			  "Relational\nOperator1"
	  Position		  [455, 77, 485, 108]
	  ShowName		  off
	  Operator		  "=="
	  InputSameDT		  off
	  LogicOutDataTypeMode	  "Specify via dialog"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Ports			  [2, 1]
	  Position		  [265, 190, 285, 210]
	  ShowName		  off
	  IconShape		  "round"
	  Inputs		  "|+-"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	}
	Block {
	  BlockType		  Constant
	  Name			  "dark"
	  Position		  [345, 229, 465, 251]
	  Value			  "[0 0 0 0 0 0 0 0]"
	  ShowAdditionalParam	  on
	  OutDataTypeMode	  "double"
	}
	Block {
	  BlockType		  Constant
	  Name			  "r"
	  Position		  [345, 309, 465, 331]
	  Value			  "[0 0 0 0 1 0 1 0]"
	  ShowAdditionalParam	  on
	  OutDataTypeMode	  "double"
	}
	Block {
	  BlockType		  Outport
	  Name			  "left"
	  Position		  [525, 33, 555, 47]
	}
	Block {
	  BlockType		  Outport
	  Name			  "right"
	  Position		  [525, 88, 555, 102]
	  Port			  "2"
	}
	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		  "Relational\nOperator"
	  SrcPort		  1
	  DstBlock		  "left"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Constant1"
	  SrcPort		  1
	  DstBlock		  "Relational\nOperator1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Relational\nOperator1"
	  SrcPort		  1

⌨️ 快捷键说明

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