<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Count example]]></title><description><![CDATA[<p dir="auto">We're looking for an example showing how to count the number of times a task has iterated.  We know this is possible using the REXLANG block, but it seems it should also be possible (and simpler) using the <a href="https://www.rexygen.com/doc/ENGLISH/MANUALS/BRef/COUNT.html#x161-1600008">COUNT block</a>.  (We also want to use the nmax/Q option on the block.)  I guess we need access to a rising edge that is triggered at the start of each block.</p>
<p dir="auto">Or perhaps there is a predefined internal variable with the task count?  That would also be convenient.</p>
<p dir="auto">General comment:  It would be nice to include at least one basic example for each entry in the Reference Manual (e.g., after the current text).  It would also be nice to have your library of examples be accessible from the web.<br />
(Or are they?  I can't find them.)</p>
]]></description><link>https://forum.rexygen.com/topic/598/count-example</link><generator>RSS for Node</generator><lastBuildDate>Thu, 10 Sep 2026 10:44:20 GMT</lastBuildDate><atom:link href="https://forum.rexygen.com/topic/598.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 26 Feb 2025 18:25:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Count example on Fri, 28 Feb 2025 02:00:47 GMT]]></title><description><![CDATA[<p dir="auto">Hi Tomas,</p>
<p dir="auto">Thank you for your quick and precise response -- this is precisely what I was looking for.</p>
]]></description><link>https://forum.rexygen.com/post/1668</link><guid isPermaLink="true">https://forum.rexygen.com/post/1668</guid><dc:creator><![CDATA[bech]]></dc:creator><pubDate>Fri, 28 Feb 2025 02:00:47 GMT</pubDate></item><item><title><![CDATA[Reply to Count example on Thu, 27 Feb 2025 13:58:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/3934">@bech</a> Hi John,</p>
<p dir="auto">There is the exec counter feature built into the REXYGEN diagnostics. And it is accessible via <a href="https://www.rexygen.com/doc/ENGLISH/MANUALS/BRef/BRef_ENGap4.html#x480-479000D">special signals</a>. The example you are looking for is "0001 Special Signals", and the parameter is <em>excnt</em>.</p>
<p dir="auto">Thanks for your comment. We are working on better interconnection between the Function block documentation and the Example library. For now, you can use search input within the Examples library to help you find the right example.</p>
<p dir="auto">Let me know if it helped.</p>
<p dir="auto">Kind Regards,<br />
Tomas</p>
]]></description><link>https://forum.rexygen.com/post/1667</link><guid isPermaLink="true">https://forum.rexygen.com/post/1667</guid><dc:creator><![CDATA[cechurat]]></dc:creator><pubDate>Thu, 27 Feb 2025 13:58:35 GMT</pubDate></item></channel></rss>