질문 하시기 전에 검색을 통해 원하는 질문/답변 내용을 찾아봐주세요.

How to program CM2+ using MATLAB?

조회 수 983 추천 수 0 2010.08.01 02:06:19
lokesh sardana *.149.49.226

hello,

I am having a CM2+ controller and DX-117 actauators. I am doing a project in which I have to process some information in MATLAB and move actuators accordingly. I want to control the actuators directly through MATLAB using CM2+ controller. So, could you please tell me how to program a CM2+ controller using MATLAB?


Thanks,

Lokesh


댓글 '3'

[레벨:30]ROBOTIS

2010.08.02 17:36:53
*.112.9.210

Hi Lokesh,

 

Please refer to the link below. (SUPPORT --> DOWNLOAD) article # 47

http://www.robotis.com/xe/download_en/20631

You can use the Dynamixel SDK.

 

ROBOTIS

lokesh sardana

2010.08.07 18:16:15
*.149.49.226

hello sir,

I tried to turn on the led of DX-117 (connected through CM2+ with PC) with following code in MATLAB.


"

function ledtest()

    s=serial('COM7','BaudRate', 1000000,'Parity', 'none','DataBits',8,'StopBits', 1);
    fopen(s);
   

    %FF FF 04 04 03 19 01 DA
    %255,  255,  4, 4, 3, 25, 01, 218
    a = [255, 255, 4, 4, 3, 25, 01, 218];
    fwrite(s, a);
   

    out=fread(s, 6);
    disp(out);
   

    fclose(s);
    delete(s);
    clear s;
end


"

But it doesn't seem to be working and nothing is returning to 'out'.

So, please tell me where I was wrong?


Thanks,

Lokesh


[레벨:30]ROBOTIS

2010.08.09 17:54:17
*.112.9.210

Hi Lokesh,

 

My apologies for giving you the wrong information.

Currently, only the CM-510 and CM-700 supports Embedded C.

Cm-2+ is supported in PC.

http://support.robotis.com/en/techsupport_eng.htm#software/embeded_c/cm510_cm700.htm

 

If you are using MatLab, try using the USB2dynamixel for control.

http://support.robotis.com/en/techsupport_eng.htm#software/dynamixel_sdk/usb2dynamixel/windows/matlab.htm

 

ROBOTIS

문서 첨부 제한 : 0Byte/ 2.00MB
파일 제한 크기 : 2.00MB (허용 확장자 : *.*)
List of Articles
번호 제목 글쓴이 날짜 조회 수
공지 [ROBOTIS] Please read before posting questions. ROBOTIS 2012-02-07 3718
410 Problem with RoboPlus Motion imagefile [5] Sleven 2010-10-02 920
409 Problem with Wireless Camera [2] uetvnu 2010-10-01 2102
408 RX-28 Controller [5] Andrés 2010-09-29 909
407 Zigbee <- -> PC [1] Hanni 2010-09-22 884
406 Question abou type of command?? [1] SAKIS 2010-09-21 788
405 Zigbee's RX problem [1] swxn 2010-09-15 762
404 Wireless PC connection with Premium Kit [3] Paul 2010-09-14 2369
403 A few questions, if anyone is bored enough to explain. [1] matt 2010-09-11 810
402 more advance moves/dance for Expert kit CM-5 [3] Mauricio 2010-09-01 1092
401 High Torque AX 12 in endless turn [3] taufik 2010-08-31 1168
400 Gyrostabilized camera platform [1] Koen 2010-08-23 892
399 [AX-12+] Power loss and fail to follow correct goal position [1] 김승아 2010-08-20 768
398 extra zeros in status packet and dropped 0xFF byte [5] MTR 2010-08-14 998
397 [EX-106] Pose Utility [1] Customer 2010-08-12 836
396 Problem connecting with RS485 serial port [1] Ugo 2010-08-05 1087
395 how to write an instruction packet for reading present position i... [4] aditya 2010-08-03 1080
394 Problem with CM-510 [5] Rami 2010-08-02 1158
393 [HELP] dynamixel RX-64 transfer function [1] dhona 2010-08-02 1006
» How to program CM2+ using MATLAB? [3] lokesh sardana 2010-08-01 983
391 Multiple motors detection problem [1] Rami 2010-07-29 948

XE Login