<?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 : Re: Stop a while loop with array outside in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Stop-a-while-loop-with-array-outside/m-p/818435#M372425</link>
    <description>Your modification makes better the vi but I have still some trouble to understand why when you fixed the number of trials more than 4 the vi fails to work well. If you put for example the number of trials at 5, the last number selected in array 3 is 0 and the subvi S+ presentations is never presented. How to do to avoid this problem ? Thank you in advance.</description>
    <pubDate>Wed, 03 Dec 2008 16:44:29 GMT</pubDate>
    <dc:creator>nousome</dc:creator>
    <dc:date>2008-12-03T16:44:29Z</dc:date>
    <item>
      <title>Stop a while loop with array outside</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Stop-a-while-loop-with-array-outside/m-p/812928#M370263</link>
      <description>&lt;SPAN class="noindex"&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a problem to stop
running a vi which uses a while loop and outside an array with two
values of intervals of time. I would like to stop the VI when the
different values in the array are elapsed. I attached here the code if
you like to help me please I thank you in advance. &lt;/P&gt;
			&lt;/SPAN&gt;</description>
      <pubDate>Fri, 21 Nov 2008 14:34:07 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Stop-a-while-loop-with-array-outside/m-p/812928#M370263</guid>
      <dc:creator>nousome</dc:creator>
      <dc:date>2008-11-21T14:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Stop a while loop with array outside</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Stop-a-while-loop-with-array-outside/m-p/812945#M370270</link>
      <description>If I understand correctly your application, I'd use a for loop instead, executing n times (obtain n with the "array size" function), activating indexing where the array enters the for loop, and timing with the "wait (ms)" function.</description>
      <pubDate>Fri, 21 Nov 2008 14:54:33 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Stop-a-while-loop-with-array-outside/m-p/812945#M370270</guid>
      <dc:creator>xdaf</dc:creator>
      <dc:date>2008-11-21T14:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Stop a while loop with array outside</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Stop-a-while-loop-with-array-outside/m-p/812949#M370271</link>
      <description>&lt;P&gt;You have a units problem. You seem to be specifying the time intervals in milliseconds (at least I think they're milliseconds), and then dividing by 1000. That makes them microseconds. You are then comparing to a difference calculation which is in milliseconds. I think you want to specify the time intervals in seconds, and multiply by 1000 to get milliseconds. Also, watch your coercion dots. The constant of 2 should have a representation of I32.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A better solution would be to use the Elapsed Time function.&amp;nbsp; &lt;/P&gt;</description>
      <pubDate>Fri, 21 Nov 2008 14:57:41 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Stop-a-while-loop-with-array-outside/m-p/812949#M370271</guid>
      <dc:creator>smercurio_fc</dc:creator>
      <dc:date>2008-11-21T14:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Stop a while loop with array outside</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Stop-a-while-loop-with-array-outside/m-p/812950#M370272</link>
      <description>&lt;P&gt;"I would like to stop the VI when the different values in the array are elapsed"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is not clear to me,&amp;nbsp;what you want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does this help ?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Nov 2008 14:59:44 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Stop-a-while-loop-with-array-outside/m-p/812950#M370272</guid>
      <dc:creator>Pnt</dc:creator>
      <dc:date>2008-11-21T14:59:44Z</dc:date>
    </item>
    <item>
      <title>Re : Re: Stop a while loop with array outside</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Stop-a-while-loop-with-array-outside/m-p/812972#M370281</link>
      <description>I want to make a criterion to stop the Vi when the two values in the array are elapsed so here the Vi would stop after 2 seconds.</description>
      <pubDate>Fri, 21 Nov 2008 15:25:29 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Stop-a-while-loop-with-array-outside/m-p/812972#M370281</guid>
      <dc:creator>nousome</dc:creator>
      <dc:date>2008-11-21T15:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Re : Re: Stop a while loop with array outside</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Stop-a-while-loop-with-array-outside/m-p/812990#M370289</link>
      <description>&lt;P&gt;As xdaf mentioned, all you really need to do is this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If there is a reason to make it any more complicated, please explain why or should we just post your program to the &lt;A href="http://forums.ni.com/ni/board/message?board.id=BreakPoint&amp;amp;thread.id=2634" target="_blank"&gt;Rube Goldberg&lt;/A&gt;&amp;nbsp;thread?&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by Dennis Knutson on &lt;/SPAN&gt;&lt;SPAN class="local-date"&gt; 11-21-2008&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt; 08:46 AM&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 21 Nov 2008 15:46:07 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Stop-a-while-loop-with-array-outside/m-p/812990#M370289</guid>
      <dc:creator>Dennis_Knutson</dc:creator>
      <dc:date>2008-11-21T15:46:07Z</dc:date>
    </item>
    <item>
      <title>Re : Re: Re : Re: Stop a while loop with array outside</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Stop-a-while-loop-with-array-outside/m-p/812998#M370291</link>
      <description>Thank you very much all for your quick help.</description>
      <pubDate>Fri, 21 Nov 2008 15:52:18 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Stop-a-while-loop-with-array-outside/m-p/812998#M370291</guid>
      <dc:creator>nousome</dc:creator>
      <dc:date>2008-11-21T15:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Stop a while loop with array outside</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Stop-a-while-loop-with-array-outside/m-p/813211#M370357</link>
      <description>There is one caveat that you should be mindful of. When I looked at your time values it seemed as if you were wanting to wait for long periods of time. The simple implementation provided by Dennis will have the effect of not allowing you to stop the program when it's waiting unless you press the Abort button in the toolbar. My presumption was that you wanted to be in a loop waiting and be able to stop at any time. Of course, that was my presumption. I'm not really sure what your overall goal is.</description>
      <pubDate>Fri, 21 Nov 2008 21:01:57 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Stop-a-while-loop-with-array-outside/m-p/813211#M370357</guid>
      <dc:creator>smercurio_fc</dc:creator>
      <dc:date>2008-11-21T21:01:57Z</dc:date>
    </item>
    <item>
      <title>Re : Re: Stop a while loop with array outside</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Stop-a-while-loop-with-array-outside/m-p/813229#M370367</link>
      <description>Yes I would like to stop after all the values from the array pass the while loop.</description>
      <pubDate>Fri, 21 Nov 2008 21:30:28 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Stop-a-while-loop-with-array-outside/m-p/813229#M370367</guid>
      <dc:creator>nousome</dc:creator>
      <dc:date>2008-11-21T21:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Stop a while loop with array outside</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Stop-a-while-loop-with-array-outside/m-p/813346#M370414</link>
      <description>I'm sorry, I don't understand what you mean by that. Do you understand how the example provided by Dennis works? What does it not do that you need to do?</description>
      <pubDate>Sat, 22 Nov 2008 15:34:08 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Stop-a-while-loop-with-array-outside/m-p/813346#M370414</guid>
      <dc:creator>smercurio_fc</dc:creator>
      <dc:date>2008-11-22T15:34:08Z</dc:date>
    </item>
    <item>
      <title>Re : Re: Stop a while loop with array outside</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Stop-a-while-loop-with-array-outside/m-p/813577#M370502</link>
      <description>&lt;P&gt;The solution given by Pnt works fine. Now I would like something a little bit complicated. I would like that first before each value from the array is running, that the user clicks to a button to start the waiting time (I know how to do this with event structure). After I would like that at the 90% of the time of waiting given by the differents by the array, some event appeared (I guess that I could do this in case structure) during 500 ms and then the remaining time has to be elapsed and another event appears. For example, for a value of 10s, at 9 sec, an event appeared during 500 ms and this event disappeared and following 500 ms another event appeared during 500 ms. After&amp;nbsp;1 sec, another value from the array is running.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the help.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Nov 2008 09:52:32 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Stop-a-while-loop-with-array-outside/m-p/813577#M370502</guid>
      <dc:creator>nousome</dc:creator>
      <dc:date>2008-11-24T09:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: Re : Re: Stop a while loop with array outside</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Stop-a-while-loop-with-array-outside/m-p/813721#M370570</link>
      <description>&lt;P&gt;What is "differents"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your description isn't too clear.&amp;nbsp; Perhaps you can draw a picture or a timeline or something to describe this.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Nov 2008 14:12:37 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Stop-a-while-loop-with-array-outside/m-p/813721#M370570</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2008-11-24T14:12:37Z</dc:date>
    </item>
    <item>
      <title>Re : Re: Re : Re: Stop a while loop with array outside</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Stop-a-while-loop-with-array-outside/m-p/813760#M370584</link>
      <description>&lt;P&gt;Okay I'm sorry I will try to make it clear.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Each value
from the array represent an individual trial. At the beginning of each
trial I would like that the user clicks to a button to start the wait
time (I know how to programate a click on the button but I can't with
this architecture program in the way that the button appears back with
each new value from the array). After 90% of the time of waiting (so if
the value in the array is 10 sec, after 9 sec) a stimulus appears
during 500 ms and disappears. And after the value is elapsed (i.e.,
after 10 sec) another event appears. For these two events to program no
problem. After the delay is elapsed i would like to have 1 second of
waiting after the new trial (and make appear the circle). &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My
aim actually is to select randomly from the array one of the 9 values.
When this value is selected it can't be used again. I would like the
loop ends after a x number of trials. I wonder so if array is well
suited for my problem. I know the random number function but I can not
easily remove a value when it was used.&amp;nbsp; I hope that I am clear.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Nov 2008 14:53:01 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Stop-a-while-loop-with-array-outside/m-p/813760#M370584</guid>
      <dc:creator>nousome</dc:creator>
      <dc:date>2008-11-24T14:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Stop a while loop with array outside</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Stop-a-while-loop-with-array-outside/m-p/813778#M370588</link>
      <description>&lt;P&gt;Sure, an array is perfect for this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You would probably want another array of booleans where each index matches up with a value in your numeric array.&amp;nbsp; Once you select a value and use it, set the same index in the boolean array to true.&amp;nbsp; When you randomly choose a value in the numeric array again, check to see if the boolean flag is true.&amp;nbsp; If it is still false, use the value and change the flag to true.&amp;nbsp; If it is true, choose another random number and check again.&amp;nbsp; Keep the number of values used in a shift register and stop the larger while loop after that number matches your desired "x" trials.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Nov 2008 15:13:35 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Stop-a-while-loop-with-array-outside/m-p/813778#M370588</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2008-11-24T15:13:35Z</dc:date>
    </item>
    <item>
      <title>Re : Re: Stop a while loop with array outside</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Stop-a-while-loop-with-array-outside/m-p/813945#M370643</link>
      <description>&lt;P&gt;Thank you very much for the reply. I am not sure to understand could you give me a picture of this please if you have any time. I thank you in advance&lt;/P&gt;</description>
      <pubDate>Mon, 24 Nov 2008 18:01:52 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Stop-a-while-loop-with-array-outside/m-p/813945#M370643</guid>
      <dc:creator>nousome</dc:creator>
      <dc:date>2008-11-24T18:01:52Z</dc:date>
    </item>
    <item>
      <title>Re : Re: Stop a while loop with array outside</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Stop-a-while-loop-with-array-outside/m-p/815157#M371132</link>
      <description>&lt;SPAN class="noindex"&gt;Thank you very much for the reply. I tried your solution but it doesn't work. I guess I miss something could you give me a picture of this please if you have
any time. I thank you in advance&lt;/SPAN&gt;</description>
      <pubDate>Wed, 26 Nov 2008 13:57:32 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Stop-a-while-loop-with-array-outside/m-p/815157#M371132</guid>
      <dc:creator>nousome</dc:creator>
      <dc:date>2008-11-26T13:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Stop a while loop with array outside</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Stop-a-while-loop-with-array-outside/m-p/815185#M371146</link>
      <description>Which solution are you referring to? Why don't you go ahead and post what you've done so far.</description>
      <pubDate>Wed, 26 Nov 2008 14:41:54 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Stop-a-while-loop-with-array-outside/m-p/815185#M371146</guid>
      <dc:creator>smercurio_fc</dc:creator>
      <dc:date>2008-11-26T14:41:54Z</dc:date>
    </item>
    <item>
      <title>Re : Re: Stop a while loop with array outside</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Stop-a-while-loop-with-array-outside/m-p/815307#M371173</link>
      <description>The solution given by Ravens fan</description>
      <pubDate>Wed, 26 Nov 2008 16:44:18 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Stop-a-while-loop-with-array-outside/m-p/815307#M371173</guid>
      <dc:creator>nousome</dc:creator>
      <dc:date>2008-11-26T16:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Re : Re: Stop a while loop with array outside</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Stop-a-while-loop-with-array-outside/m-p/815404#M371214</link>
      <description>Take a look at this in LV 8.0</description>
      <pubDate>Wed, 26 Nov 2008 18:42:54 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Stop-a-while-loop-with-array-outside/m-p/815404#M371214</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2008-11-26T18:42:54Z</dc:date>
    </item>
    <item>
      <title>Re : Re: Re : Re: Stop a while loop with array outside</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Stop-a-while-loop-with-array-outside/m-p/815677#M371302</link>
      <description>&lt;P&gt;&amp;nbsp;Thank you very much for the solution given. I tried to apply this in my program but it didn't work. I would like to use each value given by the array as time and when this time is elapsed a change in the font of the screen to yellow appears during 1/2 sec and after 1.5 sec I would like that the next interval given by the array is selected. I would like the array runs for 10 or more trials, so that after 5 trials and all values are selected the array of boolean returns to 0 to&amp;nbsp; let select among all the values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here in the VI runs only for one value and stops even though I set the number of trials to 5. Thanks. I attached the code here&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Nov 2008 09:05:23 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Stop-a-while-loop-with-array-outside/m-p/815677#M371302</guid>
      <dc:creator>nousome</dc:creator>
      <dc:date>2008-11-27T09:05:23Z</dc:date>
    </item>
  </channel>
</rss>

