controlling SDC2130 with matlab serial port

9 years 6 months ago - 9 years 6 months ago #29528927 by g1989
I am trying to control a sdc2130 with matlab serial port. I need to send !G[1]100 via serial port and I think there should be a carriage return (hex 0d) at the end of the string.I am using:

fprintf(s,strcat('!G[1]100', hex2dec('0D')))

which I found at
www.mathworks.com/matlabcentral/fileexch..._motor_control_tcp.m

No result.
Does anyone have any experience with matlab and sdc2130?

Please Log in or Create an account to join the conversation.

Moderators: tonysantoni
Time to create page: 0.049 seconds