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

📄 testbcirobot3g_ext.mdl

📁 simulink real-time workshop for dragon12 development board from
💻 MDL
📖 第 1 页 / 共 5 页
字号:
	}
	Block {
	  BlockType		  DataTypeConversion
	  Name			  "Data Type Conversion2"
	  Position		  [810, 216, 865, 244]
	  ShowName		  off
	  DataType		  "double"
	}
	Block {
	  BlockType		  DataTypeConversion
	  Name			  "Data Type Conversion3"
	  Position		  [810, 251, 865, 279]
	  ShowName		  off
	  DataType		  "double"
	}
	Block {
	  BlockType		  Demux
	  Name			  "Demux"
	  Ports			  [1, 8]
	  Position		  [685, 349, 690, 556]
	  BackgroundColor	  "black"
	  ShowName		  off
	  Outputs		  "8"
	  Port {
	    PortNumber		    1
	    Name		    "top centre"
	    TestPoint		    off
	    LinearAnalysisOutput    off
	    LinearAnalysisInput	    off
	    RTWStorageClass	    "Auto"
	    DataLogging		    off
	    DataLoggingNameMode	    "SignalName"
	    DataLoggingDecimateData off
	    DataLoggingDecimation   "2"
	    DataLoggingLimitDataPoints off
	    DataLoggingMaxPoints    "5000"
	  }
	  Port {
	    PortNumber		    2
	    Name		    "top right"
	    TestPoint		    off
	    LinearAnalysisOutput    off
	    LinearAnalysisInput	    off
	    RTWStorageClass	    "Auto"
	    DataLogging		    off
	    DataLoggingNameMode	    "SignalName"
	    DataLoggingDecimateData off
	    DataLoggingDecimation   "2"
	    DataLoggingLimitDataPoints off
	    DataLoggingMaxPoints    "5000"
	  }
	  Port {
	    PortNumber		    3
	    Name		    "bottom right"
	    TestPoint		    off
	    LinearAnalysisOutput    off
	    LinearAnalysisInput	    off
	    RTWStorageClass	    "Auto"
	    DataLogging		    off
	    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		  Demux
	  Name			  "Demux1"
	  Ports			  [1, 2]
	  Position		  [785, 212, 790, 283]
	  BackgroundColor	  "black"
	  ShowName		  off
	  Outputs		  "2"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Display"
	  Ports			  [8]
	  Position		  [775, 350, 910, 555]
	  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		  Display
	  Name			  "Display2"
	  Ports			  [1]
	  Position		  [310, 160, 400, 190]
	  ExtModeUploadOption	  "log"
	  Decimation		  "1"
	}
	Block {
	  BlockType		  Goto
	  Name			  "Goto1"
	  Position		  [500, 273, 565, 287]
	  BackgroundColor	  "red"
	  ShowName		  off
	  GotoTag		  "command"
	  TagVisibility		  "global"
	}
	Block {
	  BlockType		  Constant
	  Name			  "L"
	  Position		  [415, 444, 535, 466]
	  Value			  "[0 0 0 1 1 1 0 0 ]"
	  ShowAdditionalParam	  on
	  OutDataTypeMode	  "double"
	}
	Block {
	  BlockType		  MultiPortSwitch
	  Name			  "Multiport\nSwitch"
	  Ports			  [5, 1]
	  Position		  [595, 358, 635, 552]
	  ShowName		  off
	  ShowAdditionalParam	  on
	  zeroidx		  on
	  InputSameDT		  off
	}
	Block {
	  BlockType		  MultiPortSwitch
	  Name			  "Multiport\nSwitch1"
	  Ports			  [4, 1]
	  Position		  [720, 172, 755, 328]
	  ShowName		  off
	  Inputs		  "3"
	  ShowAdditionalParam	  on
	  InputSameDT		  off
	}
	Block {
	  BlockType		  Constant
	  Name			  "R"
	  Position		  [415, 484, 535, 506]
	  Value			  "[1 1 1 0 1 1 1 0]"
	  ShowAdditionalParam	  on
	  OutDataTypeMode	  "double"
	}
	Block {
	  BlockType		  RelationalOperator
	  Name			  "Relational\nOperator"
	  Position		  [505, 57, 535, 88]
	  ShowName		  off
	  Operator		  "~="
	  InputSameDT		  off
	  LogicOutDataTypeMode	  "Specify via dialog"
	}
	Block {
	  BlockType		  Constant
	  Name			  "S"
	  Position		  [415, 524, 535, 546]
	  Value			  "[1 0 1 1 0 1 1 0]"
	  ShowAdditionalParam	  on
	  OutDataTypeMode	  "double"
	}
	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"

⌨️ 快捷键说明

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