<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>Record sensor data continuously to external file</title>
		<link>http://aseba.wikidot.com/forum/t-706858/record-sensor-data-continuously-to-external-file</link>
		<description>Posts in the discussion thread &quot;Record sensor data continuously to external file&quot; - How to continuously write sensor readings to an external file</description>
				<copyright></copyright>
		<lastBuildDate>Sun, 06 Sep 2026 06:35:54 +0000</lastBuildDate>
		
					<item>
				<guid>http://aseba.wikidot.com/forum/t-706858#post-2509240</guid>
				<title>Re: Record sensor data continuously to external file</title>
				<link>http://aseba.wikidot.com/forum/t-706858/record-sensor-data-continuously-to-external-file#post-2509240</link>
				<description></description>
				<pubDate>Sun, 15 May 2016 11:04:01 +0000</pubDate>
				<wikidot:authorName>Tolqiu</wikidot:authorName>				<wikidot:authorUserId>2693938</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>It's works perfectly. Thank you very much :)</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://aseba.wikidot.com/forum/t-706858#post-2491792</guid>
				<title>Re: Record sensor data continuously to external file</title>
				<link>http://aseba.wikidot.com/forum/t-706858/record-sensor-data-continuously-to-external-file#post-2491792</link>
				<description></description>
				<pubDate>Thu, 14 Apr 2016 19:24:59 +0000</pubDate>
				<wikidot:authorName>Michael Bonani</wikidot:authorName>				<wikidot:authorUserId>861355</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Perhaps an exemple of code has to be made:<br /> First a asebaswitch has to connect to a Thymio using this command line:</p> <div class="code"> <pre><code>./asebaswitch &quot;ser:name=Thymio&quot;</code></pre></div> <p>To make asebarec recording something it as to connect to that asebaswitch.</p> <div class="code"> <pre><code>./asebarec &quot;tcp:localhost;port=33333&quot; &gt; myfilelog.txt</code></pre></div> <p>Than Thymio has to sent messages, it can be whatever sensor you want. I make here the exemple for the horizontal proximity. Launch an asebastudio but dot not connect it to the Thymio but to asebaswitch using TCP, localhost and the 33333 port.<br /> Here is the code for Thymio:</p> <div class="code"> <pre><code>onevent prox emit sentprox prox.horizontal</code></pre></div> <p>You have also to add an global event at the right with the name <tt>sentprox</tt> and a size of 7 (the size of the data you sent) here it is the horizontal proximity sensor.</p> <p>On studio you should see the message passing, and the myfilelog.txt while have this lines into it:</p> <blockquote> <p>13105135052.877&#160;58057&#160;0&#160;7&#160;0&#160;1738&#160;4317&#160;2863&#160;0&#160;0&#160;0<br /> 13105135052.978&#160;58057&#160;0&#160;7&#160;0&#160;1736&#160;4320&#160;2861&#160;0&#160;0&#160;0<br /> 13105135053.079&#160;58057&#160;0&#160;7&#160;0&#160;1735&#160;4319&#160;2865&#160;0&#160;0&#160;0<br /> 13105135053.180&#160;58057&#160;0&#160;7&#160;0&#160;1733&#160;4321&#160;2863&#160;0&#160;0&#160;0<br /> 13105135053.291&#160;58057&#160;0&#160;7&#160;0&#160;1737&#160;4317&#160;2864&#160;0&#160;0&#160;0<br /> 13105135053.392&#160;58057&#160;0&#160;7&#160;0&#160;1736&#160;4318&#160;2862&#160;0&#160;0&#160;0<br /> 13105135053.492&#160;58057&#160;0&#160;7&#160;0&#160;1735&#160;4318&#160;2866&#160;0&#160;0&#160;0<br /> 13105135053.593&#160;58057&#160;0&#160;7&#160;0&#160;1738&#160;4322&#160;2864&#160;0&#160;0&#160;0<br /> 13105135053.694&#160;58057&#160;0&#160;7&#160;0&#160;1737&#160;4320&#160;2866&#160;0&#160;0&#160;0<br /> 13105135053.795&#160;58057&#160;0&#160;7&#160;0&#160;1734&#160;4316&#160;2861&#160;0&#160;0&#160;0<br /> 13105135053.906&#160;58057&#160;0&#160;7&#160;0&#160;1735&#160;4317&#160;2862&#160;0&#160;0&#160;0<br /> 13105135054.006&#160;58057&#160;0&#160;7&#160;0&#160;1728&#160;4318&#160;2863&#160;0&#160;0&#160;0<br /> 13105135054.107&#160;58057&#160;0&#160;7&#160;0&#160;1737&#160;4323&#160;2863&#160;0&#160;0&#160;0<br /> 13105135054.208&#160;58057&#160;0&#160;7&#160;0&#160;1735&#160;4322&#160;2863&#160;0&#160;0&#160;0<br /> 13105135054.309&#160;58057&#160;0&#160;7&#160;0&#160;1739&#160;4328&#160;2864&#160;0&#160;0&#160;0<br /> 13105135054.410&#160;58057&#160;0&#160;7&#160;0&#160;1729&#160;4319&#160;2860&#160;0&#160;0&#160;0<br /> 13105135054.521&#160;58057&#160;0&#160;7&#160;0&#160;1736&#160;4321&#160;2865&#160;0&#160;0&#160;0<br /> 13105135054.621&#160;58057&#160;0&#160;7&#160;0&#160;1740&#160;4318&#160;2864&#160;0&#160;0&#160;0<br /> 13105135054.722&#160;58057&#160;0&#160;7&#160;0&#160;1739&#160;4319&#160;2863&#160;0&#160;0&#160;0<br /> 13105135054.823&#160;58057&#160;0&#160;7&#160;0&#160;1731&#160;4320&#160;2861&#160;0&#160;0&#160;0<br /> 13105135054.924&#160;58057&#160;0&#160;7&#160;0&#160;1736&#160;4315&#160;2864&#160;0&#160;0&#160;0<br /> 13105135055.025&#160;58057&#160;0&#160;7&#160;0&#160;1732&#160;4321&#160;2862&#160;0&#160;0&#160;0<br /> 13105135055.126&#160;58057&#160;0&#160;7&#160;0&#160;1737&#160;4318&#160;2865&#160;0&#160;0&#160;0<br /> 13105135055.236&#160;58057&#160;0&#160;7&#160;0&#160;1735&#160;4322&#160;2864&#160;0&#160;0&#160;0<br /> 13105135055.337&#160;58057&#160;0&#160;7&#160;0&#160;1735&#160;4318&#160;2865&#160;0&#160;0&#160;0</p> </blockquote> <p>The first is a timestamp, the second the ID of the Thymio (1 if not wireless) and then you have the the event number, then the size of it, then the 7 proximity datas.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://aseba.wikidot.com/forum/t-706858#post-2491468</guid>
				<title>Re: Record sensor data continuously to external file</title>
				<link>http://aseba.wikidot.com/forum/t-706858/record-sensor-data-continuously-to-external-file#post-2491468</link>
				<description></description>
				<pubDate>Thu, 14 Apr 2016 06:21:17 +0000</pubDate>
				<wikidot:authorName>Tolqiu</wikidot:authorName>				<wikidot:authorUserId>2693938</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>In both way I couldn't get the sensor data to a file. Could you describe it step by step please.<br /> Regards.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://aseba.wikidot.com/forum/t-706858#post-1870546</guid>
				<title>Re: Record sensor data continuously to external file</title>
				<link>http://aseba.wikidot.com/forum/t-706858/record-sensor-data-continuously-to-external-file#post-1870546</link>
				<description></description>
				<pubDate>Mon, 14 Oct 2013 09:51:40 +0000</pubDate>
				<wikidot:authorName>StephaneMagnenat</wikidot:authorName>				<wikidot:authorUserId>709253</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>As an alternative solution to using <tt>asebarec</tt> and <tt>asebaswitch</tt>, in Studio you can open a plot tab for your event containing your sensors' data, and then save the plotted data to a file.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://aseba.wikidot.com/forum/t-706858#post-1870513</guid>
				<title>Re: Record sensor data continuously to external file</title>
				<link>http://aseba.wikidot.com/forum/t-706858/record-sensor-data-continuously-to-external-file#post-1870513</link>
				<description></description>
				<pubDate>Mon, 14 Oct 2013 07:56:41 +0000</pubDate>
				<wikidot:authorName>retp2401</wikidot:authorName>				<wikidot:authorUserId>890170</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>You can do it by using asebaswitch to connect to the robot, and then connect asebarec as well as asebastudio to asebaswitch.</p> <p>Then, inside studio program the robot to emit an event with the sensors's datas every time you want to record them.<br /> Asebarec will records all the events in a file, thus your sensor readings will be recorded.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://aseba.wikidot.com/forum/t-706858#post-1867474</guid>
				<title>Record sensor data continuously to external file</title>
				<link>http://aseba.wikidot.com/forum/t-706858/record-sensor-data-continuously-to-external-file#post-1867474</link>
				<description></description>
				<pubDate>Wed, 09 Oct 2013 21:11:03 +0000</pubDate>
				<wikidot:authorName>fairread</wikidot:authorName>				<wikidot:authorUserId>1741674</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hi, may I know how to continuously write sensor readings eg proximity sensor to an external file eg txt or csv file? Thanks</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>