LimeSDR Matlab support

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

Nice! Is the code available somewhere?

simulink work fine
I will pubile sourcecode on github

3 Likes

Thanks! When you publish it, let us know!

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.

I publish it on github

3 Likes

Thanks @jocover. This is great.

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.

1 Like

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

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

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

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?

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

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

Hi,
I was trying to get things on Matlab running by Christmass but I did not have much of success.

However, I had problem by upgrading FX3 and FPGA too:

    1. the fpga file addresses/links seem to be incorrect. They lead to error 404 (“This is not the webpage you are looking for”).
    1. after I had successfully built the LimeSuite, I upgraded the the FX3, as suggested by jocover. But then I lost connection with the board. After upgrading FX3, I couldn’t connect to the board using “LimeSuiteGUI.exe”.
  1. I can run the system on Ubuntu using GNUradio (I actually did the DVB-s2 tx example by Alexandru Csete example) but I prefer MATLAB rather GNUradio because all my codes are in MATLAB and I have many costum blocks that are not available in GNUradio library. I will need to put a lot of effort to write many out-of-tree modules.

  2. with respect to matlab, I am getting problem with loading library. at the moment it is LimeSuite library missing.

Anyway, I have got a fresh windows machine and I am going to try everything again. I will let you know if I get any success.
If you have any advice, I would appreciate if you let me know before starting to build again

1 Like

hw v1.2 fpga file
https://github.com/myriadrf/LimeSDR-USB_GW/blob/HW_v1.3-v1.0/output_files/LimeSDR-USB_lms7_trx_HW_1.2.rbf

limesdr windows driver


this driver is modified cyusb driver,you need disable windows driver signature enforcement,so i don’t like this.
or you can using Zadig(http://zadig.akeo.ie/) to install winusb driver for limesdr,and using my winusb version LimeSuite.dll
1 Like

Jocover - Does this allow the LimeSDR to operate under Windows using HDSDR or SDR#? I’ll check this out - GREAT news if I’m reading this right…! :slight_smile:

Jocover,

I’m able to successfully install the LimeSDR driver for ZADIG, but the DLL in the the Windows 10 Windows Drivers on Github don’t seem to be recognized by SDR# - it usually likes to see ExtIO style of DLLs…Am I doing anything wrong for the LimeSDR not to play on SDR#? Please let me know - this is a GREAT addition to the LimeSDR capability.

Keep us all advised here - and THANKS much for working this…!

Marty

https://mega.nz/#!fFdhiLzI!P2lC9oAOT7XwnSPCJRgVqP50MxYuibbPVjGSN2xF83Q
my sdrsharp plugin,just test version

1 Like

Any thing for Linux … besides whats available under Gnuradio …
I like Quisk … a heck of alot more …