Super minor UHD Subdev "bug"/feature request

I have a UHD app I’d like to work with USRP1 and 2- but when I give
USRP2:
self.dut_out.set_subdev_spec(“A:A A:B”, 0)
it complains about the A’s and I have to specify “:A :B” instead, but
for USRP1 it needs the A.

It would be a nice simplification if the USRP2 allowed A:whatever since
it technically has a side A and just no B.

I’m about to look in the .h files right now, but is there a quick way,
given a self.usrp = uhd.usrp_source() to call self.usrp.is_usrp2() or
something?

On 05/31/2011 10:08 AM, Brett L. Trotter wrote:

I have a UHD app I’d like to work with USRP1 and 2- but when I give USRP2:
self.dut_out.set_subdev_spec(“A:A A:B”, 0)
it complains about the A’s and I have to specify “:A :B” instead, but
for USRP1 it needs the A.

Officially, the daughterboard slot is named 0, so 0:A 0:B. Its weird but
better than asking the user to calculate a mux value.

I will add an app note to the usrp2/Nseries docs.

-josh

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs