Hi everyone, I was wondering if anyone has written a small C++ application which is the bare bones required to interface with the URSP. Thanks in advanced, Isaac -- View this message in context: http://www.nabble.com/Simple-USRP-Interface-Code-t... Sent from the GnuRadio mailing list archive at Nabble.com.
on 2009-03-18 19:13
on 2009-03-20 06:29
On Wed, Mar 18, 2009 at 10:12:06AM -0700, isaacgerg wrote: > > Hi everyone, > I was wondering if anyone has written a small C++ application which is the > bare bones required to interface with the URSP. > > Thanks in advanced, > Isaac Isaac, Take a look at the version of usrp/host/apps/test_usrp_standard_tx.cc that's currently in the trunk. As of  yesterday, it tunes the daughterboard, sets the gain, etc. It's not a beautiful piece of code (it was written to help track down a bug), but it does show the basics of transmitting using usrp_standard_tx directly. One level up from that, there's an all C++ example that is pretty much functionally equivalent to usrp_siggen.py It uses the GR usrp_sink_c block from C++. See gr-usrp/apps/usrp_siggen.cc. Neither of these examples are "ready for prime time". Neither handles ^C properly (they leave the transmitter running). YMMV. But they will give you some ideas. Eric