<?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 Re: Switching between Event Loops in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Switching-between-Event-Loops/m-p/437132#M213976</link>
    <description>&lt;FONT size="2"&gt;You can register for events dynamically. This way it is possible to create conditions for events and to use event structures in subVI, but I would advice you to avoid this kind of solution. If two subVIs use event structures, your application can stuck.&lt;BR /&gt;&lt;BR /&gt;I used the attached VI sometime ago. It worked, but at the end I preferred to transfer the event structure to the main VI and use subVIs to make the job of each event.&lt;BR /&gt;&lt;BR /&gt;Search the LV User Guide for Event Strucutures. It will be helpful.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;/FONT&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 06 Nov 2006 16:50:26 GMT</pubDate>
    <dc:creator>Rasputin</dc:creator>
    <dc:date>2006-11-06T16:50:26Z</dc:date>
    <item>
      <title>Switching between Event Loops</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Switching-between-Event-Loops/m-p/431933#M212000</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;From what I have seen Events must be used inside of a loop (usually a while).&amp;nbsp; I have a tab control and I am trying to switch between event structures as I go from tab to tab.&amp;nbsp; I was trying to find a way to do this, but it seems that I get stuck trying in the Event structure.&amp;nbsp; I tried to add the tab switching as an event to trigger on and exit the while loop but this causes me to only one other tab after starting and then nothing else.&lt;BR /&gt;&lt;BR /&gt;All suggestion are appreciated...&lt;BR /&gt;&lt;BR /&gt;Thank you for your support.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 24 Oct 2006 21:54:51 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Switching-between-Event-Loops/m-p/431933#M212000</guid>
      <dc:creator>Swim</dc:creator>
      <dc:date>2006-10-24T21:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Switching between Event Loops</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Switching-between-Event-Loops/m-p/431999#M212036</link>
      <description>In each event case, wire a constant to the tab control corresponding to the event.&amp;nbsp; Use local variables or property nodes as necessary to expand to other events.&amp;nbsp; I don't have access to LV right now. I can post an example when I get access to LV. &lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;km&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 25 Oct 2006 02:05:21 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Switching-between-Event-Loops/m-p/431999#M212036</guid>
      <dc:creator>km76107</dc:creator>
      <dc:date>2006-10-25T02:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Switching between Event Loops</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Switching-between-Event-Loops/m-p/432002#M212038</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;Using two different event structures is &lt;STRONG&gt;not&lt;/STRONG&gt; the usual or recomended way. You should read the on-line help for recomendations and caveats about the event structure. An event structure is always capturing events whether it is inside a case statement or not and can lead to lockups when you have two. You&amp;nbsp;should have a single event structure with a value change event for the tab control and take actions based on which tab is active.</description>
      <pubDate>Wed, 25 Oct 2006 02:22:20 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Switching-between-Event-Loops/m-p/432002#M212038</guid>
      <dc:creator>Dennis_Knutson</dc:creator>
      <dc:date>2006-10-25T02:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Switching between Event Loops</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Switching-between-Event-Loops/m-p/437094#M213964</link>
      <description>Thank you very much,&lt;BR /&gt;&lt;BR /&gt;I think I understand.&amp;nbsp; From your explaination, events are global should only exist in parallel with any other code that might be running.&amp;nbsp; I was curious : &lt;BR /&gt;1.) Is there a way to subscribe and unsubscribe any given event, maybe due to some condition?&lt;BR /&gt;2.) Can events be used in sub VIs or are they to be limited to only top level VI?&lt;BR /&gt;&lt;BR /&gt;Thank you very much&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 Nov 2006 16:10:44 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Switching-between-Event-Loops/m-p/437094#M213964</guid>
      <dc:creator>Swim</dc:creator>
      <dc:date>2006-11-06T16:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Switching between Event Loops</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Switching-between-Event-Loops/m-p/437101#M213967</link>
      <description>Hi swim,&lt;BR /&gt;&lt;BR /&gt;each vi can have it's own event structure, so you can use events in subVis too.&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 Nov 2006 16:26:48 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Switching-between-Event-Loops/m-p/437101#M213967</guid>
      <dc:creator>GerdW</dc:creator>
      <dc:date>2006-11-06T16:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Switching between Event Loops</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Switching-between-Event-Loops/m-p/437132#M213976</link>
      <description>&lt;FONT size="2"&gt;You can register for events dynamically. This way it is possible to create conditions for events and to use event structures in subVI, but I would advice you to avoid this kind of solution. If two subVIs use event structures, your application can stuck.&lt;BR /&gt;&lt;BR /&gt;I used the attached VI sometime ago. It worked, but at the end I preferred to transfer the event structure to the main VI and use subVIs to make the job of each event.&lt;BR /&gt;&lt;BR /&gt;Search the LV User Guide for Event Strucutures. It will be helpful.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;/FONT&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 Nov 2006 16:50:26 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Switching-between-Event-Loops/m-p/437132#M213976</guid>
      <dc:creator>Rasputin</dc:creator>
      <dc:date>2006-11-06T16:50:26Z</dc:date>
    </item>
  </channel>
</rss>

