Model {
  Name			  "eml_eqdemo"
  Version		  6.2
  MdlSubVersion		  0
  GraphicalInterface {
    NumRootInports	    0
    NumRootOutports	    0
    ParameterArgumentNames  ""
    ComputedModelVersion    "1.468"
    NumModelReferences	    0
    NumTestPointedSignals   0
  }
  SavedCharacterEncoding  "US-ASCII"
  SaveDefaultBlockParams  on
  SampleTimeColors	  off
  LibraryLinkDisplay	  "none"
  WideLines		  off
  ShowLineDimensions	  on
  ShowPortDataTypes	  off
  ShowLoopsOnError	  on
  IgnoreBidirectionalLines off
  ShowStorageClass	  off
  ShowTestPointIcons	  on
  ShowViewerIcons	  on
  SortedOrder		  off
  ExecutionContextIcon	  off
  ShowLinearizationAnnotations on
  RecordCoverage	  on
  CovPath		  "/"
  CovSaveName		  "covdata"
  CovMetricSettings	  "dmw"
  CovNameIncrementing	  off
  CovHtmlReporting	  on
  covSaveCumulativeToWorkspaceVar on
  CovSaveSingleToWorkspaceVar on
  CovCumulativeVarName	  "covCumulativeData"
  CovCumulativeReport	  off
  CovReportOnPause	  on
  ScopeRefreshTime	  0.035000
  OverrideScopeRefreshTime on
  DisableAllScopes	  off
  DataTypeOverride	  "UseLocalSettings"
  MinMaxOverflowLogging	  "UseLocalSettings"
  MinMaxOverflowArchiveMode "Overwrite"
  BlockNameDataTip	  off
  BlockParametersDataTip  off
  BlockDescriptionStringDataTip	off
  ToolBar		  on
  StatusBar		  on
  BrowserShowLibraryLinks off
  BrowserLookUnderMasks	  off
  CloseFcn		  "rtwprivate ssgencode ModelCloseRequest eqdemo"
  InitFcn		  "initsim"
  Created		  "Mon Nov 18 17:08:03 2002"
  Creator		  "The MathWorks Inc."
  UpdateHistory		  "UpdateHistoryNever"
  ModifiedByFormat	  "%<Auto>"
  LastModifiedBy	  "batserve"
  ModifiedDateFormat	  "%<Auto>"
  LastModifiedDate	  "Sat Jan 22 19:11:39 2005"
  ModelVersionFormat	  "1.%<AutoIncrement:468>"
  ConfigurationManager	  "None"
  LinearizationMsg	  "none"
  Profile		  off
  ParamWorkspaceSource	  "MATLABWorkspace"
  AccelSystemTargetFile	  "accel.tlc"
  AccelTemplateMakefile	  "accel_default_tmf"
  AccelMakeCommand	  "make_rtw"
  TryForcingSFcnDF	  off
  ExtModeBatchMode	  off
  ExtModeEnableFloating	  on
  ExtModeTrigType	  "manual"
  ExtModeTrigMode	  "normal"
  ExtModeTrigPort	  "1"
  ExtModeTrigElement	  "any"
  ExtModeTrigDuration	  1000
  ExtModeTrigDurationFloating "auto"
  ExtModeTrigHoldOff	  0
  ExtModeTrigDelay	  0
  ExtModeTrigDirection	  "rising"
  ExtModeTrigLevel	  0
  ExtModeArchiveMode	  "off"
  ExtModeAutoIncOneShot	  off
  ExtModeIncDirWhenArm	  off
  ExtModeAddSuffixToVar	  off
  ExtModeWriteAllDataToWs off
  ExtModeArmWhenConnect	  on
  ExtModeSkipDownloadWhenConnect off
  ExtModeLogAll		  on
  ExtModeAutoUpdateStatusClock off
  BufferReuse		  on
  StrictBusMsg		  "None"
  ProdHWDeviceType	  "32-bit Generic"
  ShowModelReferenceBlockVersion off
  ShowModelReferenceBlockIO off
  Array {
    Type		    "Handle"
    Dimension		    1
    Simulink.ConfigSet {
      $ObjectID		      1
      Version		      "1.1.0"
      Array {
	Type			"Handle"
	Dimension		7
	Simulink.SolverCC {
	  $ObjectID		  2
	  Version		  "1.1.0"
	  StartTime		  "0.0"
	  StopTime		  "inf"
	  AbsTol		  "auto"
	  FixedStep		  "auto"
	  InitialStep		  "auto"
	  MaxNumMinSteps	  "-1"
	  MaxOrder		  5
	  ExtrapolationOrder	  4
	  NumberNewtonIterations  1
	  MaxStep		  "auto"
	  MinStep		  "auto"
	  RelTol		  "1e-3"
	  SolverMode		  "Auto"
	  Solver		  "FixedStepDiscrete"
	  SolverName		  "FixedStepDiscrete"
	  ZeroCrossControl	  "UseLocalSettings"
	  AlgebraicLoopSolver	  "TrustRegion"
	  SolverResetMethod	  "Fast"
	  PositivePriorityOrder	  off
	  AutoInsertRateTranBlk	  off
	  SampleTimeConstraint	  "Unconstrained"
	  RateTranMode		  "Deterministic"
	}
	Simulink.DataIOCC {
	  $ObjectID		  3
	  Version		  "1.1.0"
	  Decimation		  "1"
	  ExternalInput		  "[t, u]"
	  FinalStateName	  "xFinal"
	  InitialState		  "xInitial"
	  LimitDataPoints	  on
	  MaxDataPoints		  "1000"
	  LoadExternalInput	  off
	  LoadInitialState	  off
	  SaveFinalState	  off
	  SaveFormat		  "Array"
	  SaveOutput		  on
	  SaveState		  off
	  SignalLogging		  on
	  SaveTime		  on
	  StateSaveName		  "xout"
	  TimeSaveName		  "tout"
	  OutputSaveName	  "yout"
	  SignalLoggingName	  "logsOut"
	  OutputOption		  "RefineOutputTimes"
	  OutputTimes		  "[]"
	  Refine		  "1"
	}
	Simulink.OptimizationCC {
	  $ObjectID		  4
	  Version		  "1.1.0"
	  BlockReduction	  on
	  BooleanDataType	  on
	  ConditionallyExecuteInputs on
	  InlineParams		  off
	  InlineInvariantSignals  off
	  OptimizeBlockIOStorage  on
	  BufferReuse		  on
	  EnforceIntegerDowncast  on
	  ExpressionFolding	  on
	  FoldNonRolledExpr	  on
	  LocalBlockOutputs	  on
	  ParameterPooling	  on
	  RollThreshold		  5
	  SystemCodeInlineAuto	  off
	  StateBitsets		  off
	  DataBitsets		  off
	  UseTempVars		  off
	  ZeroExternalMemoryAtStartup on
	  ZeroInternalMemoryAtStartup on
	  InitFltsAndDblsToZero	  on
	  NoFixptDivByZeroProtection off
	  EfficientFloat2IntCast  off
	  OptimizeModelRefInitCode off
	  LifeSpan		  "1"
	  BufferReusableBoundary  on
	}
	Simulink.DebuggingCC {
	  $ObjectID		  5
	  Version		  "1.1.0"
	  RTPrefix		  "error"
	  ConsistencyChecking	  "none"
	  ArrayBoundsChecking	  "none"
	  SignalInfNanChecking	  "none"
	  AlgebraicLoopMsg	  "warning"
	  ArtificialAlgebraicLoopMsg "warning"
	  CheckSSInitialOutputMsg on
	  CheckExecutionContextPreStartOutputMsg off
	  CheckExecutionContextRuntimeOutputMsg	off
	  SignalResolutionControl "TryResolveAllWithWarning"
	  BlockPriorityViolationMsg "warning"
	  MinStepSizeMsg	  "warning"
	  SolverPrmCheckMsg	  "none"
	  InheritedTsInSrcMsg	  "warning"
	  DiscreteInheritContinuousMsg "warning"
	  MultiTaskDSMMsg	  "warning"
	  MultiTaskRateTransMsg	  "error"
	  SingleTaskRateTransMsg  "none"
	  TasksWithSamePriorityMsg "warning"
	  CheckMatrixSingularityMsg "none"
	  IntegerOverflowMsg	  "warning"
	  Int32ToFloatConvMsg	  "warning"
	  ParameterDowncastMsg	  "error"
	  ParameterOverflowMsg	  "error"
	  ParameterPrecisionLossMsg "warning"
	  UnderSpecifiedDataTypeMsg "none"
	  UnnecessaryDatatypeConvMsg "none"
	  VectorMatrixConversionMsg "none"
	  InvalidFcnCallConnMsg	  "error"
	  FcnCallInpInsideContextMsg "Use local settings"
	  SignalLabelMismatchMsg  "none"
	  UnconnectedInputMsg	  "warning"
	  UnconnectedOutputMsg	  "warning"
	  UnconnectedLineMsg	  "warning"
	  SFcnCompatibilityMsg	  "none"
	  UniqueDataStoreMsg	  "none"
	  BusObjectLabelMismatch  "warning"
	  RootOutportRequireBusObject "warning"
	  AssertControl		  "UseLocalSettings"
	  EnableOverflowDetection off
	  ModelReferenceIOMsg	  "none"
	  ModelReferenceVersionMismatchMessage "none"
	  ModelReferenceIOMismatchMessage "none"
	  ModelReferenceCSMismatchMessage "none"
	  ModelReferenceSimTargetVerbose off
	  UnknownTsInhSupMsg	  "warning"
	  ModelReferenceDataLoggingMessage "warning"
	  ModelReferenceSymbolNameMessage "warning"
	  ModelReferenceExtraNoncontSigs "error"
	}
	Simulink.HardwareCC {
	  $ObjectID		  6
	  Version		  "1.1.0"
	  ProdBitPerChar	  8
	  ProdBitPerShort	  16
	  ProdBitPerInt		  32
	  ProdBitPerLong	  32
	  ProdIntDivRoundTo	  "Undefined"
	  ProdEndianess		  "Unspecified"
	  ProdWordSize		  32
	  ProdShiftRightIntArith  on
	  ProdHWDeviceType	  "32-bit Generic"
	  TargetBitPerChar	  8
	  TargetBitPerShort	  16
	  TargetBitPerInt	  32
	  TargetBitPerLong	  32
	  TargetShiftRightIntArith on
	  TargetIntDivRoundTo	  "Undefined"
	  TargetEndianess	  "Unspecified"
	  TargetWordSize	  32
	  TargetTypeEmulationWarnSuppressLevel 0
	  TargetPreprocMaxBitsSint 32
	  TargetPreprocMaxBitsUint 32
	  TargetHWDeviceType	  "Specified"
	  TargetUnknown		  on
	  ProdEqTarget		  on
	}
	Simulink.ModelReferenceCC {
	  $ObjectID		  7
	  Version		  "1.1.0"
	  UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange"
	  CheckModelReferenceTargetMessage "error"
	  ModelReferenceNumInstancesAllowed "Multi"
	  ModelReferencePassRootInputsByReference on
	  ModelReferenceMinAlgLoopOccurrences off
	}
	Simulink.RTWCC {
	  $BackupClass		  "Simulink.RTWCC"
	  $ObjectID		  8
	  Version		  "1.1.0"
	  SystemTargetFile	  "ert.tlc"
	  GenCodeOnly		  off
	  MakeCommand		  "make_rtw"
	  TemplateMakefile	  "ert_default_tmf"
	  GenerateReport	  on
	  SaveLog		  off
	  RTWVerbose		  on
	  RetainRTWFile		  off
	  ProfileTLC		  off
	  TLCDebug		  off
	  TLCCoverage		  off
	  TLCAssert		  off
	  ProcessScriptMode	  "Default"
	  ConfigurationMode	  "Optimized"
	  ProcessScript		  "ert_make_rtw_hook"
	  ConfigAtBuild		  off
	  IncludeHyperlinkInReport off
	  LaunchReport		  on
	  TargetLang		  "C"
	  Array {
	    Type		    "Handle"
	    Dimension		    2
	    Simulink.CodeAppCC {
	      $ObjectID		      9
	      Version		      "1.1.0"
	      ForceParamTrailComments off
	      GenerateComments	      on
	      IgnoreCustomStorageClasses off
	      IncHierarchyInIds	      off
	      MaxIdLength	      31
	      PreserveName	      off
	      PreserveNameWithParent  off
	      ShowEliminatedStatement off
	      IncAutoGenComments      off
	      SimulinkDataObjDesc     off
	      SFDataObjDesc	      off
	      IncDataTypeInIds	      off
	      PrefixModelToSubsysFcnNames on
	      CustomSymbolStr	      "$R$N$M"
	      MangleLength	      5
	      DefineNamingRule	      "None"
	      ParamNamingRule	      "None"
	      SignalNamingRule	      "None"
	      InsertBlockDesc	      off
	      SimulinkBlockComments   on
	      EnableCustomComments    off
	      InlinedPrmAccess	      "Literals"
	      ReqsInCode	      off
	    }
	    Simulink.ERTTargetCC {
	      $BackupClass	      "Simulink.TargetCC"
	      $ObjectID		      10
	      Version		      "1.1.0"
	      TargetFcnLib	      "ansi_tfl_tmw.mat"
	      TargetLibSuffix	      ""
	      TargetPreCompLibLocation ""
	      GenFloatMathFcnCalls    "ANSI_C"
	      UtilityFuncGeneration   "Auto"
	      GenerateFullHeader      on
	      GenerateSampleERTMain   on
	      IsPILTarget	      off
	      ModelReferenceCompliant on
	      IncludeMdlTerminateFcn  on
	      CombineOutputUpdateFcns on
	      SuppressErrorStatus     off
	      IncludeFileDelimiter    "Auto"
	      ERTCustomFileBanners    on
	      SupportAbsoluteTime     on
	      LogVarNameModifier      "rt_"
	      MatFileLogging	      off
	      MultiInstanceERTCode    off
	      SupportNonFinite	      on
	      SupportComplex	      on
	      PurelyIntegerCode	      off
	      SupportContinuousTime   on
	      SupportNonInlinedSFcns  on
	      GenerateErtSFunction    off
	      GenerateASAP2	      off
	      ExtMode		      off
	      ExtModeTransport	      0
	      ExtModeStaticAlloc      off
	      ExtModeStaticAllocSize  1000000
	      ExtModeTesting	      off
	      ExtModeMexFile	      "ext_comm"
	      InlinedParameterPlacement	"Hierarchical"
	      TargetOS		      "BareBoardExample"
	      MultiInstanceErrorCode  "Error"
	      RateGroupingCode	      on
	      RootIOFormat	      "Individual arguments"
	      RTWCAPISignals	      off
	      RTWCAPIParams	      off
	      RTWCAPIStates	      off
	      ERTSrcFileBannerTemplate "ert_code_template.cgt"
	      ERTHdrFileBannerTemplate "ert_code_template.cgt"
	      ERTDataSrcFileTemplate  "ert_code_template.cgt"
	      ERTDataHdrFileTemplate  "ert_code_template.cgt"
	      ERTCustomFileTemplate   "example_file_process.tlc"
	      InitialValueSource      "Model"
	      ModuleNamingRule	      "Unspecified"
	      SignalDisplayLevel      10
	      ParamTuneLevel	      10
	      GlobalDataDefinition    "Auto"
	      GlobalDataReference     "Auto"
	      GRTInterface	      off
	    }
	    PropName		    "Components"
	  }
	}
	PropName		"Components"
      }
      Name		      "Configuration"
      SimulationMode	      "normal"
      CurrentDlgPage	      "Solver"
    }
    PropName		    "ConfigurationSets"
  }
  Simulink.ConfigSet {
    $PropName		    "ActiveConfigurationSet"
    $ObjectID		    1
  }
  BlockDefaults {
    Orientation		    "right"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    NamePlacement	    "normal"
    FontName		    "Helvetica"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
    ShowName		    on
  }
  BlockParameterDefaults {
    Block {
      BlockType		      ComplexToRealImag
      Output		      "Real and imag"
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Constant
      Value		      "1"
      VectorParams1D	      on
      OutDataTypeMode	      "Inherit from 'Constant value'"
      OutDataType	      "sfix(16)"
      ConRadixGroup	      "Use specified scaling"
      OutScaling	      "2^0"
      SampleTime	      "inf"
    }
    Block {
      BlockType		      Demux
      Outputs		      "4"
      DisplayOption	      "none"
      BusSelectionMode	      off
    }
    Block {
      BlockType		      Display
      Format		      "short"
      Decimation	      "10"
      Floating		      off
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Gain
      Gain		      "1"
      Multiplication	      "Element-wise(K.*u)"
      ParameterDataTypeMode   "Same as input"
      ParameterDataType	      "sfix(16)"
      ParameterScalingMode    "Best Precision: Matrix-wise"
      ParameterScaling	      "2^0"
      OutDataTypeMode	      "Same as input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Inport
      UseBusObject	      off
      BusObject		      "BusObject"
      BusOutputAsStruct	      off
      PortDimensions	      "-1"
      SampleTime	      "-1"
      DataType		      "auto"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      SignalType	      "auto"
      SamplingMode	      "auto"
      Interpolate	      on
    }
    Block {
      BlockType		      "M-S-Function"
      MFile		      "mlfile"
    }
    Block {
      BlockType		      Outport
      Port		      "1"
      UseBusObject	      off
      BusObject		      "BusObject"
      BusOutputAsStruct	      off
      PortDimensions	      "-1"
      SampleTime	      "-1"
      DataType		      "auto"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      SignalType	      "auto"
      SamplingMode	      "auto"
      OutputWhenDisabled      "held"
      InitialOutput	      "[]"
    }
    Block {
      BlockType		      Reference
    }
    Block {
      BlockType		      Rounding
      Operator		      "floor"
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Selector
      InputType		      "Vector"
      IndexMode		      "One-based"
      ElementSrc	      "Internal"
      Elements		      "1"
      RowSrc		      "Internal"
      Rows		      "1"
      ColumnSrc		      "Internal"
      Columns		      "1"
      InputPortWidth	      "-1"
      IndexIsStartValue	      off
      OutputPortSize	      "1"
    }
    Block {
      BlockType		      "S-Function"
      FunctionName	      "system"
      SFunctionModules	      "''"
      PortCounts	      "[]"
    }
    Block {
      BlockType		      SubSystem
      ShowPortLabels	      on
      Permissions	      "ReadWrite"
      PermitHierarchicalResolution "All"
      SystemSampleTime	      "-1"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      SimViewingDevice	      off
      DataTypeOverride	      "UseLocalSettings"
      MinMaxOverflowLogging   "UseLocalSettings"
    }
    Block {
      BlockType		      Sum
      IconShape		      "rectangular"
      Inputs		      "++"
      InputSameDT	      on
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Terminator
    }
  }
  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		    "eml_eqdemo"
    Location		    [351, 103, 1283, 659]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "usletter"
    PaperUnits		    "inches"
    ZoomFactor		    "103"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      Reference
      Name		      " Gain controlled\nRX constellation"
      Tag		      "ScatterPlot"
      Ports		      [1]
      Position		      [625, 277, 670, 323]
      BackgroundColor	      "[0.980392, 0.984314, 0.749020]"
      Diagnostics	      "AllowInheritedTsInSrc"
      SourceBlock	      "commsink2/Discrete-Time\nScatter Plot\nScope"
      SourceType	      "Discrete-Time Scatter Plot Scope"
      ShowPortLabels	      on
      sampPerSymb	      "1"
      offsetEye		      "0"
      numTraces		      "200"
      numNewFrames	      "100"
      LineMarkers	      "."
      LineColors	      "b"
      fading		      on
      render		      on
      AxisGrid		      on
      xMin		      "-1.84900078842742"
      xMax		      "1.93655728027381"
      yMin		      "-1.87362349123512"
      yMax		      "1.91193457746611"
      inphaseLabel	      "In-phase Amplitude"
      quadratureLabel	      "Quadrature Amplitude"
      openScopeAtSimStart     on
      FrameNumber	      off
      FigPos		      "[261 32 242 242]"
      figTitle		      "Scatter Plot"
      numLinesMax	      "8"
      block_type_	      "scatter"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Channel"
      Ports		      [1, 1]
      Position		      [688, 190, 762, 235]
      Orientation	      "down"
      BackgroundColor	      "lightBlue"
      NamePlacement	      "alternate"
      ShowName		      off
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskType		      "4-path Rician fading chanel"
      MaskPromptString	      "Fading component gains (dB):|Spectral component"
" gains (dB):|Maximum Doppler shift (Hz):|SNR (dB):|Symbol period (s):"
      MaskStyleString	      "edit,edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on,on"
      MaskCallbackString      "||||"
      MaskEnableString	      "on,on,on,on,on"
      MaskVisibilityString    "on,on,on,on,on"
      MaskToolTipString	      "on,on,on,on,on"
      MaskVarAliasString      ",,,,"
      MaskVariables	      "gain_fade=@1;gain_spec=@2;doppler=@3;SNRdB=@4;T"
"=@5;"
      MaskDisplay	      "disp('Rician Fading\\nChannel')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "0+[0 -9 -60 -90]|[-10 -60 -60 -60]|0.0001/param"
"s.symbolPeriod|60|params.symbolPeriod"
      MaskTabNameString	      ",,,,"
      System {
	Name			"Channel"
	Location		[288, 572, 889, 762]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "txsig"
	  Position		  [25, 38, 55, 52]
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Reference
	  Name			  "AWGN"
	  Ports			  [1, 1]
	  Position		  [340, 27, 405, 63]
	  ShowName		  off
	  SourceBlock		  "commchan2/AWGN\nChannel"
	  SourceType		  "AWGN Channel"
	  ShowPortLabels	  "on"
	  seed			  "67"
	  noiseMode		  "Signal to noise ratio  (SNR)"
	  EbNodB		  "10"
	  EsNodB		  "10"
	  SNRdB			  "SNRdB"
	  bitsPerSym		  "1"
	  Ps			  "1"
	  Tsym			  "1"
	  variance		  "1"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Digital Filter"
	  Ports			  [1, 1]
	  Position		  [110, 24, 190, 66]
	  ShowName		  off
	  SourceBlock		  "dsparch4/Digital Filter"
	  SourceType		  "Digital Filter"
	  TypePopup		  "FIR (all zeros)"
	  IIRFiltStruct		  "Direct form II transposed"
	  AllPoleFiltStruct	  "Direct form"
	  FIRFiltStruct		  "Direct form"
	  CoeffSource		  "Specify via dialog"
	  NumCoeffs		  "10.^(gain_spec/20)"
	  DenCoeffs		  "[1 0.1]"
	  BiQuadCoeffs		  "[1 0.3 0.4 1 0.1 0.2]"
	  LatticeCoeffs		  "[0.2 0.4]"
	  denIgnore		  "on"
	  FiltPerSampPopup	  "One filter per frame"
	  IC			  "0"
	  ICnum			  "0"
	  ICden			  "0"
	  additionalParams	  "off"
	  allowOverrides	  "on"
	  showCoeff		  "off"
	  firstCoeffMode	  "Same as input"
	  firstCoeffWordLength	  "16"
	  firstCoeffFracLength	  "15"
	  secondCoeffMode	  "Same as numerator"
	  secondCoeffWordLength	  "16"
	  secondCoeffFracLength	  "15"
	  thirdCoeffMode	  "Same as input"
	  thirdCoeffWordLength	  "16"
	  thirdCoeffFracLength	  "15"
	  showOut		  "off"
	  outputMode		  "Same as input"
	  outputWordLength	  "16"
	  outputFracLength	  "15"
	  showAcc		  "off"
	  accumMode		  "Same as output"
	  accumWordLength	  "32"
	  accumFracLength	  "30"
	  showMpy		  "off"
	  prodOutputMode	  "Same as accumulator"
	  prodOutputWordLength	  "32"
	  prodOutputFracLength	  "30"
	  showMem		  "off"
	  memoryMode		  "Same as input"
	  memoryWordLength	  "16"
	  memoryFracLength	  "15"
	  roundingMode		  "Floor"
	  overflowMode		  "off"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Frame Status\nConversion6"
	  Ports			  [1, 1]
	  Position		  [450, 31, 495, 59]
	  ShowName		  off
	  SourceBlock		  "dspsigattribs/Frame Status\nConversion"
	  SourceType		  "Frame Status Conversion"
	  ShowPortLabels	  "off"
	  growRefPort		  "off"
	  outframe		  "Sample-based"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain"
	  Position		  [280, 31, 320, 59]
	  ShowName		  off
	  Gain			  "sqrt(1/(sum(10.^(gain_spec/10))+sum(10.^(ga"
"in_fade/10))))"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Multipath Rayleigh\nFading Channel"
	  Ports			  [1, 1]
	  Position		  [115, 93, 195, 137]
	  ShowName		  off
	  SourceBlock		  "commchan2/Multipath Rayleigh\nFading Channe"
"l"
	  SourceType		  "Multipath Rayleigh Fading Channel"
	  ShowPortLabels	  "on"
	  Fd			  "doppler"
	  simTs			  "T"
	  delayVec		  "(0:3)*T"
	  gainVecdB		  "gain_fade"
	  normGain		  "off"
	  Seed			  "73"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Ports			  [2, 1]
	  Position		  [225, 35, 245, 55]
	  ShowName		  off
	  IconShape		  "round"
	  Inputs		  "|++"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	}
	Block {
	  BlockType		  Outport
	  Name			  "rxsig"
	  Position		  [525, 38, 555, 52]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  "AWGN"
	  SrcPort		  1
	  DstBlock		  "Frame Status\nConversion6"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "txsig"
	  SrcPort		  1
	  Points		  [10, 0]
	  Branch {
	    DstBlock		    "Digital Filter"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 70]
	    DstBlock		    "Multipath Rayleigh\nFading Channel"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  DstBlock		  "Gain"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Gain"
	  SrcPort		  1
	  DstBlock		  "AWGN"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Digital Filter"
	  SrcPort		  1
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Multipath Rayleigh\nFading Channel"
	  SrcPort		  1
	  Points		  [35, 0]
	  DstBlock		  "Sum"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Frame Status\nConversion6"
	  SrcPort		  1
	  DstBlock		  "rxsig"
	  DstPort		  1
	}
	Annotation {
	  Name			  "approximate gain"
	  Position		  [300, 83]
	}
      }
    }
    Block {
      BlockType		      ComplexToRealImag
      Name		      "Complex to\nReal-Imag"
      Ports		      [1, 1]
      Position		      [300, 437, 335, 453]
      Orientation	      "left"
      BackgroundColor	      "[0.945098, 0.996078, 0.945098]"
      NamePlacement	      "alternate"
      ShowName		      off
      Output		      "Real"
    }
    Block {
      BlockType		      Reference
      Name		      "Data source"
      Ports		      [0, 1]
      Position		      [20, 118, 100, 162]
      BackgroundColor	      "lightBlue"
      FontName		      "Arial"
      SourceBlock	      "commrandsrc2/Random Integer\nGenerator"
      SourceType	      "Random Integer Generator"
      ShowPortLabels	      on
      mul		      "4"
      seed		      "37"
      Ts		      "params.sourcePeriod"
      frameBased	      on
      sampPerFrame	      "params.Nsource"
      orient		      off
      outDataType	      "double"
    }
    Block {
      BlockType		      Display
      Name		      "Display2"
      Ports		      [1]
      Position		      [445, 185, 530, 235]
      BackgroundColor	      "[0.980392, 0.984314, 0.749020]"
      ShowName		      off
      Decimation	      "1"
    }
    Block {
      BlockType		      Reference
      Name		      "Equalized \nRX constellation"
      Tag		      "ScatterPlot"
      Ports		      [1]
      Position		      [355, 277, 400, 323]
      BackgroundColor	      "[0.980392, 0.984314, 0.749020]"
      Diagnostics	      "AllowInheritedTsInSrc"
      SourceBlock	      "commsink2/Discrete-Time\nScatter Plot\nScope"
      SourceType	      "Discrete-Time Scatter Plot Scope"
      ShowPortLabels	      on
      sampPerSymb	      "1"
      offsetEye		      "0"
      numTraces		      "200"
      numNewFrames	      "100"
      LineMarkers	      "."
      LineColors	      "b"
      fading		      on
      render		      on
      AxisGrid		      on
      xMin		      "-1.84900078842742"
      xMax		      "1.93655728027381"
      yMin		      "-1.87362349123512"
      yMax		      "1.91193457746611"
      inphaseLabel	      "In-phase Amplitude"
      quadratureLabel	      "Quadrature Amplitude"
      openScopeAtSimStart     on
      FrameNumber	      off
      FigPos		      "[510 32 242 242]"
      figTitle		      "Scatter Plot"
      numLinesMax	      "8"
      block_type_	      "scatter"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Equalizer"
      Ports		      [2, 2]
      Position		      [360, 354, 440, 421]
      Orientation	      "left"
      BackgroundColor	      "yellow"
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskType		      "Receiver processing (adaptive equalizer)"
      MaskPromptString	      "Adaptive algorithm:|Reference tap:|Reset weight"
"s each frame"
      MaskStyleString	      "popup(LMS|RLS),popup(1|2|3|4|5|6),checkbox"
      MaskTunableValueString  "off,off,off"
      MaskCallbackString      "||"
      MaskEnableString	      "on,on,on"
      MaskVisibilityString    "on,on,on"
      MaskToolTipString	      "on,on,on"
      MaskVarAliasString      ",,"
      MaskVariables	      "eqMode=@1;refTap=@2;resetWeights=@3;"
      MaskInitialization      "M = 6; % number of weights\nmu = 0.025; % step "
"size\nlambda = 0.99; % forget factor\ndelta1 = 0.1 + 0i; % diagonal element o"
"f inv. corr. mtx.\n"
      MaskIconFrame	      on
      MaskIconOpaque	      off
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "RLS|4|off"
      MaskTabNameString	      ",,"
      System {
	Name			"Equalizer"
	Location		[262, 115, 964, 408]
	Open			on
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"224"
	Block {
	  BlockType		  Inport
	  Name			  "rxsig"
	  Position		  [15, 33, 45, 47]
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "train"
	  Position		  [15, 78, 45, 92]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "eML script"
	  Ports			  [2, 2]
	  Position		  [90, 16, 225, 109]
	  BackgroundColor	  "yellow"
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  MaskType		  "Stateflow"
	  MaskDescription	  "Stateflow diagram"
	  MaskDisplay		  "disp('equalizer');"
	  MaskSelfModifiable	  on
	  MaskIconFrame		  on
	  MaskIconOpaque	  off
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  System {
	    Name		    "eML script"
	    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		      "rxsig"
	      Position		      [20, 101, 40, 119]
	      Port		      "1"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "trainsig"
	      Position		      [20, 136, 40, 154]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Demux
	      Name		      " Demux "
	      Ports		      [1, 1]
	      Position		      [270, 180, 320, 220]
	      Outputs		      "1"
	    }
	    Block {
	      BlockType		      "S-Function"
	      Name		      " SFunction "
	      Tag		      "Stateflow S-Function eml_eqdemo 2"
	      Ports		      [2, 3]
	      Position		      [180, 100, 230, 180]
	      FunctionName	      "sf_sfun"
	      Parameters	      "delta1,eqMode,lambda,mu,refTap,resetWei"
"ghts"
	      PortCounts	      "[2 3]"
	      Port {
		PortNumber		2
		Name			"symbols"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
		ShowSigGenPortName	on
	      }
	      Port {
		PortNumber		3
		Name			"weightsOutput"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Terminator
	      Name		      " Terminator "
	      Position		      [460, 191, 480, 209]
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "symbols"
	      Position		      [460, 101, 480, 119]
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "weightsOutput"
	      Position		      [460, 136, 480, 154]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Line {
	      SrcBlock		      " SFunction "
	      SrcPort		      1
	      Points		      [0, 85]
	      DstBlock		      " Demux "
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      " Demux "
	      SrcPort		      1
	      DstBlock		      " Terminator "
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "rxsig"
	      SrcPort		      1
	      DstBlock		      " SFunction "
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "trainsig"
	      SrcPort		      1
	      Points		      [120, 0]
	      DstBlock		      " SFunction "
	      DstPort		      2
	    }
	    Line {
	      Name		      "symbols"
	      Labels		      [0, 0]
	      SrcBlock		      " SFunction "
	      SrcPort		      2
	      DstBlock		      "symbols"
	      DstPort		      1
	    }
	    Line {
	      Name		      "weightsOutput"
	      Labels		      [0, 0]
	      SrcBlock		      " SFunction "
	      SrcPort		      3
	      DstBlock		      "weightsOutput"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Outport
	  Name			  "symbols"
	  Position		  [275, 33, 305, 47]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "weights"
	  Position		  [275, 78, 305, 92]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  "eML script"
	  SrcPort		  1
	  DstBlock		  "symbols"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "eML script"
	  SrcPort		  2
	  DstBlock		  "weights"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "train"
	  SrcPort		  1
	  DstBlock		  "eML script"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "rxsig"
	  SrcPort		  1
	  DstBlock		  "eML script"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Reference
      Name		      "Equalizer\nweights"
      Ports		      [1]
      Position		      [240, 420, 280, 470]
      Orientation	      "left"
      BackgroundColor	      "[0.980392, 0.984314, 0.749020]"
      SourceBlock	      "dspsnks4/Vector\nScope"
      SourceType	      "Vector Scope"
      ScopeProperties	      off
      Domain		      "User-defined"
      HorizSpan		      "1"
      DisplayProperties	      off
      AxisGrid		      on
      Memory		      off
      FrameNumber	      off
      AxisLegend	      off
      AxisZoom		      off
      OpenScopeAtSimStart     on
      OpenScopeImmediately    off
      FigPos		      "[762 31 251 243]"
      AxisProperties	      off
      XUnits		      "Hertz"
      XRange		      "[0...Fs/2]"
      InheritXIncr	      off
      XIncr		      "1"
      XLabel		      "delay"
      YUnits		      "dB"
      YMin		      "-2"
      YMax		      "2"
      YLabel		      "Amplitude"
      LineProperties	      off
      LineMarkers	      "."
      LineColors	      "[0 0 1]"
      ShowPortLabels	      off
    }
    Block {
      BlockType		      Reference
      Name		      "Error Rate\nCalculation2"
      Ports		      [2, 1]
      Position		      [340, 173, 410, 242]
      BackgroundColor	      "[0.945098, 0.996078, 0.945098]"
      ShowName		      off
      SourceBlock	      "commsink2/Error Rate\nCalculation"
      SourceType	      "Error Rate Calculation"
      N			      "0"
      st_delay		      "0"
      cp_mode		      "Entire frame"
      subframe		      "[]"
      PMode		      "Port"
      WsName		      "ErrorVec"
      RsMode2		      off
      stop		      off
      numErr		      "100"
      maxBits		      "1e6"
    }
    Block {
      BlockType		      Reference
      Name		      "Matrix\nConcatenation1"
      Ports		      [2, 1]
      Position		      [140, 50, 145, 170]
      BackgroundColor	      "lightBlue"
      ShowName		      off
      SourceBlock	      "simulink/Math\nOperations/Matrix\nConcatenation"
      SourceType	      "Matrix Concatenation"
      numInports	      "2"
      catMethod		      "Vertical"
    }
    Block {
      BlockType		      Reference
      Name		      "QPSK demodulator1"
      Ports		      [1, 1]
      Position		      [175, 348, 240, 392]
      Orientation	      "left"
      BackgroundColor	      "lightBlue"
      NamePlacement	      "alternate"
      ShowName		      off
      SourceBlock	      "commdigbbndam2/Rectangular QAM\nDemodulator\nBa"
"seband"
      SourceType	      "Rectangular QAM Demodulator Baseband"
      M			      "params.M"
      OutType		      "Integer"
      Dec		      "Binary"
      PowType		      "Min. distance between symbols"
      MinDist		      "2"
      AvgPow		      "1"
      PeakPow		      "1"
      Ph		      "0"
      numSamp		      "1"
    }
    Block {
      BlockType		      Reference
      Name		      "QPSK modulator"
      Ports		      [1, 1]
      Position		      [180, 89, 245, 131]
      BackgroundColor	      "lightBlue"
      ShowName		      off
      SourceBlock	      "commdigbbndam2/Rectangular QAM\nModulator\nBase"
"band"
      SourceType	      "Rectangular QAM Modulator Baseband"
      M			      "params.M"
      InType		      "Integer"
      Enc		      "Binary"
      PowType		      "Min. distance between symbols"
      MinDist		      "2"
      AvgPow		      "1"
      PeakPow		      "1"
      Ph		      "0"
      numSamp		      "1"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Subsystem"
      Ports		      [1, 1]
      Position		      [745, 291, 795, 309]
      BackgroundColor	      "[0.945098, 0.996078, 0.945098]"
      ShowName		      off
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskDisplay	      "disp('Payload')\n"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"Subsystem"
	Location		[845, 607, 1217, 726]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [25, 33, 55, 47]
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Reference
	  Name			  "Frame Status\nConversion"
	  Ports			  [1, 1]
	  Position		  [85, 22, 135, 58]
	  ShowName		  off
	  SourceBlock		  "dspsigattribs/Frame Status\nConversion"
	  SourceType		  "Frame Status Conversion"
	  ShowPortLabels	  "off"
	  growRefPort		  "off"
	  outframe		  "Frame-based"
	}
	Block {
	  BlockType		  Selector
	  Name			  "Select rx payload"
	  Ports			  [1, 1]
	  Position		  [155, 29, 210, 51]
	  BackgroundColor	  "[0.980392, 0.984314, 0.749020]"
	  Elements		  "(params.Ntrain+1):(params.Nsymbols-10)"
	  InputPortWidth	  "params.Nsymbols"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [260, 33, 290, 47]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  DstBlock		  "Frame Status\nConversion"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Select rx payload"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Frame Status\nConversion"
	  SrcPort		  1
	  DstBlock		  "Select rx payload"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Subsystem1"
      Ports		      [1, 1]
      Position		      [250, 180, 295, 200]
      BackgroundColor	      "[0.945098, 0.996078, 0.945098]"
      ShowName		      off
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskDisplay	      "disp('Payload')\n"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"Subsystem1"
	Location		[166, 374, 391, 448]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [25, 33, 55, 47]
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Selector
	  Name			  "Select rx payload"
	  Ports			  [1, 1]
	  Position		  [90, 29, 145, 51]
	  Elements		  "(params.Ntrain+1):(params.Nsymbols-10)"
	  InputPortWidth	  "params.Nsymbols"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [170, 33, 200, 47]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  DstBlock		  "Select rx payload"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Select rx payload"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Terminator
      Name		      "Terminator1"
      Position		      [485, 395, 505, 415]
      Orientation	      "left"
      BackgroundColor	      "[0.945098, 0.996078, 0.945098]"
      NamePlacement	      "alternate"
      ShowName		      off
    }
    Block {
      BlockType		      Constant
      Name		      "Training seq RX"
      Position		      [640, 457, 680, 473]
      Orientation	      "left"
      BackgroundColor	      "lightBlue"
      Value		      "qammod(params.trainSeq, params.M)"
    }
    Block {
      BlockType		      Constant
      Name		      "Training seq TX"
      Position		      [45, 72, 75, 88]
      BackgroundColor	      "lightBlue"
      Value		      "params.trainSeq"
    }
    Block {
      BlockType		      Reference
      Name		      "Unequalized\nRX constellation"
      Tag		      "ScatterPlot"
      Ports		      [1]
      Position		      [835, 277, 880, 323]
      BackgroundColor	      "[0.980392, 0.984314, 0.749020]"
      Diagnostics	      "AllowInheritedTsInSrc"
      SourceBlock	      "commsink2/Discrete-Time\nScatter Plot\nScope"
      SourceType	      "Discrete-Time Scatter Plot Scope"
      ShowPortLabels	      on
      sampPerSymb	      "1"
      offsetEye		      "0"
      numTraces		      "500"
      numNewFrames	      "50"
      LineMarkers	      "."
      LineColors	      "b"
      fading		      on
      render		      on
      AxisGrid		      on
      xMin		      "-2"
      xMax		      "2"
      yMin		      "-2"
      yMax		      "2"
      inphaseLabel	      "In-phase Amplitude"
      quadratureLabel	      "Quadrature Amplitude"
      openScopeAtSimStart     on
      FrameNumber	      off
      FigPos		      "[9 32 242 242]"
      figTitle		      "Scatter Plot"
      numLinesMax	      "8"
      block_type_	      "scatter"
    }
    Block {
      BlockType		      SubSystem
      Name		      "eML script"
      Ports		      [2, 2]
      Position		      [525, 354, 605, 421]
      Orientation	      "left"
      BackgroundColor	      "yellow"
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskType		      "Stateflow"
      MaskDescription	      "Stateflow diagram"
      MaskDisplay	      "disp('gaincontrol');"
      MaskSelfModifiable      on
      MaskIconFrame	      on
      MaskIconOpaque	      off
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"eML script"
	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			  "rxsig"
	  Position		  [20, 101, 40, 119]
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "train"
	  Position		  [20, 136, 40, 154]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Demux
	  Name			  " Demux "
	  Ports			  [1, 1]
	  Position		  [270, 180, 320, 220]
	  Outputs		  "1"
	}
	Block {
	  BlockType		  "S-Function"
	  Name			  " SFunction "
	  Tag			  "Stateflow S-Function eml_eqdemo 1"
	  Ports			  [2, 3]
	  Position		  [180, 100, 230, 180]
	  FunctionName		  "sf_sfun"
	  PortCounts		  "[2 3]"
	  Port {
	    PortNumber		    2
	    Name		    "symbols"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	    ShowSigGenPortName	    on
	  }
	  Port {
	    PortNumber		    3
	    Name		    "weights"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	    ShowSigGenPortName	    on
	  }
	}
	Block {
	  BlockType		  Terminator
	  Name			  " Terminator "
	  Position		  [460, 191, 480, 209]
	}
	Block {
	  BlockType		  Outport
	  Name			  "symbols"
	  Position		  [460, 101, 480, 119]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "weights"
	  Position		  [460, 136, 480, 154]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  " SFunction "
	  SrcPort		  1
	  Points		  [0, 85]
	  DstBlock		  " Demux "
	  DstPort		  1
	}
	Line {
	  SrcBlock		  " Demux "
	  SrcPort		  1
	  DstBlock		  " Terminator "
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "rxsig"
	  SrcPort		  1
	  DstBlock		  " SFunction "
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "train"
	  SrcPort		  1
	  Points		  [120, 0]
	  DstBlock		  " SFunction "
	  DstPort		  2
	}
	Line {
	  Name			  "symbols"
	  Labels		  [0, 0]
	  SrcBlock		  " SFunction "
	  SrcPort		  2
	  DstBlock		  "symbols"
	  DstPort		  1
	}
	Line {
	  Name			  "weights"
	  Labels		  [0, 0]
	  SrcBlock		  " SFunction "
	  SrcPort		  3
	  DstBlock		  "weights"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "select payload"
      Ports		      [1, 1]
      Position		      [525, 290, 585, 310]
      BackgroundColor	      "[0.945098, 0.996078, 0.945098]"
      ShowName		      off
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskDisplay	      "disp('Payload')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"select payload"
	Location		[419, 771, 709, 859]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [25, 38, 55, 52]
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Reference
	  Name			  "Frame Status\nConversion"
	  Ports			  [1, 1]
	  Position		  [80, 27, 130, 63]
	  ShowName		  off
	  SourceBlock		  "dspsigattribs/Frame Status\nConversion"
	  SourceType		  "Frame Status Conversion"
	  ShowPortLabels	  "off"
	  growRefPort		  "off"
	  outframe		  "Frame-based"
	}
	Block {
	  BlockType		  Selector
	  Name			  "Select rx payload1"
	  Ports			  [1, 1]
	  Position		  [155, 34, 210, 56]
	  Elements		  "(params.Ntrain+1):(params.Nsymbols-10)"
	  InputPortWidth	  "params.Nsymbols"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [235, 38, 265, 52]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  "Select rx payload1"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  DstBlock		  "Frame Status\nConversion"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Frame Status\nConversion"
	  SrcPort		  1
	  DstBlock		  "Select rx payload1"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "select payload1"
      Ports		      [1, 1]
      Position		      [290, 361, 335, 379]
      Orientation	      "left"
      BackgroundColor	      "[0.945098, 0.996078, 0.945098]"
      NamePlacement	      "alternate"
      ShowName		      off
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskDisplay	      "disp('Payload')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"select payload1"
	Location		[419, 771, 709, 859]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [25, 38, 55, 52]
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Reference
	  Name			  "Frame Status\nConversion"
	  Ports			  [1, 1]
	  Position		  [80, 27, 130, 63]
	  ShowName		  off
	  SourceBlock		  "dspsigattribs/Frame Status\nConversion"
	  SourceType		  "Frame Status Conversion"
	  ShowPortLabels	  "off"
	  growRefPort		  "off"
	  outframe		  "Frame-based"
	}
	Block {
	  BlockType		  Selector
	  Name			  "Select rx payload1"
	  Ports			  [1, 1]
	  Position		  [155, 34, 210, 56]
	  Elements		  "(params.Ntrain+1):(params.Nsymbols-10)"
	  InputPortWidth	  "params.Nsymbols"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [235, 38, 265, 52]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  "Frame Status\nConversion"
	  SrcPort		  1
	  DstBlock		  "Select rx payload1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  DstBlock		  "Frame Status\nConversion"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Select rx payload1"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
      }
    }
    Line {
      SrcBlock		      "Subsystem"
      SrcPort		      1
      DstBlock		      "Unequalized\nRX constellation"
      DstPort		      1
    }
    Line {
      SrcBlock		      "eML script"
      SrcPort		      2
      DstBlock		      "Terminator1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Training seq TX"
      SrcPort		      1
      DstBlock		      "Matrix\nConcatenation1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Data source"
      SrcPort		      1
      DstBlock		      "Matrix\nConcatenation1"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Matrix\nConcatenation1"
      SrcPort		      1
      Points		      [0, 0; 10, 0]
      Branch {
	DstBlock		"QPSK modulator"
	DstPort			1
      }
      Branch {
	Points			[0, 80]
	DstBlock		"Subsystem1"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "QPSK modulator"
      SrcPort		      1
      Points		      [475, 0]
      DstBlock		      "Channel"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Subsystem1"
      SrcPort		      1
      DstBlock		      "Error Rate\nCalculation2"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Error Rate\nCalculation2"
      SrcPort		      1
      DstBlock		      "Display2"
      DstPort		      1
    }
    Line {
      SrcBlock		      "eML script"
      SrcPort		      1
      Points		      [0, 0; -20, 0]
      Branch {
	Points			[0, -70]
	DstBlock		"select payload"
	DstPort			1
      }
      Branch {
	DstBlock		"Equalizer"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "select payload"
      SrcPort		      1
      DstBlock		      " Gain controlled\nRX constellation"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Channel"
      SrcPort		      1
      Points		      [0, 5; 0, 55]
      Branch {
	Points			[0, 70]
	DstBlock		"eML script"
	DstPort			1
      }
      Branch {
	DstBlock		"Subsystem"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Training seq RX"
      SrcPort		      1
      Points		      [0, 0; -5, 0]
      Branch {
	Points			[0, -60]
	DstBlock		"eML script"
	DstPort			2
      }
      Branch {
	Points			[-175, 0]
	DstBlock		"Equalizer"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "Equalizer"
      SrcPort		      1
      DstBlock		      "select payload1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "select payload1"
      SrcPort		      1
      Points		      [0, 0; -10, 0]
      Branch {
	DstBlock		"QPSK demodulator1"
	DstPort			1
      }
      Branch {
	Points			[0, -70]
	DstBlock		"Equalized \nRX constellation"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "QPSK demodulator1"
      SrcPort		      1
      Points		      [-10, 0; 0, -145]
      DstBlock		      "Error Rate\nCalculation2"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Equalizer"
      SrcPort		      2
      Points		      [-5, 0]
      DstBlock		      "Complex to\nReal-Imag"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Complex to\nReal-Imag"
      SrcPort		      1
      DstBlock		      "Equalizer\nweights"
      DstPort		      1
    }
    Annotation {
      Name		      "Communications Link with Adaptive Equalization"
      Position		      [481, 32]
      TeXMode		      "on"
      FontName		      "Arial"
      FontSize		      24
      FontWeight	      "bold"
    }
    Annotation {
      Name		      "Equalizer algorithm implemented in eML"
      Position		      [483, 56]
      FontName		      "Arial"
      FontSize		      18
      FontWeight	      "bold"
      FontAngle		      "italic"
    }
    Annotation {
      Name		      "BER"
      Position		      [547, 190]
    }
    Annotation {
      Name		      "Equalized signal"
      Position		      [488, 245]
    }
    Annotation {
      Name		      "num. errors"
      Position		      [562, 215]
    }
  }
}

# Finite State Machines
#
#    Stateflow Version 6.2 (R14SP2) dated Jan 21 2005, 03:46:19
#
#

Stateflow {

	machine {
		id                   		1
		name                 		"eml_eqdemo"
		created              		"18-Nov-2002 17:08:06"
		isLibrary            		0
		firstTarget          		26
		sfVersion            		62014000
		sfDemoChecksum       		[1607235963 2051617751 630782211 466337996]
	}

	chart {
		id                                        		2
		name                                      		"eML script"
		windowPosition                            		[375.75 203.25 200.25 189.75]
		viewLimits                                		[-10.375 146.375 -11.625 142.125]
		zoomFactor                                		0.913
		screen                                    		[1 1 1280 1024 1.333333333333333]
		treeNode                                  		[0 3 0 0]
		firstTransition                           		5
		firstJunction                             		4
		viewObj                                   		2
		machine                                   		1
		decomposition                             		CLUSTER_CHART
		type                                      		EML_CHART
		firstData                                 		6
		chartFileNumber                           		1
		disableImplicitCasting                    		1
		eml {
			name		"gaincontrol"
		}
	}

	state {
		id                  		3
		labelString         		"eML_blk_kernel()"
		position            		[18 64.5 118 66]
		fontSize            		12
		chart               		2
		treeNode            		[2 0 0 0]
		superState          		SUBCHART
		subviewer           		2
		type                		FUNC_STATE
		decomposition       		CLUSTER_STATE
		eml {
			isEML       		1
			script      		"function [symbols, weights] = gaincontrol(rxsig, train)\n"
						"% 1-tap adaptive equalizer using LMS or RLS algorithm\n"
						"\n"
						"% Equalizer settings\n"
						"lambda = 0.99; % forgetting factor for RLS\n"
						"\n"
						"% Initialize\n"
						"Delta = 0.1+0i; % inv. corr. parameter\n"
						"weights = 0+0i;    \n"
						"\n"
						"symbols = zeros(length(rxsig),1);\n"
						"for n = 1:length(rxsig)\n"
						"    u = rxsig(n);  % received sample\n"
						"    y = conj(weights) * u;  % output\n"
						"    if n<=length(train)\n"
						"        % training mode\n"
						"        d = train(n);\n"
						"    else\n"
						"        % decision-directed mode\n"
						"        d = detect(real(y)) + 1j*detect(imag(y));\n"
						"    end\n"
						"    % Single-tap RLS\n"
						"    Delta = 1/(lambda/Delta + u*conj(u));\n"
						"    G = Delta * u;\n"
						"    e = d - y;  % symbol estimation error\n"
						"    weights = weights + G*conj(e);  % update weights\n"
						"    symbols(n) = y;\n"
						"end\n"
						"\n"
						"\n"
						"function y = detect(x);\n"
						"if real(x)<0, y=-1; else y=1; end\n"
						"\n"
						"\n"
						"\n"
						"\n"
						"\n"
						"\n"
						""
			editorLayout		"100 M4x1[2 224 821 690]"
		}
	}

	junction {
		id         		4
		position   		[23.5747 49.5747 7]
		chart      		2
		linkNode   		[2 0 0]
		subviewer  		2
		type       		CONNECTIVE_JUNCTION
	}

	transition {
		id             		5
		labelString    		"{eML_blk_kernel();}"
		labelPosition  		[32.125 19.875 102.544 14.964]
		fontSize       		12
		src {
			intersection		[0 0 1 0 23.5747 14.625 0 0]
		}
		dst {
			id          		4
			intersection		[7 0 -1 -1 23.5747 42.5747 0 0]
		}
		midPoint       		[23.5747 24.9468]
		chart          		2
		linkNode       		[2 0 0]
		dataLimits     		[21.175 25.975 14.625 42.575]
		subviewer      		2
		drawStyle      		SMART
		executionOrder 		1
	}

	data {
		id                            		6
		name                          		"rxsig"
		linkNode                      		[2 0 7]
		scope                         		INPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		complexity                    		SF_COMPLEX_YES
		props {
			range {
				minimum		""
				maximum		""
			}
			array {
				size      		"250"
				firstIndex		"1"
			}
		}
	}

	data {
		id                            		7
		name                          		"train"
		linkNode                      		[2 6 8]
		scope                         		INPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		complexity                    		SF_COMPLEX_YES
		props {
			range {
				minimum		""
				maximum		""
			}
			array {
				size      		"50"
				firstIndex		"1"
			}
		}
	}

	data {
		id                            		8
		name                          		"symbols"
		linkNode                      		[2 7 9]
		scope                         		OUTPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		complexity                    		SF_COMPLEX_YES
		props {
			range {
				minimum		""
				maximum		""
			}
			array {
				size      		"250"
				firstIndex		"1"
			}
		}
	}

	data {
		id                            		9
		name                          		"weights"
		linkNode                      		[2 8 0]
		scope                         		OUTPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		complexity                    		SF_COMPLEX_YES
		props {
			range {
				minimum		""
				maximum		""
			}
			array {
				firstIndex		""
			}
		}
	}

	instance {
		id     		10
		name   		"eML script"
		machine		1
		chart  		2
	}

	chart {
		id                                        		11
		name                                      		"Equalizer/eML script"
		windowPosition                            		[345.75 233.25 200.25 189.75]
		viewLimits                                		[-10.375 146.375 -11.625 142.125]
		zoomFactor                                		0.913
		screen                                    		[1 1 1280 1024 1.333333333333333]
		treeNode                                  		[0 12 0 0]
		firstTransition                           		14
		firstJunction                             		13
		viewObj                                   		11
		machine                                   		1
		decomposition                             		CLUSTER_CHART
		type                                      		EML_CHART
		firstData                                 		15
		chartFileNumber                           		2
		disableImplicitCasting                    		1
		eml {
			name		"equalizer"
		}
	}

	state {
		id                  		12
		labelString         		"eML_blk_kernel()"
		position            		[18 64.5 118 66]
		fontSize            		12
		chart               		11
		treeNode            		[11 0 0 0]
		superState          		SUBCHART
		subviewer           		11
		type                		FUNC_STATE
		decomposition       		CLUSTER_STATE
		eml {
			isEML       		1
			script      		"function [symbols, weightsOutput] = equalizer(rxsig, trains"
						"ig, resetWeights, eqMode, refTap, mu, lambda, delta1)\n"
						"% Adaptive equalizer using LMS or RLS algorithm\n"
						"% By Martin Clark\n"
						"\n"
						"% Equalizer settings\n"
						"M = 6; % number of tap weights\n"
						"\n"
						"persistent weights\n"
						"if(isempty(weights))\n"
						"    weights = zeros(M, 1) + 0i;\n"
						"end\n"
						"\n"
						"% Initialize\n"
						"G = zeros(M, 1) + 0i; % Gain vector (both LMS and RLS)\n"
						"Delta = zeros(M, M) + 0i;  Delta(1:M+1:end) = delta1;  % in"
						"v. corr. mtx.\n"
						"if resetWeights==1\n"
						"    weights = zeros(M, 1) + 0i;   \n"
						"end\n"
						"u = zeros(M, 1) + 0i; % input vector (to tap weights)\n"
						"delay = refTap - 1;\n"
						"symbols = zeros(length(rxsig),1);\n"
						"for n = 1:length(rxsig)\n"
						"    u = [rxsig(n); u(1:M-1)];  % tapped delay line\n"
						"    if n >= delay\n"
						"        y = weights' * u;\n"
						"        m = n - delay + 1;\n"
						"        if n<=length(trainsig)\n"
						"            % training mode\n"
						"            d = trainsig(m);  \n"
						"        else\n"
						"            % decision-directed mode\n"
						"            d = detect(real(y)) + 1j*detect(imag(y));\n"
						"        end\n"
						"        e = d - y;  % symbol estimation error\n"
						"        if eqMode==1\n"
						"            % LMS\n"
						"            G = mu*u;\n"
						"        else\n"
						"            % RLS\n"
						"            G = Delta * u / (lambda + u'*Delta*u);\n"
						"            Delta = 1/lambda * (Delta - G*u'*Delta);\n"
						"        end\n"
						"        weights = weights + G*conj(e);  % update weights\n"
						"        symbols(m) = y;\t% note: last few symbols not estim"
						"ated\n"
						"    end\n"
						"end\n"
						"weightsOutput = weights;\n"
						"\n"
						"function y = detect(x)\n"
						"if real(x)<0, y=-1; else y=1; end\n"
						"\n"
						"\n"
						"\n"
						"\n"
						"\n"
						"\n"
						""
			editorLayout		"100 M4x1[2 224 821 690]"
			breakpoints 		"100 M[18]"
		}
	}

	junction {
		id         		13
		position   		[23.5747 49.5747 7]
		chart      		11
		linkNode   		[11 0 0]
		subviewer  		11
		type       		CONNECTIVE_JUNCTION
	}

	transition {
		id             		14
		labelString    		"{eML_blk_kernel();}"
		labelPosition  		[32.125 19.875 102.544 14.964]
		fontSize       		12
		src {
			intersection		[0 0 1 0 23.5747 14.625 0 0]
		}
		dst {
			id          		13
			intersection		[7 0 -1 -1 23.5747 42.5747 0 0]
		}
		midPoint       		[23.5747 24.9468]
		chart          		11
		linkNode       		[11 0 0]
		dataLimits     		[21.175 25.975 14.625 42.575]
		subviewer      		11
		drawStyle      		SMART
		executionOrder 		1
	}

	data {
		id                            		15
		name                          		"rxsig"
		linkNode                      		[11 0 16]
		scope                         		INPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		complexity                    		SF_COMPLEX_YES
		props {
			range {
				minimum		""
				maximum		""
			}
			array {
				size      		"250"
				firstIndex		"1"
			}
		}
	}

	data {
		id                            		16
		name                          		"trainsig"
		linkNode                      		[11 15 17]
		scope                         		INPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		complexity                    		SF_COMPLEX_YES
		props {
			range {
				minimum		""
				maximum		""
			}
			array {
				size      		"50"
				firstIndex		"1"
			}
		}
	}

	data {
		id                            		17
		name                          		"symbols"
		linkNode                      		[11 16 18]
		scope                         		OUTPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		complexity                    		SF_COMPLEX_YES
		props {
			range {
				minimum		""
				maximum		""
			}
			array {
				size      		"250"
				firstIndex		"1"
			}
		}
	}

	data {
		id                            		18
		name                          		"weightsOutput"
		linkNode                      		[11 17 19]
		scope                         		OUTPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		complexity                    		SF_COMPLEX_YES
		props {
			range {
				minimum		""
				maximum		""
			}
			array {
				size      		"6"
				firstIndex		"1"
			}
		}
	}

	data {
		id                            		19
		name                          		"resetWeights"
		linkNode                      		[11 18 20]
		scope                         		PARAMETER_DATA
		initFromWorkspace             		1
		paramIndexForInitFromWorkspace		5
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		1
		props {
			range {
				minimum		""
				maximum		""
			}
		}
	}

	data {
		id                            		20
		name                          		"eqMode"
		linkNode                      		[11 19 21]
		scope                         		PARAMETER_DATA
		initFromWorkspace             		1
		paramIndexForInitFromWorkspace		1
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		1
		props {
			range {
				minimum		""
				maximum		""
			}
		}
	}

	data {
		id                            		21
		name                          		"refTap"
		linkNode                      		[11 20 22]
		scope                         		PARAMETER_DATA
		initFromWorkspace             		1
		paramIndexForInitFromWorkspace		4
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		1
		props {
			range {
				minimum		""
				maximum		""
			}
		}
	}

	data {
		id                            		22
		name                          		"mu"
		linkNode                      		[11 21 23]
		scope                         		PARAMETER_DATA
		initFromWorkspace             		1
		paramIndexForInitFromWorkspace		3
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
	}

	data {
		id                            		23
		name                          		"lambda"
		linkNode                      		[11 22 24]
		scope                         		PARAMETER_DATA
		initFromWorkspace             		1
		paramIndexForInitFromWorkspace		2
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
	}

	data {
		id                            		24
		name                          		"delta1"
		linkNode                      		[11 23 0]
		scope                         		PARAMETER_DATA
		initFromWorkspace             		1
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
	}

	instance {
		id     		25
		name   		"Equalizer/eML script"
		machine		1
		chart  		11
	}

	target {
		id                        		26
		name                      		"sfun"
		description               		"Default Simulink S-Function Target."
		codeFlags                 		" debug=1 overflow=1 echo=1"
		machine                   		1
		linkNode                  		[1 0 27]
	}

	target {
		id                        		27
		name                      		"rtw"
		codeFlags                 		" comments=1 statebitsets=1 databitsets=1 emitlogicalops=1 el"
						"seifdetection=1 constantfolding=1 redundantloadelimination=0"
						" preservenames=0 preservenameswithparent=0 exportcharts=0"
		machine                   		1
		linkNode                  		[1 26 0]
	}
}
