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

How to program CM2+ using MATLAB?

조회 수 743 추천 수 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 20
399 [AX-12+] Power loss and fail to follow correct goal position [1] 김승아 2010-08-20 569
398 extra zeros in status packet and dropped 0xFF byte [5] MTR 2010-08-14 753
397 [EX-106] Pose Utility [1] Customer 2010-08-12 578
396 Problem connecting with RS485 serial port [1] Ugo 2010-08-05 832
395 how to write an instruction packet for reading present position i... [4] aditya 2010-08-03 844
394 Problem with CM-510 [5] Rami 2010-08-02 887
393 [HELP] dynamixel RX-64 transfer function [1] dhona 2010-08-02 769
» How to program CM2+ using MATLAB? [3] lokesh sardana 2010-08-01 743
391 Multiple motors detection problem [1] Rami 2010-07-29 731
390 RX-64 + Arbotix microcontroller problem [1] Ilya 2010-07-29 651
389 RX64/28/10 Torque Enable problem [3] Christian 2010-07-23 699
388 Connecting RX-64 to the PIC16F876A UART [4] Joan Pere 2010-07-22 842
387 CM 510 - Technical Question [1] Charles 2010-07-21 771
386 About EX-106+ [1] lrg 2010-07-20 787
385 about the power supply of ex-106+ [1] lrg 2010-07-19 681
384 Problem with the USB2Dynamixel [1] SAKIS 2010-07-15 681
383 Status Return Error [2] taufik 2010-07-15 736
382 how to purchase BIOLOID products in a reasonable price in china... [1] iloveyou 2010-07-15 789
381 USB2Dynamixel with AX12+ [2] angela 2010-07-13 791
380 Istill have Problem with the USB2Dynamixel connection [1] SAKIS 2010-07-13 644

XE Login