<?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: stopping a loop in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/stopping-a-loop/m-p/1132919#M499600</link>
    <description>&lt;P&gt;While loop.&amp;nbsp; you stop them on a condition.&amp;nbsp; what type of condition do you want to stop on?&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by Jeff Bohrer on &lt;/SPAN&gt;&lt;SPAN class="local-date"&gt; 05-19-2010&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt; 07:06 PM&lt;/SPAN&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 20 May 2010 00:06:17 GMT</pubDate>
    <dc:creator>JÞB</dc:creator>
    <dc:date>2010-05-20T00:06:17Z</dc:date>
    <item>
      <title>stopping a loop</title>
      <link>https://ni.lithium.com/t5/LabVIEW/stopping-a-loop/m-p/1132906#M499592</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I stop a while loop that collects data from a home made instrument. I don't know how many bytes of data it is collecting. I want to repeat this loop n times but have to stop it after each cycle. Your help is appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;sbz&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2010 23:45:14 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/stopping-a-loop/m-p/1132906#M499592</guid>
      <dc:creator>sbz</dc:creator>
      <dc:date>2010-05-19T23:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: stopping a loop</title>
      <link>https://ni.lithium.com/t5/LabVIEW/stopping-a-loop/m-p/1132919#M499600</link>
      <description>&lt;P&gt;While loop.&amp;nbsp; you stop them on a condition.&amp;nbsp; what type of condition do you want to stop on?&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by Jeff Bohrer on &lt;/SPAN&gt;&lt;SPAN class="local-date"&gt; 05-19-2010&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt; 07:06 PM&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 20 May 2010 00:06:17 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/stopping-a-loop/m-p/1132919#M499600</guid>
      <dc:creator>JÞB</dc:creator>
      <dc:date>2010-05-20T00:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: stopping a loop</title>
      <link>https://ni.lithium.com/t5/LabVIEW/stopping-a-loop/m-p/1132925#M499604</link>
      <description>&lt;P&gt;after collecting data i want to stop it but it's not a constant data coming back(each time might change) so i need sth to listen to it when data collection stops. Can't find any UDP listen function.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2010 00:20:19 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/stopping-a-loop/m-p/1132925#M499604</guid>
      <dc:creator>sbz</dc:creator>
      <dc:date>2010-05-20T00:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: stopping a loop</title>
      <link>https://ni.lithium.com/t5/LabVIEW/stopping-a-loop/m-p/1133503#M499790</link>
      <description>&lt;P&gt;You are not explaining yourself very well.&amp;nbsp; Does your data come back in a burst, then no more data comes?&amp;nbsp; You could use a timer to stop after a certain time with no data being received.&amp;nbsp; Start timer.&amp;nbsp; If data is receive, reset timer.&amp;nbsp; If no data, check timer.&amp;nbsp; Do this until timer expires, then stop the loop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2010 16:30:07 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/stopping-a-loop/m-p/1133503#M499790</guid>
      <dc:creator>tbob</dc:creator>
      <dc:date>2010-05-20T16:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: stopping a loop</title>
      <link>https://ni.lithium.com/t5/LabVIEW/stopping-a-loop/m-p/1133547#M499811</link>
      <description>&lt;P&gt;Hi sbz,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;UDP is not a protocol that "listens" in the sense that it will wait until bits appear or uses any handshaking. For that type of scheme you may have to move to TCP. I'm not sure&amp;nbsp;a bit confused if the issue you're encountering involves network communication or loop condition. Please let us know how we can help.&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2010 17:27:49 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/stopping-a-loop/m-p/1133547#M499811</guid>
      <dc:creator>Verne_D</dc:creator>
      <dc:date>2010-05-20T17:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: stopping a loop</title>
      <link>https://ni.lithium.com/t5/LabVIEW/stopping-a-loop/m-p/1133559#M499817</link>
      <description>&lt;P&gt;Hi sbz,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;If I understand you correctly, you want to pause at the end of each iteration to check that data has come in on a UDP port. &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&amp;nbsp;I am by no means an expert on this, but Labview does have some UDP functionality which might be what you need. The UDP Read function will wait for data until a specified timeout.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;To find the UDP functions, go to Functions-&amp;gt;Data Communication-&amp;gt;Protocols-&amp;gt;UDP or on the Functions palette, search for UDP.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;These pages have more information:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://zone.ni.com/devzone/cda/tut/p/id/4950" target="_blank"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;http://zone.ni.com/devzone/cda/tut/p/id/4950&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://zone.ni.com/reference/en-XX/help/371361B-01/TOC28.htm" target="_blank"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;http://zone.ni.com/reference/en-XX/help/371361B-01/TOC28.htm&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Hope this helps.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2010 17:48:06 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/stopping-a-loop/m-p/1133559#M499817</guid>
      <dc:creator>zola_the_gorgon</dc:creator>
      <dc:date>2010-05-20T17:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: stopping a loop</title>
      <link>https://ni.lithium.com/t5/LabVIEW/stopping-a-loop/m-p/1133567#M499819</link>
      <description>&lt;P&gt;Thanks to all for replying. The data comes in burst and then stops. I have to press the stop button manually and then the next iteration will start. I don't want it to be manually.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;sbz&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2010 17:54:50 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/stopping-a-loop/m-p/1133567#M499819</guid>
      <dc:creator>sbz</dc:creator>
      <dc:date>2010-05-20T17:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: stopping a loop</title>
      <link>https://ni.lithium.com/t5/LabVIEW/stopping-a-loop/m-p/1133583#M499827</link>
      <description>&lt;P&gt;Use a timer as I had described in my earlier post.&amp;nbsp; After 1 or 2 seconds of no data, stop the loop.&amp;nbsp; Do you need sample code to do this?&amp;nbsp; Can you try to code something yourself?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2010 18:11:50 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/stopping-a-loop/m-p/1133583#M499827</guid>
      <dc:creator>tbob</dc:creator>
      <dc:date>2010-05-20T18:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: stopping a loop</title>
      <link>https://ni.lithium.com/t5/LabVIEW/stopping-a-loop/m-p/1133588#M499830</link>
      <description>&lt;P&gt;I've never used a timer. will try to figure it out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2010 18:14:21 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/stopping-a-loop/m-p/1133588#M499830</guid>
      <dc:creator>sbz</dc:creator>
      <dc:date>2010-05-20T18:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: stopping a loop</title>
      <link>https://ni.lithium.com/t5/LabVIEW/stopping-a-loop/m-p/1133611#M499841</link>
      <description>&lt;P&gt;Here is an example:&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/15441i36DC7A97917D34FF/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="ElapsedTime.png" title="ElapsedTime.png" align="center" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2010 18:40:16 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/stopping-a-loop/m-p/1133611#M499841</guid>
      <dc:creator>tbob</dc:creator>
      <dc:date>2010-05-20T18:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: stopping a loop</title>
      <link>https://ni.lithium.com/t5/LabVIEW/stopping-a-loop/m-p/1133802#M499912</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN style="font-family: Arial, Arial, Helvetica; line-height: normal; font-size: 13px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px" class="Apple-style-span"&gt;&amp;nbsp;tbob,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to make it as ur example shows but it doesnt work since the string stops at some point but is not empty.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks again&lt;/P&gt;&lt;P&gt;sbz&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2010 00:35:41 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/stopping-a-loop/m-p/1133802#M499912</guid>
      <dc:creator>sbz</dc:creator>
      <dc:date>2010-05-21T00:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: stopping a loop</title>
      <link>https://ni.lithium.com/t5/LabVIEW/stopping-a-loop/m-p/1134245#M500061</link>
      <description>&lt;P&gt;What do you mean by "the string stops at some point but is not empty".&amp;nbsp; This doesn't make any sense.&amp;nbsp; Also, I used a string array just as an example.&amp;nbsp; It isn't a direct substitute for your code.&amp;nbsp; I don't know how you are acquiring data.&amp;nbsp; I don't know what your data is.&amp;nbsp; You have to figure out how to tell when your data ends and use parts of my code to implement stopping the loop.&amp;nbsp; Whatever method you use to read the data, what happens when there is no more data?&amp;nbsp; Do you get some type of termination character?&amp;nbsp; Give me more information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2010 15:59:34 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/stopping-a-loop/m-p/1134245#M500061</guid>
      <dc:creator>tbob</dc:creator>
      <dc:date>2010-05-21T15:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: stopping a loop</title>
      <link>https://ni.lithium.com/t5/LabVIEW/stopping-a-loop/m-p/1134459#M500135</link>
      <description>&lt;P&gt;thanks&amp;nbsp;&lt;SPAN style="font-family: Arial, Arial, Helvetica; line-height: normal; font-size: 13px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px" class="Apple-style-span"&gt;tbob I figured it out. Now I have a loop that each iteration collects data in a text file and the next iteration ads the data to the&amp;nbsp;bottom of the the previous data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial, Arial, Helvetica; line-height: normal; font-size: 13px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px" class="Apple-style-span"&gt;Is there any way that I could save the data of each iteration in a column next to the previous one instead of all in a long column? I tried the write to spread sheet but had no luck yet.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial, Arial, Helvetica; line-height: normal; font-size: 13px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px" class="Apple-style-span"&gt;thanks for your help&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial, Arial, Helvetica; line-height: normal; font-size: 13px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px" class="Apple-style-span"&gt;sbz&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 22 May 2010 00:23:18 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/stopping-a-loop/m-p/1134459#M500135</guid>
      <dc:creator>sbz</dc:creator>
      <dc:date>2010-05-22T00:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: stopping a loop</title>
      <link>https://ni.lithium.com/t5/LabVIEW/stopping-a-loop/m-p/1134492#M500154</link>
      <description>&lt;P&gt;The problems with a column is that you have to interleave your data at every run.&lt;/P&gt;&lt;P&gt;Perhaps you can store your data in a row per time (use a 'tab' as a delimeter and append a CRLF).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After finishing the loop, read the whole file, transpose the array and resave.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ton &lt;/P&gt;</description>
      <pubDate>Sat, 22 May 2010 11:51:36 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/stopping-a-loop/m-p/1134492#M500154</guid>
      <dc:creator>TCPlomp</dc:creator>
      <dc:date>2010-05-22T11:51:36Z</dc:date>
    </item>
  </channel>
</rss>

