Matlab and SSC- 32

hello,

i have a doubt…can SSC-32 accept commands form matlab thru serial port???

actualiy i have filtered data in matlab and i want to use this to move the robotic arm…i have RIOS software as well

but can data be used to move the robotic arm without making .csv file for RIOs???

please reply…

Thanks

warnoldscu said this…

I’m working with MATLAB and I have the positioning commands working well to each of my 3 servos… My printf statement looks like this:

fprintf(s, ‘#1P1200T1000’)

This thread has some useful information…
lynxmotion.net/viewtopic.php?t=1273

Here is another thread with information.
lynxmotion.net/viewtopic.php?t=2410

Does this help? :open_mouth:

Thanks fo replying…
I tried the serial port method with matlab…
I connected my laptop with lynx motion 5 arm having SSC-32 thru serial port(com5)…then I enabled the com15 using this command

S=serial(‘COM15’, ‘BaudRate’, 115200,‘Terminator’,‘CR/LF’):

output form this was

Serial Port Object : Serial-COM15

Communication Settings
Port: COM15
BaudRate: 115200
Terminator: ‘CR/LF’

Communication State
Status: closed
RecordStatus: off

Read/Write State
TransferStatus: idle
BytesAvailable: 0
ValuesReceived: 0
ValuesSent: 0
then i issued fopen(S) …followed by fprintf command…but my arm did not move at all…

evev I did not get ant error in matlab…i really wonder why it did nt move

Please help me…

Thanks in advance…

If you can operate the arm using lynxterm using the same serial connection from the computer, then your problem is a matlab problem. You might check to see if matlab has a help forum to ask questions about matlb issues.

COM5 or COM15?

You can also use a null-modem cable to connect the laptop to another PC/laptop running Hyperterminal or some other terminal application that will allow you to actually see what matlab is generating for output. When people are rolling their own control programs like you are with matlab then this can frequently be very helpful in figuring out what isn’t working.