LimeSDR Matlab support

#1

Hello. I see that matlab has support packages for rtl-sdr, ettus usrp and other software defined radios. Is it possible to contact them to support LimeSDR too? Thanks.

1 Like
#2

AFAIK there is no Matlab support just yet, but there is for GNU Octave.

#3

of course, LimeSDR will support matlab and simulink

#4

Any news about this?

#5

There already exist modules that work with Mathlab/Octave that can read in captured files.
http://gnuradio.org/redmine/projects/gnuradio/wiki/Octave

Although not simulink, it will support a very large number tasks which people do using SDR in Matlab/Octave.

And since the source code for LimeSDR is open source there is nothing stopping you, if you really need it, from writing your own simulink driver, info here: https://www.mathworks.com/help/xpc/driver/introduction.html

Someone has written a simulink module for the HackRF, so it is not like there is no example code.

#6

matlab work fine.
now, I write simulink support code

3 Likes
#7

@Jocover, good to hear your progress, great, thanks.:relaxed:

#8

Nice! Is the code available somewhere?

#9

simulink work fine
I will pubile sourcecode on github

2 Likes
#10

Thanks! When you publish it, let us know!

#11

Hi, this looks very interesting. Very nice work. It opens up a lot of opportunities for experiments.

How is the definition of “limeSDR” used in the code done? Can it be shared?

Any drivers needed for using LimeSDR with Matlab? If so, where can they be found? Nothing on Mathworks web site as of today.

#12

I publish it on github

1 Like
#13

Thanks @jocover. This is great.

#14

Thanks a lot for this, Jimmy!

I still have some questions to access the LimeSDR board. (they might seem silly questions but please note I am a newbie).

I am using windows 7. and I just cloned the files in a folder (test_matlab_limesdr). However,

  • do I need to compile LMS7Suite software to use matlab with the board?
  • I can see in an example above that you define the device by “dev=limeSDR”. I try the same and get an error with finding some lib files (error: Failed to find libLimeSuite_thunk_pcwin64.dll. Check path().)
    Note that the error occurs in line 43 in libLimeSuite__proto.m file

I would greatly appreciate if you could guide me through using these MATLAB plugins.

#15

libLimeSuite_thunk_pcwin64.dll file
https://github.com/jocover/Simulink-MATLAB-LimeSDR/releases/download/thunk/libLimeSuite_thunk_pcwin64.dll

or you can using limeSDR.build_thunk command to build thunk file

you need build LimeSuite.dll
this is my LimeSuite.dll
https://mega.nz/#!aVlWkC6D!OttEOrOaUo0ajOscHCKj4R8_HXU8zuzzS8hISQhNMeg

Simulink support you need add MATLAB System block and choose limeSDR_Simulink.m file

1 Like
#16

Sorry, but not much of success yet :((
I build the Limesuite.dll and add the lms7suite to matlab path.

The first link I still have problem (libLimeSuite_thunk_pcwin64.dll)
I could not download the link. I tried the limeSDR.build_thunk command but I get “No supported compiler or SDK was found”. I install the MinGW-w64 C/C++ add on but no success yet :((

#17

In the meantime, would it work if I have “libLimeSuite_thunk_pcwin64.dll” file?

#18

Hi,
thank you for pcwin64.dll file.
I still trying to connect the board using MATLAB but I get “no connection object”. Please see attachement.

Note that I have connected the board to my usb and made sure it is connected using lime7suite. (attachement

)

any idea what the problem could be from?

#19

try to upgrade FX3 firmware and FPGA
http://wiki.myriadrf.org/Lime_Suite#Flashing_images

my limesdr version hw:2 fw:2 gw:1 gw_rev:20

1 Like
#20

Just to add that in addition to upgrading the FX3 firmware and FPGA gateware, you should make sure you have the latest build of Lime Suite and will probably need to run the install script again for the udev rules, as the VID and PID changed.

1 Like