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

📄 bluetooth_voice.mdl

📁 matlab bluetooth仿真程序
💻 MDL
📖 第 1 页 / 共 5 页
字号:
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Pass Through"
	      Ports		      [1, 1, 0, 0, 0, 0, 0, 1]
	      Position		      [230, 90, 310, 130]
	      ShowPortLabels	      on
	      TreatAsAtomicUnit	      on
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "Auto"
	      System {
		Name			"Pass Through"
		Location		[346, 414, 844, 638]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "In1"
		  Position		  [75, 78, 105, 92]
		  Port			  "1"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  ActionPort
		  Name			  "Action Port"
		  Position		  [170, 15, 229, 43]
		  InitializeStates	  "held"
		  ActionType		  "then"
		}
		Block {
		  BlockType		  Outport
		  Name			  "Out1"
		  Position		  [325, 78, 355, 92]
		  Port			  "1"
		  OutputWhenDisabled	  "held"
		  InitialOutput		  "[]"
		}
		Line {
		  SrcBlock		  "In1"
		  SrcPort		  1
		  DstBlock		  "Out1"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out1"
	      Position		      [450, 223, 480, 237]
	      Port		      "1"
	      OutputWhenDisabled      "held"
	      InitialOutput	      "[]"
	    }
	    Line {
	      SrcBlock		      "Add noise"
	      SrcPort		      1
	      DstBlock		      "Merge"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Pass Through"
	      SrcPort		      1
	      Points		      [55, 0]
	      DstBlock		      "Merge"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "If"
	      SrcPort		      1
	      Points		      [105, 0]
	      DstBlock		      "Pass Through"
	      DstPort		      ifaction
	    }
	    Line {
	      SrcBlock		      "In2"
	      SrcPort		      1
	      Points		      [0, 0; 15, 0]
	      Branch {
		Points			[0, -130]
		DstBlock		"Pass Through"
		DstPort			1
	      }
	      Branch {
		DstBlock		"Add noise"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "If"
	      SrcPort		      2
	      Points		      [45, 0; 0, 150]
	      DstBlock		      "Add noise"
	      DstPort		      ifaction
	    }
	    Line {
	      SrcBlock		      "In1"
	      SrcPort		      1
	      DstBlock		      "If"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Merge"
	      SrcPort		      1
	      DstBlock		      "Out1"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [470, 218, 500, 232]
	  Port			  "1"
	  OutputWhenDisabled	  "held"
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "Mode"
	  SrcPort		  1
	  DstBlock		  "Subsystem"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Subsystem"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Slot 1 enable3"
	  SrcPort		  1
	  DstBlock		  "Generate noise\nonly for slot 1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Generate noise\nonly for slot 1"
	  SrcPort		  1
	  Points		  [5, 0]
	  DstBlock		  "Subsystem"
	  DstPort		  enable
	}
	Line {
	  SrcBlock		  "Slot 1 enable2"
	  SrcPort		  1
	  DstBlock		  "Generate noise\nonly for slot 1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  DstBlock		  "Subsystem"
	  DstPort		  2
	}
      }
    }
    Block {
      BlockType		      Reference
      Name		      "BT CLK rate"
      Ports		      [0, 1]
      Position		      [780, 430, 815, 440]
      SourceBlock	      "dspsrcs3/DSP\nConstant"
      SourceType	      "DSP Constant"
      Value		      "1"
      InterpretAs1D	      off
      SampleMode	      "Discrete"
      Ts		      ".5/1600"
      FramebasedOutput	      off
    }
    Block {
      BlockType		      Reference
      Name		      "BT Path Loss"
      Ports		      [1, 1]
      Position		      [400, 183, 440, 227]
      SourceBlock	      "dspmathops/dB Gain"
      SourceType	      "dB Gain"
      Gain		      "g"
      dB		      "-40"
      intype		      "Amplitude"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Double-click\nto play\nInput Signal"
      Ports		      []
      Position		      [44, 411, 100, 461]
      OpenFcn		      "[Input_Wave,Input_Fs]=wavread('Input.wav');soun"
"d(Input_Wave,Input_Fs);"
      ShowPortLabels	      on
      TreatAsAtomicUnit	      off
      RTWSystemCode	      "Auto"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      MaskType		      "Plot histogram"
      MaskInitialization      "[x,y,x1,y1,x2,y2] = dspblkwao2('icon');"
      MaskDisplay	      "patch(x1,y1,[1 1 1]*.5);\npatch(x2,y2);\nplot(x"
",y); plot(x1,y1)"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"Double-click\nto play\nInput Signal"
	Location		[148, 182, 646, 482]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Double-click\nto play\nOutput Signal"
      Ports		      []
      Position		      [112, 411, 168, 462]
      OpenFcn		      "[Output_Wave,Output_Fs]=wavread('Output.wav');s"
"ound(Output_Wave,Output_Fs);"
      ShowPortLabels	      on
      TreatAsAtomicUnit	      off
      RTWSystemCode	      "Auto"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      MaskType		      "Plot histogram"
      MaskInitialization      "[x,y,x1,y1,x2,y2] = dspblkwao2('icon');"
      MaskDisplay	      "patch(x1,y1,[1 1 1]*.5);\npatch(x2,y2);\nplot(x"
",y); plot(x1,y1)"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"Double-click\nto play\nOutput Signal"
	Location		[148, 182, 646, 482]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "File Dependancies"
      Ports		      []
      Position		      [810, 40, 906, 90]
      ShowName		      off
      ShowPortLabels	      on
      TreatAsAtomicUnit	      off
      RTWSystemCode	      "Auto"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      MaskDisplay	      "disp('File\\nDependancies')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"File Dependancies"
	Location		[193, 210, 818, 457]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Annotation {
	  Position		  [51, 133]
	  HorizontalAlignment	  "left"
	  Text			  "* bluetooth_init.m: Workspace initializatio"
"n routine called by PreLoadFcn\n* device_init.m: Transmitter and receiver mas"
"k initialization function\n* bluetooth_lib.mld: Simuink library containing 80"
"2.11b transmitter, BT hop generator and BT clock\n* poiss_gaus_pr3.m: Variabl"
"e time-step M Code S-function to generate 802.11b possion packets\n* scondemo"
"hecgen.c: S-Function builder source for HEC\n* scondemohecgen.dll: S-Function"
" builder DLL\n* scondemohecgen_wrapper.c: S-Function support file\n* Input.wa"
"v: Input wave file\n* Output.wav: Output wave file"
	  FontName		  "Arial"
	  FontSize		  12
	}
	Annotation {
	  Position		  [249, 48]
	  Text			  "File dependancies: These files need to on M"
"ATLAB path"
	  FontName		  "Arial"
	  FontSize		  14
	  FontWeight		  "bold"
	}
      }
    }
    Block {
      BlockType		      From
      Name		      "From1"
      Position		      [570, 228, 650, 242]
      ShowName		      off
      CloseFcn		      "tagdialog Close"
      GotoTag		      "Tx_Raw_Bits"
    }
    Block {
      BlockType		      From
      Name		      "From10"
      Position		      [415, 428, 525, 442]
      ShowName		      off
      CloseFcn		      "tagdialog Close"
      GotoTag		      "Tx_802_Signal"
    }
    Block {
      BlockType		      From
      Name		      "From12"
      Position		      [415, 468, 545, 482]
      ShowName		      off
      CloseFcn		      "tagdialog Close"
      GotoTag		      "Packet_Envelope_802"
    }
    Block {
      BlockType		      From
      Name		      "From2"
      Position		      [570, 259, 645, 271]
      ShowName		      off
      CloseFcn		      "tagdialog Close"
      GotoTag		      "Tx_Info_Bits"
    }
    Block {
      BlockType		      From
      Name		      "From3"
      Position		      [415, 408, 535, 422]
      ShowName		      off
      CloseFcn		      "tagdialog Close"
      GotoTag		      "Tx_BT_Signal"
    }
    Block {
      BlockType		      From
      Name		      "From7"
      Position		      [415, 448, 530, 462]
      ShowName		      off
      CloseFcn		      "tagdialog Close"
      GotoTag		      "Rx_BT_Signal"
    }
    Block {
      BlockType		      Goto
      Name		      "Goto2"
      Position		      [190, 257, 260, 273]
      ShowName		      off
      GotoTag		      "Tx_Info_Bits"
      TagVisibility	      "global"
    }
    Block {
      BlockType		      Goto
      Name		      "Goto4"
      Position		      [690, 148, 795, 162]
      ShowName		      off
      GotoTag		      "Rx_BT_Signal"
      TagVisibility	      "global"
    }
    Block {
      BlockType		      Goto
      Name		      "Goto5"
      Position		      [265, 148, 370, 162]
      NamePlacement	      "alternate"
      ShowName		      off
      GotoTag		      "Tx_BT_Signal"
      TagVisibility	      "global"
    }
    Block {
      BlockType		      Goto
      Name		      "Goto7"
      Position		      [355, 371, 450, 389]
      ShowName		      off
      GotoTag		      "Tx_802_Signal"
      TagVisibility	      "global"
    }
    Block {
      BlockType		      Goto
      Name		      "Goto8"
      Position		      [190, 227, 260, 243]
      ShowName		      off
      GotoTag		      "Tx_Raw_Bits"
      TagVisibility	      "global"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Instrumentation"
      Ports		      [4]
      Position		      [595, 406, 700, 484]
      OpenFcn		      "temp=get_param(gcb,'On');set_param(gcb,'On', ge"
"t_param(gcb,'Off'));set_param(gcb,'Off', temp);"
      ShowPortLabels	      on
      TreatAsAtomicUnit	      on
      RTWSystemCode	      "Auto"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      MaskType		      "Instrumentation"
      MaskPromptString	      "On|Off"
      MaskStyleString	      "edit,edit"
      MaskTunableValueString  "on,on"
      MaskCallbackString      "|"
      MaskEnableString	      "on,on"
      MaskVisibilityString    "on,on"
      MaskToolTipString	      "on,on"
      MaskVariables	      "On=&1;Off=&2;"
      MaskInitialization      "if strcmp(On,'on')\n  string='Instrumentation\\"
"nis On\\n(Double-Click\\n to Toggle)\\n ';\n  set_param([gcb,'/State'],'Value"
"','1');\nelse\n  string='Instrumentation\\nis Off\\n(Double-Click\\n to Toggl"
"e)\\n ';\n  set_param([gcb,'/State'],'Value','0');\nend\n"
      MaskDisplay	      "disp(string);"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "on|off"
      MaskVariableAliases     ","
      System {
	Name			"Instrumentation"
	Location		[305, 181, 818, 661]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"automatic"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "Tx"
	  Position		  [60, 133, 90, 147]
	  NamePlacement		  "alternate"
	  Port			  "1"
	  LatchInput		  off
	  Interpolate		  on
	}
	Block {
	  BlockType		  Inport
	  Name			  "Tx_802"
	  Position		  [60, 188, 90, 202]
	  NamePlacement		  "alternate"
	  Port			  "2"
	  LatchInput		  off
	  Interpolate		  on
	}
	Block {
	  BlockType		  Inport
	  Name			  "Rx"
	  Position		  [60, 243, 90, 257]
	  NamePlacement		  "alternate"
	  Port			  "3"
	  LatchInput		  off
	  Interpolate		  on
	}
	Block {
	  BlockType		  Inport
	  Name			  "Tx_802 Envelope"
	  Position		  [65, 338, 95, 352]
	  NamePlacement		  "alternate"
	  Port			  "4"
	  LatchInput		  off
	  Interpolate		  on
	}
	Block {
	  BlockType		  Display
	  Name			  "802.11 Packets \nTransmitted"
	  Ports			  [1]
	  Position		  [365, 330, 455, 360]
	  Format		  "short"

⌨️ 快捷键说明

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