<?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: Notifier - for loop in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Notifier-for-loop/m-p/3183387#M921237</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/91728"&gt;@aputman&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Put the laser cutting process (as a separate VI) in the same for loop as your laser move process. &amp;nbsp;Each iteration will take a new set of coords, move the laser to the proper position, and begin cutting. &amp;nbsp;When that iteration finishes, the next set of coords is taken and the same operations happen, rinse and repeat untill all of the rows in the array are used. &amp;nbsp;Here is how I might do it. &amp;nbsp;(Note: I added some additional variables in the cluster on the left to show you how you can use this architecture for easily passing data or parameters thru your program. &amp;nbsp;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hi again,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;can you explain a little about how this process works? because I see the two sending notifiers (one for the initialize and one for start cases), and which of the "start" correspond the state in the event case structure?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks promising but I need to really understand it.....thanks....&lt;/P&gt;</description>
    <pubDate>Wed, 26 Aug 2015 12:44:47 GMT</pubDate>
    <dc:creator>Stavrosyt</dc:creator>
    <dc:date>2015-08-26T12:44:47Z</dc:date>
    <item>
      <title>Notifier - for loop</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Notifier-for-loop/m-p/3176053#M918061</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am making a parallel program so I need to use a notifier to tell one of this processes that one has an event.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To make it easier I build a more simple program.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a FOR&amp;nbsp;loop that iterates for 1000 times. I need that each iteration is executed once a Ready (OK) button is pressed, and if it's not needs to wait until is pressed. Also, I need to have a STOP button that if pressed at anytime, stop the program.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I built a notifier WHILE structure to make the waiting until is Ready button is pressed, and an EVENT structure to poll the READY and STOP buttons.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;can you tell me what I am doing wrong?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2015 08:49:17 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Notifier-for-loop/m-p/3176053#M918061</guid>
      <dc:creator>Stavrosyt</dc:creator>
      <dc:date>2015-08-10T08:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Notifier - for loop</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Notifier-for-loop/m-p/3176062#M918066</link>
      <description>&lt;P&gt;Hi Stavros,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;FONT color="#FF0000"&gt;can you tell me what I am doing wrong?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;A lot is wrong in your image:&lt;/P&gt;
&lt;P&gt;- You constantly request for a notifier and delete it in your inner loop.&lt;/P&gt;
&lt;P&gt;- You have a wait function in your FOR loop, when you want to wait for a notifier…&lt;/P&gt;
&lt;P&gt;- You have a long running FOR loop in your event case, which is a no-go!&lt;/P&gt;
&lt;P&gt;- Why not just read the notifier with a timeout? No need to use a while loop at all!&lt;/P&gt;
&lt;P&gt;- You haven't used the automatic block diagram cleanup function…&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2015 09:10:02 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Notifier-for-loop/m-p/3176062#M918066</guid>
      <dc:creator>GerdW</dc:creator>
      <dc:date>2015-08-10T09:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Notifier - for loop</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Notifier-for-loop/m-p/3176067#M918068</link>
      <description>&lt;P&gt;Hi Gerd,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for answering.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;here some clarifications:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;A lot is wrong in your image:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;- You constantly request for a notifier and delete it in your inner loop.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;I delete the notifier constantly because I need to use it only once, maybe I am missunderstanding how it is used.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;- You have a wait function in your FOR loop, when you want to wait for a notifier…&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;The wait function was only to allow me to see the changing numbers.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;- You have a long running FOR loop in your event case, which is a no-go!&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Why you mean by no-go? I only added the "conditional terminal" in case I wanted to stop it.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;- Why not just read the notifiers with a timeout? No need to use a while loop at all!&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;timeout? do you mean a stop timed structure? I used a while because I wanted to be waiting and don't run another FOR iteration until the Ready button is pressed again.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;- You haven't used the automatic block diagram cleanup function…&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;yes, You are right in this. I just wanted to be focus on the functionality first.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;can you give me some tips how can I improve this or make it simpler? maybe changing or replacing some structures......&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2015 09:27:57 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Notifier-for-loop/m-p/3176067#M918068</guid>
      <dc:creator>Stavrosyt</dc:creator>
      <dc:date>2015-08-10T09:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: Notifier - for loop</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Notifier-for-loop/m-p/3176068#M918069</link>
      <description>&lt;P&gt;Hi Stavros,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;FONT color="#FF0000"&gt;timeout? do you mean a stop timed structure?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;No, no additional structure.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Just the timeout input of the ReadNotifier function! (Read the help for this function!)&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2015 09:32:01 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Notifier-for-loop/m-p/3176068#M918069</guid>
      <dc:creator>GerdW</dc:creator>
      <dc:date>2015-08-10T09:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Notifier - for loop</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Notifier-for-loop/m-p/3176091#M918084</link>
      <description>&lt;P&gt;OK, so you meant about the timeout variable in "Wait on notification", but by default is -1. I can't use a certain time, because I need to wait undefinetily until notification is received.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;why my stop button is not working?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2015 10:26:18 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Notifier-for-loop/m-p/3176091#M918084</guid>
      <dc:creator>Stavrosyt</dc:creator>
      <dc:date>2015-08-10T10:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Notifier - for loop</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Notifier-for-loop/m-p/3176094#M918085</link>
      <description>&lt;P&gt;Hi Stavros,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;FONT color="#FF0000"&gt;why my stop button is not working?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Because you wait for ever on a notification…&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2015 10:53:32 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Notifier-for-loop/m-p/3176094#M918085</guid>
      <dc:creator>GerdW</dc:creator>
      <dc:date>2015-08-10T10:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Notifier - for loop</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Notifier-for-loop/m-p/3176099#M918088</link>
      <description>&lt;P&gt;Hi Stavros,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;waiting indefinitely without the possibility to shut down is rarely a good idea. However I think that you're thinking a bit complicated for this: If you just want to wait for the button to be pushed, a&amp;nbsp;simple&amp;nbsp;event structure within the for loop would be your best bet. That event could also handle the stop case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Antoher Question I'm wondering about is this: you want a program that has the user clock 1000 times befor it's finished? Why? How would you feel if Microsoft gave you a program like that?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2015 11:07:19 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Notifier-for-loop/m-p/3176099#M918088</guid>
      <dc:creator>PeterFoerster</dc:creator>
      <dc:date>2015-08-10T11:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: Notifier - for loop</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Notifier-for-loop/m-p/3176101#M918090</link>
      <description>&lt;P&gt;Hello Peter,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As I told before, this is a simplifier case of a bigger program.&lt;/P&gt;
&lt;P&gt;In my real program I do not count until 1000, but I have an array file which is read by the for loop, line by line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to get those parameters, to execute another loop process, for that reason I need the events. Which in this case, are simplified by buttons, but actually are triggered signals.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are rigth that I am complicating me a lot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The case you mentioned it's fair enough, but before this process I am running another task, which I wanted to be holded until a Begin button is pressed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So to sum up I should required a begin button, stop button, and "variable?"(trigger signal) as events to manipulate this for loop.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Managing this trigger signals, I thought using Notifiers was the best option, maybe the buttons can be used in a single event structure?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2015 11:23:59 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Notifier-for-loop/m-p/3176101#M918090</guid>
      <dc:creator>Stavrosyt</dc:creator>
      <dc:date>2015-08-10T11:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Notifier - for loop</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Notifier-for-loop/m-p/3176102#M918091</link>
      <description>&lt;P&gt;Maybe it's clearer to see it in an image.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This file is wrong also, but helped me to figure it out a better idea.......&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The FOR loop goes until the end of the inserted file.(EOF)&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2015 11:29:48 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Notifier-for-loop/m-p/3176102#M918091</guid>
      <dc:creator>Stavrosyt</dc:creator>
      <dc:date>2015-08-10T11:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Notifier - for loop</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Notifier-for-loop/m-p/3176106#M918092</link>
      <description>&lt;P&gt;Hi Stavros,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;FONT color="#FF0000"&gt;Maybe it's clearer to see it in an image.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;A VI would be so much better…&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But still:&lt;/P&gt;
&lt;P&gt;It seems your event structure is called before the loop. You try to react on events in your loop, but the event structure can only process the events once the loop has finished (THINK DATAFLOW!). A classical deadlock loop!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Put your UI event processing in a parallel running loop.&lt;/P&gt;
&lt;P&gt;- Use shift registers for references.&lt;/P&gt;
&lt;P&gt;- As told you before: IndexArray can be resized! It does not need constant inputs if used correctly!&lt;/P&gt;
&lt;P&gt;- Use the cleanup tool!&lt;/P&gt;
&lt;P&gt;- Get the notifier reference once before the loop, close it once after the loop!&lt;/P&gt;
&lt;P&gt;- Don't use a while loop in a FOR loop in this application, it's not needed here!&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2015 11:36:53 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Notifier-for-loop/m-p/3176106#M918092</guid>
      <dc:creator>GerdW</dc:creator>
      <dc:date>2015-08-10T11:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Notifier - for loop</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Notifier-for-loop/m-p/3176113#M918096</link>
      <description>&lt;P&gt;Hi Gerd,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are right, I didn't notice the deadlock loop. But I need to stop the FOR loop in each iteration, so how can I do that? inserting a event structure inside the for can be used but it will not retain the FOR iteration.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried to use shift registers but the values where not transfer properly outside the loop.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;- Get the notifier reference once before the loop, close it once after the loop!&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;but I need to stop in each iteration!and in addition, wait until a trigger to continue iterating...&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;How can I arrange the structures in an optimal way?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2015 12:01:11 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Notifier-for-loop/m-p/3176113#M918096</guid>
      <dc:creator>Stavrosyt</dc:creator>
      <dc:date>2015-08-10T12:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Notifier - for loop</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Notifier-for-loop/m-p/3176116#M918097</link>
      <description>&lt;P&gt;Hi Stavros,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;FONT color="#FF0000"&gt;But I need to stop the FOR loop in each iteration, so how can I do that?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;As told before…&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;FONT color="#FF0000"&gt;inserting a event structure inside the for can be used but it will not retain the FOR iteration.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Yes, it will. If done correctly…&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;FONT color="#FF0000"&gt;I tried to use shift registers but the values where not transfer properly outside the loop.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;We don't know what you tried and in which way you tried…&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;but I need to stop in each iteration!and in addition, wait until a trigger to continue iterating...&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;So what's the problem here? Get the notifier once before the loop. Wait for notification in the loop. Close the notifier once after the loop!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;How can I arrange the structures in an optimal way?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;Handle the event structure in a parallel loop!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2015 12:10:18 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Notifier-for-loop/m-p/3176116#M918097</guid>
      <dc:creator>GerdW</dc:creator>
      <dc:date>2015-08-10T12:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Notifier - for loop</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Notifier-for-loop/m-p/3176139#M918104</link>
      <description>&lt;P&gt;Your description is very confusing and your code isn't helping to describe what it is you are trying to do.&amp;nbsp; Why don't we backtrack and have you explain your problem as a set of requirements?&amp;nbsp; I think then we'd be better able to help you.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2015 13:30:46 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Notifier-for-loop/m-p/3176139#M918104</guid>
      <dc:creator>billko</dc:creator>
      <dc:date>2015-08-10T13:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Notifier - for loop</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Notifier-for-loop/m-p/3176153#M918112</link>
      <description>&lt;P&gt;Ok, what about now....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;any tips?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2015 13:53:31 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Notifier-for-loop/m-p/3176153#M918112</guid>
      <dc:creator>Stavrosyt</dc:creator>
      <dc:date>2015-08-10T13:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Notifier - for loop</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Notifier-for-loop/m-p/3176156#M918113</link>
      <description>&lt;P&gt;Hi Stavros,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you still have your deadlock due to executing the event structure before the case structure!&lt;/P&gt;
&lt;P&gt;Even worse: the event loop will only execute once. You either "start" or "ready", but not both!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have your event structure run in a parallel loop!!!&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2015 13:59:17 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Notifier-for-loop/m-p/3176156#M918113</guid>
      <dc:creator>GerdW</dc:creator>
      <dc:date>2015-08-10T13:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Notifier - for loop</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Notifier-for-loop/m-p/3176205#M918132</link>
      <description>&lt;P&gt;Is this what you are trying to do?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT: Not sure what is wrong with the snippet and event structure.&amp;nbsp; That's not what my code looks like.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/39b5fac0d95953bcf2150370ed5b854f3af34eec/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f31373038303569423642413045453637433930323739432f696d6167652d73697a652f6f726967696e616c3f763d6d70626c2d312670783d2d31" border="0" alt="snip.png" title="snip.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2015 15:17:00 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Notifier-for-loop/m-p/3176205#M918132</guid>
      <dc:creator>aputman</dc:creator>
      <dc:date>2015-08-10T15:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Notifier - for loop</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Notifier-for-loop/m-p/3176631#M918334</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Billko,&lt;/P&gt;
&lt;P&gt;The requirements:&lt;/P&gt;
&lt;P&gt;-Have a button to START the process (there is a initializing process and then wait until start is pressed)&lt;BR /&gt;-There is a file with coordinates ( number, x coordinate, Y coordinate, diameter), where using a FOR loop iteration a row is readed and the parameters are "extracted" to be used in another process.&lt;BR /&gt;-Because it is needed to wait until the other process is finished, I am replacing that with a READY button to make sure that the next line of the file can be readed (continue with the FOR loop after a "pause" has been done.&lt;/P&gt;
&lt;P&gt;At that's it.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Gerd,&lt;/P&gt;
&lt;P&gt;I create the event structure before because I need both, a waiting to START and then a READY that is an unpause button for the FOR loop.&lt;BR /&gt;You were right, the event was executed once, that was wrong.&lt;BR /&gt;it could be nice to have some structure ideas....&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Aputman,&lt;/P&gt;
&lt;P&gt;Your snippet was very handy. I did not understand why you release the notifier before it entered the event structure....I imagine in that case it will never enter there!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have made another modification taking in account the example gave by Aputman.&lt;/P&gt;
&lt;P&gt;But I still can't figure out how can I introduce a "Pause" in my FOR.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;please, more recommendations or examples are very welcome!!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/abc5228736ad2d0e55a567a3fa4b7813990da007/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f31373038323969354637314335383744384635434334452f696d6167652d73697a652f6f726967696e616c3f763d6d70626c2d312670783d2d31" border="0" alt="notifier2.png" title="notifier2.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2015 08:00:38 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Notifier-for-loop/m-p/3176631#M918334</guid>
      <dc:creator>Stavrosyt</dc:creator>
      <dc:date>2015-08-11T08:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Notifier - for loop</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Notifier-for-loop/m-p/3176738#M918384</link>
      <description>&lt;P&gt;The easiest and simpler method to use it in my FOR loop is this(and it works perfectly):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/c13ea7ce83a41d5a98b50ea642bb8283ada650ef/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f31373038343169463937304230353042383443364237312f696d6167652d73697a652f6f726967696e616c3f763d6d70626c2d312670783d2d31" border="0" alt="pauseForLoop.png" title="pauseForLoop.png" /&gt;&lt;/P&gt;
&lt;P&gt;where the first iteration is done, and then it waits until Ready is pressed for the next one. And whenever STOP is pressed, then the program stops.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now I need to add that the Ready button should come in form of a trigger signal (i thought using a notifier from an external parallel event), and the STOP should be used as a general STOP of the program&amp;nbsp;as well....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Furthermore, a START button should be added to this program......I was thinking on states machines (event structure inside an&amp;nbsp;case structure) but maybe there's a simpler way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;any suggestions?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2015 12:40:51 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Notifier-for-loop/m-p/3176738#M918384</guid>
      <dc:creator>Stavrosyt</dc:creator>
      <dc:date>2015-08-11T12:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Notifier - for loop</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Notifier-for-loop/m-p/3176740#M918386</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/91728"&gt;@aputman&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Is this what you are trying to do?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT: Not sure what is wrong with the snippet and event structure.&amp;nbsp; That's not what my code looks like.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;LabVIEW's built-in Snippets don't work well with Event Structures or Property Nodes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use the Code Capture Tool.&amp;nbsp; It works much, much better.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2015 12:44:04 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Notifier-for-loop/m-p/3176740#M918386</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2015-08-11T12:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Notifier - for loop</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Notifier-for-loop/m-p/3176772#M918402</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/327153"&gt;@Stavrosyt&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Aputman,&lt;/P&gt;
&lt;P&gt;Your snippet was very handy. I did not understand why you release the notifier before it entered the event structure....I imagine in that case it will never enter there!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I did not release the notifier "before it entered the event structure." &amp;nbsp;The notifier is released after the top loop exits. &amp;nbsp;When the notifier is released, the "Waiting on Notifier" returns an error because it can't find the reference so it kills the bottom loop. &amp;nbsp;In your picture, you reversed everything and it is not going to exit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are way to cavalier with your use of event structures. &amp;nbsp;I have yet to come across a case where you need more than one. &amp;nbsp;But if you do use more than one, you better know what you're doing. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need to "pause" a for loop, you need to think about your design more. &amp;nbsp;Why are you writing to a file and then pausing your for loop waiting for that write to complete, only to read the data back from the file again. &amp;nbsp;At least that is what I understand from your requirements.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2015 13:45:10 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Notifier-for-loop/m-p/3176772#M918402</guid>
      <dc:creator>aputman</dc:creator>
      <dc:date>2015-08-11T13:45:10Z</dc:date>
    </item>
  </channel>
</rss>

