findsdru error using Ubuntu Linux and MATLAB R2011a

1 次查看(过去 30 天)
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

采纳的回答

Mike McLernon
Mike McLernon 2011-9-16
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

更多回答(1 个)

Christopher
Christopher 2011-9-19
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

类别

Help CenterFile Exchange 中查找有关 Communications Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by