The commands I had in my reply pertain only to use in the GNU Octave command window.
As for the GNURadio Companion flow graphs you attached, I'm not sure where the question is. That'll have to be someone more advanced than my novice self. I usually have recorded data by going from a USRP Source directly to a File Sink to obtain RF complex data like Kyle described. I then move to GNU Octave to plot parts of that data using the commands I had given. Jeff ________________________________ From: AKINYELE ITAMAKINDE <[email protected]> Sent: Tuesday, April 21, 2020 11:06 AM To: Jeff S <[email protected]> Subject: Re: [USRP-users] Conversion of .dat file to a readable data using GNU octave Jeff, Thanks for the reply. I have tried this, it did not work. Maybe i dont i know how to use and where to use the lines. I am new to the softwares. I need a line by line procedure of the solution. I attached the transmitter and receiver flow graph of the channel sounding sliding correlator for more understanding of what I want to achieve. Thanks On Mon, Apr 20, 2020 at 6:25 PM Jeff S <[email protected]<mailto:[email protected]>> wrote: Kyle is correct. And to be specific example (since I like them, step by step), I do essentially the same thing like: >> InFileID = fopen('myfile.dat'); >> A = fread(InFileID,'float32'); % Read in per Kyle's description >> fclose(InFileID); >> B = [A(1:2:end), A(2:2:end)]; % Split out Re & Imag >> plot(B) Jeff ________________________________ From: USRP-users <[email protected]<mailto:[email protected]>> on behalf of Kyle A Logue via USRP-users <[email protected]<mailto:[email protected]>> Sent: Monday, April 20, 2020 12:27 PM To: [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>>; AKINYELE ITAMAKINDE <[email protected]<mailto:[email protected]>> Subject: Re: [USRP-users] Conversion of .dat file to a readable data using GNU octave Assuming you have your file sink configured to complex, the data (which you shouldn't just save as .dat - consider .fc32 or sigmf) should simply be interleaved float32. So it looks like [(float32 real), (float32 imag), (float32 real), (float32 imag), ... ] in python you can read that w/`np.fromfile(xyz, dtype=np.complex64)`. There must be an equivalent in octave. Kyle Logue Engineering Manager ⚝ Comm Software Implementation Dept The Aerospace Corporation ________________________________ From: USRP-users <[email protected]<mailto:[email protected]>> on behalf of AKINYELE ITAMAKINDE via USRP-users <[email protected]<mailto:[email protected]>> Sent: Wednesday, April 15, 2020 07:30 To: [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>> Subject: [USRP-users] Conversion of .dat file to a readable data using GNU octave I am working on channel sounding using USRP and GNU radio platforms. I am experiencing difficulty in converting the .dat file of sink file at receiver of flow graph into readable data using GNU octave. Can somebody help me to achieve this? Thanks
_______________________________________________ USRP-users mailing list [email protected] http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
