Comm USRP installation with R2012a / Linux

I am running Ubuntu 12.04 with Matlab R2012a and I am trying to install the USRP functionality of the comm toolbox. I have the version "usrp_v3_0_R2012a". The first problem that I am having is that the "setupsdru" script is trying to add the path
/home/danielj/Documents/usrp_v3_0_R2012a/commusrp/bin/glnx86
which does not exist. A very similar folder does exist:
/home/danielj/Documents/usrp_v3_0_R2012a/commusrp/bin/glnxa64
But when I run
computer('arch')
MATLAB returns
glnx86
So, I tried changing the name of the folder from 'glnxa64' to 'glnx86' and this does remove the warning I was having. Next, I run
findsdru
which produces the following error:
Undefined function 'usrp_uhd_mapi' for input arguments of type 'char'.
Error in mapiPrivate (line 19)
[retStr, errStat, errStr] = usrp_uhd_mapi(cmd);
Error in findsdru (line 25)
[flatAddrList, errStat, errStr] = mapiPrivate('findsdru');
I was not sure if this error and the earlier warning are related. So I posted both. Any help on resolving this would be appriciated!
Thanks

1 commentaire

Walter Roberson
Walter Roberson le 16 Mai 2012
I would speculate there is only 64 bit support on Linux, but I have not found the requirements documentation.

Réponses (2)

Kaustubha Govind
Kaustubha Govind le 16 Mai 2012

0 votes

Renaming the folder may have temporarily gotten past the error for you, but the primary issue here is that you have 64-bit MATLAB installed on a 32-bit machine. Looks like this was done in error? Could you run the command "mexext" and see if it returns glnxa64 - this indicates whethere 32- or 64-bit MATLAB is installed. I haven't seen this kind of issue before, but I'd recommend calling MathWorks Installation Support.
Daniel
Daniel le 16 Mai 2012
Thanks for the reply. Running "mexext" returns
mexglx
which I think is associated with "glnx86". I think the problem may be that I have 32-bit machine and Matlab, but a 64-bit version of the USRP toolbox.

3 commentaires

Kaustubha Govind
Kaustubha Govind le 17 Mai 2012
Strange. Did you install the USRP toolbox separately after installing MATLAB? Perhaps Installation Support can help you get the 32-bit version.
Daniel
Daniel le 17 Mai 2012
Yes, I installed MATLAB first and then the USRP support package. Thanks for your help! I haven't found any details on the supported architectures. I think I need to get some help from MATLAB at this point.
Kaustubha Govind
Kaustubha Govind le 18 Mai 2012
Okay, looks like you may have installed the 64-bit version of the package instead of 32-bit.

Cette question est clôturée.

Question posée :

le 16 Mai 2012

Clôturé :

le 20 Août 2021

Community Treasure Hunt

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

Start Hunting!

Translated by