Model {
  Name			  "tstconcd"
  Version		  4.00
  SampleTimeColors	  off
  LibraryLinkDisplay	  "none"
  WideLines		  off
  ShowLineDimensions	  off
  ShowPortDataTypes	  off
  RecordCoverage	  off
  CovPath		  "/"
  CovSaveName		  "covdata"
  CovNameIncrementing	  off
  CovHtmlReporting	  on
  BlockNameDataTip	  off
  BlockParametersDataTip  on
  BlockDescriptionStringDataTip	off
  ToolBar		  on
  StatusBar		  on
  BrowserShowLibraryLinks off
  BrowserLookUnderMasks	  off
  PreLoadFcn		  "tf=sim2tran('fig_10_9');N_con_demo=tf(1,size(tf,2))"
";K_con_demo=tf(2,size(tf,2));"
  Created		  "Tue Oct 20 09:10:03 1998"
  Creator		  "tdelve"
  UpdateHistory		  "UpdateHistoryNever"
  ModifiedByFormat	  "%<Auto>"
  LastModifiedBy	  "ysong"
  ModifiedDateFormat	  "%<Auto>"
  LastModifiedDate	  "Wed Aug 23 10:22:47 2000"
  ModelVersionFormat	  "1.%<AutoIncrement:8>"
  ConfigurationManager	  "none"
  SimParamPage		  "Solver"
  StartTime		  "0.0"
  StopTime		  "3000"
  SolverMode		  "SingleTasking"
  Solver		  "VariableStepDiscrete"
  RelTol		  "1e-3"
  AbsTol		  "1e-6"
  Refine		  "1"
  MaxStep		  "auto"
  MinStep		  "auto"
  MaxNumMinSteps	  "-1"
  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		  "Array"
  LimitDataPoints	  off
  MaxDataPoints		  "1000"
  Decimation		  "1"
  AlgebraicLoopMsg	  "warning"
  MinStepSizeMsg	  "warning"
  UnconnectedInputMsg	  "warning"
  UnconnectedOutputMsg	  "warning"
  UnconnectedLineMsg	  "warning"
  InheritedTsInSrcMsg	  "warning"
  SingleTaskRateTransMsg  "none"
  MultiTaskRateTransMsg	  "error"
  IntegerOverflowMsg	  "warning"
  CheckForMatrixSingularity "none"
  UnnecessaryDatatypeConvMsg "none"
  Int32ToFloatConvMsg	  "warning"
  SignalLabelMismatchMsg  "none"
  LinearizationMsg	  "none"
  VectorMatrixConversionMsg "none"
  SfunCompatibilityCheckMsg "none"
  BlockPriorityViolationMsg "warning"
  ArrayBoundsChecking	  "none"
  ConsistencyChecking	  "none"
  ZeroCross		  on
  Profile		  off
  SimulationMode	  "normal"
  RTWSystemTargetFile	  "grt.tlc"
  RTWInlineParameters	  off
  RTWRetainRTWFile	  off
  RTWTemplateMakefile	  "grt_default_tmf"
  RTWMakeCommand	  "make_rtw"
  RTWGenerateCodeOnly	  off
  TLCProfiler		  off
  TLCDebug		  off
  TLCCoverage		  off
  AccelSystemTargetFile	  "accel.tlc"
  AccelTemplateMakefile	  "accel_default_tmf"
  AccelMakeCommand	  "make_rtw"
  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
  ExtModeLogAll		  on
  OptimizeBlockIOStorage  on
  BufferReuse		  on
  ParameterPooling	  on
  BlockReductionOpt	  off
  BooleanDataType	  off
  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		    "tstconcd"
    Location		    [73, 208, 855, 474]
    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		      "Binary error\nchannel"
      Ports		      [1, 2]
      Position		      [335, 63, 415, 107]
      ShowName		      off
      SourceBlock	      "com_chan/Binary error\nchannel"
      SourceType	      "Add binary errors"
      P			      "0.02"
      M			      "N_con_demo"
    }
    Block {
      BlockType		      Reference
      Name		      "Binary vector\nconvol decode1"
      Ports		      [2, 2]
      Position		      [470, 63, 550, 107]
      ShowName		      off
      SourceBlock	      "comcdcon/Binary vector\nconvolution decode"
      SourceType	      "Vector I/O convolution decode"
      gen		      "tf"
      leng		      "10"
      tran_prob		      "0"
      plot_flag		      "15"
      thd		      ".5"
    }
    Block {
      BlockType		      Reference
      Name		      "Binary vector\nconvol encode"
      Ports		      [2, 1]
      Position		      [235, 63, 315, 107]
      ShowName		      off
      SourceBlock	      "comcdcon/Binary vector\nconvolution encode"
      SourceType	      "Vector I/O convolution encode"
      tf		      "tf"
      thd		      ".5"
    }
    Block {
      BlockType		      Reference
      Name		      "Error rate1"
      Ports		      [2]
      Position		      [680, 43, 760, 87]
      ShowName		      off
      SourceBlock	      "com_sour/Error rate"
      SourceType	      "Symbol/bit error counter"
      K			      "tf(2,size(tf,2))"
      num_lin		      "20"
      TDelay		      "10"
      Sample		      "1"
    }
    Block {
      BlockType		      Reference
      Name		      "Integer scalar\nto vector"
      Ports		      [1, 1]
      Position		      [120, 53, 200, 97]
      ShowName		      off
      SourceBlock	      "com_util/Integer scalar\nto vector"
      SourceType	      "Decimal to base M vector"
      len		      "K_con_demo"
      p			      "2"
    }
    Block {
      BlockType		      Reference
      Name		      "Integer vector\nto scalar"
      Ports		      [1, 1]
      Position		      [580, 53, 660, 97]
      ShowName		      off
      SourceBlock	      "com_util/Integer vector\nto scalar"
      SourceType	      "Base M vector to decimal integer"
      p			      "2"
    }
    Block {
      BlockType		      Reference
      Name		      "Sampled read with\nsynchronized pulse"
      Ports		      [0, 2]
      Position		      [15, 63, 95, 107]
      ShowName		      off
      SourceBlock	      "com_sour/Sampled read with\nsynchronized pulse"
      SourceType	      "Read from workspace"
      var		      "randint(300,1,2^tf(2,size(tf,2)))"
      td		      "1"
      cyc		      "1"
      ini		      "0"
    }
    Block {
      BlockType		      Terminator
      Name		      "Terminator_1"
      Position		      [565, 90, 575, 100]
      ShowName		      off
    }
    Block {
      BlockType		      Terminator
      Name		      "Terminator_3"
      Position		      [430, 90, 440, 100]
      ShowName		      off
    }
    Block {
      BlockType		      SubSystem
      Name		      "transfer function"
      Ports		      []
      Position		      [680, 95, 760, 142]
      BackgroundColor	      "yellow"
      ShowName		      off
      OpenFcn		      "fig_10_9; tf = sim2tran('fig_10_9');N_con_demo="
"tf(1,size(tf,2));K_con_demo=tf(2,size(tf,2));"
      ShowPortLabels	      on
      TreatAsAtomicUnit	      off
      RTWSystemCode	      "Auto"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      MaskDisplay	      "disp('Generate\\ntran_func')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"transfer function"
	Location		[360, 145, 780, 291]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"yellow"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	AutoZoom		on
      }
    }
    Line {
      SrcBlock		      "Binary vector\nconvol decode1"
      SrcPort		      2
      DstBlock		      "Terminator_1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Binary error\nchannel"
      SrcPort		      1
      DstBlock		      "Binary vector\nconvol decode1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Binary vector\nconvol decode1"
      SrcPort		      1
      DstBlock		      "Integer vector\nto scalar"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Integer vector\nto scalar"
      SrcPort		      1
      DstBlock		      "Error rate1"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Binary error\nchannel"
      SrcPort		      2
      DstBlock		      "Terminator_3"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Sampled read with\nsynchronized pulse"
      SrcPort		      1
      Points		      [0, 0]
      Branch {
	Points			[0, 0]
	DstBlock		"Integer scalar\nto vector"
	DstPort			1
      }
      Branch {
	Points			[5, 0; 0, -35; 560, 0]
	DstBlock		"Error rate1"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Binary vector\nconvol encode"
      SrcPort		      1
      DstBlock		      "Binary error\nchannel"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Sampled read with\nsynchronized pulse"
      SrcPort		      2
      Points		      [15, 0; 0, 35; 90, 0; 0, 0]
      Branch {
	Points			[245, 0; 0, -35]
	DstBlock		"Binary vector\nconvol decode1"
	DstPort			2
      }
      Branch {
	Points			[0, -35]
	DstBlock		"Binary vector\nconvol encode"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "Integer scalar\nto vector"
      SrcPort		      1
      DstBlock		      "Binary vector\nconvol encode"
      DstPort		      1
    }
    Annotation {
      Position		      [397, 152]
      Text		      "This demo uses the convolutional code with the "
"structure defined in file fig_10_9.m. It is a two input/three output/two\nmem"
"ory convolution code. Double click the block \"Generate tran_func\" to genera"
"te the transfer function tf."
    }
    Annotation {
      Position		      [417, 182]
      Text		      "The convolutional code structure is taken from "
"the figure 10.9 in Shu Lin and Daniel Costello's book Error Control Coding:\n"
"Fundamental and Applications."
    }
    Annotation {
      Position		      [380, 247]
      Text		      "Warning: This model is obsolete and may be remo"
"ved in the future."
      FontName		      "Arial"
      FontSize		      12
    }
  }
}
