Matlab programming - SSC-32 communication

Please I’m currently using the AL5A robotic arm with the SSC-32 and trying to communicate it using matlab serial port function…but I’m having problems with communication. The arm works great with RIOS and Lynxtem but my project is based on matlab so I need to control it with Matlab which doesn’t even recognise the port.
I’m using this simple code:

obj = serial(‘COM3’);
set (obj, ‘BaudRate’,115200,‘DataBits’,8,‘Parity’,‘none’,‘StopBits’,1)
obj.FlowControl = ‘none’;
fopen(obj)

In this case Matlab is returning the following error:

Port: COM3 is not available. No ports are available.
Use INSTRFIND to determine if other instrument objects are connected to the requested device.

Error in ==> Untitled at 11
fopen(S)

Does anybody out there know why Matlab is giving such an error? Please I need your help.

Regards
Kenneth

I haven’t used Matlab in a very long time I’m afraid, so this is a shot in the dark. The code itself looks good to me.

Please check that no other programs (or even Matlab) are using that port. Did INSTRFIND show anything?

PC’s can only allow one program to have access to any hardware serial port at a time. Make sure no other applications are using the serial port.

Hi
Thanks for your replies
Instrfind didn’t help. It just lists the serial ports in the command prompt. I tried also to change the serial port to COM8. In this case when I open the Matlab no error is given when I run the program. However I don’t know how to move the servos with Matlab to ensure that communication is working correctly. Any help or any links would be greatly appreciated:)

Regards
Kenneth

Hello,
Sorry if the question has already been answered, but the search function is not helping me further.

I am working with a robotic arm AL5A reference card botboarduino communication. I need to do the programming with botboarduino to communicate with matlab. Would be helpful to facilitate or advise the procedure for communication with botboarduino and matlab.

thanks
Luis Ortiz