Lynxmotion Tech Support

www.lynxmotion.com
It is currently Wed May 22, 2013 5:45 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Wed Feb 03, 2010 11:19 am 
Offline
Roboteer

Joined: Wed Feb 03, 2010 11:02 am
Posts: 8
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


Top
 Profile  
 
PostPosted: Wed Feb 03, 2010 11:39 am 
Offline
Roboteer

Joined: Mon Feb 01, 2010 1:43 pm
Posts: 5
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?


Top
 Profile  
 
PostPosted: Wed Feb 03, 2010 11:48 am 
Offline
Lynxmotion Founder
User avatar

Joined: Mon Oct 31, 2005 10:46 am
Posts: 9325
Location: my quiet place
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.

_________________
Jim Frye, the Robot Guy
http://www.lynxmotion.com
I've always tried to do my best...


Top
 Profile  
 
PostPosted: Wed Feb 03, 2010 12:12 pm 
Offline
Roboteer

Joined: Wed Feb 03, 2010 11:02 am
Posts: 8
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group