<?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>Writing variable data to a file</title>
		<link>http://wiki.thymio.org/forum/t-616432/writing-variable-data-to-a-file</link>
		<description>Posts in the discussion thread &quot;Writing variable data to a file&quot; - The possibility of writing variable values to a text file.</description>
				<copyright></copyright>
		<lastBuildDate>Tue, 15 Sep 2026 08:31:20 +0000</lastBuildDate>
		
					<item>
				<guid>http://wiki.thymio.org/forum/t-616432#post-2811025</guid>
				<title>Re: Writing variable data to a file</title>
				<link>http://wiki.thymio.org/forum/t-616432/writing-variable-data-to-a-file#post-2811025</link>
				<description></description>
				<pubDate>Thu, 04 May 2017 20:14:07 +0000</pubDate>
				<wikidot:authorName>riedo</wikidot:authorName>				<wikidot:authorUserId>875981</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>you could use a SD card to store the data you record when the robot is untethered, or now that the wireless Thymio was released, you could connect through a wireless dongle.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wiki.thymio.org/forum/t-616432#post-1710300</guid>
				<title>Re: Writing variable data to a file</title>
				<link>http://wiki.thymio.org/forum/t-616432/writing-variable-data-to-a-file#post-1710300</link>
				<description></description>
				<pubDate>Thu, 14 Feb 2013 09:51:10 +0000</pubDate>
				<wikidot:authorName>UrosB</wikidot:authorName>				<wikidot:authorUserId>1554854</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I followed the pendulum example and made an array where history of readings is written (see the code attached). These readings can later be downloaded from the Thymio using &quot;File\Export memory content&quot; command. Thus it would in principle be possible to gather some data with the Thymio unplugged as quilos suggested. But when data is downloaded after Thymio has been plugged again, the array is empty. It seems like it's not possible to run the script on untethered robot and then collect it afterwards.</p> <p>It would be quite nice though if it would be possible to export also the history of custom event with emit function (like it is already possible to export plot data - when Thymio is connected). Is that already possible and I'm just missing something?</p> <p>var history[NN]<br /> var ix = 0</p> <p>timer.period[0]=10</p> <p>for ix in 1:NN do<br /> history[ix-1]=0<br /> end</p> <p>ix = 0</p> <p>onevent timer0<br /> history[ix] = prox.ground.ambiant[0]<br /> ix = (ix + 1) % NN<br /> emit vals prox.ground.ambiant[0]</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wiki.thymio.org/forum/t-616432#post-1691625</guid>
				<title>Re: Writing variable data to a file</title>
				<link>http://wiki.thymio.org/forum/t-616432/writing-variable-data-to-a-file#post-1691625</link>
				<description></description>
				<pubDate>Mon, 21 Jan 2013 22:29:17 +0000</pubDate>
				<wikidot:authorName>quilros</wikidot:authorName>				<wikidot:authorUserId>1535147</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Thank you so much. I can't believe I missed that.<br /> Cheers.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wiki.thymio.org/forum/t-616432#post-1691217</guid>
				<title>Re: Writing variable data to a file</title>
				<link>http://wiki.thymio.org/forum/t-616432/writing-variable-data-to-a-file#post-1691217</link>
				<description></description>
				<pubDate>Mon, 21 Jan 2013 09:18:39 +0000</pubDate>
				<wikidot:authorName>StephaneMagnenat</wikidot:authorName>				<wikidot:authorUserId>709253</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Yes, using the &quot;File -&gt; Export memory content&quot; menu.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wiki.thymio.org/forum/t-616432#post-1688695</guid>
				<title>Writing variable data to a file</title>
				<link>http://wiki.thymio.org/forum/t-616432/writing-variable-data-to-a-file#post-1688695</link>
				<description></description>
				<pubDate>Fri, 18 Jan 2013 03:39:26 +0000</pubDate>
				<wikidot:authorName>quilros</wikidot:authorName>				<wikidot:authorUserId>1535147</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hello,</p> <p>I was wondering if it is possible to write variable data to a file. I have an array which holds values and wish for those values to be written into a text file of some sort.<br /> Is it possible to do this, whether it be the Thymio II writing to an SD card or Aseba writing to the computer?<br /> I know of the emit function, however I would like to be able to gather the data while the Thymio II is not plugged into the computer, and then retrieve the data in an easy format.</p> <p>Any help would be appreciated.</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>