<?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: put a delay for executing case structure in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/put-a-delay-for-executing-case-structure/m-p/1095619#M484635</link>
    <description>&lt;P&gt;Hi Yuk,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not 100% sure what you are after here but i gave it a go for you. Im assuming that in your while loop you perform other tasks but you want a specific task to be triggered in a case structure after a certain amount of time (600ms) after a button has been triggered. I made a small subvi that you can put in line with your trigger and the case structure and wire a delay time to it. Hope this is what your after:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forums.ni.com/t5/image/serverpage/image-id/12497i81685A218115F504/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="Delayed action.png" title="Delayed action.png" align="center" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is just a snippet of how i think you are wanting the code to look like. You can see the small subvi that i have entere in line with the boolean to the case structure. Let me know if this is not what you are after. Just for your info the actual subvi is this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forums.ni.com/t5/image/serverpage/image-id/12498iFC23C4A1B374FC1D/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="Delayed action Sub vi.png" title="Delayed action Sub vi.png" align="center" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As i said, not 100% sure this is what your after. Just want to clarify, the above subvi does not pause the main while loop, this will keep iterating so you can continue to action any other code you have in the while loop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lucither&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by Lucither on &lt;/SPAN&gt;&lt;SPAN class="local-date"&gt; 03-22-2010&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt; 06:10 AM&lt;/SPAN&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 22 Mar 2010 11:10:09 GMT</pubDate>
    <dc:creator>Lucither</dc:creator>
    <dc:date>2010-03-22T11:10:09Z</dc:date>
    <item>
      <title>put a delay for executing case structure</title>
      <link>https://ni.lithium.com/t5/LabVIEW/put-a-delay-for-executing-case-structure/m-p/1095396#M484540</link>
      <description>&lt;P&gt;Hi, everybody.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to ask a question. Currently, I have developed a while loop&amp;nbsp;with a case structure inside the loop. I want to execute the case structure with 600ms delay once the case is true. Are there any way(s) for doing this without affecting the loop? If possible, can show me the way of doing this? Thank you very much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;yukfai88&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2010 04:00:21 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/put-a-delay-for-executing-case-structure/m-p/1095396#M484540</guid>
      <dc:creator>yukfai88</dc:creator>
      <dc:date>2010-03-22T04:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: put a delay for executing case structure</title>
      <link>https://ni.lithium.com/t5/LabVIEW/put-a-delay-for-executing-case-structure/m-p/1095400#M484542</link>
      <description>&lt;P&gt;What do you mean by "not affecting the loop"?&amp;nbsp; If it takes 600 msec for the case structure to execute, then that particular iteration of the while loop is going to take 600 msec longer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can put the code in the true case in a flat sequence structure with a 600 msec wait in the first frame and the rest of the code to execute in the 2nd frame.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2010 04:09:55 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/put-a-delay-for-executing-case-structure/m-p/1095400#M484542</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2010-03-22T04:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: put a delay for executing case structure</title>
      <link>https://ni.lithium.com/t5/LabVIEW/put-a-delay-for-executing-case-structure/m-p/1095619#M484635</link>
      <description>&lt;P&gt;Hi Yuk,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not 100% sure what you are after here but i gave it a go for you. Im assuming that in your while loop you perform other tasks but you want a specific task to be triggered in a case structure after a certain amount of time (600ms) after a button has been triggered. I made a small subvi that you can put in line with your trigger and the case structure and wire a delay time to it. Hope this is what your after:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forums.ni.com/t5/image/serverpage/image-id/12497i81685A218115F504/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="Delayed action.png" title="Delayed action.png" align="center" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is just a snippet of how i think you are wanting the code to look like. You can see the small subvi that i have entere in line with the boolean to the case structure. Let me know if this is not what you are after. Just for your info the actual subvi is this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forums.ni.com/t5/image/serverpage/image-id/12498iFC23C4A1B374FC1D/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="Delayed action Sub vi.png" title="Delayed action Sub vi.png" align="center" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As i said, not 100% sure this is what your after. Just want to clarify, the above subvi does not pause the main while loop, this will keep iterating so you can continue to action any other code you have in the while loop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lucither&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by Lucither on &lt;/SPAN&gt;&lt;SPAN class="local-date"&gt; 03-22-2010&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt; 06:10 AM&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 22 Mar 2010 11:10:09 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/put-a-delay-for-executing-case-structure/m-p/1095619#M484635</guid>
      <dc:creator>Lucither</dc:creator>
      <dc:date>2010-03-22T11:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: put a delay for executing case structure</title>
      <link>https://ni.lithium.com/t5/LabVIEW/put-a-delay-for-executing-case-structure/m-p/1095698#M484669</link>
      <description>&lt;P&gt;Thank you very much, Ravens Fan and Lucither. The advice helps a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;yukfai88&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2010 13:04:17 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/put-a-delay-for-executing-case-structure/m-p/1095698#M484669</guid>
      <dc:creator>yukfai88</dc:creator>
      <dc:date>2010-03-22T13:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: put a delay for executing case structure</title>
      <link>https://ni.lithium.com/t5/LabVIEW/put-a-delay-for-executing-case-structure/m-p/2420156#M746923</link>
      <description>&lt;P&gt;The code is not working at all&amp;nbsp;&lt;img id="smileyindifferent" class="emoticon emoticon-smileyindifferent" src="https://ni.lithium.com/i/smilies/16x16_smiley-indifferent.gif" alt="Smiley Indifferent" title="Smiley Indifferent" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2013 04:58:03 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/put-a-delay-for-executing-case-structure/m-p/2420156#M746923</guid>
      <dc:creator>augustg</dc:creator>
      <dc:date>2013-05-10T04:58:03Z</dc:date>
    </item>
  </channel>
</rss>

