discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] Writing to file from Gnu Radio block


From: André Gomes
Subject: [Discuss-gnuradio] Writing to file from Gnu Radio block
Date: Fri, 24 Nov 2017 12:51:21 -0200

Hi, 

I have tried to write a file from a Gnu Radio block written in python. The file is created during the open() call however it not written. I have tried examples as simple as that:

f = open("my_file.txt", 'w');
f.write("text...text");

I also found this link. It refers to pmt.write(pmt_t obj, std::ostream port). So, I tried:

pmt.write(pmt.intern("my text"), f);

... no success though. How can I read/write a file from a Gnu Radio block written in python?

Regards,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]