MATLAB: Send text(M1_RIGHT) to usb

bascom

hi, I want to start a motor with usb driver that I made it, it works when I send text with Bascom but with matlab dose not work; this is my m file that i write for start motor: s=serial('COM2') fopen(s) fprintf(s,'M1_RIGHT') what can I do?

Best Answer

You probably need to set the speed; you might also need to set the line terminator.