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 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