|
From: | Snehasish Kar |
Subject: | [Discuss-gnuradio] Help with using gnuradio c++ api |
Date: | Mon, 2 Apr 2018 19:13:01 +0000 |
Hello
I was trying to generate a flow graph using file source descriptor and a file sink. But after generating the output instead of writing to the file, it prints the output in the screen. Below is the code. Please let me know where I am going wrong.
gr::blocks::file_descriptor_source::sptr fileDescriptorSource(gr::blocks::file_descriptor_source::make(sizeof(std::complex<float>)*200000,clientSockfd,false));
gr::blocks::file_sink::sptr filesink(gr::blocks::file_sink::make(sizeof(std::complex<float>)*200000,"/tmp/rx.bin",false)); gr::top_block_sptr tb(gr::make_top_block("filedescriptor_test")); tb->connect(fileDescriptorSource,0,filesink,0); tb->start(); tb->wait(); BR Snehasish |
[Prev in Thread] | Current Thread | [Next in Thread] |