I fixed a typo and pushed it to the master. When you leave the dboard
name blank, and you have a single slot, it should use the name of the
only daughterboard slot on your usrp. Except for the typo…
So, to use the AB subdev on basic RX on usrp2, the following would work:
“0:AB”
“:AB” - was previously broken by the typo
“” - empty string automatically picks the first subdevice 0:AB
This is the default behavior; the constructor is already doing this, so
it is not necessary. Unless you have USRP1 or a basic board, setting the
subdevice specification is not necessary since there is only one
possible choice and it is automatically selected.
Or should I write:
uhd::usrp::subdev_spec_t e(“0:A”);
That would probably fail, I believe that XCVR2450 has only one
sub-device named 0. So to this effect: “0:0” “:” “0:” “:0” would all
work for XCVR2450 on the USRP2. Also “” for the reason above.
So theres to ways to think about this:
I know my usrp has only one daughterboard slot and I know my
daugterboard has only one subdevice. So I am not gonna set anything
special, because the automatic behavior is right for me.
I like to explicit about things, I have a daughter board slot “0”,
and on my daughterboard I have a subdevice “0”. So I am going to say,
set this subdevice specification to “0:0”.