Problem with control of Dynamixel AX-12A by using MatLab
6 views (last 30 days)
I plan to work with Dynamixel AX-12A, which is connected to computer (Win64 with Windows 10) by USB2Dynamixel. I use information from Dynamixel SDK Manual ( item 4.6 ) for adding libraries in MatLab R2014a (it's files for DynamixelSDK-3.4.1), but when I run file "read_write.m", I got error:
Index exceeds matrix dimensions.
%unix machines return c and cpp
Error in loadlibrary (line 253)
Error in read_write (line 60)
[notfound, warnings] =
Also I tried to add library as it's written in ROBOTIS e-Manual v1.24.00 , but I have simular error. Could you help me with this problem?
Michael C. on 3 Oct 2016
I believe I ran into the same type of problem while trying to communicate with some Dynamixel servos. My solution was just to create a serial port object and then build up my own library around that since the Dynamixel communication is fairly straightforward and well documented. This is the start of it.
serialPort = serial('COM3','BaudRate',1000000,'Parity','none','DataBits',8,'StopBits',1,'Timeout',1);
I think this is the document I originally started with for building my code (see page 9) http://documents.mx/documents/dynamixel-ax12-matlab.html
I might try and pretty up and document some of my code and put it on the file exchange.