Matlab communication error

For Formula AllCode users to discuss projects, programs, and any other issues related to the Formula AllCode robotics platform.

Moderators: Benj, Mods

gidi1181
Posts: 8
Joined: Mon Jan 22, 2018 6:31 am
Has thanked: 1 time
Been thanked: 1 time
Contact:

Matlab communication error

Postby gidi1181 » Sat Apr 14, 2018 9:29 am

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

gidi1181
Posts: 8
Joined: Mon Jan 22, 2018 6:31 am
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Matlab communication error

Postby gidi1181 » Sat Apr 14, 2018 10:56 am

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.
These users thanked the author gidi1181 for the post:
Benj (Thu Apr 19, 2018 9:52 am)
Rating: 5.56%
 

User avatar
Benj
Matrix Staff
Posts: 14157
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4330 times
Been thanked: 4080 times
Contact:

Re: Matlab communication error

Postby Benj » Thu Apr 19, 2018 9:53 am

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.

gidi1181
Posts: 8
Joined: Mon Jan 22, 2018 6:31 am
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Matlab communication error

Postby gidi1181 » Thu Apr 19, 2018 12:29 pm

Hello Benj,

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