<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="http://forum.robosavvy.com/feed.php?f=5&amp;t=2876" />

<title>RoboSavvy Forum</title>
<subtitle>Robosavvy Forum: The largest online community of Humanoid Robot Builders</subtitle>
<link href="http://forum.robosavvy.com/index.php" />
<updated>2008-09-29T14:34:24+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=5&amp;t=2876</id>
<entry>
<author><name><![CDATA[Siel]]></name></author>
<updated>2008-09-29T14:34:24+01:00</updated>
<published>2008-09-29T14:34:24+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2876&amp;p=17709#p17709</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2876&amp;p=17709#p17709"/>
<title type="html"><![CDATA[REG_WRITE, SYNC_WRITE etc.... for Python... ?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2876&amp;p=17709#p17709"><![CDATA[
In fact, what I am trying to do, is to execute with only one lign, the differents positions that my dynamixel have to reach...<br />I saw the SYNC_WRITE page 24 of the manual... !<br />I tried that :<br /><br /><blockquote class="uncited"><div><br />&gt;&gt;&gt; libc.dxl_set_txpacket_id(254)<br />2226430<br />&gt;&gt;&gt; libc.dxl_set_txpacket_instruction(131)<br />2226307<br />&gt;&gt;&gt; libc.dxl_set_txpacket_parameter(0, 30)<br />2225950<br />&gt;&gt;&gt; libc.dxl_set_txpacket_parameter(1, 10)<br />2225930<br />&gt;&gt;&gt; libc.dxl_set_txpacket_parameter(2, 2)<br />2225922<br />&gt;&gt;&gt; libc.dxl_set_txpacket_parameter(3, 30)<br />2225950<br />&gt;&gt;&gt; libc.dxl_set_txpacket_parameter(4, 200)<br />2226120<br />&gt;&gt;&gt; libc.dxl_set_txpacket_parameter(5, 3)<br />2225923<br />&gt;&gt;&gt; libc.dxl_set_txpacket_parameter(6, 30)<br />2225950<br />&gt;&gt;&gt; libc.dxl_set_txpacket_parameter(7, 511)<br />2226175<br />&gt;&gt;&gt; libc.dxl_tx_packet()<br />1<br /></div></blockquote><br /><br />Nothing...<br /><br />I am not sure I have all understood like<br /><br /><blockquote class="uncited"><div><br />Parameter1 Starting address of the location where the data is to be written<br />Parameter2 The length of the data to be written (L)<br /></div></blockquote><br /><br />... <img src="http://forum.robosavvy.com/images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy" /><br />thanks !<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1171">Siel</a> — Mon Sep 29, 2008 2:34 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Siel]]></name></author>
<updated>2008-09-29T10:42:51+01:00</updated>
<published>2008-09-29T10:42:51+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2876&amp;p=17708#p17708</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2876&amp;p=17708#p17708"/>
<title type="html"><![CDATA[REG_WRITE, SYNC_WRITE etc.... for Python... ?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2876&amp;p=17708#p17708"><![CDATA[
Hi,<br /><br />Thanks for your reply...<br />I tried many things...<br />So, in relation to your reply I tried this in the IDLE of python<br /><br /><blockquote class="uncited"><div><br />&gt;&gt;&gt; from ctypes import *<br />&gt;&gt;&gt; libc = windll.dynamixel<br />&gt;&gt;&gt; libc.dxl_initialize()<br />1<br /><br />#id is 2<br />&gt;&gt;&gt; libc.dxl_set_txpacket_id(2) <br />2226178<br /><br /> # I hope that 3 is INST_WRITE, readed on the example at the end of the manual...<br />&gt;&gt;&gt; libc.dxl_set_txpacket_instruction(3)<br />2226179<br /><br /># write on register 30 goal position<br />&gt;&gt;&gt; libc.dxl_set_txpacket_parameter(0, 30)<br />2225950<br /><br /># Reach the position 200<br />&gt;&gt;&gt; libc.dxl_set_txpacket_parameter(1, 200)<br />2226120<br /><br /># length...?<br />&gt;&gt;&gt; libc.dxl_set_txpacket_length(4)<br />2226180<br /><br />&gt;&gt;&gt; libc.dxl_tx_packet()<br />1<br /><br />--&gt; Nothing happen <img src="http://forum.robosavvy.com/images/smilies/icon_smile.gif" alt=":)" title="Smile" /><br />Servo was tested before on Dynamixel Manager...<br /></div></blockquote><br /><br />'rrrrrrr....<br />Something is wrong somewhere, but I don't know where... !<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1171">Siel</a> — Mon Sep 29, 2008 10:42 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[limor]]></name></author>
<updated>2008-09-27T18:17:00+01:00</updated>
<published>2008-09-27T18:17:00+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2876&amp;p=17693#p17693</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2876&amp;p=17693#p17693"/>
<title type="html"><![CDATA[REG_WRITE, SYNC_WRITE etc.... for Python... ?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2876&amp;p=17693#p17693"><![CDATA[
Hi,<br />Have you read the following part in the manual ?<br /><br />4.3.5.      gbInstructionPacket<br />gbInstructionPacket is an arrangement pointer to save contents of Instruction Packets.... As for the [other] programming languages in which access through global variables is unavailable... to make the Instruction Packets, there is no need to input the Header and Checksum. Upon calling on dxl_tx_packet or dxl_txrx_packet function, the Header and Checksum are automatically made and transmitted.<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>&#40;in python call dxl_set_txpacket_instruction&#40;&#41; for each of the following lines&#41;:<br />gbInstructionPacket&#91;ID&#93; = 3; // ID is 3<br />gbInstructionPacket&#91;INSTRUCTION&#93; = 3; // Instruction Code is 3<br />gbInstructionPacket&#91;PARAMETER&#93; = 10; // Parameter 1 is 10<br />gbInstructionPacket&#91;PARAMETER+1&#93; = 20; // Parameter 2 is 20<br />gbInstructionPacket&#91;PARAMETER+2&#93; = 30; // Parameter 3 is 30<br />gbInstructionPacket&#91;LENGTH&#93; = 3+2; // Length is Parameter number + 2<br />dxl_tx_packet&#40; &#41;;</code></dd></dl><br /><br />hope this helps<br /><br />In case someone reading this thread doesnt know: Robotis have released a formal SDK that supports most programming languages in Windows environment - <!-- m --><a class="postlink" href="http://robosavvy.com/forum/viewtopic.php?t=2726">http://robosavvy.com/forum/viewtopic.php?t=2726</a><!-- m --><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2">limor</a> — Sat Sep 27, 2008 6:17 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Siel]]></name></author>
<updated>2008-09-26T14:22:12+01:00</updated>
<published>2008-09-26T14:22:12+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2876&amp;p=17659#p17659</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2876&amp;p=17659#p17659"/>
<title type="html"><![CDATA[REG_WRITE, SYNC_WRITE etc.... for Python... ?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2876&amp;p=17659#p17659"><![CDATA[
Hi Everybody<br /><br />Somebody know how to use the REG_WRITE and other stuff with the command  libc.dxl_set_txpacket_instruction<br />I really don't get it, if someone could help me ... !<br />I tried the example 5 in the manual, but nothing happen.... !<br /><br />I think it's quiet the same thing with C/C++... I just don't understand how to tell something to my dynamixel in this way.<br />Usually I use libc.dxl_write_word(3, 30, 300)<br />id 3 go to position 300...<br /><br />Thanks<br />S:el<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1171">Siel</a> — Fri Sep 26, 2008 2:22 pm</p><hr />
]]></content>
</entry>
</feed>