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

📄 testbcirobot3g_ext.mdl

📁 simulink real-time workshop for dragon12 development board from
💻 MDL
📖 第 1 页 / 共 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		  SubSystem
	  Name			  "myDLatch_nonZero"
	  Ports			  [1, 1]
	  Position		  [695, 55, 760, 95]
	  NamePlacement		  "alternate"
	  TreatAsAtomicUnit	  off
	  System {
	    Name		    "myDLatch_nonZero"
	    Location		    [52, 117, 695, 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		      Constant
	      Name		      "Constant1"
	      Position		      [435, 79, 455, 101]
	      Orientation	      "left"
	      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		      Logic
	      Name		      "Logical\nOperator"
	      Ports		      [1, 1]
	      Position		      [235, 199, 265, 231]
	      ShowName		      off
	      Operator		      "NOT"
	      AllPortsSameDT	      off
	    }
	    Block {
	      BlockType		      RelationalOperator
	      Name		      "Relational\nOperator"
	      Position		      [160, 142, 190, 173]
	      ShowName		      off
	      Operator		      "~="
	      InputSameDT	      off
	    }
	    Block {
	      BlockType		      Scope
	      Name		      "Scope"
	      Ports		      [2]
	      Position		      [540, 20, 570, 55]
	      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		      Switch
	      Name		      "Switch"
	      Position		      [430, 110, 460, 140]
	      NamePlacement	      "alternate"
	      ShowName		      off
	      Criteria		      "u2 > Threshold"
	      Threshold		      "0.5"
	      ShowAdditionalParam     on
	      InputSameDT	      off
	    }
	    Block {
	      BlockType		      Terminator
	      Name		      "Terminator"
	      Position		      [320, 150, 340, 170]
	      ShowName		      off
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out1"
	      Position		      [530, 118, 560, 132]
	    }
	    Line {
	      SrcBlock		      "Logical\nOperator"
	      SrcPort		      1
	      Points		      [135, 0; 0, -90]
	      DstBlock		      "Switch"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Constant1"
	      SrcPort		      1
	      Points		      [-25, 0; 0, 25]
	      DstBlock		      "Switch"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Switch"
	      SrcPort		      1
	      Points		      [30, 0]
	      Branch {
		Points			[0, -80]
		DstBlock		"Scope"
		DstPort			2
	      }
	      Branch {
		DstBlock		"Out1"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "D Latch"
	      SrcPort		      2
	      DstBlock		      "Terminator"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "D Latch"
	      SrcPort		      1
	      DstBlock		      "Switch"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "In1"
	      SrcPort		      1
	      Points		      [0, 0; 55, 0]
	      Branch {
		Points			[0, 15]
		DstBlock		"Relational\nOperator"
		DstPort			1
	      }
	      Branch {
		Points			[65, 0]
		Branch {
		  DstBlock		  "D Latch"
		  DstPort		  1
		}
		Branch {
		  Points		  [0, -105]
		  DstBlock		  "Scope"
		  DstPort		  1
		}
	      }
	    }
	    Line {
	      SrcBlock		      "Constant"
	      SrcPort		      1
	      DstBlock		      "Relational\nOperator"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Relational\nOperator"
	      SrcPort		      1
	      Points		      [5, 0]
	      Branch {
		Points			[0, 55]
		DstBlock		"Logical\nOperator"
		DstPort			1
	      }
	      Branch {
		DstBlock		"D Latch"
		DstPort			2
	      }
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "rfComms_Client"
	  Tag			  "MC9S12target_RFCOMMS"
	  Ports			  [0, 1]
	  Position		  [35, 300, 210, 450]
	  AncestorBlock		  "mc9S12tool/Send user data"
	  List {
	    ListType		    RTWdata
	    format		    "1"
	    RXTXmode		    "RX"
	    serverAddress	    "0xe7e7e7e7"
	    clientAddress	    "0xc2c2c2c2"
	    RFchannel		    "12"
	    ClientNum		    "1"
	    clientflagmask	    "2"
	  }
	  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_FPRXD_In_blkref')"
	  MaskPromptString	  "Sample time|Communication mode (TX, RX)|RF "
"channel number (0 - 127)|Client number|Server address (4 bytes, hexadecimal n"
"otation, e.g. 0xe7e7e7e7)|Client address (4 bytes, hexadecimal notation, e.g."
": 0xc2c2c2c2)|User channel number (1 - 10)|Number of elements to be sent/rece"
"ived|Data Type|Block sends/receives raw data|Block output is 'double'"
	  MaskStyleString	  "edit,popup(Reception (RX)|Transmission (TX)"
"),edit,popup(1|2|3|4|5),edit,edit,edit,edit,popup(SINGLE|INT8|UINT8|INT16|UIN"
"T16|INT32|UINT32|BOOLEAN),checkbox,checkbox"
	  MaskTunableValueString  "on,on,on,on,off,off,on,on,on,on,on"
	  MaskCallbackString	  "||||||||||"
	  MaskEnableString	  "on,on,on,on,on,on,on,on,on,on,on"
	  MaskVisibilityString	  "on,on,on,on,on,on,off,on,off,on,on"
	  MaskToolTipString	  "on,on,on,on,on,on,on,on,on,on,on"
	  MaskVarAliasString	  ",,,,,,,,,,"
	  MaskVariables		  "sampletime=@1;RXTXmode=@2;RFchannel=@3;clie"
"ntNum=@4;serverAddress=&5;clientAddress=&6;channel=@7;buf_size=@8;data_type=@"
"9;format=@10;outformat=@11;"
	  MaskInitialization	  "[buf_sizestr, RXTXmodestr, RFchannelstr, cl"
"ientstr, serverAddressstr, clientAddressstr, channelstr, data_type_str, sampl"
"etime_str] = mbc_rfComms_client(sampletime, RXTXmode, RFchannel, clientNum, s"
"erverAddress, clientAddress, channel, buf_size, data_type, format, outformat)"
";\n"
	  MaskDisplay		  "fprintf('RF mode: %s\\nRF channel: %s\\nCli"
"ent: %s\\nServer address: %s\\nClient address: %s\\nUser channel: %s\\nElemen"
"ts: %s\\nData type: %s\\n Sample rate: %s', RXTXmodestr, RFchannelstr, client"
"str, serverAddressstr, clientAddressstr, channelstr, buf_sizestr, data_type_s"
"tr, sampletime_str)"
	  MaskSelfModifiable	  on
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "0.1|Reception (RX)|12|1|0xe7e7e7e7|0xc2c2c2"
"c2|0|1|UINT8|on|on"
	  System {
	    Name		    "rfComms_Client"
	    Location		    [416, 177, 1130, 342]
	    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 Out"
	      Position		      [470, 52, 540, 88]
	      FontSize		      12
	      DataType		      "double"
	    }
	    Block {
	      BlockType		      "S-Function"
	      Name		      "rfComms_client_sfnc"
	      Tag		      "MC9S12target_RFCOMMS"
	      Ports		      [0, 1]
	      Position		      [280, 49, 420, 91]
	      List {
		ListType		RTWdata
		format			"1"
		RXTXmode		"RX"
		serverAddress		"0xe7e7e7e7"
		clientAddress		"0xc2c2c2c2"
		RFchannel		"12"
		ClientNum		"1"
		clientflagmask		"2"
	      }
	      FontSize		      12
	      FunctionName	      "rfComms_client"
	      Parameters	      "sampletime, RXTXmode, channel, buf_size"
", data_type"
	      MaskIconFrame	      on
	      MaskIconOpaque	      on
	      MaskIconRotate	      "none"
	      MaskIconUnits	      "autoscale"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out1"
	      Position		      [590, 60, 610, 80]
	      FontSize		      12
	    }
	    Line {
	      SrcBlock		      "rfComms_client_sfnc"
	      SrcPort		      1
	      DstBlock		      "Data Type Conversion Out"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Data Type Conversion Out"
	      SrcPort		      1
	      DstBlock		      "Out1"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Outport
	  Name			  "active"
	  Position		  [890, 68, 920, 82]
	}
	Block {
	  BlockType		  Outport
	  Name			  "dir_L"
	  Position		  [890, 223, 920, 237]
	  Port			  "2"
	}
	Block {
	  BlockType		  Outport
	  Name			  "dir_R"
	  Position		  [890, 258, 920, 272]
	  Port			  "3"
	}
	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 {
	  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"

⌨️ 快捷键说明

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