Basics of DVBT2 (Transmitter Chain Model)

Help
2014-02-19
2014-07-01
1 2 > >> (Page 1 of 2)
  • comsian_nip
    comsian_nip
    2014-02-19

    Hello Every One!

    I am new bie to this stuff. I have to implement the basic Transmission chain model in MATLAB using dvbt2 framework (Figure2 of this document:http://downloads.bbc.co.uk/rd/pubs/whp/whp-pdf-files/WHP196.pdf).

    I had successfully configured framework in matlab using the guide lines (using this one: https://sourceforge.net/projects/dvb-t2-csp/files/releases). All test codes are running perfectly. Now I dont know the syntax/commands for each block in figure. I used functions specified in the above mentioned pdf document but it wont work. Kindly help me in this regard. It will be highly appreciated.

     
  • Hi.

    Please can you be more specific about your problem? What exact command are you running and what is the result? If it gives an error, what is the exact text of the error message? Which "test codes" are "running perfectly"?

    As WHP explains (section 3), the CSP is intended to be run using one of the "sims", which set up the configuration and run all the blocks in the correct order. It is not particularly intended that the individual blocks will be used standalone, but of course they are simply MATLAB functions so can be used in this way if you provide the input in the correct format and configure at least the required parts of the DVBT2 structure. To do this you will need to have read and understood all of WHP196 and will also probably need to look at the source code for the individual module that you want to run.

     
    • comsian_nip
      comsian_nip
      2014-02-21

      Hi..
      thanks for your help and concern.firstly congrats for this nice project. i am new to this project.Thats why i find a lot of confusions.
      I run the tested simulations which are given in DVBT2-CSP-03-02-02/sim directory.
      firstly i run the basic test dvbt2bl_basic. It gives good results..
      Bt when i run the dvbt2bl_VV test.it gives the following error.

      run('dvbt2bl_basic','work','stdout',{'DVBT2.STRICT=0'})
      <Running Test:="" dvbt2bl_basic="">
      <Test Date:="" 21-Feb-2014="" 10:46:16="">
      Adding path
      < Code path added >
      Added path
      < Execution Time meassure Initialization >
      Configuration type: DVBT2BL
      CSP Version: 030202
      Commandline parameters:
      DVBT2.STRICT=0
      WARNING Strict syntax checking disabled
      Starting Tx Digital Video Broadcasting - DVB-T2: (DVBT2BL)
      Data generator: (DVBT2BL)
      Warning: This is an obsolete function and may be removed in the future. Please use RANDI instead.

      In randint at 41
      In t2_tx_dvbt2bldatagen at 84
      In t2_tx_datagen_wr at 72
      In t2_tx_dvbt2bltx at 59
      In t2_tx_wr at 67
      In t2_sys at 56
      In test_dvbt2bl_basic at 95
      In run at 96
      259200 Bytes generated
      Data saved in file: datagen_tx_do
      DVBT2-TX-MADAPT: (DVBT2BL)
      Mode adaptor output saved in file: madapt_tx_do
      DVBT2-TX-L1GEN: (DVBT2BL)
      Frame 1 Sum of uncoded L1 bits = 92 (of 550 bits)
      Frame 1 Sum of coded L1 bits = 1489 (of 3340 bits)
      Frame 1 Sum of modulated L1 cells = 126.344268 + 74.065608i (of 2090 cells)
      T2 Frames of L1 generated = 1 frames
      L1 generator output saved in file: l1gen_tx_do
      DVBT2-TX-BBSCRAMBLE: (DVBT2BL)
      Number of complete BB frames: 48
      BB scrambler output saved in file: bbscramble_tx_do
      DVBT2-TX-OCOD: (DVBT2BL)
      Number of Bytes read: 258240
      BCH blocks: 48
      Outer-coder output saved in file: ocoder_tx_do
      DVBT2-TX-ICOD: (DVBT2BL)
      Coding rate: 2/3
      Warning: fec.ldpcenc will be removed in a future release. Use comm.LDPCEncoder instead.
      In fec.ldpcenc.ldpcenc at 69
      In t2_tx_dvbt2blicod at 85
      In t2_tx_icod_wr at 78
      In t2_tx_dvbt2bltx at 74
      In t2_tx_wr at 67
      In t2_sys at 56
      In test_dvbt2bl_basic at 95
      In run at 96
      LDPC blocks: 48
      Coded bits: 3110400
      Inner-coder output saved in file: innercoder_tx_do
      DVBT2-TX-BIT-INT: (DVBT2BL)
      Mode=8k - 64-QAM
      Bit interleaver: 48 interleaving blocks
      Bit-interleaver output saved in file: bint_tx_do
      DVBT2-TX-BIT-MAP: (DVBT2BL)
      Bit mapping output saved in file: bmap_tx_do
      DVBT2-TX-MAP: (DVBT2BL)
      64-QAM
      Mapper output saved in file: mapper_tx_do
      DVBT2-TX-CONROT: (DVBT2BL)
      Constellation rotation: 8.600000 degrees rotation angle
      Constellation rotation saved in file: conrot_tx_do
      DVBT2-TX-CINT: (DVBT2BL)
      Cell-interleaver output saved in file: cint_tx_do
      DVBT2-TX-TINT: (DVBT2BL)
      Time interleaver: 1 interleaved Interleaving Frames
      Time-interleaver output saved in file: tint_tx_do
      DVBT2-TX-DMCELLS: DISABLED
      DVBT2-TX-TXSIGAUXGEN: (DVBT2BL)
      T2 Frames of TxSigAux generated = 1 frames
      TxSig Aux Stream generator output saved in file: txsigauxgen_tx_do
      DVBT2-TX-FBUILD: (DVBT2BL)
      L1 bias balance: 0 cells total
      T2 Frames mapped = 1 frames
      Frame Builder output saved in file: fbuild_tx_do
      DVBT2-TX-FREQ-INT: (DVBT2BL)
      Mode=8k
      Symbol interleaver: 85 interleaved symbols
      Freq. interleaver output saved in file: fint_tx_do
      DVBT2-TX-MISO: (DVBT2BL)
      MISO processing: 85 symbols
      MISO processing output saved in file: miso_tx_do
      DVBT2-TX-FADAPT: (DVBT2BL)
      Mode=8k
      Number of complete frames: 1 (85 symbols per frame)
      Number of transmitted symbols: 85
      Scattered pilots pattern: NONE
      Frame adaptation output saved in file: fadapt_tx_do
      DVBT2-TX-OFDM: (DVBT2BL)
      Mode=8k
      Frame 1 P2 symbol 1 - PAPR = 10.23dB (Average -0.35dBW)
      Frame 1 P2 symbol 2 - PAPR = 9.58dB (Average -0.29dBW)
      OFDM modulator output saved in file: ofdm_tx_do
      DVBT2-TX-PAPRTR: (DVBT2BL)
      Mode=8k
      Number of complete frames: 1 (85 symbols per frame)
      Number of transmitted symbols: 85
      Scattered pilots pattern: NONE
      PAPR TR output saved in file: paprtr_tx_do
      DVBT2-TX-CP: (DVBT2BL)
      Tx1 Guard interval=1/8 - Number of symbols=85
      CP output saved in file: cp_tx_do
      DVBT2-TX-FEF:(DVBT2BL)
      NULL FEF
      FEF inserter output saved in file: fef_tx_do
      DVBT2-TX-P1 PREAMB:(DVBT2BL)
      P1 Preamb type: CAB-K structure. K = 30
      P1 Scrambling after DBPSK
      CB Fsh: 1 carriers
      Frame Length: 85 (OFDM symbols)
      P1 Average Power: 1.000e+00
      Data Average Power: 9.263e-01
      P1/Data Power: 1.08
      P1 PAPR: 7.73 dB
      Data PAPR: 11.10 dB
      P1-Data PAPR: -3.37 dB
      P1 preamb output saved in file: tx_do
      End of Tx Digital Video Broadcasting - DVB-T2
      Starting Propagation Channel: (DVBT)
      DVBT2-CH-PSCEN: Applying propagation scenario: (DVBT)
      Channel seed: 1
      Info: Parameters of a AWGN channel
      Echo delay times:
      - range : 0.00us <= tau <= 0.00us
      - mean : 0.00us
      - stddev: 0.00us
      Doppler Frequencies:
      - range : 0 <= |fD| <= 0
      Channel convolution saved in file: pscen_ch_do
      DVBT2-CH-NOISE: Adding noise (DVBT)
      SNR = 100.00 dB
      Noise seed: 1
      Noisy signal saved in file: ch_do
      End of Propagation Channel
      Starting Rx Digital Video Broadcasting - DVB-T2:(DVBT2BL)
      DVBT2-RX-P1-PREAMB: (DVBT2BL)
      P1 preamble output saved in file: p1_rx_do
      DVBT2-RX-CP: (DVBT2BL)
      Guard interval=1/8 - Number of symbols=85
      CP output saved in file: cp_rx_do
      DVBT2-RX-OFDM: (DVBT2BL)
      Mode=8k
      OFDM demodulation output saved in file: ofdm_rx_do
      DVBT2-RX-CHE: (IDEAL)
      Channel estimator output saved in file: che_rx_do
      DVBT2-RX-FADAPT: (DVBT2BL)
      Mode=8k
      Number of complete frames: 1 (85 symbols per frame)
      Number of received symbols: 85
      Scattered pilots pattern: NONE
      Frame adaptation output saved in file: fadapt_rx_do
      DVBT2-RX-MISO: (DVBT2BL)
      Mode=8k
      Freq-de-interleaver output saved in file: miso_rx_do
      DVBT2-RX-FREQDINT: (DVBT2BL)
      Mode=8k
      Symbol de-interlv: 85 de-interleaved symbols
      Freq-de-interleaver output saved in file: fdint_rx_do
      DVBT2-RX-DMCELLS: DISABLED
      DVBT2-RX-L1DECODE: (DVBT2BLCHEAT)
      Read schedule from Mode Adapter output
      L1 decoder output saved in file: l1decode_rx_do
      DVBT2-RX-FEXTRACT: (DVBT2BL)
      T2 Frames Extracted = 1
      Frame extract output saved in file: fextract_rx_do
      DVBT2-RX-TIMEDINT: (DVBT2BL)
      Time de-interleaver: 1 de-interleaved Interleaving Frames
      Time de-interleaver output saved in file: tdint_rx_do
      DVBT2-RX-CDINT: (DVBT2BL)
      Cell-deinterleaver output saved in file: cdint_rx_do
      DVBT2-RX-ROTCONDMAP: (DVBT2BL)
      Estimated SNR of data: 100.00 dB
      Processing 48 FEC blocks..10 20 30 40
      Constellation rotation: 8.600000 degrees rotation angle
      Genie-Aided demapper
      Rotated constellation demapper output saved in file: conrot_rx_do
      INFO: Demapper output BER=0.000000 (0/3110400)
      DVBT2-RX-BITDMAP: (DVBT2BL)
      Bit-de-mapper output saved in file: bdmap_rx_do
      DVBT2-RX-BITDINT: (DVBT2BL)
      Mode=8k - 64-QAM
      Bit-wise de-interlv: 48 interleaving blocks
      Bit-de-interleaver output saved in file: bdint_rx_do
      INFO: Bit de-interleaver output BER=0.000000 (0/3110400)
      DVBT2-RX-IDCOD: (DVBT2BL)
      Coding rate: 2/3
      Warning: fec.ldpcdec will be removed in a future release. Use comm.LDPCDecoder instead.
      In fec.ldpcdec.ldpcdec at 80
      In t2_rx_dvbt2blidcod at 68
      In t2_rx_idcod_wr at 78
      In t2_rx_dvbt2blrx at 124
      In t2_rx_wr at 73
      In t2_sys at 58
      In test_dvbt2bl_basic at 95
      In run at 96
      LDPC blocks: 48
      .Total unsatisfied parity checks = 0/21600
      .Total unsatisfied parity checks = 0/21600
      .Total unsatisfied parity checks = 0/21600
      .Total unsatisfied parity checks = 0/21600
      .Total unsatisfied parity checks = 0/21600
      .Total unsatisfied parity checks = 0/21600
      .Total unsatisfied parity checks = 0/21600
      .Total unsatisfied parity checks = 0/21600
      .Total unsatisfied parity checks = 0/21600
      .Total unsatisfied parity checks = 0/21600
      .Total unsatisfied parity checks = 0/21600
      .Total unsatisfied parity checks = 0/21600
      .Total unsatisfied parity checks = 0/21600
      .Total unsatisfied parity checks = 0/21600
      .Total unsatisfied parity checks = 0/21600
      .Total unsatisfied parity checks = 0/21600
      .Total unsatisfied parity checks = 0/21600
      .Total unsatisfied parity checks = 0/21600
      .Total unsatisfied parity checks = 0/21600
      .Total unsatisfied parity checks = 0/21600
      .Total unsatisfied parity checks = 0/21600
      .Total unsatisfied parity checks = 0/21600
      .Total unsatisfied parity checks = 0/21600
      .Total unsatisfied parity checks = 0/21600
      .Total unsatisfied parity checks = 0/21600
      .Total unsatisfied parity checks = 0/21600
      .Total unsatisfied parity checks = 0/21600
      .Total unsatisfied parity checks = 0/21600
      .Total unsatisfied parity checks = 0/21600
      .Total unsatisfied parity checks = 0/21600
      .Total unsatisfied parity checks = 0/21600
      .Total unsatisfied parity checks = 0/21600
      .Total unsatisfied parity checks = 0/21600
      .Total unsatisfied parity checks = 0/21600
      .Total unsatisfied parity checks = 0/21600
      .Total unsatisfied parity checks = 0/21600
      .Total unsatisfied parity checks = 0/21600
      .Total unsatisfied parity checks = 0/21600
      .Total unsatisfied parity checks = 0/21600
      .Total unsatisfied parity checks = 0/21600
      .Total unsatisfied parity checks = 0/21600
      .Total unsatisfied parity checks = 0/21600
      .Total unsatisfied parity checks = 0/21600
      .Total unsatisfied parity checks = 0/21600
      .Total unsatisfied parity checks = 0/21600
      .Total unsatisfied parity checks = 0/21600
      .Total unsatisfied parity checks = 0/21600
      .Total unsatisfied parity checks = 0/21600

          Number of iterations per LDPC block (mean): 1.000000
          Maximum number of iterations: 1
          Minimum number of iterations: 1
      
          Iterations for each block:
          1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 
          Inner-decoder output saved in file: idcod_rx_do
      INFO: Inner decoder output BER = 0.000000 (0/2073600)
      INFO: Number of erroneous FEC blocks: 0 of 48
      DVBT2-RX-ODCOD: (DVBT2BL)
          Number of received BCH blocks: 48
          Number of erroneous BCH blocks: 0
          Number of corrected BCH blocks: 0
          Outer-decoder output saved in file: odcod_rx_do
      INFO: Outer decoder output BER = 0.000000 (0/2065920)
      DVBT2-RX-SADAPT: (DVBT2BL)
          Number of complete BB frames: 48 (42960 data bits per frame)
          Number of transmitted bytes: 257760
          Number of CRC8 failures: 0/48
          Stream adaptor output saved in file: rx_do
      INFO: Stream adaption output BER = 0.000000 (0/2062080)
      

      End of Rx Digital Video Broadcasting - DVB-T2
      < Execution Time meassure Finished >
      Simulation Time = 27.41 seconds
      < Code path removed >

      run('dvbt2bl_VV', 'work', 'stdout',{'DVBT2.SIM.VV_CONFIG_NAME=''VV007-16KFFT''','DVBT2.SIM.SIMDIR=''C:/local/dvb-t2/CSPData''','DVBT2.CH.ENABLE=0','DVBT2.RX.ENABLE=0'})
      <Running Test:="" dvbt2bl_VV="">
      <Test Date:="" 21-Feb-2014="" 10:52:24="">
      Adding path
      Warning: Name is nonexistent or not a directory:
      C:\Users\Farhan\Documents\MATLAB\DVB-T2-CSP-03-02-02\DVB-T2-CSP-03-02-02\sim\test_dvbt2bl_VV\src\cfg
      In path at 110
      In addpath at 87
      In add_path at 70
      In run at 88
      < Code path added >
      Added path
      < Execution Time meassure Initialization >
      Configuration type: DVBT2BL
      Commandline parameters:
      DVBT2.SIM.VV_CONFIG_NAME='VV007-16KFFT'
      DVBT2.SIM.SIMDIR='C:/local/dvb-t2/CSPData'
      DVBT2.CH.ENABLE=0
      DVBT2.RX.ENABLE=0
      Setting parameters for V&V test case VV007-16KFFT
      Commandline parameters:
      DVBT2.SIM.VV_CONFIG_NAME='VV007-16KFFT'
      DVBT2.SIM.SIMDIR='C:/local/dvb-t2/CSPData'
      DVBT2.CH.ENABLE=0
      DVBT2.RX.ENABLE=0
      --SIMSTART-- VV007-16KFFT
      --SIMSTART-- VV007-16KFFT
      Starting Tx Digital Video Broadcasting - DVB-T2: (DVBT2BL)
      Data generator: (DVBT2ITU)
      Generating basic PRBS - this should only need to be done onceStart index for plp_id 0 is 1
      Start index for plp_id 1 is 2
      Start index for plp_id 3 is 3
      Start index for plp_id 7 is 4
      Start index for plp_id 15 is 5
      Start index for plp_id 31 is 6
      Start index for plp_id 63 is 7
      Start index for plp_id 127 is 8
      Start index for plp_id 255 is 9
      Start index for plp_id 24 is 96
      Start index for plp_id 49 is 97
      Start index for plp_id 99 is 98
      Start index for plp_id 199 is 99
      Start index for plp_id 76 is 145641
      Start index for plp_id 153 is 145642
      Start index for plp_id 142 is 463869
      Start index for plp_id 132 is 546975
      Start index for plp_id 134 is 667090
      Start index for plp_id 244 is 848029
      Start index for plp_id 124 is 1001137
      Start index for plp_id 249 is 1001138
      Start index for plp_id 180 is 1034571
      Start index for plp_id 52 is 1064569
      Start index for plp_id 105 is 1064570
      Start index for plp_id 211 is 1064571
      Start index for plp_id 98 is 1220450
      Start index for plp_id 197 is 1220451
      Start index for plp_id 78 is 1280791
      Start index for plp_id 157 is 1280792
      Start index for plp_id 182 is 1517030
      Start index for plp_id 192 is 1534110
      Start index for plp_id 18 is 1601837
      Start index for plp_id 37 is 1601838
      Start index for plp_id 75 is 1601839
      Start index for plp_id 151 is 1601840
      Start index for plp_id 138 is 1625460
      Start index for plp_id 178 is 1626454
      Start index for plp_id 10 is 1665269
      Start index for plp_id 21 is 1665270
      Start index for plp_id 43 is 1665271
      Start index for plp_id 87 is 1665272
      Start index for plp_id 175 is 1665273
      Start index for plp_id 212 is 1710027
      Start index for plp_id 64 is 1747555
      Start index for plp_id 129 is 1747556
      Start index for plp_id 94 is 1825920
      Start index for plp_id 189 is 1825921
      Start index for plp_id 146 is 1903024
      Start index for plp_id 104 is 2002466
      Start index for plp_id 209 is 2002467
      Start index for plp_id 108 is 2018917
      Start index for plp_id 217 is 2018918
      Start index for plp_id 60 is 2117730
      Start index for plp_id 121 is 2117731
      Start index for plp_id 243 is 2117732
      Start index for plp_id 186 is 2175446
      Start index for plp_id 216 is 2233480
      Start index for plp_id 42 is 2310727
      Start index for plp_id 85 is 2310728
      Start index for plp_id 171 is 2310729
      Start index for plp_id 154 is 2388959
      Start index for plp_id 112 is 2410756
      Start index for plp_id 225 is 2410757
      Start index for plp_id 210 is 2460278
      Start index for plp_id 222 is 2500588
      Start index for plp_id 48 is 2503724
      Start index for plp_id 97 is 2503725
      Start index for plp_id 195 is 2503726
      Start index for plp_id 190 is 2539796
      Start index for plp_id 224 is 2581956
      Start index for plp_id 172 is 2719602
      Start index for plp_id 214 is 2784134
      Start index for plp_id 168 is 2807321
      Start index for plp_id 152 is 2929649
      Start index for plp_id 150 is 3182625
      Start index for plp_id 194 is 3235019
      Start index for plp_id 204 is 3330537
      Start index for plp_id 148 is 3402811
      Start index for plp_id 136 is 3428016
      Start index for plp_id 234 is 3437805
      Start index for plp_id 100 is 3474435
      Start index for plp_id 201 is 3474436
      Start index for plp_id 66 is 3667432
      Start index for plp_id 133 is 3667433
      Start index for plp_id 236 is 3669195
      Start index for plp_id 164 is 3759959
      Start index for plp_id 202 is 3831036
      Start index for plp_id 128 is 3942038
      Start index for plp_id 114 is 4051769
      Start index for plp_id 229 is 4051770
      Start index for plp_id 90 is 4119143
      Start index for plp_id 181 is 4119144
      Start index for plp_id 70 is 4145830
      Start index for plp_id 141 is 4145831
      Start index for plp_id 254 is 4174408
      Start index for plp_id 126 is 4178067
      Start index for plp_id 253 is 4178068
      Start index for plp_id 88 is 4244766
      Start index for plp_id 177 is 4244767
      Start index for plp_id 34 is 4269895
      Start index for plp_id 69 is 4269896
      Start index for plp_id 139 is 4269897
      Start index for plp_id 58 is 4360659
      Start index for plp_id 117 is 4360660
      Start index for plp_id 235 is 4360661
      Start index for plp_id 140 is 4375777
      Start index for plp_id 200 is 4389884
      Start index for plp_id 54 is 4542738
      Start index for plp_id 109 is 4542739
      Start index for plp_id 219 is 4542740
      Start index for plp_id 250 is 4568774
      Start index for plp_id 16 is 4652469
      Start index for plp_id 33 is 4652470
      Start index for plp_id 67 is 4652471
      Start index for plp_id 135 is 4652472
      Start index for plp_id 36 is 4775108
      Start index for plp_id 73 is 4775109
      Start index for plp_id 147 is 4775110
      Start index for plp_id 252 is 4831140
      Start index for plp_id 30 is 4845466
      Start index for plp_id 61 is 4845467
      Start index for plp_id 123 is 4845468
      Start index for plp_id 247 is 4845469
      Start index for plp_id 106 is 4846964
      Start index for plp_id 213 is 4846965
      Start index for plp_id 110 is 4923698
      Start index for plp_id 221 is 4923699
      Start index for plp_id 8 is 4961359
      Start index for plp_id 17 is 4961360
      Start index for plp_id 35 is 4961361
      Start index for plp_id 71 is 4961362
      Start index for plp_id 143 is 4961363
      Start index for plp_id 46 is 4990584
      Start index for plp_id 93 is 4990585
      Start index for plp_id 187 is 4990586
      Start index for plp_id 248 is 5163829
      Start index for plp_id 6 is 5253169
      Start index for plp_id 13 is 5253170
      Start index for plp_id 27 is 5253171
      Start index for plp_id 55 is 5253172
      Start index for plp_id 111 is 5253173
      Start index for plp_id 223 is 5253174
      Start index for plp_id 238 is 5253264
      Start index for plp_id 162 is 5351034
      Start index for plp_id 166 is 5356826
      Start index for plp_id 218 is 5408474
      Start index for plp_id 4 is 5446166
      Start index for plp_id 9 is 5446167
      Start index for plp_id 19 is 5446168
      Start index for plp_id 39 is 5446169
      Start index for plp_id 79 is 5446170
      Start index for plp_id 159 is 5446171
      Start index for plp_id 188 is 5446261
      Start index for plp_id 20 is 5524398
      Start index for plp_id 41 is 5524399
      Start index for plp_id 83 is 5524400
      Start index for plp_id 167 is 5524401
      Start index for plp_id 130 is 5584582
      Start index for plp_id 196 is 5624779
      Start index for plp_id 156 is 5765473
      Start index for plp_id 86 is 5769758
      Start index for plp_id 173 is 5769759
      Start index for plp_id 170 is 5859547
      Start index for plp_id 226 is 5860778
      Start index for plp_id 240 is 5985808
      Start index for plp_id 40 is 6009174
      Start index for plp_id 81 is 6009175
      Start index for plp_id 163 is 6009176
      Start index for plp_id 84 is 6089730
      Start index for plp_id 169 is 6089731
      Start index for plp_id 122 is 6150331
      Start index for plp_id 245 is 6150332
      Start index for plp_id 220 is 6365606
      Start index for plp_id 50 is 6366173
      Start index for plp_id 101 is 6366174
      Start index for plp_id 203 is 6366175
      Start index for plp_id 28 is 6370458
      Start index for plp_id 57 is 6370459
      Start index for plp_id 115 is 6370460
      Start index for plp_id 231 is 6370461
      Start index for plp_id 184 is 6437562
      Start index for plp_id 56 is 6460247
      Start index for plp_id 113 is 6460248
      Start index for plp_id 227 is 6460249
      Start index for plp_id 32 is 6461478
      Start index for plp_id 65 is 6461479
      Start index for plp_id 131 is 6461480
      Start index for plp_id 230 is 6466173
      Start index for plp_id 174 is 6478596
      Start index for plp_id 232 is 6500264
      Start index for plp_id 38 is 6586508
      Start index for plp_id 77 is 6586509
      Start index for plp_id 155 is 6586510
      Start index for plp_id 102 is 6590755
      Start index for plp_id 205 is 6590756
      Start index for plp_id 14 is 6609874
      Start index for plp_id 29 is 6609875
      Start index for plp_id 59 is 6609876
      Start index for plp_id 119 is 6609877
      Start index for plp_id 239 is 6609878
      Start index for plp_id 242 is 6626627
      Start index for plp_id 160 is 6855005
      Start index for plp_id 96 is 6910516
      Start index for plp_id 193 is 6910517
      Start index for plp_id 72 is 6918437
      Start index for plp_id 145 is 6918438
      Start index for plp_id 62 is 7038262
      Start index for plp_id 125 is 7038263
      Start index for plp_id 251 is 7038264
      Start index for plp_id 206 is 7048002
      Start index for plp_id 118 is 7111434
      Start index for plp_id 237 is 7111435
      Start index for plp_id 12 is 7187208
      Start index for plp_id 25 is 7187209
      Start index for plp_id 51 is 7187210
      Start index for plp_id 103 is 7187211
      Start index for plp_id 207 is 7187212
      Start index for plp_id 144 is 7189234
      Start index for plp_id 246 is 7467033
      Start index for plp_id 228 is 7486377
      Start index for plp_id 22 is 7511216
      Start index for plp_id 45 is 7511217
      Start index for plp_id 91 is 7511218
      Start index for plp_id 183 is 7511219
      Start index for plp_id 116 is 7637312
      Start index for plp_id 233 is 7637313
      Start index for plp_id 68 is 7698568
      Start index for plp_id 137 is 7698569
      Start index for plp_id 198 is 7747410
      Start index for plp_id 2 is 7787908
      Start index for plp_id 5 is 7787909
      Start index for plp_id 11 is 7787910
      Start index for plp_id 23 is 7787911
      Start index for plp_id 47 is 7787912
      Start index for plp_id 95 is 7787913
      Start index for plp_id 191 is 7787914
      Start index for plp_id 74 is 7788003
      Start index for plp_id 149 is 7788004
      Start index for plp_id 158 is 7983771
      Start index for plp_id 82 is 8020777
      Start index for plp_id 165 is 8020778
      Start index for plp_id 120 is 8134476
      Start index for plp_id 241 is 8134477
      Start index for plp_id 208 is 8211128
      Start index for plp_id 176 is 8275142
      Start index for plp_id 26 is 8299268
      Start index for plp_id 53 is 8299269
      Start index for plp_id 107 is 8299270
      Start index for plp_id 215 is 8299271
      Start index for plp_id 44 is 8348110
      Start index for plp_id 89 is 8348111
      Start index for plp_id 179 is 8348112
      Start index for plp_id 92 is 8378315
      Start index for plp_id 185 is 8378316
      Start index for plp_id 80 is 8379711
      Start index for plp_id 161 is 8379712
      Error using save
      Cannot create 'datagen_tx_di.mat' because 'C:/local/dvb-t2/CSPData' does not exist.

      Error in t2_tx_dvbt2itudatagen_prbsseq_precalc (line 87)
      save(prbsFileName,'prbsBin','startIndex');

      Error in t2_tx_dvbt2itudatagen_normalpackets (line 71)
      data(5:end,:) = reshape(t2_tx_dvbt2itudatagen_prbsseq_precalc(plp, numBits, DVBT2, init,
      prbsPLP),(OUPL-pktHeaderLen)/8,[]);

      Error in t2_tx_dvbt2itudatagen (line 110)
      data = t2_tx_dvbt2itudatagen_normalpackets(numPackets, plp, DVBT2, START_INT_FRAME==0, plp);

      Error in t2_tx_datagen_wr (line 78)
      data = t2_tx_dvbt2itudatagen(DVBT2, FidLogFile);

      Error in t2_tx_dvbt2bltx (line 59)
      t2_tx_datagen_wr(DVBT2, FidLogFile);

      Error in t2_tx_wr (line 67)
      t2_tx_dvbt2bltx(DVBT2, FidLogFile);

      Error in t2_sys (line 56)
      t2_tx_wr(DVBT2, FidLogFile);

      Error in test_dvbt2bl_VV (line 120)
      result = t2_sys(DVBT2,Fid_Log);

      Error in run (line 96)
      feval(runTest, test_path, work_path, fid_log, fid_rep, varargin);

      if i run the wrong command.Kindly tel me the proper command/syntax for that.

      Kindly also help me about the basic syntax/run command for "DVBT2-CSP-03-02-02/model/Tx/tx_dvbt2bldatagen".Its function is '"DataOut = t2_tx_dvbt2bldatagen(DVBT2, FidLogFile)".
      IN it i cant understand that which input argument we gives for "DVBT2". I read the WHP196 .But still couldn't understand that which proper input we put for it. I will be very Thankful to you.
      Thanks..

       
  • Thanks for the additional information. The error that is causing it to fail is a bit buried, because MATLAB lists the call stack from the top down, thus pushing the actual error and where it happened up the screen. Here is the actual error:

    Error using save
    Cannot create 'datagen_tx_di.mat' because 'C:/local/dvb-t2/CSPData' does not exist.
    Error in t2_tx_dvbt2itudatagen_prbsseq_precalc (line 87)
    save(prbsFileName,'prbsBin','startIndex');
    

    You should be able to fix it simply by creating that directory (if you're using Windows) or if you want it to put the files somewhere else (for example in Linux), pass a different directory in the DVBT2.SIM.SIMDIR part of the original "run" command.

    I notice that there are a couple of warnings about "obsolete" functions; the LDPC functions were brand new functions when we started the CSP, requiring the very latest version of MATLAB!

    Regarding tx_dvbt2bldatagen, DVBT2 is a complicated hierarchical data structure containing many fields. Each module only uses a small subset of these fields. The normal convention is that there is a "Parameters definition" section near the beginning of the function in which the required parameters are extracted from the DVBT2 structure. There is often also a PLP-specific section, which extracts the parameters for each PLP. For example, in the block you are asking about we have:

    %------------------------------------------------------------------------------
    % Parameters Definition
    %------------------------------------------------------------------------------
    SEED       = DVBT2.TX.DATAGEN.SEED;     % Random seed
    NUM_PLPS   = DVBT2.NUM_PLPS;
    
    %------------------------------------------------------------------------------
    % PLP Loop
    %------------------------------------------------------------------------------
    
    for plp=1:NUM_PLPS
    
        %------------------------------------------------------------------------------
        % PLP-specific Parameters Definition
        %------------------------------------------------------------------------------
    
        START_INT_FRAME = DVBT2.STANDARD.PLP(plp).START_INT_FRAME; % First Interleaving Frame to generate
        NUM_INT_FRAMES = DVBT2.STANDARD.PLP(plp).NUM_INT_FRAMES; % Number of Interleving Frames to generate (may be zero)
        NBLOCKS = DVBT2.PLP(plp).NBLOCKS(START_INT_FRAME+1:START_INT_FRAME+NUM_INT_FRAMES); % #FEC blocks in each I/L frame
        NUM_FBLOCK = sum(NBLOCKS); % Total number of FEC blocks to generate
        CR         = DVBT2.STANDARD.PLP(plp).ICOD.CR;    % Coding rate
        FECLEN     = DVBT2.PLP(plp).FECLEN;              %the inner fec length
    

    If you really want to call this block on its own, you will need to make a DVBT2 variable, and ensure that all of the fields referenced by the function have been assigned the correct values. Really, the easiest way to do that is by using the configuration, standard and possibly the VV test case functions, and the easiest way to do that is by running one of the "sims". If you really want to play with the block on its own, you could generate the DVBT2 structure and save it in a file, either by adding some code to save it, or by inserting a breakpoint and saving it when the program halts. Then you can reload it and pass it to the function as many times as you like. However, note also that the CSP lets you run just some of the blocks if you want, using the START_AFTER and STOP_AFTER settings as described in WHP196. If you only want to run some of the blocks, this might be worth looking at.

     
    • comsian_nip
      comsian_nip
      2014-02-25

      Thanks Oliver!
      "DVbt2bl_VV" test run perfectly now. i will try your second suggestion of breaking point and if i found any problem. i will discuss with you.. Here is another problem. i run the" dvbt2bl_ber_snr" by using a command. and found following error.

      run('dvbt2bl_ber_snr', 'work', 'stdout',{'DVBT2.SIM.VV_CONFIG_NAME=''VV007-16KFFT''','DVBT2.SIM.SIMDIR=''C:/local/dvb-t2/CSPData''','DVBT2.CH.ENABLE=0','DVBT2.RX.ENABLE=0'})
      <Running Test:="" dvbt2bl_ber_snr="">
      <Test Date:="" 25-Feb-2014="" 12:04:38="">
      Adding path
      < Code path added >
      Added path
      < Execution Time meassure Initialization >
      Configuration type: DVBT2BL_NOL1
      CSP Version: 030202
      Commandline parameters:
      DVBT2.SIM.VV_CONFIG_NAME='VV007-16KFFT'
      DVBT2.SIM.SIMDIR='C:/local/dvb-t2/CSPData'
      DVBT2.CH.ENABLE=0
      DVBT2.RX.ENABLE=0
      Starting Tx Digital Video Broadcasting - DVB-T2: (DVBT2BL)
      Data generator: (DVBT2BL)
      Warning: This is an obsolete function and may be removed in the future. Please use RANDI instead.

      In randint at 41
      In t2_tx_dvbt2bldatagen at 84
      In t2_tx_datagen_wr at 72
      In t2_tx_dvbt2bltx at 59
      In t2_tx_wr at 67
      In test_dvbt2bl_ber_snr at 145
      In run at 96
      259200 Bytes generated
      Data stored in workspace
      DVBT2-TX-MADAPT: (DVBT2BL)
      Mode adaptor output saved in file: madapt_tx_do
      DVBT2-TX-L1GEN: DISABLED
      DVBT2-TX-BBSCRAMBLE: (DVBT2BL)
      Number of complete BB frames: 48
      BB scrambler output stored in workspace
      DVBT2-TX-OCOD: (DVBT2BL)
      Number of Bytes read: 258240
      BCH blocks: 48
      Outer-coder output saved in file: ocoder_tx_do
      DVBT2-TX-ICOD: (DVBT2BL)
      Coding rate: 2/3
      Warning: fec.ldpcenc will be removed in a future release. Use comm.LDPCEncoder instead.
      In fec.ldpcenc.ldpcenc at 69
      In t2_tx_dvbt2blicod at 85
      In t2_tx_icod_wr at 78
      In t2_tx_dvbt2bltx at 74
      In t2_tx_wr at 67
      In test_dvbt2bl_ber_snr at 145
      In run at 96
      LDPC blocks: 48
      Coded bits: 3110400
      Inner-coder output stored in workspace
      DVBT2-TX-BIT-INT: (DVBT2BL)
      Mode=8k - 256-QAM
      Bit interleaver: 48 interleaving blocks
      Bit-interleaver output stored in workspace
      DVBT2-TX-BIT-MAP: (DVBT2BL)
      Bit mapping output saved in file: bmap_tx_do
      DVBT2-TX-MAP: (DVBT2BL)
      256-QAM
      Mapper output stored in workspace
      DVBT2-TX-CONROT: (DVBT2BL)
      Constellation rotation: 3.576334 degrees rotation angle
      Constellation rotation stored in workspace
      DVBT2-TX-CINT: (DVBT2BL)
      Cell-interleaver output stored in workspace
      DVBT2-TX-TINT: (DVBT2BL)
      Time interleaver: 1 interleaved Interleaving Frames
      Time-interleaver output stored in workspace
      DVBT2-TX-DUMMY-CELLS: (DVBT2BL)
      Dummy Cells Inserted = 5241 cells
      Dummy Cells output stored in workspace
      TXSIGAUXGEN: DISABLED
      DVBT2-TX-FBUILD: DISABLED
      DVBT2-TX-FREQ-INT: (DVBT2BL)
      Mode=8k
      Symbol interleaver: 57 interleaved symbols
      Freq. interleaver output stored in workspace
      DVBT2-TX-MISO: (DVBT2BL)
      MISO processing: 57 symbols
      MISO processing output stored in workspace
      DVBT2-TX-FADAPT: (DVBT2BL)
      Mode=8k
      Number of complete frames: 0 (83 symbols per frame)
      Number of transmitted symbols: 57
      Scattered pilots pattern: NONE
      Frame adaptation output stored in workspace
      DVBT2-TX-OFDM: (DVBT2BL)
      Mode=8k
      OFDM modulator output stored in workspace
      DVBT2-TX-PAPRTR: DISABLED
      DVBT2-TX-CP: (DVBT2BL)
      Tx1 Guard interval=1/8 - Number of symbols=57
      CP output stored in workspace
      DVBT2-TX-FEF: DISABLED
      DVBT2-TX-P1-PREAMB: DISABLED
      End of Tx Digital Video Broadcasting - DVB-T2
      Propagation Channel - DISABLED
      Rx Digital Video Broadcasting - DVB-T2 - DISABLED
      Attempt to reference field of non-structure array.

      Error in test_dvbt2bl_ber_snr (line 156)
      bitErrorsPerFec= [bitErrorsPerFec result.BER.IDCOD_NUMERRPERFEC];

      Error in run (line 96)
      feval(runTest, test_path, work_path, fid_log, fid_rep, varargin);

      Similar error occurs while running "dvbt2bl_ber_snr_VV".

      Now plz tell me what kind of error appear here again.
      Thanks..

       
      Last edit: comsian_nip 2014-02-25
      • V.Jeewa
        V.Jeewa
        2014-05-18

        Comsian-Nip

        I have the same problem. May I know how you managed to solve it

         
    • V.Jeewa
      V.Jeewa
      2014-05-16

      Dear Oliver.

      I sent a email for help through the BBC and received your response.

      I have the same problem here:

      Error using save
      Cannot create 'datagen_tx_di.mat' because 'C:/local/dvb-t2/CSPData' does not exist.
      Error in t2_tx_dvbt2itudatagen_prbsseq_precalc (line 87)
      save(prbsFileName,'prbsBin','startIndex');

      I read your reply and you are indeed right. I am new to Matlab and the question is: How do I create this directory as the layout on the computer looks fine and does not indicate a wrong path?

       
  • comsian_nip
    comsian_nip
    2014-03-03

    Hi Oliver
    i read WHP196 tested simulations.In WHP196 section 3.4, there is written that BER simulation will run with same SNR value and different seed value and it continues until stoping criteria is achieved. There is no proper explanation about seed value and stoping criteria.Plz kindly tel me more about seed value and stoping criteria. what is the stoping criteria or what is its value or how stoping criteria is achieved.
    Thanks.
    regards
    comsian

     
  • Hi,

    The "seed value" refers to the seed used by the random number generator used in the channel model, particularly to generate the noise. Setting the seed value ensures that the same sequence of random numbers and hence the same noise waveform are generated each time, making the simulation repeatable. Setting different seed values on different runs ensures that different but repeatable noise sequences are used.

    The stopping criteria were defined by the DVB-T2 group and are described in clause 14.2 of the DVB-T2 Implementation Guidelines (ETSI TS 102 831), but briefly the requirements are a minimum of 1000 bit errors and 100 blocks containing errors.

     
    • comsian_nip
      comsian_nip
      2014-03-05

      Hi,
      Thanks Oliver. kindly also help me in the following simulation. i run the "dvbt2bl_T2mIin" simulation by running a command and found an error mentioned below. kindly also help me about that. i d0nt found any error causing in simulation.

      . run('dvbt2bl_T2MIin','c:\tmp','stdout', {'DVBT2.SIM.DISABLE_IBS_INSERTION=1', 'DVBT2.TX.L1GEN.TYPE=''DVBT2MI''', 'DVBT2.SIM.INPUT_T2MI_PID=4096', 'DVBT2.SIM.INPUT_T2MI_FILENAME=''VV400-RV-MPLP1.t2mi.ts''', 'DVBT2.SPEC_VERSION=''1.2.1''','DVBT2.STRICT=0', 'DVBT2.SIM.EN_VV_FILE_TP19=0','DVBT2.SIM.EN_VV_FILES=1','DVBT2.SIM.VV_CONFIG_NAME=''VV400-RV-MPLP1''', 'DVBT2.CH.ENABLE=0', 'DVBT2.RX.ENABLE=0', 'DVBT2.SIM_VV_PATH = ''c:/tmp''','DVBT2.SIM.EN_DJB_FILES=0','DVBT2.SIM.VV_COMPANY_NAME=''CSP''','DVBT2.RX.L1DECODE.TYPE=''DVBT2BLCHEAT'''});

      <Running Test:="" dvbt2bl_T2MIin="">
      <Test Date:="" 05-Mar-2014="" 14:28:02="">
      Adding path
      Warning: Name is nonexistent or not a directory:
      C:\Users\Farhan\Documents\MATLAB\DVB-T2-CSP-03-02-02\DVB-T2-CSP-03-02-02\sim\test_dvbt2bl_T2MIin\src\cfg

      In path at 110
      In addpath at 87
      In add_path at 70
      In run at 88
      < Code path added >
      Added path
      < Execution Time meassure Initialization >
      Configuration type: DVBT2BL
      Commandline parameters:
      DVBT2.SIM.DISABLE_IBS_INSERTION=1
      DVBT2.TX.L1GEN.TYPE='DVBT2MI'
      DVBT2.SIM.INPUT_T2MI_PID=4096
      DVBT2.SIM.INPUT_T2MI_FILENAME='VV400-RV-MPLP1.t2mi.ts'
      DVBT2.SPEC_VERSION='1.2.1'
      DVBT2.STRICT=0
      DVBT2.SIM.EN_VV_FILE_TP19=0
      DVBT2.SIM.EN_VV_FILES=1
      DVBT2.SIM.VV_CONFIG_NAME='VV400-RV-MPLP1'
      DVBT2.CH.ENABLE=0
      DVBT2.RX.ENABLE=0
      DVBT2.SIM_VV_PATH = 'c:/tmp'
      DVBT2.SIM.EN_DJB_FILES=0
      DVBT2.SIM.VV_COMPANY_NAME='CSP'
      DVBT2.RX.L1DECODE.TYPE='DVBT2BLCHEAT'
      Configuration type: DVBT2MI
      Error using feof
      Invalid file identifier. Use fopen to generate a valid file identifier.

      Kindly help me about that too. waiting for ur reply.
      thanks...

       
  • The command you are using runs the CSP using input from a T2-MI file. You almost certainly don't have a file VV400-RV-MPLP1.t2mi.ts, which is why it isn't working. The file used in this example was used internally within DVB but I don't think any of these T2MI files have been released publicly.

     
    • comsian_nip
      comsian_nip
      2014-03-06

      Hi
      plz tell me how to make T2mi file if its not publicly released or another way to run the simulation??.?

       
  • As it happens, we have had a number of other enquiries about the T2-MI files and so have decided to make them available on the DVB-T2 reference streams FTP site:

    ftp://ftp.kw.bbc.co.uk/t2refs/t2mi

    There is a README file that explains what each file is.

    EDIT: Fixed the link location. Sorry for any confusion.

     
    Last edit: Oliver Haffenden 2014-06-26
  • comsian_nip
    comsian_nip
    2014-04-14

    Thanks Oliver.

     
  • comsian_nip
    comsian_nip
    2014-04-21

    Hi Oliver!
    I am working on this code and find many confusions in it.. Firstly the problem is that when the data is generated ,from where the data is taken as input?? and where "data in" or "input data" is save in code(if i want to observe and understand that ) while we run the simulation " test_dvbt2bl_ber_snr".Acutally as u know the simulations are running directly by calling a specific command from run.The main issue i cant understand is that from where the data generate or input data takes in??? waiting for your reply.
    Thanks...

     
    Last edit: comsian_nip 2014-04-21
  • comsian_nip
    comsian_nip
    2014-04-21

    Hi Oliver!
    I am working on this code and find many confusions in it.. Firstly the problem is that when the data is generated ,from where the data is taken as input?? and where "data in" or "input data" is save in code(if i want to observe and understand that ) while we run the simulation " test_dvbt2bl_ber_snr".Acutally as u know the simulations are running directly by calling a specific command from run.The main issue i cant understand is that from where the data generate or input data takes in??? waiting for your reply.
    Thanks...

     
  • Section 4.1 of WHP196 describes the different data generators. For the simulation you are running, the first concrete implementation, dvbt2bldatagen, is used. The generated data is saved using the "intermediate file" mechanism discussed in section 2.4.4. The actual saving takes place in the wrapper function (see section 2.6.1).

     
  • comsian_nip
    comsian_nip
    2014-04-24

    Thanks for reply. But after running the simulations. as its mention that intermediate files are stored in "work" of repctive test_id. when i am running the simulations my :work" and "logs" are blank. nothing is save there. and as there are too many bytes generated here. firstly i want to generate 4 bytes to understand the code.For that when i change a "numByte=4" in model/tx/tx_dvbt2bldatagen/t2_tx_dvbt2bldatagen.m . simulations generate 4 bytes but gives an error at following stage.

    run('dvbt2bl_ber_snr','c:\tmp','stdout')
    <Running Test:="" dvbt2bl_ber_snr="">
    <Test Date:="" 24-Apr-2014="" 11:54:35="">
    Adding path
    < Code path added >
    Added path
    < Execution Time meassure Initialization >
    Configuration type: DVBT2BL_NOL1
    CSP Version: 030202
    Starting Tx Digital Video Broadcasting - DVB-T2: (DVBT2BL)
    Data generator: (DVBT2BL)
    Warning: This is an obsolete function and may be removed in the
    future. Please use RANDI instead.
    In randint at 41
    In t2_tx_dvbt2bldatagen at 84
    In t2_tx_datagen_wr at 72
    In t2_tx_dvbt2bltx at 59
    In t2_tx_wr at 67
    In test_dvbt2bl_ber_snr at 145
    In run at 96
    4 Bytes generated
    Data stored in workspace
    DVBT2-TX-MADAPT: (DVBT2BL)
    Index exceeds matrix dimensions.

    Error in t2_tx_dvbt2blmadapt (line 369)
    dataField = dataAuxBin(dataStart:dataEnd);

    Error in t2_tx_madapt_wr (line 76)
    data = t2_tx_dvbt2blmadapt(DVBT2, FidLogFile, data);

    Error in t2_tx_dvbt2bltx (line 62)
    t2_tx_madapt_wr(DVBT2, FidLogFile);

    Error in t2_tx_wr (line 67)
    t2_tx_dvbt2bltx(DVBT2, FidLogFile);

    Error in test_dvbt2bl_ber_snr (line 145)
    t2_tx_wr(DVBT2);

    Error in run (line 96)
    feval(runTest, test_path, work_path, fid_log, fid_rep, varargin);

    Kindly tel me how do i run my simulations for "4Bytes" or how to remove an error.
    waiting for your reply. Thanks.

     
  • Hi,

    The files should be in C:\tmp. The "work" directory within the relevant test directory is used if the second argument to the run command is "work", as in the first example at the top of this thread. However, if you pass a full path like "C:\tmp" it will put the files there instead. Can point out where it is mentioned about the location of the files so that I can check if it's incorrect? I vaguely remember saying it but can't find it in this thread.

    The line numBytes = ceil(FECLEN*CR*NUM_FBLOCK/8); was carefully written to calculate the correct number of bytes to generate to fill the number of FEC blocks specified. If you change a line like this it's not surprising that you would get an error later. If you're only interested in the first four bytes, I suggest you just ignore the other bytes!

     
  • comsian_nip
    comsian_nip
    2014-04-28

    Hi
    Thanks for the reply.yes sorry my mistake. i check "C:\tmp" directory. bytes are saved there. As 4bytes are generated. but why the simulation don't run completely?? as i mentioned above the error caused by running the simulation.. The following errors appear. If the bytes are generated, possibly the simulation run to an end....

    run('dvbt2bl_ber_snr','c:\tmp','stdout')
    <Running Test:="" dvbt2bl_ber_snr="">
    <Test Date:="" 28-Apr-2014="" 11:07:45="">
    Adding path
    < Code path added >
    Added path
    < Execution Time meassure Initialization >
    Configuration type: DVBT2BL_NOL1
    CSP Version: 030202
    Starting Tx Digital Video Broadcasting - DVB-T2: (DVBT2BL)
    Data generator: (DVBT2BL)
    Warning: This is an obsolete function and may be removed in the
    future. Please use RANDI instead.

    In randint at 41
    In t2_tx_dvbt2bldatagen at 86
    In t2_tx_datagen_wr at 72
    In t2_tx_dvbt2bltx at 59
    In t2_tx_wr at 67
    In test_dvbt2bl_ber_snr at 145
    In run at 96
    4 Bytes generated
    Data stored in workspace
    DVBT2-TX-MADAPT: (DVBT2BL)
    Index exceeds matrix dimensions.

    Error in t2_tx_dvbt2blmadapt (line 369)
    dataField = dataAuxBin(dataStart:dataEnd);

    Error in t2_tx_madapt_wr (line 76)
    data = t2_tx_dvbt2blmadapt(DVBT2, FidLogFile, data);

    Error in t2_tx_dvbt2bltx (line 62)
    t2_tx_madapt_wr(DVBT2, FidLogFile);

    Error in t2_tx_wr (line 67)
    t2_tx_dvbt2bltx(DVBT2, FidLogFile);

    Error in test_dvbt2bl_ber_snr (line 145)
    t2_tx_wr(DVBT2);

    Error in run (line 96)
    feval(runTest, test_path, work_path, fid_log, fid_rep, varargin);

     
  • comsian_nip
    comsian_nip
    2014-04-28

    Hi
    I have another problem in the command given in "model\tx\tx_dvbt2bldatagen\t2_txdvbt2bldatagen.m" i.e "data = randint(numBytes,1,256, SEED);

    explaination of "randint" command is understand by the website ""http://www.mathworks.com/help/comm/ref/randint.html "

    here as numBytes are rows and 1 is column. 256 mean that it takes random data from the given range...
    when i change the values in these arguments.. the output remain the same as size. mean if i changed the column value i.e 2nd argument to "2" instead of "1". the output will have the same results i.e data generated will be of "data(5,1)" instead of "(5,2)".And if i put the third arguments "0" instead of "256". it still create data upto 256 index..
    i dont find any change in the output generated while changing different values in these arguments.
    actually i m trying to understand the code first by changing input parameters n comparing the results. waitng for your reply.

     
    Last edit: comsian_nip 2014-04-29
  • comsian_nip
    comsian_nip
    2014-04-30

    Hi Oliver
    i have a little bit issue against "output data" i.e "datagen_tx_do" in the code. when i run the command " run('dvbt2bl_ber_snr','c:\tmp','stdout')". it diplay the output that "7 bytes are generated and stored in worksapce". ubt actually the directory "c:/tmp" is blank. it doesnot saved there. what kind of error it can be?? two days ago when i run simulation. It gives that data in directory. but now its not .It create this kind of file. may it help you to understand issue. waiting for your reply.
    Thanks.

     
    Last edit: comsian_nip 2014-04-30
  • Hi,

    Taking your posts in reverse order:

    Your latest problem looks like MATLAB itself is crashing, giving a Java error, as opposed to some problem with the CSP code which would cause a MATLAB error. It could be anything: your disk is full, your Java or MATLAB install is corrupted... Does MATLAB actually close when this happens? Do the dates and times on these log files definitely correspond to the errors you are seeing?

    Regarding the missing files, the message "Data stored in workspace" indicates that the data is being passed from one block to the next in memory, as opposed to using files. This agrees with the setting DVBT2.TX.DATAGEN_FDO = ''; in cfg_indep_vars.m for the simulation you are running. This explains why there are no files in C:\tmp; the files you saw two days ago must have been generated by a previous run of a different simulation. Sorry I didn't notice this before.

    Regarding your previous post: if you change a line of code and it has no effect, this typically means that the line you are changing is not being executed. For example, perhaps the CSP is not configured to use that particular file, or you have more than one copy of the same file and you're editing the wrong one. I strongly suggest that you learn how to use breakpoints and the debugger as that is an easy way to determine if a particular line is being run, and if it is, why it is having the effect that you see.

    In fact this could be a symptom of the same thing as the missing files: if you were looking at files generated by a previous simulation then of course they wouldn't change. (This is another thing to check for: are the file modification times changing when you run the program?)

    Regarding the error messages generated when you tried to generate 4 bytes, I tried to explain in my last post that the amount of data generated by each stage is carefully calculated; you have overridden this calculation with your own magic value; the wrong amount of data is generated and so an error occurs in a later point in the chain, which was expecting the amount of data given by the original calculation.

    I'm happy to provide support to help people to use the CSP as intended; or if the CSP as released is not working or producing errors in some particular configuration; or if somebody wants to extend the CSP. However, I hope you'll understand that my colleagues and I do not have time to help debug problems caused by making arbitrary changes to previously correct code.

     
    Last edit: Oliver Haffenden 2014-04-30
  • comsian_nip
    comsian_nip
    2014-05-02

    Hi
    Thanks for helping me.. and the matlab doesnot close when it happen. Yes the error may be because of disk full or crashed. i will check that.

     
  • V.Jeewa
    V.Jeewa
    2014-05-16

    Dear Oliver.

    I sent a email for help through the BBC and received your response.

    I have the same problem as comsian_nip above :

    Error using save
    Cannot create 'datagen_tx_di.mat' because 'C:/local/dvb-t2/CSPData' does not exist.
    Error in t2_tx_dvbt2itudatagen_prbsseq_precalc (line 87)
    save(prbsFileName,'prbsBin','startIndex');

    I read your reply and you are indeed right. I am new to Matlab and the question is: How do I create this directory as the layout on the computer looks fine and does not indicate a wrong path?

     
1 2 > >> (Page 1 of 2)