Hi Richard / Marcus,
I have a C/C++ implementation of async message to file (file_message_sink) as well. It takes messages which are PMT dictionaries and writes only specific key values. So you would make an SNR key and then tell the file message source to write that key. You can use comma-delimited keys to write many keys at once. The output format is .csv so it should be easy to parse. I haven’t merged it for the latest GNURadio code, but it was working as of August 2015.
Hope this helps.
PWG
Subject: Re: [Discuss-gnuradio] Async Message to File
Date: February 19, 2016 at 1:04:42 AM MST
Have a look at the python struct docs [1]; I think the problem is indeed that you write 64bit floats, and read 32bit floats; so "f" instead of "d" I think :)Sorry to keep you busy this long :)[1] https://docs.python.org/2/library/struct.htmlOn 19.02.2016 00:57, Richard Bell wrote:
Sorry, still not working. Values seem to be either 0 or gigantic. I think it's because the single 64 bit value is being written as 8 consecutive bytes as you said, and I'm not handling that anywhere once I read the file into octave. I'll try and figure it out next time I'm working on this.
Thanks, Rich
|