[MATLAB] Can't connect BITalino to MATLAB with support package

Python, Java, Android OS, etc.
Von Duesenberg
Posts: 9
Joined: Sat Dec 24, 2016 8:43 am

[MATLAB] Can't connect BITalino to MATLAB with support package

Postby Von Duesenberg » Sat Dec 24, 2016 2:43 pm

Dear BITalino users,

I've just posted the following message on the Matlab forum; but some of you may know the answer to my problem (although I'm not very optimistic about this after reading the following topic: http://forum.bitalino.com/viewtopic.php?t=294)

I've installed the Bitalino support package and I'm trying to acquire data from a BITalino (r)evolution Plugged Kit BT. I'm running Matlab R2016b on a 64 bit Windows 8.1 PC.

So far I've managed to acquire data seamlessly with OpenSignals, and also with the Matlab API from the Bitalino website.

But when I try using the support package by the MathWorks Instrument Control Toolbox Team; it doesn't work:

Code: Select all

b = Bitalino


returns the following error:

Unsuccessful open: Cannot connect to the device. Possible reasons are
another application is connected
or the device is not available.


Yet it seems that the Instrument Control Toolbox somewhat detects it:

Code: Select all

myInstr = instrhwinfo('Bluetooth');
myInstr.RemoteNames{3}


ans =

BITalino-17-24

Code: Select all

myInstr.RemoteIDs{3}


ans =

btspp://201607181724

I'm really stuck, here. Could anyone please point me to the right direction?

Thanks very much.

BITalino
Site Admin
Posts: 567
Joined: Tue Aug 27, 2013 3:47 pm

Re: [MATLAB] Can't connect BITalino to MATLAB with support package

Postby BITalino » Sat Dec 24, 2016 7:01 pm

Hi there,

Have you tried to send the MAC address as input argument to the Bitalino object?

As described on the .m file, it is possible to pass the MAC address:
https://www.mathworks.com/matlabcentral/fileexchange/53983-bitalino-support-from-matlab/content/Bitalino.m

Please try to use the following statement to see if it works out for you:

Code: Select all

b = Bitalino("btspp://201607181724", 1)


Best regards,
The BITalino Team

Von Duesenberg
Posts: 9
Joined: Sat Dec 24, 2016 8:43 am

Re: [MATLAB] Can't connect BITalino to MATLAB with support package

Postby Von Duesenberg » Sat Dec 24, 2016 7:26 pm

Hi there,

Thanks very much for your reply. I'm pretty sure I had tried this before... but, now, it works! At least, I was able to acquire 5 secs of data from the LUX sensor.

It's still a mystery why neither the bitalinoApp in Matlab, nor the "official" Instrument Control App were able to make the connection.

But as far as I'm concerned, you solved my problem!

Thanks again!

All the best.

BITalino
Site Admin
Posts: 567
Joined: Tue Aug 27, 2013 3:47 pm

Re: [MATLAB] Can't connect BITalino to MATLAB with support package

Postby BITalino » Sat Dec 24, 2016 8:21 pm

We're glad to have been of assistance. There are other potential reasons for problems in the connection, but at least you can progress a bit further ;)

Should you experience any other issues for which you need support, do let us know and we'll try to do our best to help out.

Best regards,
The BITalino Team


Return to “Programming APIs”




cron