<?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: Event Structure in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Event-Structure/m-p/1693630#M600644</link>
    <description>&lt;P&gt;Anything is possible.&amp;nbsp; But a case structure has a completely different purpose than an event structure.&amp;nbsp; A case structure is to take one of two or more different actions based on a condition.&amp;nbsp; An event structure is designed to wait for something to happen than take an action.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We can't answer your question without know what it is you are really trying to do here.&lt;/P&gt;</description>
    <pubDate>Sat, 03 Sep 2011 03:28:22 GMT</pubDate>
    <dc:creator>RavensFan</dc:creator>
    <dc:date>2011-09-03T03:28:22Z</dc:date>
    <item>
      <title>Event Structure</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Event-Structure/m-p/1693626#M600642</link>
      <description>&lt;P&gt;I&amp;nbsp; have attached a simple code (test.vi) with a case structure. Is it possible replace the case structure with an event structure (testvi.vi)( using user event?)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If yes please let me know the solution . I am trying to modify an already existing code&amp;nbsp; with an event structure and am running into problems.&lt;/P&gt;
&lt;P&gt;Thanks in advance,&lt;/P&gt;
&lt;P&gt;-P&lt;/P&gt;</description>
      <pubDate>Sat, 03 Sep 2011 03:16:22 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Event-Structure/m-p/1693626#M600642</guid>
      <dc:creator>pnam</dc:creator>
      <dc:date>2011-09-03T03:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Event Structure</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Event-Structure/m-p/1693630#M600644</link>
      <description>&lt;P&gt;Anything is possible.&amp;nbsp; But a case structure has a completely different purpose than an event structure.&amp;nbsp; A case structure is to take one of two or more different actions based on a condition.&amp;nbsp; An event structure is designed to wait for something to happen than take an action.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We can't answer your question without know what it is you are really trying to do here.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Sep 2011 03:28:22 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Event-Structure/m-p/1693630#M600644</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2011-09-03T03:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Event Structure</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Event-Structure/m-p/1693802#M600679</link>
      <description>&lt;P&gt;It appears that you are simulating checking the level in a Tank and you want to perform an action when the level reaches a certain point.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assuming this is correct, it is usually best to do the data acquisition and level check in a loop that is separate from your Event Structure loop.&lt;/P&gt;
&lt;P&gt;This is called a Producer/Consumer design pattern.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the attached example "test1vi mod.vi".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For extremely simple situations or a quick test, the Timeout Event can be used&amp;nbsp;for what I call a "Poor man's Producer/Comsumer".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the attached example "test1vi mod 1.vi".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Sep 2011 20:06:10 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Event-Structure/m-p/1693802#M600679</guid>
      <dc:creator>stevem181</dc:creator>
      <dc:date>2011-09-03T20:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: Event Structure</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Event-Structure/m-p/1693840#M600684</link>
      <description>&lt;P&gt;The Answer is most definitely yes, you can use user events. In fact, it is my preferred method of communication between processes. You will need 2 while loops one will hold the event structure, the other will fire off a user event whenever a condition is met. Look up some examples of user events. There are many, many other ways to accomplish what you are trying to do (queues, local variables, etc.). It's all a matter of preference and need.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Sep 2011 21:17:25 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Event-Structure/m-p/1693840#M600684</guid>
      <dc:creator>Citabria</dc:creator>
      <dc:date>2011-09-03T21:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: Event Structure</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Event-Structure/m-p/1693842#M600685</link>
      <description>&lt;P&gt;The Answer is most definitely yes, you can use user events. In fact, it is my preferred method of communication between processes. You will need 2 while loops one will hold the event structure, the other will fire off a user event whenever a condition is met. Look up some examples of user events. There are many, many other ways to accomplish what you are trying to do (queues, local variables, etc.). It's all a matter of preference and need.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Sep 2011 21:17:25 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Event-Structure/m-p/1693842#M600685</guid>
      <dc:creator>Citabria</dc:creator>
      <dc:date>2011-09-03T21:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: Event Structure</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Event-Structure/m-p/1693858#M600689</link>
      <description>&lt;P&gt;I re-wrote your test1.vi using User Events. Take a look. Hope it helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Sep 2011 21:51:11 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Event-Structure/m-p/1693858#M600689</guid>
      <dc:creator>Citabria</dc:creator>
      <dc:date>2011-09-03T21:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: Event Structure</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Event-Structure/m-p/1694548#M600848</link>
      <description>&lt;P&gt;Thanks everyone for the response. Here is what I am actually trying to do.&lt;BR /&gt;I have a Labview code (attached) which 'sends out a trigger and saves data from 4 channels every time we hit F8 or a button on the front panel.&lt;BR /&gt;('Triggering' in the Event structure)&lt;/P&gt;
&lt;P&gt;I would now like to modify the code as follows:&lt;/P&gt;
&lt;P&gt;1)&amp;nbsp;Press F8 and the very first time one of the channel signal crosses (yet to determine which channel) a user defined threshold, I would like&lt;BR /&gt;&amp;nbsp; to 'sends out a trigger and saves data from 4 channels'&lt;/P&gt;
&lt;P&gt;2) I would like to make minimum modification to the structure of the code and use the event structure that already exists.&lt;/P&gt;
&lt;P&gt;I am working with somebody else's code and am not an expert in labiview. Any help will be highly appreciated&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2011 13:18:45 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Event-Structure/m-p/1694548#M600848</guid>
      <dc:creator>pnam</dc:creator>
      <dc:date>2011-09-05T13:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: Event Structure</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Event-Structure/m-p/1695530#M601054</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2011 15:09:02 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Event-Structure/m-p/1695530#M601054</guid>
      <dc:creator>pnam</dc:creator>
      <dc:date>2011-09-06T15:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Event Structure</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Event-Structure/m-p/1695534#M601056</link>
      <description>&lt;P&gt;Could you plesae convert it to 8.2 and send it to me please .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2011 15:09:39 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Event-Structure/m-p/1695534#M601056</guid>
      <dc:creator>pnam</dc:creator>
      <dc:date>2011-09-06T15:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: Event Structure</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Event-Structure/m-p/1695820#M601111</link>
      <description>&lt;P&gt;Here are my examples converted to 8.2.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2011 17:23:59 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Event-Structure/m-p/1695820#M601111</guid>
      <dc:creator>stevem181</dc:creator>
      <dc:date>2011-09-06T17:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Event Structure</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Event-Structure/m-p/1695938#M601143</link>
      <description>@stevem181
test1vimod.vi is perfect for my application. Thanks you.  I would like to make one more modification to the code.

I would like to have a button in the front panel. I want the indicator to light up (or the event to occur) only once after the button has been pressed.

ie Everytime I press the button, the first time the condition (comparison) is satisfied I want the event to occur (indicator to light up)

Can this modification be made without changing the structure of the program 
.
Thanks again for your help.</description>
      <pubDate>Tue, 06 Sep 2011 18:39:25 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Event-Structure/m-p/1695938#M601143</guid>
      <dc:creator>pnam</dc:creator>
      <dc:date>2011-09-06T18:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Event Structure</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Event-Structure/m-p/1695996#M601151</link>
      <description>&lt;P&gt;There are many ways this could be done. Here is one way.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2011 19:27:24 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Event-Structure/m-p/1695996#M601151</guid>
      <dc:creator>stevem181</dc:creator>
      <dc:date>2011-09-06T19:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: Event Structure</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Event-Structure/m-p/1696808#M601321</link>
      <description>&lt;P&gt;Perfect! Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2011 12:55:17 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Event-Structure/m-p/1696808#M601321</guid>
      <dc:creator>pnam</dc:creator>
      <dc:date>2011-09-07T12:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: Event Structure</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Event-Structure/m-p/1705234#M603050</link>
      <description>Hi ,

I am trying to integrate the new piece of code in the main program.

The main program is 'TMS Trigger and Save_modified.vi'

In this progam, currently, the trigger is being sent when We press 'F8' or the 'Trigger button'. I would like to replace this trigger with the output of the indicator 'Limit?'.

I tried doing this but ended up with an error message. I think this was mainly due to the fact that I'm trying to replace one type of input with another.

-Priya</description>
      <pubDate>Wed, 14 Sep 2011 16:58:19 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Event-Structure/m-p/1705234#M603050</guid>
      <dc:creator>pnam</dc:creator>
      <dc:date>2011-09-14T16:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: Event Structure</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Event-Structure/m-p/1708700#M603716</link>
      <description>&lt;P&gt;How do we take a variable outside the while loop. The indicator Limit? lights up, but Limit?2 does not.&lt;/P&gt;
&lt;P&gt;-P&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2011 18:48:00 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Event-Structure/m-p/1708700#M603716</guid>
      <dc:creator>pnam</dc:creator>
      <dc:date>2011-09-16T18:48:00Z</dc:date>
    </item>
  </channel>
</rss>

