first, i had to copy/past my own LimeSuite.dll in place of your unless i have the following error : VCRUNTIME140_1|690x278 ) .
Second, I could not generate the " libLimeSuite_thunk_pcwin64.dll" with the command “limeSDR.build_thunk()” . I’m using matlab R2018B with windows 10 and LimeSDR mini. I use the minGW64 compiler of matlab: maybe the problem comes from here or maybe i don’t exaclty understand what i’m doing. Error_LimeSDR_build_thunk|690x261 .
but with your own "libLimeSuite_thunk_pcwin64.dll " and my own “LimeSuite.dll” coming from C:\Program Files\PothosSDR\bin, i was able to make the command dev=limeSDR() works after commenting all réferences to RX1 and TX1 since the limeSDR mini doesn’t have RX1and TX1 LimeSDR_Mini_Error_Lack_RX1|690x163 .
After that, i had a last problem to make working basicRX.m. Indeed, the limeSDR Mini doesn’t work with LNA_L but with LNA_W. Thus I set the dev.rx0.antenna to 3 (LNA_W) and then everythings was working. I saw your beautifull wave on the basixRXTX.m example.
Thanks again DamirRakhimov and happy new year! Viafx24.
Hello Damir,
Your ML package runs very well under W10Pro, ML2019B and LimeSDR USB.
I am using the LimeSuite 19.04 (via Pothos install)
I have copied the limesuite.dll into the _library directory.
I did not use the “limeSDR.build_thunk” command and I have followed this remark find into the help limeSDR.build_thunk :
“… For Windows users, the simplest approach is to copy the following to this directory:
- LimeSuite.dll…”
Hi @jocover
So I am trying to get started with LimeSDR USB on Windows 10 and MATLAB 2021a (should I use another?)
I have 5 LimeSDRS that I want to implement in my testbed so it will be an interesting project!
Anyway I am trying to set up your files and code but I get the following firmware error despite the fact that I used LimeSuite to Open-> Modules-> Programming (automatic) but I still get the following error when I run your code :
I suspect that taking to “jocover” is probably not going to get a reply anytime soon. If you click on the name their profile shows that they were last seen on this website Feb 2018.
I continue trying to make work the limeSDR-mini with matlab and Simulink (windows 10, matlab R2020b). I mainly used the work of Damir Rakhimov. I succeed to make RX and TX work but i had trouble to obtain a beautiful basic sinus wave (in place of a sinus, i obtained rather a square wave at the correct frequency). The solution was to set dev.tx0.enable just after dev = limeSDR() and not after having set all the other parameter (frequency, gain etc…). Same may be true for dev.rx0.enable and thus should be put before setting RX parameters. Then i obtained a beautiful sinus. I will probably upload working code on github in a while and also maybe new code to make simulink works again. Cheers.
I continue with limeSDR mini and Matlab/simulink code. I had trouble to get a perfect sinus at low frequency ( 1hz to 100hz). Comparing with C++ code (a customized dualRXTX.cpp from LimeSuite github example folder), i found that the oversampling of the sample rate was responsive for this not desired behaviour. In the function “set.samplerate(obj, val)” of the limeSDR_XCVR.m, i changed the oversampling initialy set at 4 to 2 or 1 and the sinus at low frequency looks much better. In the C++ code, i could also set to 1 the oversampling in the call of the API function LMS_SetSampleRate(device, sample_rate, 1) and I also got a nicer sinus. I don’t exactly understand what do this oversampling parameter, i just tell what works for me. Cheers.
I propose a new matlab and simulink version for the limeSDR mini: https://github.com/viafx24/LimeSDR_Mini_MATLAB
One can find a simple TX-RX example matlab file that generate a sinus, a sawtooth or a square wave at de desired signal frequency, carrier frequency, Tx and RX gains and at the desired sample rate.
I also did small updates of the Joe Cover simulink wrapper and I include 4 files .slx that allow to emit and receive a sinus at 440 hz with amplitude modulation (1) or frequency modulation (2) and the same with a real song in AM (3) or FM (4). More explanation are provided in the readme file of the github repository and in the comments of the code. Feel free to contact me if it doesn’t work well for you or to give feedback. Cheers.