<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Process Duration Timer Part (4) The Brain and Proof of Concept</title><link>/members-area/personalblogs/b/john-wiltrout-s-blog/posts/process-duration-timer-part-4-the-brain-and-proof-of-concept</link><description>The purpose of the Process Duration Timer (PDT) is to provide a means to set up an experiment and time a process, whether it is the discharging of a battery, the discharging of a capacitor or some other process that one does not want to sit around an</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Process Duration Timer Part (4) The Brain and Proof of Concept</title><link>https://community.element14.com/members-area/personalblogs/b/john-wiltrout-s-blog/posts/process-duration-timer-part-4-the-brain-and-proof-of-concept</link><pubDate>Sun, 06 Aug 2017 11:55:34 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:01b91d67-c76b-4540-893b-8ce9bab79ed6</guid><dc:creator>shabaz</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Hi John,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Nice looking code!!&lt;/p&gt;&lt;p&gt;The loop with no logical ending is very cool too : ) That&amp;#39;s actually a fun thing to see, how different people implement such things. The one I use a lot is &amp;quot;while (forever)&amp;quot; where forever is defined to be 1. Looks like there is a whole wikipedia page on the various ways to do it: &lt;a class="jive-link-external-small" href="https://en.wikipedia.org/wiki/Infinite_loop" rel="nofollow ugc noopener" target="_blank" title="https://en.wikipedia.org/wiki/Infinite_loop"&gt;https://en.wikipedia.org/wiki/Infinite_loop&lt;/a&gt; &lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=3403&amp;AppID=315&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Process Duration Timer Part (4) The Brain and Proof of Concept</title><link>https://community.element14.com/members-area/personalblogs/b/john-wiltrout-s-blog/posts/process-duration-timer-part-4-the-brain-and-proof-of-concept</link><pubDate>Sun, 06 Aug 2017 05:33:16 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:01b91d67-c76b-4540-893b-8ce9bab79ed6</guid><dc:creator>mcb1</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;It looks like it is getting there.&lt;span&gt;[View:/resized-image/__size/16x16/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-01b91d67-c76b-4540-893b-8ce9bab79ed6/contentimage_5F00_930.png:16:16]&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The only comment I would make in your sketch is to shift the delay(2000) on line 50 to between 59 and 60.&lt;/p&gt;&lt;p&gt;The reasoning is that you serial print the result then wait 2 secs before entering the never ending loop.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I presume you want to record the result as soon as you detect it, rather than adding 2 secs.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Cheers&lt;/p&gt;&lt;p&gt;Mark&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=3403&amp;AppID=315&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>