Azzera filtri
Azzera filtri

findsdru error using Ubuntu Linux and MATLAB R2011a

2 visualizzazioni (ultimi 30 giorni)
Hi!
I've got a problem using the "MATLAB and Simulink Support Package for USRP™ devices 1.0" together with Ubuntu Linux and MATLAB R2011a. Installing the Support Package completed without any error. But when running the "findsdru"-command after setupsdru, I'm getting the following error:
The conversion from a local code page string to unicode changes the number of characters. This is not supported.
Error in ===> usrp_uhd_mapi
The USRP2 is using the correct FPGA image and firmware. The IP-Configuration is also correct. Typing the uhd_find_devices-command in the terminal detects the USRP2 correctly. The behavior is the same with Ubuntu 10.10 (Maverick) and Ubuntu 11.04 (Natty).
I've tried the same using Windows 7, there everything works fine.
Thanks for your help!
Chris

Risposta accettata

Mike McLernon
Mike McLernon il 16 Set 2011
Hi,
You can fix this by launching a Linux command shell and executing:
setenv LANG C, or setenv LANG en_US.ISO8859-1
Either of these commands reset the locale to be compatible with the usrp_uhd_mapi code.
If your OS does not support the 'setenv' command, then try the following:
export LANG=C
hth, Mike

Più risposte (1)

Christopher
Christopher il 19 Set 2011
Hi,
The "setenv"-command does not work for my OS.
However, the problem could be solved by using "export LANG=C" before executing MATLAB.
Thanks a lot for your answer!
Chris

Categorie

Scopri di più su Communications Toolbox in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by