Hello,
Actually modulation on the data is being done with my vector signal generator( Transmitter) and On the receive end, I have my hardware in which there is a demodulator IP core. This core output the demodulated data that I can see in the oscilloscope.
That means , All the things that are the requires of BER testing includes transmitter( PN generator, modulation) , Real time noise addition, receiver( demodulator) etc. But the only thing I don't have is BER tester.
So, I have one reference information PN sequence which is modulated and transmitted by transmitter. I have received data from the receiver.
Now, I want to measure demodulator performance via BER testing without BER Tester simulator.
For that, I have attached the the MATLAB code I am referring. as well Transmitted PN9 sequence.
In this code, Below are the things that I do not understand.
1) When I import the attached file(1.txt), MATLAB do not take it as a binary file and provide input_file as inf. MATLAB only understand the text file in which data is written in vertical like the attached file(txdata1.txt). Is there any way to import the file like 1.txt into MATLAB.
2) Other thing is that, This code includes transmitter, AWGN noise as well demodulation(detection), but my only requirement is as per below.
- Import of the transmitted file( such as 1.txt)
- Import of the received file( taken from oscilloscope)
- Compare between the 2 files for the bit errors
- Plot the SNR vs BER to verify the received data BER
Kindly request you to help and guide for the above.
Awaited your guidance.