<?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=1521" />

<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>2010-04-04T00:21:30+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=5&amp;t=1521</id>
<entry>
<author><name><![CDATA[limor]]></name></author>
<updated>2010-04-04T00:21:30+01:00</updated>
<published>2010-04-04T00:21:30+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1521&amp;p=26225#p26225</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1521&amp;p=26225#p26225"/>
<title type="html"><![CDATA[Bioloid and Matlab Simulink]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1521&amp;p=26225#p26225"><![CDATA[
recently succeeded getting matlab to talk to robotis bus using the FTDI USB-serial interface (USB2Dynamixel). this uses the latest version of matlab/simulink (dont remember which).<br /><br />see working example and some explanation here<br /><!-- m --><a class="postlink" href="http://actuated.wordpress.com/2010/02/19/dynamixel-bus-communication-from-matlab/">http://actuated.wordpress.com/2010/02/1 ... om-matlab/</a><!-- m --><br />(btw: the DLL referred to in this link page is the one supplied by robotis with the usb2dynamixel CD which you can find by googling usb2dynamixel software)<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2">limor</a> — Sun Apr 04, 2010 12:21 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[snow4997]]></name></author>
<updated>2010-04-03T17:07:00+01:00</updated>
<published>2010-04-03T17:07:00+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1521&amp;p=26224#p26224</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1521&amp;p=26224#p26224"/>
<title type="html"><![CDATA[nid help]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1521&amp;p=26224#p26224"><![CDATA[
guys, i'm new here. i've tried and follow the tutorail, but at the end once i click the play button i got blue screen !!<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1925">snow4997</a> — Sat Apr 03, 2010 5:07 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[limor]]></name></author>
<updated>2009-03-20T11:24:58+01:00</updated>
<published>2009-03-20T11:24:58+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1521&amp;p=19435#p19435</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1521&amp;p=19435#p19435"/>
<title type="html"><![CDATA[Bioloid and Matlab Simulink]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1521&amp;p=19435#p19435"><![CDATA[
sorry i can't help, it has been a long time since i played with this stuff and we used version 6 of matlab, not 7.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2">limor</a> — Fri Mar 20, 2009 11:24 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[fra_diee]]></name></author>
<updated>2009-03-19T09:34:37+01:00</updated>
<published>2009-03-19T09:34:37+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1521&amp;p=19432#p19432</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1521&amp;p=19432#p19432"/>
<title type="html"><![CDATA[Bioloid and Matlab Simulink]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1521&amp;p=19432#p19432"><![CDATA[
Hi,<br /><br />I followed all the steps in matlab , but when building the simulink model I have some problem like:<br /><br />&quot;The existing Rel-Time workshop project &quot;slprj&quot; directory was created for a different version of mathworks product....ecc.. <br /><br />I use matlab 7.5.0 and 7.0 but the problem is the same!<br /><br />I'm trying to create a new model but matlab send me an error message like &quot;pc_code&quot; do not exist, but i have pc_code.c in the same model folder and the file rtwin.tlc do not exist!!!<br /><br />Please help me!!!! thks<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1385">fra_diee</a> — Thu Mar 19, 2009 9:34 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Dimitris]]></name></author>
<updated>2008-02-01T03:37:22+01:00</updated>
<published>2008-02-01T03:37:22+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1521&amp;p=13939#p13939</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1521&amp;p=13939#p13939"/>
<title type="html"><![CDATA[Bioloid and Matlab Simulink]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1521&amp;p=13939#p13939"><![CDATA[
OK it might sound easy but I've never used the serial object in Matlab so basically I'm taking a completely wild stab in the dark. I managed to get a servo to make some violent moves but that's about it!<br /><br />%////<br />s = serial('COM1');<br />fopen(s)<br /><br />fwrite(s,3)<br />pause(1)<br />fwrite(s,1)<br />pause(1)<br /><br />fprintf(s,'c')<br /><br />bytesize = s.BytesAvailable<br />fread(s, bytesize)<br />%////<br /><br />Trying to write 2 bytes and then read 2 as the PC_code is doing.<br />(is the 'c' print needed, saw it in the PC_code.m file)<br />I really have no idea what is going on however. Looking at the cm5-side code it makes sense that there's a while loop which constantly sends the goal position to the servo and then reads the current position. But on the Matlab side am I reading-writing correclty? What range does the fwrite data have to be/how does it correspond to servo position?<br /> <img src="http://forum.robosavvy.com/images/smilies/icon_confused.gif" alt=":?" title="Confused" /> I know all these questions sound dumb, but any help is appreciated!<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=214">Dimitris</a> — Fri Feb 01, 2008 3:37 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[limor]]></name></author>
<updated>2008-01-31T03:47:07+01:00</updated>
<published>2008-01-31T03:47:07+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1521&amp;p=13916#p13916</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1521&amp;p=13916#p13916"/>
<title type="html"><![CDATA[Bioloid and Matlab Simulink]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1521&amp;p=13916#p13916"><![CDATA[
Hi Dimitris,<br /><br />This method and thsi S-function is designed for Real-time-windows-target which runs at such high priority in XP that most drivers dont work.<br /><br />The rational was to allow hard realtime frame rates for the control loop. If you need hard real-time, this is your best development environment.<br /><br />the serial driver implemented in the S-function uses very backwards compatible windows system calls that assume the serial chipset on the motherboard and memory mapped to the CPU.<br /><br />look at the code and google some of the words there, you will find references to similar serial driver code dated 10 years ago. If your serial port is on a PCI card, it may not have the same programming interface (memory mapped addresses etc) as the old serial chip. definitely the FTDI USB chips have totally different drivers then the old serial chip.<br /><br />You may want to consider not using the Real-time simulink but instead use the normal simulink mode. If you computer is powerful enough, you may be able to get good pseudo real-time frame rate and you will be able to use your PCI serial interface and the FTDI based USB2Dynamixel module.<br /><br />In normal mode you can write the S-function using a standard windows COM interface to serial ports. you wont have to deal with strange race conditions and dead-locks and have to reboot the system on every bug. You will also have considerably more ready-made boxes/functions to choose from including if i'm not mistaken a generic serial toolbox.<br /><br />And another idea.. We have done some experiments generating &quot;Generic Linux C code output&quot; from Simulink, cross compiling and running the code on Gumstix connected to the Bioloid bus. Again this is pseudo real-time but the Gumstix hardly runs any other process except for the simulink controller.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2">limor</a> — Thu Jan 31, 2008 3:47 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Dimitris]]></name></author>
<updated>2008-01-29T14:57:06+01:00</updated>
<published>2008-01-29T14:57:06+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1521&amp;p=13887#p13887</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1521&amp;p=13887#p13887"/>
<title type="html"><![CDATA[Bioloid and Matlab Simulink]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1521&amp;p=13887#p13887"><![CDATA[
Sorry to keep this thread running for so long, but I just got a new PCI-port serial connector card and tried that (xindows xp). Still the same results <img src="http://forum.robosavvy.com/images/smilies/icon_sad.gif" alt=":(" title="Sad" /><br />Will I need to find a PC with a proper in-built serial card? Anyone know how to adapt the code for a serial-2-usb cable? And I was also wondering if it's worth purchasing the robotis usb-2-dynamixel if at the end of the day I need the PC processing power and the cm5 is just an intermediate.<br /><br />Thanks,<br />Dimitris<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=214">Dimitris</a> — Tue Jan 29, 2008 2:57 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[rustyarmor]]></name></author>
<updated>2008-01-24T04:23:53+01:00</updated>
<published>2008-01-24T04:23:53+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1521&amp;p=13774#p13774</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1521&amp;p=13774#p13774"/>
<title type="html"><![CDATA[Bioloid and Matlab Simulink]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1521&amp;p=13774#p13774"><![CDATA[
Hi Dimitris,<br /><br />I think that the problem you face is due to the fact the sfunction code was built in order to work with serial ports registers from the uart. It is not suposed to work with a converter.  <br /><br />Some guy had this problem a couple months ago. I'll ask him.<br /><br />Pedro<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=339">rustyarmor</a> — Thu Jan 24, 2008 4:23 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Dimitris]]></name></author>
<updated>2008-01-24T02:48:59+01:00</updated>
<published>2008-01-24T02:48:59+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1521&amp;p=13770#p13770</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1521&amp;p=13770#p13770"/>
<title type="html"><![CDATA[Bioloid and Matlab Simulink]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1521&amp;p=13770#p13770"><![CDATA[
yeah, but it works fine with robotis software on com1 and 57600 baud rate<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=214">Dimitris</a> — Thu Jan 24, 2008 2:48 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[rustyarmor]]></name></author>
<updated>2008-01-24T01:08:38+01:00</updated>
<published>2008-01-24T01:08:38+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1521&amp;p=13769#p13769</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1521&amp;p=13769#p13769"/>
<title type="html"><![CDATA[Bioloid and Matlab Simulink]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1521&amp;p=13769#p13769"><![CDATA[
Hi Dimitris,<br /><br />are you using a usb2serial adapter?<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=339">rustyarmor</a> — Thu Jan 24, 2008 1:08 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Dimitris]]></name></author>
<updated>2008-01-24T00:48:35+01:00</updated>
<published>2008-01-24T00:48:35+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1521&amp;p=13768#p13768</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1521&amp;p=13768#p13768"/>
<title type="html"><![CDATA[Bioloid and Matlab Simulink]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1521&amp;p=13768#p13768"><![CDATA[
Same unfortunately. I tried on an xp machine today. Also noticed that the same result happens if the cm5 is not plugged in/turned on so I'm suspicious it's the connection's fault. Is it because I'm using a usb2serial cable? I made sure its COM port is 1, also the cable works fine with all Robotis stuff, COM1, baud rate 57600. Is there any way of verifying the CM5 is 'connected' to Matlab?<br />I had also ordered another usb2serial cable as well as a PCI-card based serial port, so will try those as well when they arrive. Unfortunately my PC's serial port seems dead and my laptop doesn't have one! :S<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=214">Dimitris</a> — Thu Jan 24, 2008 12:48 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[rustyarmor]]></name></author>
<updated>2008-01-22T16:39:48+01:00</updated>
<published>2008-01-22T16:39:48+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1521&amp;p=13716#p13716</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1521&amp;p=13716#p13716"/>
<title type="html"><![CDATA[Bioloid and Matlab Simulink]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1521&amp;p=13716#p13716"><![CDATA[
Hi Dimitris,<br /><br />Try this one<br /><br /><!-- m --><a class="postlink" href="http://robosavvy.com/Builders/rustyarmor/Application_r.rar">http://robosavvy.com/Builders/rustyarmo ... tion_r.rar</a><!-- m --><br /><br />Try also change the sample time to 0.02s<br /><br />Hope it helps<br /><br />Pedro<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=339">rustyarmor</a> — Tue Jan 22, 2008 4:39 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Dimitris]]></name></author>
<updated>2008-01-19T20:54:07+01:00</updated>
<published>2008-01-19T20:54:07+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1521&amp;p=13650#p13650</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1521&amp;p=13650#p13650"/>
<title type="html"><![CDATA[Bioloid and Matlab Simulink]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1521&amp;p=13650#p13650"><![CDATA[
yeah, same results. But the play button is not enabled immediately after the incremental build, as I first have to click 'connect to target'. I'm using 'external' simulation mode as in the tutorial.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=214">Dimitris</a> — Sat Jan 19, 2008 8:54 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[rustyarmor]]></name></author>
<updated>2008-01-19T20:13:04+01:00</updated>
<published>2008-01-19T20:13:04+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1521&amp;p=13649#p13649</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1521&amp;p=13649#p13649"/>
<title type="html"><![CDATA[Bioloid and Matlab Simulink]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1521&amp;p=13649#p13649"><![CDATA[
Hi Dimitris,<br /><br />Try with servo 18. (Change the mcu code)<br /><br />and try this:<br />1 disconect the com after changing the mcu code.<br />2 turn off cm5 and plug the servo 18. <br />3 in simulink press Incremental build button to build the model and wait until the play button becomes enable<br />4 turn on cm5 <br />5 press the play button<br /><br />The error maintains, no servo response??<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=339">rustyarmor</a> — Sat Jan 19, 2008 8:13 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Dimitris]]></name></author>
<updated>2008-01-19T19:35:40+01:00</updated>
<published>2008-01-19T19:35:40+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1521&amp;p=13647#p13647</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1521&amp;p=13647#p13647"/>
<title type="html"><![CDATA[Bioloid and Matlab Simulink]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1521&amp;p=13647#p13647"><![CDATA[
No movement at all! but led flashes when cm5 is turned on. Plus I just tested that the servo works fine with other programs. And its Id is definitely 01.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=214">Dimitris</a> — Sat Jan 19, 2008 7:35 pm</p><hr />
]]></content>
</entry>
</feed>