Hey Leo, Glad to hear you were able to work things out. One quick note about the code I attached previously. Located a minor typo/bug that you'll want to fix if you want to actually transmit useful data.
> 219 radio_ctrl->set_rx_frequency(freq, radio_chan); > should be: > 219 radio_ctrl->set_tx_frequency(freq, radio_chan); > Notice the change from rx->tx. Best, Ryan Marlow On Thu, Sep 20, 2018 at 10:35 AM, Leandro Echevarría < leoechevar...@gmail.com> wrote: > Hey Ryan, > > Thanks a lot! I actually ended up doing pretty much the exact same things > you described, and came up with a piece of code very similar to yours. > Yours is neater though, so I will keep it ;-). > > Regards, > > Leo > > On Wed, Sep 19, 2018 at 7:52 PM Ryan Marlow <r...@lmarlow.com> wrote: > >> Hey Leo, >> I haven't seen anyone respond yet and I recently needed to develop a TX >> RFNoC example of my own. I worked off the rfnoc_rx_to_file.cpp example. Far >> from perfect, but it gets the job done (transmits data). The main changes >> are: >> - copied send_from_file function from tx_samples_from_file.cpp example to >> handle the streaming of data from the input file >> - reversed the order that blocks are connected in the graph->connect() >> function. Now connects optional arg block -> radio. Was radio -> optional >> arg block. >> - uses tx_stream instead of rx_stream. >> Just add this cpp file to the CMake file in the host/examples dir to >> build it then try it out. >> I ran it with: >> build/examples$ ./rfnoc_tx_from_file --block-id DUC_0 --block-args >> output_rate=200e6,input_rate=5e6 --duration 5 --file usrp_samples.dat >> >> Hope that helps, >> Ryan >> -- >> Ryan L. Marlow >> R L Marlow Consulting LLC >> rlmarlow.com >> > -- Ryan L. Marlow R L Marlow Consulting LLC rlmarlow.com
_______________________________________________ USRP-users mailing list USRP-users@lists.ettus.com http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com