Beginners help with an L6 arm and Matlab

Hey all, my friend is letting me use his lynxmotion l6 robotic arm for a project in one of my classes but I’m coming across problems communicating with it via Matlab v 7.11.0 right now.

The arm is connected to the COM1 serial port on the computer and I enter the following series of commands in a Matlab session:

s = serial( ‘COM1’ )
fopen( s )
fprintf( s, ‘#1 P1600 S750’ )

The last command is my attempt to just get the arm to move right now so that I can begin the project but the only thing that happens is the green LED light on the SSC-32 board goes out and stays out until the power is reconnected.

I set the Matlab Terminal to 13 and the baud rate on both should be 9600 so can anyone tell me what I’m doing wrong? My first attempt at this so try to go easy on any detailed explanations if possible. Thanks.

The LED is not a power light, it’s a status indicator. It will light up if the SSC-32 is 99% functional. It’s job is to turn on with the power then turn off after it has received data even if the data is complete gibberish… I would recommend you tell matlab to send a CR as the final command. Without it the SSC-32 will never act on the commands it has received. :wink:

I’d wondered as much with the light but was unsure as to what it meant since all physical documentation for this particular arm has been lost so I’m forced to resort to Google to learn it all.

I figured it was the CR at the end that was causing an issue honestly but wanted to hear what others thought. This may be the wrong forum to ask, but while I’m here, I don’t suppose anyone knows how to use the Matlab code to ensure that the proper CR is appended to the end in a manner that the arm will recognize? I played around with several different thing myself and couldn’t seem to get it to do anything.

Thanks again.

Search this forum for matlab and or labview to see the answers you are looking for. :wink: