You could run uhd_usrp_probe and parse the output.
On 2017-09-13 15:30, ROBIN TORTORA via USRP-users wrote:
> Peeps,
>
> I have an X310 on windows with 3.10.2 and a single UBX daughtercard.
>
> get_rx_num_channels always returns 2 even though there is only a single
> daughtercard installed.
>
> I am guessing this is really returning the number of DDCs present?
>
> Is there a simple way to get the number of actual channels present a la the
> number of daughtercards, etc.?
>
> I am building a flexible data recorder and would like to to be able to adapt
> to different daughtercard configurations, so polling the device to get its
> configuration at runtime is important...
>
> Thanks,
> _______________________________________________
> USRP-users mailing list
> USRP-users@lists.ettus.com
> http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
_______________________________________________
USRP-users mailing list
USRP-users@lists.ettus.com
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com