Open wnghdwnsrl opened 3 years ago
Hi, The DYNAMIXEL Simulink Library is a third party library that is not provided by ROBOTIS. Please contact the developer for the issues related to the library. Thank you.
Hi @wnghdwnsrl I´m also trying to use DynamixelSDK with Simulink. So far, the one in MATLAB File Exchange doesn´t work for me. I get callib errors while using the myDxl function. I tried enabling the headers and C functions as mentioned here:
https://la.mathworks.com/help/simulink/ug/integrate-ccode-ccaller.html
In the mean time, I tried some methods to use the DynamixelSDK C library in Simulink. One of them is using C Caller Blocks. With this approach, I could get almost all the function needed to make a read_write example similar as the one available for LabVIEW, but i can´t get it to compile.
The second approach I used was with shared libraries using MATLAB Function Block, as metioned here:
https://la.mathworks.com/help/simulink/ug/incorporate-c-code-using-a-matlab-function-block.html https://la.mathworks.com/matlabcentral/fileexchange/44197-calling-shared-libraries-from-simulink
But, I also having compile errors, and I basically stuck. If you wanna share how you configure the Library (the one made by the MATLAB team) and maybe get it to run, since i can´t get an answer from the original developer.
I'll be sharing my approaches if someone wants to get a look at them and try to get them work as a potential alternative.
Thanks in advance.
Hi,@johncgh22 @wnghdwnsrl
Although it is not a material that can solve your issues directly, I will introduce Dynamixel related resources posted on MATLAB File Exchange. They are wrapped as robot arm that using Dynamixel.
https://jp.mathworks.com/matlabcentral/fileexchange/65316-designing-robot-manipulator-algorithms https://jp.mathworks.com/matlabcentral/fileexchange/67926-portrait-drawing-using-computer-vision-and-robot-manipulator
Hi @johncgh22
It was happened by small mistake.
I just changed Devicename in "slDxl.m" file ( line 13)
DeviceName = 'DeviceName';
to
DeviceName = 'myDxl';
then it just worked. I wish it can be helpful to you.
Hi @ROBOTIS-Shibata Thank you for your post.
ISSUE TEMPLATE ver. 1.2.0
Please fill this template for more accurate and prompt support.
Which DYNAMIXEL SDK version do you use?
Which programming language/tool do you use?
Which operating system do you use?
Which USB serial converter do you use?
Which DYNAMIXEL do you use?
Have you searched the issue from the closed issue threads? -Yes but there was no question or answer about Error in Simulink.
Please describe the issue in detail
How can we reproduce the issue? Please, give me your comment.