usrp-users@lists.ettus.com

Discussion and technical support related to USRP, UHD, RFNoC

View all threads

Support

PF
Pasquale For
Mon, May 8, 2017 2:13 PM

Dear Ettus-Users-Support

I have installed on SO-Linux (Ubuntu), the SDK(UHD) to use with USRP-E310 (following this guide: https: //kb.ettus.com/Software_Development_on_the_E310_and_E312); The installation steps have all gone well.

Now I'm going to run two Sources Examples (src/uhd/host/examples/rx_samples_c.c) and (src/uhd/host/examples/rx_samples_to_file.cpp) , in freq= 150MHz , rate =20 KHz , nsamp= 2000.

The Examples provided by Ettus was been run correctly, but I have tried to read the acquired samples data (Data from rx-channel), but I have obtainded only a data stream that with don't konw how to decode :

  1. how to interpret the output File.dat (binary file)? It has headers?

  2. If the samples in Rx are present in File.dat, are they spaced of "T_sampling" , chosen in the "Rate" parameter ?

  3. In the example "rx_samples_c.c", the API "uhd_rx_streamer_recv ()" is point to Memory Area with dimension "N_Samples * 2 * float" , so I ask you, why used 2 floats to rappresent 1 data sampled ?

  4. In the example "rx_samples_to_file.cpp", the API "rx_stream :: recv ()" is point to Buffer (buff), but when print value  of buffer (with cout << buff[i] ), this is equal to a couple of values "(n1, n2)" , why two values , the first value is time of sampling?

If possible , attachment the examples.

Thank you so much.
Best Regards.

Pako.

Dear Ettus-Users-Support I have installed on SO-Linux (Ubuntu), the SDK(UHD) to use with USRP-E310 (following this guide: https: //kb.ettus.com/Software_Development_on_the_E310_and_E312); The installation steps have all gone well. Now I'm going to run two Sources Examples (src/uhd/host/examples/rx_samples_c.c) and (src/uhd/host/examples/rx_samples_to_file.cpp) , in freq= 150MHz , rate =20 KHz , nsamp= 2000. The Examples provided by Ettus was been run correctly, but I have tried to read the acquired samples data (Data from rx-channel), but I have obtainded only a data stream that with don't konw how to decode : 1) how to interpret the output File.dat (binary file)? It has headers? 2) If the samples in Rx are present in File.dat, are they spaced of "T_sampling" , chosen in the "Rate" parameter ? 3) In the example "rx_samples_c.c", the API "uhd_rx_streamer_recv ()" is point to Memory Area with dimension "N_Samples * 2 * float" , so I ask you, why used 2 floats to rappresent 1 data sampled ? 3) In the example "rx_samples_to_file.cpp", the API "rx_stream :: recv ()" is point to Buffer (buff), but when print value of buffer (with cout << buff[i] ), this is equal to a couple of values "(n1, n2)" , why two values , the first value is time of sampling? If possible , attachment the examples. Thank you so much. Best Regards. Pako.