Fulus
Posts:
11
Registered:
6/23/12
|
|
Re: commBCHEncoder/commBCHDecoder
Posted:
Jul 16, 2012 4:54 PM
|
|
Hello
I have inverted the bch output just as you suggested but still the same "multichannel operation is not supported" error. here is a bit of my code so you might take a look thank you.
hStr=RandStream('mt19937ar','seed',654321); BBFrame=randi(hStr,[0,1],32208*k,1); BCHFEC=step(EncoderBCH,BBFrame); BCHFEC=BCHFEC'; FECFrame=step(hEnc,BCHFEC); hInt = comm.BlockInterleaver(permVec); IntData = step(hInt, FECFrame); hMod = comm.PSKModulator(M, 'PhaseOffset',pi/16); Msg_tx = step(hMod, IntData); Msg_tx = rectpulse(Msg_tx,NSAMP); EbNo=5; snr=EbNo+10*log10(H)-10*log10(Nsamp); hAWGN = comm.AWGNChannel('NoiseMethod', ... 'Signal to noise ratio (SNR)','SNR',snr); noisy_msg = step(hAWGN, Msg_tx); noisy_msg = intdump(noisy_msg, Nsamp); hDemod = comm.PSKDemodulator(M, 'PhaseOffset',pi/16); Msg_rx = step(hDemod, noisy_msg); hDeInt = comm.BlockDeinterleaver(permVec); FECFrame_rx = step(hDeInt, Msg_rx); BCH_rx = step(hdec, FECFrame_rx); BCH_rx =BCH_rx '; BBFrame_rx = step(DecoderBCH, BCH_rx);
|
|