| Author |
Serial port Response too slow in Matlab
|
|
|
| I am having a problem controlling a servo from matlab.
when I send the position data to the servo there is a half second delay
before the servo responds. I have writen a simple controlling program
in basic and the servo responds imediately. Is this a problem with some
setting on the serial port object in matlab. or is matlab just this
slow to send the data out of the serial port? Is the only solution to
write a mex file that opens and controls the port and call that from
matlab. If anyone knows a solution to this problem please let me know.
| |
| Brad Phelan 2005-04-25, 4:02 pm |
| Adam wrote:
> I am having a problem controlling a servo from matlab.
> when I send the position data to the servo there is a half second delay
> before the servo responds.
Are you sure that you are flushing the serial buffer after you write
your data. I'm just taking a guess that that may be a problem.
Brad Phelan
http://xtargets.com
| |
|
| Thanks alot I think that is it.
|
|
|
|