<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic dynamic event multiple loops in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/dynamic-event-multiple-loops/m-p/637853#M294792</link>
    <description>&lt;DIV&gt;I'm trying to see if I can use one Dynamic User Event to control multiple Event Structures. It seems that sometimes once a dynamic event occurs and its "interrupt" is answered by an event case, other VIs only have a short amount of time (&amp;lt;50ms) to reach their event case state for accepting this event&amp;nbsp;otherwise the event seems to be cleared and the other VIs are oblivious that the event even occured. &lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;My Question: Is it possible to use one dynamic event to control multiple Event&amp;nbsp;Structures&amp;nbsp;reliably?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;A previous post somewhat speaks of this issue but does not provide a solution or anything insightful.&lt;/DIV&gt;
&lt;DIV&gt;&lt;A href="http://forums.ni.com/ni/board/message?board.id=170&amp;amp;message.id=223495&amp;amp;query.id=135563#M223495" target="_blank"&gt;http://forums.ni.com/ni/board/message?board.id=170&amp;amp;message.id=223495&amp;amp;query.id=135563#M223495&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I've included an example of my issue&lt;/DIV&gt;</description>
    <pubDate>Mon, 14 Jan 2008 22:59:20 GMT</pubDate>
    <dc:creator>craige</dc:creator>
    <dc:date>2008-01-14T22:59:20Z</dc:date>
    <item>
      <title>dynamic event multiple loops</title>
      <link>https://ni.lithium.com/t5/LabVIEW/dynamic-event-multiple-loops/m-p/637853#M294792</link>
      <description>&lt;DIV&gt;I'm trying to see if I can use one Dynamic User Event to control multiple Event Structures. It seems that sometimes once a dynamic event occurs and its "interrupt" is answered by an event case, other VIs only have a short amount of time (&amp;lt;50ms) to reach their event case state for accepting this event&amp;nbsp;otherwise the event seems to be cleared and the other VIs are oblivious that the event even occured. &lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;My Question: Is it possible to use one dynamic event to control multiple Event&amp;nbsp;Structures&amp;nbsp;reliably?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;A previous post somewhat speaks of this issue but does not provide a solution or anything insightful.&lt;/DIV&gt;
&lt;DIV&gt;&lt;A href="http://forums.ni.com/ni/board/message?board.id=170&amp;amp;message.id=223495&amp;amp;query.id=135563#M223495" target="_blank"&gt;http://forums.ni.com/ni/board/message?board.id=170&amp;amp;message.id=223495&amp;amp;query.id=135563#M223495&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I've included an example of my issue&lt;/DIV&gt;</description>
      <pubDate>Mon, 14 Jan 2008 22:59:20 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/dynamic-event-multiple-loops/m-p/637853#M294792</guid>
      <dc:creator>craige</dc:creator>
      <dc:date>2008-01-14T22:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic event multiple loops</title>
      <link>https://ni.lithium.com/t5/LabVIEW/dynamic-event-multiple-loops/m-p/637863#M294796</link>
      <description>&lt;P data-unlink="true"&gt;This help page&amp;nbsp;explains some of the restrictions for using dynamic events. The main one to note is below:&lt;BR /&gt;&lt;BR /&gt;"&lt;SPAN class="noindex"&gt;Avoid branching an event registration refnum wire because that allows multiple Event structures to pull events from one queue and introduces a race condition that can cause unpredictable behavior."&lt;BR /&gt;&lt;BR /&gt;One event based mechanism that allows you to broadcast events to multiple locations is a &lt;A href="https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/menus/categories/programming/synchronization/notifierprim-mnu.html" target="_blank" rel="noopener"&gt;Notifier&lt;/A&gt;. Notifiers can send arbitrary data with their notifications. They operate much like queues, except there is no buffering involved. You send one notification at a time, and that overwrites any previous notifications. But multiple Wait on Notifications can receive the same notification event data. These don't work with Event Structures. You might need a separate listen loop to listen for incoming notifications if you implemented them.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 05 May 2025 19:10:18 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/dynamic-event-multiple-loops/m-p/637863#M294796</guid>
      <dc:creator>Jarrod_S.</dc:creator>
      <dc:date>2025-05-05T19:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic event multiple loops</title>
      <link>https://ni.lithium.com/t5/LabVIEW/dynamic-event-multiple-loops/m-p/637979#M294827</link>
      <description>A further explanation is found &lt;A href="http://forums.ni.com/ni/board/message?board.id=170&amp;amp;view=by_date_ascending&amp;amp;message.id=247057#M247057" target="_blank"&gt;here&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Basically if you want a dynamic event in multiple event cases you should register multiple times for it (with differen Dynamic Event Registration nodes)&lt;BR /&gt;&lt;BR /&gt;Ton&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 15 Jan 2008 07:34:42 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/dynamic-event-multiple-loops/m-p/637979#M294827</guid>
      <dc:creator>TCPlomp</dc:creator>
      <dc:date>2008-01-15T07:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic event multiple loops</title>
      <link>https://ni.lithium.com/t5/LabVIEW/dynamic-event-multiple-loops/m-p/638262#M294927</link>
      <description>&lt;DIV&gt;Thanks to both of you.&amp;nbsp;I found the answer to my question in the second posted link. "the common, correct use case is to have one Event structure per dynamic event registration". I tested this out with the previous attachment by registering the User Event refnum&amp;nbsp;from the ESTOP functional global to another Event Registration&amp;nbsp;node.&amp;nbsp;I then&amp;nbsp;ran this refnum to the top&amp;nbsp;loop. (instread of the top loop&amp;nbsp;sharing the registration refnum with&amp;nbsp;the middle loop). Now I can&amp;nbsp;put a delay of 2000+ ms and not even&amp;nbsp;miss an event. cooool.&amp;nbsp;This will probably&amp;nbsp;NOT be my final solution but its good to know in the future.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Most likely I am going to design each of my main VIs to have a&amp;nbsp;main while loop with a User Event Structure listening for dynamic events. Associated with each of these VIs will be a functional global which contains its User Event Refnum and Registration Refnum. This functional global will act as a gateway into the associated VI for other VIs/Subvis to use.&amp;nbsp;This will&amp;nbsp;follow the "one Event structure per dynamic event registration" rule while keeping my API organized and allowing room for scalability by simply adding more functional globals in the future.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Just putting this info out there for other users. &lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks again,&lt;/DIV&gt;
&lt;DIV&gt;Craig&lt;/DIV&gt;</description>
      <pubDate>Tue, 15 Jan 2008 15:03:24 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/dynamic-event-multiple-loops/m-p/638262#M294927</guid>
      <dc:creator>craige</dc:creator>
      <dc:date>2008-01-15T15:03:24Z</dc:date>
    </item>
  </channel>
</rss>

