[USRP-users] small feature request

Josh Blum josh at ettus.com
Tue Feb 26 17:28:28 EST 2013



On 02/26/2013 08:25 AM, Stefano Speretta wrote:
> Hello,
> I am writing an application using uhd to access a usrp B100 ubnder
> Linux. I noticed that when the user has not the permissions to
> access the usb bus an exception is thrown by uhd::usrp::multi_usrp::make
> stating "KeyError: No devices found for -----> Empty Device Address".
> 
> On a command line application there would be a message displayed, as for
> example in uhd_usrp_probe:
> 
> UHD Error:
>     USB open failed: insufficient permissions.
>     See the application notes for your device.
> Error: LookupError: KeyError: No devices found for ----->
> Empty Device Address
> 
> but this is difficult to catch in GUI applications. Could it be possible
> to throw a message that points to the insufficient permissions in case
> of error?
> 

In a gui, you may want to direct the error messages into a pop up window
of some sort:

http://files.ettus.com/uhd_docs/manual/html/general.html#disabling-or-redirecting-prints-to-stdout

-josh

> Thanks
> Stefano
> 
> 
> _______________________________________________
> USRP-users mailing list
> USRP-users at lists.ettus.com
> http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com




More information about the USRP-users mailing list