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

📄 wifi.mdl

📁 matlab无线通信协议wifi仿真工具箱
💻 MDL
📖 第 1 页 / 共 5 页
字号:
	      BlockChoice	      "No mix from center frequency"
	      TemplateBlock	      "WiFi_lib/Mix from"
	      MemberBlocks	      "Mix from center frequency,No mix from c"
"enter frequency"
	      TreatAsAtomicUnit	      off
	      System {
		Name			"Mix from"
		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		  Inport
		  Name			  "In"
		  Position		  [20, 40, 40, 60]
		  ForegroundColor	  "yellow"
		}
		Block {
		  BlockType		  Reference
		  Name			  "No mix from\ncenter frequency"
		  Ports			  [1, 1]
		  Position		  [100, 40, 140, 80]
		  SourceBlock		  "WiFi_lib/No mix from\ncenter freque"
"ncy"
		  SourceType		  "SubSystem"
		  ShowPortLabels	  on
		  Permissions		  "ReadWrite"
		  TreatAsAtomicUnit	  off
		  RTWSystemCode		  "Auto"
		  RTWFcnNameOpts	  "Auto"
		  RTWFileNameOpts	  "Auto"
		  SimViewingDevice	  off
		  DataTypeOverride	  "UseLocalSettings"
		  MinMaxOverflowLogging	  "UseLocalSettings"
		}
		Block {
		  BlockType		  Outport
		  Name			  "Out"
		  Position		  [200, 40, 220, 60]
		}
		Line {
		  SrcBlock		  "In"
		  SrcPort		  1
		  DstBlock		  "No mix from\ncenter frequency"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "No mix from\ncenter frequency"
		  SrcPort		  1
		  DstBlock		  "Out"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Rx Pulse Shaping Filter"
	      Ports		      [1, 1]
	      Position		      [440, 51, 505, 109]
	      TreatAsAtomicUnit	      off
	      MaskType		      "Tx FIR Pulse Shaping Filter"
	      MaskDescription	      "The pulse shaping filter consits of a R"
"RC (Root Raised Cosinus) with roll-off factor of 0.22. The length of the FIR "
"filter is 96 coeffcients. "
	      MaskPromptString	      "Number of Filter Taps:|RRC Roll-off Fac"
"tor:|Oversampling Factor:"
	      MaskStyleString	      "edit,edit,edit"
	      MaskTunableValueString  "on,on,on"
	      MaskCallbackString      "||"
	      MaskEnableString	      "on,on,on"
	      MaskVisibilityString    "on,on,on"
	      MaskToolTipString	      "on,on,on"
	      MaskVarAliasString      ",,"
	      MaskVariables	      "numTaps=@1;beta=@2;N=@3;"
	      MaskInitialization      "h=N*firrcos(numTaps,5e6,.7,88e6,'rollof"
"f','sqrt',numTaps/2,kaiser(numTaps+1,1));\nassignin('base','h',h );\n\n"
	      MaskDisplay	      "plot( 1:prod( size( h)), h);"
	      MaskIconFrame	      on
	      MaskIconOpaque	      on
	      MaskIconRotate	      "none"
	      MaskIconUnits	      "autoscale"
	      MaskValueString	      "Filter_order|.7|Samples_per_chips"
	      System {
		Name			"Rx Pulse Shaping Filter"
		Location		[463, 223, 875, 455]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "   "
		  Position		  [40, 48, 70, 62]
		}
		Block {
		  BlockType		  Reference
		  Name			  "Direct-Form II\nTranspose Filter"
		  Ports			  [1, 1]
		  Position		  [160, 33, 230, 77]
		  ShowName		  off
		  SourceBlock		  "dsparch3/Direct-Form II\nTranspose "
"Filter"
		  SourceType		  "Direct-Form II Transpose Filter"
		  num			  "h"
		  den			  "1"
		  ic			  "0"
		}
		Block {
		  BlockType		  Outport
		  Name			  " "
		  Position		  [310, 48, 340, 62]
		}
		Line {
		  SrcBlock		  "   "
		  SrcPort		  1
		  DstBlock		  "Direct-Form II\nTranspose Filter"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Direct-Form II\nTranspose Filter"
		  SrcPort		  1
		  DstBlock		  " "
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Filtered"
	      Position		      [675, 73, 705, 87]
	    }
	    Line {
	      SrcBlock		      "Signal"
	      SrcPort		      1
	      DstBlock		      "Mix from"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Mix from"
	      SrcPort		      1
	      DstBlock		      "Rx Pulse Shaping Filter"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Rx Pulse Shaping Filter"
	      SrcPort		      1
	      DstBlock		      "Gain"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Gain"
	      SrcPort		      1
	      DstBlock		      "Filtered"
	      DstPort		      1
	    }
	    Annotation {
	      Name		      "This subsystem is configured\nby the sy"
"stem parameters block"
	      Position		      [318, 148]
	      BackgroundColor	      "yellow"
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Sync to Chip"
	  Ports			  [1, 2]
	  Position		  [265, 102, 360, 178]
	  TreatAsAtomicUnit	  off
	  System {
	    Name		    "Sync to Chip"
	    Location		    [288, 282, 792, 536]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "Rx Signal"
	      Position		      [65, 128, 95, 142]
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Move to chip\nboundary"
	      Ports		      [1, 1]
	      Position		      [175, 116, 205, 154]
	      SourceBlock	      "dspsigops/Integer Delay"
	      SourceType	      "Integer Delay"
	      delay		      "Filter_delay_samples_correction"
	      ic		      "0"
	      reset_popup	      "None"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Sample \nChip"
	      Ports		      [1, 1]
	      Position		      [285, 118, 320, 152]
	      SourceBlock	      "dspsigops/Downsample"
	      SourceType	      "Downsample"
	      N			      "Samples_per_chips"
	      phase		      "0"
	      ic		      "0"
	      smode		      "Allow multirate"
	      fmode		      "Maintain input frame size"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Chips"
	      Position		      [440, 128, 470, 142]
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Rx Signal Aligned"
	      Position		      [440, 183, 470, 197]
	      Port		      "2"
	    }
	    Line {
	      SrcBlock		      "Move to chip\nboundary"
	      SrcPort		      1
	      Points		      [30, 0]
	      Branch {
		DstBlock		"Sample \nChip"
		DstPort			1
	      }
	      Branch {
		Points			[0, 55]
		DstBlock		"Rx Signal Aligned"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Sample \nChip"
	      SrcPort		      1
	      DstBlock		      "Chips"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Rx Signal"
	      SrcPort		      1
	      DstBlock		      "Move to chip\nboundary"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Terminator
	  Name			  "Terminator6"
	  Position		  [965, 130, 985, 150]
	  ShowName		  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "Rx Bits"
	  Position		  [880, 58, 910, 72]
	}
	Block {
	  BlockType		  Outport
	  Name			  "Rx Sig Aligned"
	  Position		  [410, 218, 440, 232]
	  Port			  "2"
	}
	Line {
	  SrcBlock		  "Sync to Chip"
	  SrcPort		  1
	  Points		  [30, 0; 0, 20]
	  DstBlock		  "Move to symbol\nboundary\n"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Move to symbol\nboundary\n"
	  SrcPort		  1
	  DstBlock		  "Move to frame\nboundary\n"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Move to frame\nboundary\n"
	  SrcPort		  1
	  DstBlock		  "Demodulate and despread"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Rx Signal"
	  SrcPort		  1
	  DstBlock		  "Rx Front"
	  DstPort		  1
	}
	Line {
	  Name			  "PSDU"
	  Labels		  [0, 0]
	  SrcBlock		  "Deframing"
	  SrcPort		  1
	  DstBlock		  "Terminator6"
	  DstPort		  1
	}
	Line {
	  Name			  "PPDU"
	  Labels		  [0, 0]
	  SrcBlock		  "Demodulate and despread"
	  SrcPort		  1
	  Points		  [-5, 0; 70, 0]
	  Branch {
	    DstBlock		    "Deframing"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, -75]
	    DstBlock		    "Rx Bits"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Rx Front"
	  SrcPort		  1
	  DstBlock		  "Sync to Chip"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sync to Chip"
	  SrcPort		  2
	  Points		  [15, 0; 0, 65]
	  DstBlock		  "Rx Sig Aligned"
	  DstPort		  1
	}
	Annotation {
	  Name			  "This subsystem is configured\nby the system"
" parameters block"
	  Position		  [698, 243]
	  BackgroundColor	  "yellow"
	}
      }
    }
    Block {
      BlockType		      Selector
      Name		      "Selector"
      Ports		      [1, 1]
      Position		      [655, 475, 690, 505]
      ShowName		      off
      Elements		      "[1: PSDU_size]"
      InputPortWidth	      "PPDU_size"
    }
    Block {
      BlockType		      Reference
      Name		      "Subsystem1"
      Ports		      [1, 1]
      Position		      [745, 431, 815, 459]
      ShowName		      off
      SourceBlock	      "WiFi_lib/Subsystem3"
      SourceType	      "Display sample rate for framebased signals"
      Units		      "MHz"
    }
    Block {
      BlockType		      Reference
      Name		      "Subsystem2"
      Ports		      [1, 1]
      Position		      [745, 476, 815, 504]
      ShowName		      off
      SourceBlock	      "WiFi_lib/Subsystem3"
      SourceType	      "Display sample rate for framebased signals"
      Units		      "MHz"
    }
    Block {
      BlockType		      Reference
      Name		      "Subsystem3"
      Ports		      [1, 1]
      Position		      [745, 386, 815, 414]
      ShowName		      off
      SourceBlock	      "WiFi_lib/Subsystem3"
      SourceType	      "Display sample rate for framebased signals"
      Units		      "MHz"
    }
    Block {
      BlockType		      SubSystem
      Name		      "System Parameters"
      Ports		      []
      Position		      [71, 43, 178, 95]
      BackgroundColor	      "yellow"
      ShowName		      off
      AttributesFormatString  "Rate = %<Mode>\\nPacket Size = %<Packet_size> B"
"ytes\\nShort Preamble is %<Short_preamble>\\nChannel Number = %<Channel_numbe"
"r>\\nChannel Type =  %<Channel_type>\\nChannel Noise (EsNo) =  %<EsNo> dB\\n"
      FontName		      "Arial"
      FontSize		      11
      TreatAsAtomicUnit	      off
      MaskType		      "Set System Parameters"
      MaskDescription	      "These system parameters set-up configurable sub"
"systems in the model to implmentedort the requested parameters. Calls wifi_in"
"it.m to perfom this task as well as calculate delays."
      MaskPromptString	      "Mode/Data Rate |Packet Size (Bytes)|Use Short P"
"reamble|Channel Number|Channel Type|Channel EsNo"
      MaskStyleString	      "popup(1Mbps|2Mbps|5.5Mbps|11Mbps),edit,checkbox"
",popup(1|2|3|4|5|6|7|8|9|10|11),popup(None|AWGN),edit"
      MaskTunableValueString  "on,on,on,on,on,on"
      MaskCallbackString      "||||if strcmp(get_param(gcb,'Channel_type'),'AW"
"GN')\n	set_param(gcb,'MaskEnables',{'on' 'on' 'on' 'on' 'on' 'on'})\ne"
"lse\n	set_param(gcb,'MaskEnables',{'on' 'on' 'on' 'on' 'on' 'off'})\ne"
"nd\n	|"
      MaskEnableString	      "on,on,on,on,on,on"
      MaskVisibilityString    "on,on,on,on,on,on"
      MaskToolTipString	      "on,on,on,on,on,on"
      MaskVarAliasString      ",,,,,"
      MaskVariables	      "Mode=@1;Packet_size=@2;Short_preamble=@3;Channe"
"l_number=@4;Channel_type=&5;EsNo=@6;"
      MaskInitialization      "WiFi_init\n"
      MaskDisplay	      "disp('System Parameters')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "11Mbps|1024|on|6|AWGN|EsNo"
      System {
	Name			"System Parameters"
	Location		[433, 403, 931, 703]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Transmitter"
      Ports		      [0, 3]
      Position		      [75, 201, 190, 279]
      TreatAsAtomicUnit	      off
      System {
	Name			"Transmitter"
	Location		[14, 244, 1013, 576]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Reference
	  Name			  "Convert\nbytes bits"
	  Ports			  [1, 1]
	  Position		  [165, 136, 180, 174]
	  SourceBlock		  "commutil2/Integer to Bit\nConverter"
	  SourceType		  "Integer to Bit Converter"
	  nbits			  "8"
	  Port {
	    PortNumber		    1
	    Name		    "PSDU"
	    TestPoint		    off
	    LinearAnalysisOutput    off
	    LinearAnalysisInput	    off
	    RTWStorageClass	    "Auto"
	    DataLogging		    off
	    DataLoggingNameMode	    "SignalName"
	    DataLoggingDecimateData off
	    DataLoggingDecimation   "2"
	    DataLoggingLimitDataPoints off
	    DataLoggingMaxPoints    "5000"
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Framing by adding\nPLCP preamble and header"
	  Ports			  [1, 1]
	  Position		  [230, 114, 315, 196]
	  TreatAsAtomicUnit	  off
	  Port {
	    PortNumber		    1
	   

⌨️ 快捷键说明

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