Page 1 of 1

Matlab communication error

Posted: Sat Apr 14, 2018 9:29 am
by gidi1181
Hi Matrix,

Coding :


global FA_BT;
FA_BT = Bluetooth('ALLCODE00106', 1);
fopen(FA_BT);
for cycle = 1:4
Forwards(100);
Right(90);
end
fclose(FA_BT);

Error:


>> Example2MotorTest
Error using icinterface/fopen (line 83)
Unsuccessful open: Cannot connect to the device. Possible reasons are another application is connected
or the device is not available.

Error in Example2MotorTest (line 3)
fopen(FA_BT);

Please give me the solution for this error asap.

thanks in advance

Re: Matlab communication error

Posted: Sat Apr 14, 2018 10:56 am
by gidi1181
Bulethooh setting.

global FA_BT;

%Change FA_XXXX to match the name of your FA device
FA_BT = Bluetooth('ALLCODE00106', 4);

%Run this script at least once before running the other scripts.
%Initialises the FA_BT global variable.

Re: Matlab communication error

Posted: Thu Apr 19, 2018 9:53 am
by Benj
Hello,

Did you find the solution yourself or are you still having problems? Not sure if the 2nd post is a solution or a here is what I tried.

Re: Matlab communication error

Posted: Thu Apr 19, 2018 12:29 pm
by gidi1181
Hello Benj,

Still i have the same problem. Kindly provide me the step for connect with matlab and solve my issue.