findsdru error using Ubuntu Linux and MATLAB R2011a

2 ビュー (過去 30 日間)
Christopher
Christopher 2011 年 9 月 16 日
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 Center および File ExchangeCommunications Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by