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

📄 oqpsk.mdl

📁 OQPSK的Matlab/Simulink调制解调仿真系统
💻 MDL
📖 第 1 页 / 共 5 页
字号:
      Ports		      [1, 1]
      Position		      [860, 297, 930, 343]
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      Array {
	Type			"Handle"
	Dimension		0
	PropName		"AvailSigsLoadSave"
      }
      MaskType		      "Stateflow"
      MaskDescription	      "Embedded MATLAB block"
      MaskDisplay	      "disp('fcn');"
      MaskSelfModifiable      on
      MaskIconFrame	      on
      MaskIconOpaque	      off
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"Embedded\nMATLAB Function1"
	Location		[257, 457, 812, 717]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "u"
	  Position		  [20, 101, 40, 119]
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Demux
	  Name			  " Demux "
	  Ports			  [1, 1]
	  Position		  [270, 160, 320, 200]
	  Outputs		  "1"
	}
	Block {
	  BlockType		  "S-Function"
	  Name			  " SFunction "
	  Tag			  "Stateflow S-Function OQPSK 1"
	  Ports			  [1, 2]
	  Position		  [180, 100, 230, 160]
	  FunctionName		  "sf_sfun"
	  PortCounts		  "[1 2]"
	  Port {
	    PortNumber		    2
	    Name		    "y"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	    ShowSigGenPortName	    on
	  }
	}
	Block {
	  BlockType		  Terminator
	  Name			  " Terminator "
	  Position		  [460, 171, 480, 189]
	}
	Block {
	  BlockType		  Outport
	  Name			  "y"
	  Position		  [460, 101, 480, 119]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  Name			  "y"
	  Labels		  [0, 0]
	  SrcBlock		  " SFunction "
	  SrcPort		  2
	  DstBlock		  "y"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "u"
	  SrcPort		  1
	  DstBlock		  " SFunction "
	  DstPort		  1
	}
	Line {
	  SrcBlock		  " Demux "
	  SrcPort		  1
	  DstBlock		  " Terminator "
	  DstPort		  1
	}
	Line {
	  SrcBlock		  " SFunction "
	  SrcPort		  1
	  Points		  [0, 65]
	  DstBlock		  " Demux "
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Embedded\nMATLAB Function2"
      Ports		      [1, 1]
      Position		      [315, 57, 385, 103]
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      Array {
	Type			"Handle"
	Dimension		0
	PropName		"AvailSigsLoadSave"
      }
      MaskType		      "Stateflow"
      MaskDescription	      "Embedded MATLAB block"
      MaskDisplay	      "disp('fcn');"
      MaskSelfModifiable      on
      MaskIconFrame	      on
      MaskIconOpaque	      off
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"Embedded\nMATLAB Function2"
	Location		[257, 457, 812, 717]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "u"
	  Position		  [20, 101, 40, 119]
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Demux
	  Name			  " Demux "
	  Ports			  [1, 1]
	  Position		  [270, 160, 320, 200]
	  Outputs		  "1"
	}
	Block {
	  BlockType		  "S-Function"
	  Name			  " SFunction "
	  Tag			  "Stateflow S-Function OQPSK 3"
	  Ports			  [1, 2]
	  Position		  [180, 100, 230, 160]
	  FunctionName		  "sf_sfun"
	  PortCounts		  "[1 2]"
	  Port {
	    PortNumber		    2
	    Name		    "y"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	    ShowSigGenPortName	    on
	  }
	}
	Block {
	  BlockType		  Terminator
	  Name			  " Terminator "
	  Position		  [460, 171, 480, 189]
	}
	Block {
	  BlockType		  Outport
	  Name			  "y"
	  Position		  [460, 101, 480, 119]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  " SFunction "
	  SrcPort		  1
	  Points		  [0, 65]
	  DstBlock		  " Demux "
	  DstPort		  1
	}
	Line {
	  SrcBlock		  " Demux "
	  SrcPort		  1
	  DstBlock		  " Terminator "
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "u"
	  SrcPort		  1
	  DstBlock		  " SFunction "
	  DstPort		  1
	}
	Line {
	  Name			  "y"
	  Labels		  [0, 0]
	  SrcBlock		  " SFunction "
	  SrcPort		  2
	  DstBlock		  "y"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Reference
      Name		      "Error Rate\nCalculation1"
      Ports		      [2, 1]
      Position		      [605, 42, 680, 93]
      SourceBlock	      "commsink2/Error Rate\nCalculation"
      SourceType	      "Error Rate Calculation"
      N			      "0"
      st_delay		      "26"
      cp_mode		      "Entire frame"
      subframe		      "[]"
      PMode		      "Port"
      WsName		      "ErrorVec"
      RsMode2		      off
      stop		      off
      numErr		      "100"
      maxBits		      "1e6"
    }
    Block {
      BlockType		      From
      Name		      "From1"
      Position		      [20, 466, 60, 494]
      DialogController	      "Simulink.DDGSource"
      CloseFcn		      "tagdialog Close"
      GotoTag		      "A"
    }
    Block {
      BlockType		      From
      Name		      "From2"
      Position		      [60, 41, 100, 69]
      DialogController	      "Simulink.DDGSource"
      CloseFcn		      "tagdialog Close"
      GotoTag		      "B"
    }
    Block {
      BlockType		      Goto
      Name		      "Goto1"
      Position		      [910, 85, 950, 115]
      DialogController	      "Simulink.DDGSource"
      GotoTag		      "A"
      TagVisibility	      "local"
    }
    Block {
      BlockType		      Goto
      Name		      "Goto2"
      Position		      [465, 305, 505, 335]
      Orientation	      "left"
      NamePlacement	      "alternate"
      DialogController	      "Simulink.DDGSource"
      GotoTag		      "B"
      TagVisibility	      "local"
    }
    Block {
      BlockType		      Reference
      Name		      "I-Raised Cosine\nTransmit Filter"
      Ports		      [1, 1]
      Position		      [370, 133, 450, 177]
      LinkData {
	BlockName		"Check Signal\nAttributes"
	DialogParameters {
	  Frame			  "Sample-based"
	  Dimensions		  "Scalar (1-D or 2-D)"
	}
	BlockName		"FIR\nInterpolation"
	DialogParameters {
	  framing		  "Maintain input frame size"
	}
      }
      SourceBlock	      "commfilt2/Raised Cosine\nTransmit Filter"
      SourceType	      "Raised Cosine Transmit Filter"
      ShowPortLabels	      on
      filtType		      "Square root"
      D			      "3"
      R			      "0.5"
      sampMode		      "Sample-based"
      N			      "10"
      checkGain		      "User-specified"
      filterGain	      "1.5"
      checkCoeff	      off
      variableName	      "rcTxFilt"
      launchFVT		      off
    }
    Block {
      BlockType		      Reference
      Name		      "Integer Delay"
      Ports		      [1, 1]
      Position		      [420, 63, 455, 97]
      SourceBlock	      "simulink/Discrete/Integer Delay"
      SourceType	      "Integer Delay"
      vinit		      "0.0"
      samptime		      "0.1"
      NumDelays		      "26"
    }
    Block {
      BlockType		      Reference
      Name		      "Integer Delay1"
      Ports		      [1, 1]
      Position		      [295, 193, 330, 227]
      SourceBlock	      "simulink/Discrete/Integer Delay"
      SourceType	      "Integer Delay"
      vinit		      "0"
      samptime		      "0.05"
      NumDelays		      "1"
    }
    Block {
      BlockType		      Reference
      Name		      "OQPSK\nModulator\nBaseband"
      Ports		      [1, 1]
      Position		      [115, 180, 190, 230]
      SourceBlock	      "commdigbbndpm2/OQPSK\nModulator\nBaseband"
      SourceType	      "OQPSK Modulator Baseband"
      InType		      "Integer"
      Ph		      "0"
      numSamp		      "1"
    }
    Block {
      BlockType		      Product
      Name		      "Product"
      Ports		      [2, 1]
      Position		      [585, 147, 615, 178]
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
      SaturateOnIntegerOverflow	off
      SampleTime	      "0.01"
    }
    Block {
      BlockType		      Product
      Name		      "Product1"
      Ports		      [2, 1]
      Position		      [585, 227, 615, 258]
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
      SaturateOnIntegerOverflow	off
      SampleTime	      "0.01"
    }
    Block {
      BlockType		      Product
      Name		      "Product2"
      Ports		      [2, 1]
      Position		      [155, 397, 185, 428]
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
      SaturateOnIntegerOverflow	off
      SampleTime	      "0.01"
    }
    Block {
      BlockType		      Product
      Name		      "Product3"
      Ports		      [2, 1]
      Position		      [155, 537, 185, 568]
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
      SaturateOnIntegerOverflow	off
      SampleTime	      "0.01"
    }
    Block {
      BlockType		      Reference
      Name		      "Q-Raised Cosine\nTransmit Filter1"
      Ports		      [1, 1]
      Position		      [370, 228, 450, 272]
      LinkData {
	BlockName		"Check Signal\nAttributes"
	DialogParameters {
	  Frame			  "Sample-based"
	  Dimensions		  "Scalar (1-D or 2-D)"
	}
	BlockName		"FIR\nInterpolation"
	DialogParameters {
	  framing		  "Maintain input frame size"
	}
      }
      SourceBlock	      "commfilt2/Raised Cosine\nTransmit Filter"
      SourceType	      "Raised Cosine Transmit Filter"
      ShowPortLabels	      on
      filtType		      "Square root"
      D			      "3"
      R			      "0.5"
      sampMode		      "Sample-based"
      N			      "10"
      checkGain		      "User-specified"
      filterGain	      "1.5"
      checkCoeff	      off
      variableName	      "rcTxFilt1"
      launchFVT		      off
    }
    Block {
      BlockType		      Reference
      Name		      "Raised Cosine\nReceive Filter1"
      Ports		      [1, 1]
      Position		      [225, 393, 305, 437]
      LinkData {
	BlockName		"Check Signal\nAttributes"
	DialogParameters {
	  Frame			  "Sample-based"
	  Dimensions		  "Scalar (1-D or 2-D)"
	}
	BlockName		"Downsample"
	DialogParameters {
	  smode			  "Allow multirate"
	  fmode			  "Maintain input frame size"
	}
      }
      SourceBlock	      "commfilt2/Raised Cosine\nReceive Filter"
      SourceType	      "Raised Cosine Receive Filter"
      ShowPortLabels	      on
      filtType		      "Square root"
      N			      "10"
      D			      "3"
      R			      "0.5"
      sampMode		      "Sample-based"
      rateMode		      "None"
      downFactor	      "10"
      downOffset	      "0"
      checkGain		      "User-specified"
      filterGain	      "1.5"
      checkCoeff	      off
      variableName	      "rcRxFilt1"
      launchFVT		      off
    }
    Block {
      BlockType		      Reference
      Name		      "Raised Cosine\nReceive Filter2"
      Ports		      [1, 1]
      Position		      [225, 533, 305, 577]
      LinkData {
	BlockName		"Check Signal\nAttributes"
	DialogParameters {
	  Frame			  "Sample-based"
	  Dimensions		  "Scalar (1-D or 2-D)"
	}
	BlockName		"Downsample"
	DialogParameters {
	  smode			  "Allow multirate"
	  fmode			  "Maintain input frame size"
	}
      }
      SourceBlock	      "commfilt2/Raised Cosine\nReceive Filter"
      SourceType	      "Raised Cosine Receive Filter"
      ShowPortLabels	      on
      filtType		      "Square root"
      N			      "10"
      D			      "3"
      R			      "0.5"
      sampMode		      "Sample-based"
      rateMode		      "None"
      downFactor	      "10"
      downOffset	      "0"
      checkGain		      "User-specified"
      filterGain	      "1.5"
      checkCoeff	      off
      variableName	      "rcRxFilt2"
      launchFVT		      off
    }
    Block {
      BlockType		      Reference
      Name		      "Random Integer\nGenerator1"
      Ports		      [0, 1]
      Position		      [15, 183, 95, 227]
      FontName		      "Arial"
      SourceBlock	      "commrandsrc2/Random Integer\nGenerator"
      SourceType	      "Random Integer Generator"
      ShowPortLabels	      on
      mul		      "4"
      seed		      "64"
      Ts		      "0.05"
      frameBased	      off
      sampPerFrame	      "2"
      orient		      off
    }
    Block {
      BlockType		      RealImagToComplex
      Name		      "Real-Imag to\nComplex"
      Ports		      [2, 1]
      Position		      [360, 478, 390, 507]
      Input		      "Real and imag"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope1"
      Ports		      [1]
      Position		      [890, 414, 920, 446]
      Orientation	      "left"
      NamePlacement	      "alternate"
      Location		      [-183, 424, 830, 729]
      Open		      off
      NumInputPorts	      "1"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"

⌨️ 快捷键说明

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