usrp-users@lists.ettus.com

Discussion and technical support related to USRP, UHD, RFNoC

View all threads

UHD for Matlab - PyBOMBS recipe?

MC
Merlin Chlosta
Tue, Sep 6, 2016 8:38 AM

Hi all,

I'd like to call UHD's C API from Matlab.

There seems to be a conflict with Matlab's boost and the system's boost that UHD is usually build against.

Did anybody solve this already, maybe even with a PyBOMBS recipe? I'd appreciate if you could share your experience.

Our attempt is to get the headers of Matlab's boost version from the boost website, and build against those headers in a separate PyBOMBS environment. But this is a mess and does not work reliably as of now.

Any experience here?

Best regards,
Merlin Chlosta

Hi all, I'd like to call UHD's C API from Matlab. There seems to be a conflict with Matlab's boost and the system's boost that UHD is usually build against. Did anybody solve this already, maybe even with a PyBOMBS recipe? I'd appreciate if you could share your experience. Our attempt is to get the headers of Matlab's boost version from the boost website, and build against those headers in a separate PyBOMBS environment. But this is a mess and does not work reliably as of now. Any experience here? Best regards, Merlin Chlosta
MM
Mike McLernon
Tue, Sep 6, 2016 11:58 AM

Hi Merlin,

Are you using the MathWorks USRP support package at all?

Thanks,
Mike


From: USRP-users usrp-users-bounces@lists.ettus.com on behalf of Merlin Chlosta via USRP-users usrp-users@lists.ettus.com
Sent: Tuesday, September 6, 2016 4:38 AM
To: usrp-users@lists.ettus.com
Subject: [USRP-users] UHD for Matlab - PyBOMBS recipe?

Hi all,

I'd like to call UHD's C API from Matlab.

There seems to be a conflict with Matlab's boost and the system's boost that UHD is usually build against.

Did anybody solve this already, maybe even with a PyBOMBS recipe? I'd appreciate if you could share your experience.

Our attempt is to get the headers of Matlab's boost version from the boost website, and build against those headers in a separate PyBOMBS environment. But this is a mess and does not work reliably as of now.

Any experience here?

Best regards,
Merlin Chlosta


USRP-users mailing list
USRP-users@lists.ettus.com
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

Hi Merlin, Are you using the MathWorks USRP support package at all? Thanks, Mike ________________________________________ From: USRP-users <usrp-users-bounces@lists.ettus.com> on behalf of Merlin Chlosta via USRP-users <usrp-users@lists.ettus.com> Sent: Tuesday, September 6, 2016 4:38 AM To: usrp-users@lists.ettus.com Subject: [USRP-users] UHD for Matlab - PyBOMBS recipe? Hi all, I'd like to call UHD's C API from Matlab. There seems to be a conflict with Matlab's boost and the system's boost that UHD is usually build against. Did anybody solve this already, maybe even with a PyBOMBS recipe? I'd appreciate if you could share your experience. Our attempt is to get the headers of Matlab's boost version from the boost website, and build against those headers in a separate PyBOMBS environment. But this is a mess and does not work reliably as of now. Any experience here? Best regards, Merlin Chlosta _______________________________________________ USRP-users mailing list USRP-users@lists.ettus.com http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
MC
Merlin Chlosta
Tue, Sep 6, 2016 12:20 PM

--forgot to include the list--

Hi Mike,

On 06.09.2016 13:58, Mike McLernon wrote:

Are you using the MathWorks USRP support package at all?

No, I use the 'loadlibrary' function and call the library functions directly with 'calllib'. To keep track of the buffers etc. (multi-level pointer limitations in Matlab), we have some wrapper functions added to UHD.

--Merlin

Thanks,
Mike


From: USRP-users usrp-users-bounces@lists.ettus.com on behalf of Merlin Chlosta via USRP-users usrp-users@lists.ettus.com
Sent: Tuesday, September 6, 2016 4:38 AM
To: usrp-users@lists.ettus.com
Subject: [USRP-users] UHD for Matlab - PyBOMBS recipe?

Hi all,

I'd like to call UHD's C API from Matlab.

There seems to be a conflict with Matlab's boost and the system's boost that UHD is usually build against.

Did anybody solve this already, maybe even with a PyBOMBS recipe? I'd appreciate if you could share your experience.

Our attempt is to get the headers of Matlab's boost version from the boost website, and build against those headers in a separate PyBOMBS environment. But this is a mess and does not work reliably as of now.

Any experience here?

Best regards,
Merlin Chlosta


USRP-users mailing list
USRP-users@lists.ettus.com
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

--forgot to include the list-- Hi Mike, On 06.09.2016 13:58, Mike McLernon wrote: > Are you using the MathWorks USRP support package at all? No, I use the 'loadlibrary' function and call the library functions directly with 'calllib'. To keep track of the buffers etc. (multi-level pointer limitations in Matlab), we have some wrapper functions added to UHD. --Merlin > Thanks, > Mike > > > ________________________________________ > From: USRP-users <usrp-users-bounces@lists.ettus.com> on behalf of Merlin Chlosta via USRP-users <usrp-users@lists.ettus.com> > Sent: Tuesday, September 6, 2016 4:38 AM > To: usrp-users@lists.ettus.com > Subject: [USRP-users] UHD for Matlab - PyBOMBS recipe? > > Hi all, > > I'd like to call UHD's C API from Matlab. > > There seems to be a conflict with Matlab's boost and the system's boost that UHD is usually build against. > > Did anybody solve this already, maybe even with a PyBOMBS recipe? I'd appreciate if you could share your experience. > > Our attempt is to get the headers of Matlab's boost version from the boost website, and build against those headers in a separate PyBOMBS environment. But this is a mess and does not work reliably as of now. > > Any experience here? > > Best regards, > Merlin Chlosta > > _______________________________________________ > USRP-users mailing list > USRP-users@lists.ettus.com > http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com >
MM
Mike McLernon
Tue, Sep 6, 2016 3:45 PM

Hi Merlin,

Do you know if you have the correct Boost version for your MATLAB version?

Mike

-----Original Message-----
From: USRP-users [mailto:usrp-users-bounces@lists.ettus.com] On Behalf Of Merlin Chlosta via USRP-users
Sent: Tuesday, September 6, 2016 8:21 AM
Cc: usrp-users@lists.ettus.com
Subject: Re: [USRP-users] UHD for Matlab - PyBOMBS recipe?

--forgot to include the list--

Hi Mike,

On 06.09.2016 13:58, Mike McLernon wrote:

Are you using the MathWorks USRP support package at all?

No, I use the 'loadlibrary' function and call the library functions directly with 'calllib'. To keep track of the buffers etc. (multi-level pointer limitations in Matlab), we have some wrapper functions added to UHD.

--Merlin

Thanks,
Mike


From: USRP-users usrp-users-bounces@lists.ettus.com on behalf of Merlin Chlosta via USRP-users usrp-users@lists.ettus.com
Sent: Tuesday, September 6, 2016 4:38 AM
To: usrp-users@lists.ettus.com
Subject: [USRP-users] UHD for Matlab - PyBOMBS recipe?

Hi all,

I'd like to call UHD's C API from Matlab.

There seems to be a conflict with Matlab's boost and the system's boost that UHD is usually build against.

Did anybody solve this already, maybe even with a PyBOMBS recipe? I'd appreciate if you could share your experience.

Our attempt is to get the headers of Matlab's boost version from the boost website, and build against those headers in a separate PyBOMBS environment. But this is a mess and does not work reliably as of now.

Any experience here?

Best regards,
Merlin Chlosta


USRP-users mailing list
USRP-users@lists.ettus.com
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

Hi Merlin, Do you know if you have the correct Boost version for your MATLAB version? Mike -----Original Message----- From: USRP-users [mailto:usrp-users-bounces@lists.ettus.com] On Behalf Of Merlin Chlosta via USRP-users Sent: Tuesday, September 6, 2016 8:21 AM Cc: usrp-users@lists.ettus.com Subject: Re: [USRP-users] UHD for Matlab - PyBOMBS recipe? --forgot to include the list-- Hi Mike, On 06.09.2016 13:58, Mike McLernon wrote: > Are you using the MathWorks USRP support package at all? No, I use the 'loadlibrary' function and call the library functions directly with 'calllib'. To keep track of the buffers etc. (multi-level pointer limitations in Matlab), we have some wrapper functions added to UHD. --Merlin > Thanks, > Mike > > > ________________________________________ > From: USRP-users <usrp-users-bounces@lists.ettus.com> on behalf of Merlin Chlosta via USRP-users <usrp-users@lists.ettus.com> > Sent: Tuesday, September 6, 2016 4:38 AM > To: usrp-users@lists.ettus.com > Subject: [USRP-users] UHD for Matlab - PyBOMBS recipe? > > Hi all, > > I'd like to call UHD's C API from Matlab. > > There seems to be a conflict with Matlab's boost and the system's boost that UHD is usually build against. > > Did anybody solve this already, maybe even with a PyBOMBS recipe? I'd appreciate if you could share your experience. > > Our attempt is to get the headers of Matlab's boost version from the boost website, and build against those headers in a separate PyBOMBS environment. But this is a mess and does not work reliably as of now. > > Any experience here? > > Best regards, > Merlin Chlosta > > _______________________________________________ > USRP-users mailing list > USRP-users@lists.ettus.com > http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com > _______________________________________________ USRP-users mailing list USRP-users@lists.ettus.com http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
MC
Merlin Chlosta
Tue, Sep 6, 2016 6:27 PM

On 06.09.2016 17:45, Mike McLernon wrote:

Hi Merlin,

Do you know if you have the correct Boost version for your MATLAB version?

Hi Mike,

I learn about the MATLAB Boost version from the file names /usr/local/MATLAB/(matlab-version)/bin/glnxa64/libboost_* (assuming standard installation directory).
For R2016a, this is 1.56.0. To build UHD against this Boost, I download and build 1.56.0.

How do I do this building against a 'local' Boost 1.56.0 and linking against Matlab's Boost correctly?

--Merlin

Mike

-----Original Message-----
From: USRP-users [mailto:usrp-users-bounces@lists.ettus.com] On Behalf Of Merlin Chlosta via USRP-users
Sent: Tuesday, September 6, 2016 8:21 AM
Cc: usrp-users@lists.ettus.com
Subject: Re: [USRP-users] UHD for Matlab - PyBOMBS recipe?

--forgot to include the list--

Hi Mike,

On 06.09.2016 13:58, Mike McLernon wrote:

Are you using the MathWorks USRP support package at all?

No, I use the 'loadlibrary' function and call the library functions directly with 'calllib'. To keep track of the buffers etc. (multi-level pointer limitations in Matlab), we have some wrapper functions added to UHD.

--Merlin

Thanks,
Mike


From: USRP-users usrp-users-bounces@lists.ettus.com on behalf of Merlin Chlosta via USRP-users usrp-users@lists.ettus.com
Sent: Tuesday, September 6, 2016 4:38 AM
To: usrp-users@lists.ettus.com
Subject: [USRP-users] UHD for Matlab - PyBOMBS recipe?

Hi all,

I'd like to call UHD's C API from Matlab.

There seems to be a conflict with Matlab's boost and the system's boost that UHD is usually build against.

Did anybody solve this already, maybe even with a PyBOMBS recipe? I'd appreciate if you could share your experience.

Our attempt is to get the headers of Matlab's boost version from the boost website, and build against those headers in a separate PyBOMBS environment. But this is a mess and does not work reliably as of now.

Any experience here?

Best regards,
Merlin Chlosta


USRP-users mailing list
USRP-users@lists.ettus.com
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

On 06.09.2016 17:45, Mike McLernon wrote: > Hi Merlin, > > Do you know if you have the correct Boost version for your MATLAB version? Hi Mike, I learn about the MATLAB Boost version from the file names /usr/local/MATLAB/(matlab-version)/bin/glnxa64/libboost_* (assuming standard installation directory). For R2016a, this is 1.56.0. To build UHD against this Boost, I download and build 1.56.0. How do I do this building against a 'local' Boost 1.56.0 and linking against Matlab's Boost correctly? --Merlin > Mike > > > -----Original Message----- > From: USRP-users [mailto:usrp-users-bounces@lists.ettus.com] On Behalf Of Merlin Chlosta via USRP-users > Sent: Tuesday, September 6, 2016 8:21 AM > Cc: usrp-users@lists.ettus.com > Subject: Re: [USRP-users] UHD for Matlab - PyBOMBS recipe? > > --forgot to include the list-- > > Hi Mike, > > On 06.09.2016 13:58, Mike McLernon wrote: >> Are you using the MathWorks USRP support package at all? > > No, I use the 'loadlibrary' function and call the library functions directly with 'calllib'. To keep track of the buffers etc. (multi-level pointer limitations in Matlab), we have some wrapper functions added to UHD. > > --Merlin > >> Thanks, >> Mike >> >> >> ________________________________________ >> From: USRP-users <usrp-users-bounces@lists.ettus.com> on behalf of Merlin Chlosta via USRP-users <usrp-users@lists.ettus.com> >> Sent: Tuesday, September 6, 2016 4:38 AM >> To: usrp-users@lists.ettus.com >> Subject: [USRP-users] UHD for Matlab - PyBOMBS recipe? >> >> Hi all, >> >> I'd like to call UHD's C API from Matlab. >> >> There seems to be a conflict with Matlab's boost and the system's boost that UHD is usually build against. >> >> Did anybody solve this already, maybe even with a PyBOMBS recipe? I'd appreciate if you could share your experience. >> >> Our attempt is to get the headers of Matlab's boost version from the boost website, and build against those headers in a separate PyBOMBS environment. But this is a mess and does not work reliably as of now. >> >> Any experience here? >> >> Best regards, >> Merlin Chlosta >> >> _______________________________________________ >> USRP-users mailing list >> USRP-users@lists.ettus.com >> http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com >> > > > _______________________________________________ > USRP-users mailing list > USRP-users@lists.ettus.com > http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com >