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

📄 basebandex.mdl

📁 This project allows you to learn communication systems in greater depth. It contains the Simulink fi
💻 MDL
字号:
Model {
  Name			  "basebandex"
  Version		  3.00
  SimParamPage		  "Solver"
  SampleTimeColors	  off
  InvariantConstants	  off
  WideVectorLines	  off
  ShowLineWidths	  off
  ShowPortDataTypes	  off
  StartTime		  "0.0"
  StopTime		  "10"
  SolverMode		  "SingleTasking"
  Solver		  "VariableStepDiscrete"
  RelTol		  "1e-3"
  AbsTol		  "1e-6"
  Refine		  "1"
  MaxStep		  "auto"
  InitialStep		  "auto"
  FixedStep		  "auto"
  MaxOrder		  5
  OutputOption		  "RefineOutputTimes"
  OutputTimes		  "[]"
  LoadExternalInput	  off
  ExternalInput		  "[t, u]"
  SaveTime		  off
  TimeSaveName		  "tout"
  SaveState		  off
  StateSaveName		  "xout"
  SaveOutput		  off
  OutputSaveName	  "yout"
  LoadInitialState	  off
  InitialState		  "xInitial"
  SaveFinalState	  off
  FinalStateName	  "xFinal"
  SaveFormat		  "Matrix"
  LimitMaxRows		  off
  MaxRows		  "1000"
  Decimation		  "1"
  AlgebraicLoopMsg	  "warning"
  MinStepSizeMsg	  "warning"
  UnconnectedInputMsg	  "warning"
  UnconnectedOutputMsg	  "warning"
  UnconnectedLineMsg	  "warning"
  InheritedTsInSrcMsg	  "warning"
  IntegerOverflowMsg	  "none"
  UnnecessaryDatatypeConvMsg "none"
  Int32ToFloatConvMsg	  "warning"
  SignalLabelMismatchMsg  "none"
  ConsistencyChecking	  "off"
  ZeroCross		  on
  SimulationMode	  "normal"
  BlockDataTips		  on
  BlockParametersDataTip  on
  BlockAttributesDataTip  off
  BlockPortWidthsDataTip  off
  BlockDescriptionStringDataTip	off
  BlockMaskParametersDataTip off
  ToolBar		  on
  StatusBar		  on
  BrowserShowLibraryLinks off
  BrowserLookUnderMasks	  off
  OptimizeBlockIOStorage  on
  BufferReuse		  on
  BooleanDataType	  off
  RTWSystemTargetFile	  "grt.tlc"
  RTWInlineParameters	  off
  RTWRetainRTWFile	  off
  RTWTemplateMakefile	  "grt_default_tmf"
  RTWMakeCommand	  "make_rtw"
  RTWGenerateCodeOnly	  off
  ExtModeMexFile	  "ext_comm"
  ExtModeBatchMode	  off
  ExtModeTrigType	  "manual"
  ExtModeTrigMode	  "oneshot"
  ExtModeTrigPort	  "1"
  ExtModeTrigElement	  "any"
  ExtModeTrigDuration	  1000
  ExtModeTrigHoldOff	  0
  ExtModeTrigDelay	  0
  ExtModeTrigDirection	  "rising"
  ExtModeTrigLevel	  0
  ExtModeArchiveMode	  "off"
  ExtModeAutoIncOneShot	  off
  ExtModeIncDirWhenArm	  off
  ExtModeAddSuffixToVar	  off
  ExtModeWriteAllDataToWs off
  ExtModeArmWhenConnect	  off
  PreLoadFcn		  "ts=0.01;[num,den]=butter(2,40*ts);td=0.1;M=8;"
  Created		  "Wed Jun 10 18:10:40 1998"
  Creator		  "tdelve"
  UpdateHistory		  "UpdateHistoryNever"
  ModifiedByFormat	  "%<Auto>"
  ModifiedDateFormat	  "%<Auto>"
  LastModifiedDate	  "Sun Dec 05 16:18:48 1999"
  ModelVersionFormat	  "1.%<AutoIncrement:42>"
  ConfigurationManager	  "none"
  BlockDefaults {
    Orientation		    "right"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    NamePlacement	    "normal"
    FontName		    "Helvetica"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
    ShowName		    on
  }
  AnnotationDefaults {
    HorizontalAlignment	    "center"
    VerticalAlignment	    "middle"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    FontName		    "Helvetica"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  LineDefaults {
    FontName		    "Helvetica"
    FontSize		    9
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  System {
    Name		    "basebandex"
    Location		    [212, 135, 980, 380]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "usletter"
    PaperUnits		    "inches"
    ZoomFactor		    "100"
    AutoZoom		    on
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      Reference
      Name		      "AWGN\nchannel"
      Ports		      [1, 1, 0, 0, 0]
      Position		      [240, 63, 320, 107]
      SourceBlock	      "commchan/AWGN\nchannel"
      SourceType	      "AWGN Channel"
      seed		      "123456"
      noiseMode		      "Variance from mask"
      EsNodB		      "10"
      Ps		      "1"
      Tsym		      "1"
      variance		      "0.06"
    }
    Block {
      BlockType		      Display
      Name		      "Bit Error Details"
      Ports		      [1, 0, 0, 0, 0]
      Position		      [665, 20, 755, 100]
      Format		      "short"
      Decimation	      "1"
      Floating		      off
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Reference
      Name		      "Error Rate Calculation1"
      Ports		      [2, 1, 0, 0, 0]
      Position		      [555, 38, 635, 82]
      SourceBlock	      "commsink/Error Rate Calculation"
      SourceType	      "Error Rate Calculation"
      Ts		      "td"
      N			      "1"
      PMode		      "Port"
      WsName		      "ErrorVec"
      RsMode2		      off
    }
    Block {
      BlockType		      Reference
      Name		      "Error Rate Calculation2"
      Ports		      [2, 1, 0, 0, 0]
      Position		      [555, 148, 635, 192]
      SourceBlock	      "commsink/Error Rate Calculation"
      SourceType	      "Error Rate Calculation"
      Ts		      "td"
      N			      "1"
      PMode		      "Port"
      WsName		      "ErrorVec"
      RsMode2		      off
    }
    Block {
      BlockType		      Reference
      Name		      "Integer scalar\nto vector"
      Ports		      [1, 1, 0, 0, 0]
      Position		      [475, 14, 525, 56]
      ShowName		      off
      SourceBlock	      "commutil/Integer scalar\nto vector"
      SourceType	      "Decimal to base M vector"
      len		      "log2(M)"
      p			      "2"
      MSBFlag		      off
    }
    Block {
      BlockType		      Reference
      Name		      "Integer scalar\nto vector1"
      Ports		      [1, 1, 0, 0, 0]
      Position		      [475, 64, 525, 106]
      ShowName		      off
      SourceBlock	      "commutil/Integer scalar\nto vector"
      SourceType	      "Decimal to base M vector"
      len		      "log2(M)"
      p			      "2"
      MSBFlag		      off
    }
    Block {
      BlockType		      Reference
      Name		      "MASK demod\nbaseband"
      Ports		      [1, 1, 0, 0, 0]
      Position		      [345, 63, 425, 107]
      SourceBlock	      "commdigbbnd/MASK demod\nbaseband"
      SourceType	      "Baseband MASK demodulation"
      M			      "M"
      td		      "[td, td-ts]"
      Ph		      "0"
      num		      "num"
      den		      "den"
      ts		      "ts"
    }
    Block {
      BlockType		      Reference
      Name		      "MASK mod\nbaseband"
      Ports		      [1, 1, 0, 0, 0]
      Position		      [135, 63, 215, 107]
      SourceBlock	      "commdigbbnd/MASK mod\nbaseband"
      SourceType	      "Baseband MASK modulation"
      M			      "M"
      td		      "td"
      Ph		      "0"
    }
    Block {
      BlockType		      Reference
      Name		      "Sampled read\nfrom wksp"
      Ports		      [0, 1, 0, 0, 0]
      Position		      [15, 63, 95, 107]
      ShowName		      off
      SourceBlock	      "commsource/Sampled read\nfrom wksp"
      SourceType	      "Sampled read from workspace"
      X			      "randint(100,1,M)"
      td		      "td"
      cyc		      on
    }
    Block {
      BlockType		      Display
      Name		      "Symbol Error Details"
      Ports		      [1, 0, 0, 0, 0]
      Position		      [665, 130, 755, 210]
      Format		      "short"
      Decimation	      "1"
      Floating		      off
      SampleTime	      "-1"
    }
    Line {
      SrcBlock		      "AWGN\nchannel"
      SrcPort		      1
      DstBlock		      "MASK demod\nbaseband"
      DstPort		      1
    }
    Line {
      SrcBlock		      "MASK mod\nbaseband"
      SrcPort		      1
      DstBlock		      "AWGN\nchannel"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Sampled read\nfrom wksp"
      SrcPort		      1
      Points		      [15, 0]
      Branch {
	DstBlock		"MASK mod\nbaseband"
	DstPort			1
      }
      Branch {
	Labels			[2, 0]
	Points			[0, -50; 335, 0]
	Branch {
	  DstBlock		  "Integer scalar\nto vector"
	  DstPort		  1
	}
	Branch {
	  Points		  [0, 125]
	  DstBlock		  "Error Rate Calculation2"
	  DstPort		  1
	}
      }
    }
    Line {
      SrcBlock		      "Integer scalar\nto vector"
      SrcPort		      1
      Points		      [10, 0]
      DstBlock		      "Error Rate Calculation1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Integer scalar\nto vector1"
      SrcPort		      1
      Points		      [10, 0]
      DstBlock		      "Error Rate Calculation1"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Error Rate Calculation1"
      SrcPort		      1
      DstBlock		      "Bit Error Details"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Error Rate Calculation2"
      SrcPort		      1
      DstBlock		      "Symbol Error Details"
      DstPort		      1
    }
    Line {
      SrcBlock		      "MASK demod\nbaseband"
      SrcPort		      1
      Points		      [5, 0]
      Branch {
	DstBlock		"Integer scalar\nto vector1"
	DstPort			1
      }
      Branch {
	Points			[0, 95]
	DstBlock		"Error Rate Calculation2"
	DstPort			2
      }
    }
  }
}

⌨️ 快捷键说明

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