How to read from serial port with matlab (timeout problem) ?
Mostra commenti meno recenti
Dear all,
I want write/read to/from a serial port with matlab, to communicate with a trinamic step motor. I checked that I properly write to the port with port monitor software, but nothing comes out of the port when I attempt to read from it (I just get a timeout, even if I change the time out time to 20 sec). I've looked into the trinamic documentation, but the example they provide (a simple fread) doesn't work.
The point is I manage to read from the port with a Labview "VISA read" VI, but I can't match what this VI does with matlab... And because I'm a rookie when it comes serial port communication, I don't even know where to start...
Any suggestions ?
Thanks !
Risposte (2)
1 Commento
Dp
il 5 Mar 2018
Hi were you able to write and read with Matlab? I plan on doing the same thing with the tmcm1633
Categorie
Scopri di più su Instrument Control Toolbox Supported Hardware in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!