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

Post Reply
gidi1181
Posts: 8
Joined: Mon Jan 22, 2018 6:31 am
Contact:

Matlab communication error

Post 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

gidi1181
Posts: 8
Joined: Mon Jan 22, 2018 6:31 am
Contact:

Re: Matlab communication error

Post 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.

User avatar
Benj
Matrix Staff
Posts: 14950
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Contact:

Re: Matlab communication error

Post 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.

gidi1181
Posts: 8
Joined: Mon Jan 22, 2018 6:31 am
Contact:

Re: Matlab communication error

Post by gidi1181 »

Hello Benj,

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

Post Reply