Matlab communication questions

hello!
I’ve been working on getting Matlab to talk to my SSC32, and while progress has been made on the matlab end of things, I’ve hit a dead end as far as what to send through my serial connection to the board. I am pretty sure I have established connection to the SSC32 (when I run my program and have it print messages to the board my green l.e.d. goes out… ).

here is what I have currently in matlab

ssc32 = serial(‘COM3’, ‘BaudRate’, 115200); <------ side note: do I need the Terminator and CR/LF stuff? If so could anyone help me understand what this is?
fopen(ssc32)
fprintf(ssc32, ‘MESSAGE’)
fclose(ssc32)

So, basically what do I replace the word MESSAGE with to set multiple servo positions for a certain amount of time? Where do I find documentation on what to print and whatnot?
Thanks a bunch!

You need to be familiar with the below ssc-32 user’s manual. Yes, per the users manual, a CR required to tell the ssc the string of commands is ended and to execute the commands. I’ve used simple batch files like below to do simple testing of servo command sequences.

lynxmotion.com/images/html/build136.htm

ssc.bat

::@echo off
mode com3:9600,N,8,1 >nul

echo #0P2200 >com3
ping -n 2 127.0.0.1 >nul

echo #0P1500 t3000 >com3
ping -n 5 127.0.0.1 >nul

echo #0P2200 >com3
ping -n 2 127.0.0.1 >nul

echo #0P1500 t3000 >com3
ping -n 5 127.0.0.1 >nul

echo #0P2200 >com3
ping -n 2 127.0.0.1 >nul

exit

:blush:
thanks for the help :slight_smile:
sorry I didn’t take the time to read through all my resources first :blush:

I think we all make that mistake!

Alan KM6VV