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

📄 rfcomm_client_rx_pth_client3.mdl

📁 simulink real-time workshop for dragon12 development board from
💻 MDL
📖 第 1 页 / 共 2 页
字号:
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Display"
      Ports		      [8]
      Position		      [650, 80, 785, 285]
      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\\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 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		  "In8"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  8
	}
	Line {
	  SrcBlock		  "In7"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  7
	}
	Line {
	  SrcBlock		  "In6"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  6
	}
	Line {
	  SrcBlock		  "In5"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  5
	}
	Line {
	  SrcBlock		  "In4"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  4
	}
	Line {
	  SrcBlock		  "In3"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "In2"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Mux"
	  SrcPort		  1
	  Points		  [0, -30]
	  DstBlock		  "Digital Output SFcn"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  Points		  [95, 0]
	  DstBlock		  "Mux"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      MultiPortSwitch
      Name		      "Multiport\nSwitch"
      Ports		      [5, 1]
      Position		      [425, 88, 465, 282]
      ShowName		      off
      ShowAdditionalParam     on
      zeroidx		      on
      InputSameDT	      off
    }
    Block {
      BlockType		      SubSystem
      Name		      "rfComms_Client"
      Tag		      "MC9S12target_RFCOMMS"
      Ports		      [0, 1]
      Position		      [30, 30, 205, 180]
      AncestorBlock	      "mc9S12tool/Send user data"
      List {
	ListType		RTWdata
	format			"1"
	RXTXmode		"RX"
	serverAddress		"0xe7e7e7e7"
	clientAddress		"0xc2c2c2c2"
	RFchannel		"12"
	ClientNum		"3"
	clientflagmask		"8"
      }
      FontSize		      12
      ShowPortLabels	      off
      TreatAsAtomicUnit	      off
      MaskHelp		      "helpview('C:\\Documents and Settings\\fwornle\\"
"My Documents\\frank\\_cProgs\\Motorola\\rtmc9S12_CW_R13\\bin\\mc9S12.map', 'm"
"c9S12_FPRXD_In_blkref')"
      MaskPromptString	      "Sample time|Communication mode (TX, RX)|RF chan"
"nel number (0 - 127)|Client number|Server address (4 bytes, hexadecimal notat"
"ion, e.g. 0xe7e7e7e7)|Client address (4 bytes, hexadecimal notation, e.g.: 0x"
"c2c2c2c2)|User channel number (0 - 9)|Number of elements to be sent/received"
"|Data Type|Block sends/receives raw data|Block output is 'double'"
      MaskStyleString	      "edit,popup(Reception (RX)|Transmission (TX)),ed"
"it,popup(1|2|3|4|5),edit,edit,edit,edit,popup(SINGLE|INT8|UINT8|INT16|UINT16|"
"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;clientNu"
"m=@4;serverAddress=&5;clientAddress=&6;channel=@7;buf_size=@8;data_type=@9;fo"
"rmat=@10;outformat=@11;"
      MaskInitialization      "[buf_sizestr, RXTXmodestr, RFchannelstr, client"
"str, serverAddressstr, clientAddressstr, channelstr, data_type_str, sampletim"
"e_str] = mbc_rfComms_client(sampletime, RXTXmode, RFchannel, clientNum, serve"
"rAddress, clientAddress, channel, buf_size, data_type, format, outformat);\n"
      MaskDisplay	      "fprintf('RF mode: %s\\nRF channel: %s\\nClient:"
" %s\\nServer address: %s\\nClient address: %s\\nUser channel: %s\\nElements: "
"%s\\nData type: %s\\n Sample rate: %s', RXTXmodestr, RFchannelstr, clientstr,"
" serverAddressstr, clientAddressstr, channelstr, buf_sizestr, data_type_str, "
"sampletime_str)"
      MaskSelfModifiable      on
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "0.1|Reception (RX)|12|3|0xe7e7e7e7|0xc2c2c2c2|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		    "3"
	    clientflagmask	    "8"
	  }
	  FontSize		  12
	  FunctionName		  "rfComms_client"
	  Parameters		  "sampletime, RXTXmode, channel, buf_size, da"
"ta_type"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [590, 60, 610, 80]
	  FontSize		  12
	}
	Line {
	  SrcBlock		  "Data Type Conversion Out"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "rfComms_client_sfnc"
	  SrcPort		  1
	  DstBlock		  "Data Type Conversion Out"
	  DstPort		  1
	}
      }
    }
    Line {
      SrcBlock		      "'0'"
      SrcPort		      1
      DstBlock		      "Multiport\nSwitch"
      DstPort		      2
    }
    Line {
      SrcBlock		      "'1'"
      SrcPort		      1
      DstBlock		      "Multiport\nSwitch"
      DstPort		      3
    }
    Line {
      SrcBlock		      "'2'"
      SrcPort		      1
      DstBlock		      "Multiport\nSwitch"
      DstPort		      4
    }
    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		      "'3'"
      SrcPort		      1
      DstBlock		      "Multiport\nSwitch"
      DstPort		      5
    }
    Line {
      SrcBlock		      "0 ... 3"
      SrcPort		      1
      DstBlock		      "Multiport\nSwitch"
      DstPort		      1
    }
    Line {
      SrcBlock		      "rfComms_Client"
      SrcPort		      1
      DstBlock		      "0 ... 3"
      DstPort		      1
    }
    Annotation {
      Name		      "server communicates\nwith up to 5 clients \nsim"
"ultaneously; this is \nclient number 3"
      Position		      [121, 268]
      FontName		      "Arial"
      FontSize		      12
      FontWeight	      "bold"
    }
  }
}

⌨️ 快捷键说明

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