Error running Matlab demo bladeRF_relay_demo

Having issues with the site, hardware, source code, or any other issues?
Post Reply
wleonsal
Posts: 4
Joined: Fri Feb 27, 2015 1:51 pm

Error running Matlab demo bladeRF_relay_demo

Post by wleonsal »

Hello,

I have (successfully) installed the Matlab/Simulink support package. However, when I try to run the provided demo: bladeRF_relay_demo.m, I get the followin error:

Error using bladerf_dev
Buffer Length must be numeric and greater zero

Error in bladerf_relay_demo (line 36)
ret = bladerf_dev(handle, 'TX', 1.5e6, 1.5e6, 2.412e9,
20, data);


I am using Matlab 2014b on a Windows 7 machine. I am able to run the provided bladerf_find_devices.mex with the following output:
Device Instance 0
Serial #: 60e43c19fe726391a8bfbca1f5a0adfe
USB Bus: 3
USB Addr: 8

Any help will be appreciated.
jynik
Posts: 455
Joined: Thu Jun 06, 2013 8:15 pm

Re: Error running Matlab demo bladeRF_relay_demo

Post by jynik »

I just ran the latest and greatest here (from the current beta installer) with 2014b and did not see this.

That error message appears to be the result of a CHECK_BUF_LENGTH() macro invocation; a fix that looks like it may very much be relevant to what you're reporting was applied in December.

Any chance you're running a slightly older version?
wleonsal
Posts: 4
Joined: Fri Feb 27, 2015 1:51 pm

Re: Error running Matlab demo bladeRF_relay_demo

Post by wleonsal »

Thank you for your reply.

I had installed the version provided here: http://www.nuand.com/windows.php which seems to be installing the "stable" version. Following the link you provided, I installed the "beta" version and now the demo works without throwing the error.

Thank you for your help.
jynik
Posts: 455
Joined: Thu Jun 06, 2013 8:15 pm

Re: Error running Matlab demo bladeRF_relay_demo

Post by jynik »

For what it's worth, a new "stable" installer will be up today or tomorrow. The changes since the rc2 are pretty minor, but I just wanted to let you know.
Post Reply