send text(M1_RIGHT) to usb

1 visualizzazione (ultimi 30 giorni)
mo ma
mo ma il 5 Mag 2013
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?

Risposta accettata

Walter Roberson
Walter Roberson il 5 Mag 2013
You probably need to set the speed; you might also need to set the line terminator.
  2 Commenti
mo ma
mo ma il 6 Mag 2013
I write this command s = serial('COM2', 'BaudRate', 2400, 'DataBits',8,'Parity','None','Stopbit',1); but it does not work!!!
Walter Roberson
Walter Roberson il 6 Mag 2013
Is there an error message?

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Arduino Hardware in Help Center e File Exchange

Tag

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by