Hello, I have some trouble using the UHD 4.1.0.2 library. I am using RFNOC blocks RADIO and DDC, and setting up an RX stream using graph->create_rx_streamer. The receiver loop is running in its own thread doing something like this (simplified):
uhd::stream_cmd_t stream_cmd(uhd::stream_cmd_t::STREAM_MODE_NUM_SAMPS_AND_MORE); stream_cmd.num_samps = size_t(sampsPerBuff); stream_cmd.stream_now = true; stream_cmd.time_spec = uhd::time_spec_t(); for (;;) { rx_stream->issue_stream_cmd(stream_cmd); rx_stream->recv(&buffer.front(), sampsPerBuff, md, 3.0, false); std::this_thread::sleep_for(std::chrono::milliseconds(2)); } I am developing for an E310 sg3. When calling issue_stream_cmd repeatedly this way memory usage goes up until resources are depleted (few hours). If stream_cmd is replaced with STREAM_MODE_START_CONTINUOUS and called just once memory usage is normal. But for the application developed the mode NUM_SAMPS_AND_MORE is better suited. It is also what we used with the 3.14.1 library, without any memory problems like this. Any tips? BR Jorn
_______________________________________________ USRP-users mailing list -- usrp-users@lists.ettus.com To unsubscribe send an email to usrp-users-le...@lists.ettus.com