<?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: For loop in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/For-loop/m-p/8653#M6830</link>
    <description>Hi Ips,&lt;BR /&gt;you don't have to use "for loop",&lt;BR /&gt;for this way you have to use "while loop"&lt;BR /&gt;You can send me a part of you programm, and I try to replace for loop.&lt;BR /&gt;Best Regards&lt;BR /&gt;Mike&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Ips McKornix wrote:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Hi!&lt;BR /&gt;&amp;gt; I'm in a serious trouble. I'm writing a VI that controls a temperature&lt;BR /&gt;&amp;gt; stabiliser. Sometimes there's a need to break a for loop but I really can't&lt;BR /&gt;&amp;gt; cope with that. Is it possible?  Can anyone help me?&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; Thanks for all advice!&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; Ips McKornix &lt;BR /&gt;</description>
    <pubDate>Mon, 29 Jan 2001 18:33:30 GMT</pubDate>
    <dc:creator>Mike Manzheliy</dc:creator>
    <dc:date>2001-01-29T18:33:30Z</dc:date>
    <item>
      <title>For loop</title>
      <link>https://ni.lithium.com/t5/LabVIEW/For-loop/m-p/8652#M6829</link>
      <description>Hi!&lt;BR /&gt;I'm in a serious trouble. I'm writing a VI that controls a temperature&lt;BR /&gt;stabiliser. Sometimes there's a need to break a for loop but I really can't&lt;BR /&gt;cope with that. Is it possible?  Can anyone help me?&lt;BR /&gt;&lt;BR /&gt;Thanks for all advice!&lt;BR /&gt;&lt;BR /&gt;Ips McKornix &lt;BR /&gt;</description>
      <pubDate>Mon, 29 Jan 2001 04:00:57 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/For-loop/m-p/8652#M6829</guid>
      <dc:creator>Ips McKornix</dc:creator>
      <dc:date>2001-01-29T04:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: For loop</title>
      <link>https://ni.lithium.com/t5/LabVIEW/For-loop/m-p/8653#M6830</link>
      <description>Hi Ips,&lt;BR /&gt;you don't have to use "for loop",&lt;BR /&gt;for this way you have to use "while loop"&lt;BR /&gt;You can send me a part of you programm, and I try to replace for loop.&lt;BR /&gt;Best Regards&lt;BR /&gt;Mike&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Ips McKornix wrote:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Hi!&lt;BR /&gt;&amp;gt; I'm in a serious trouble. I'm writing a VI that controls a temperature&lt;BR /&gt;&amp;gt; stabiliser. Sometimes there's a need to break a for loop but I really can't&lt;BR /&gt;&amp;gt; cope with that. Is it possible?  Can anyone help me?&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; Thanks for all advice!&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; Ips McKornix &lt;BR /&gt;</description>
      <pubDate>Mon, 29 Jan 2001 18:33:30 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/For-loop/m-p/8653#M6830</guid>
      <dc:creator>Mike Manzheliy</dc:creator>
      <dc:date>2001-01-29T18:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: For loop</title>
      <link>https://ni.lithium.com/t5/LabVIEW/For-loop/m-p/8654#M6831</link>
      <description>Ips McKornix wrote:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Hi!&lt;BR /&gt;&amp;gt; I'm in a serious trouble. I'm writing a VI that controls a temperature&lt;BR /&gt;&amp;gt; stabiliser. Sometimes there's a need to break a for loop but I really can't&lt;BR /&gt;&amp;gt; cope with that. Is it possible?  Can anyone help me?&lt;BR /&gt;&amp;gt; &lt;BR /&gt;&amp;gt; Thanks for all advice!&lt;BR /&gt;&amp;gt; &lt;BR /&gt;&amp;gt; Ips McKornix&lt;BR /&gt;&lt;BR /&gt;Read a FAQ for this subject. It  is known issue and described there in &lt;BR /&gt;details. Reference below:&lt;BR /&gt;http://www.icon-tech.com.au/thelabviewfaq.html&lt;BR /&gt;-- &lt;BR /&gt;Sergey Krasnishov&lt;BR /&gt;____________________________________&lt;BR /&gt;Automated Control Systems&lt;BR /&gt;National Instruments Alliance Member&lt;BR /&gt;Moscow, Russia&lt;BR /&gt;sergey_acs@levsha.ru&lt;BR /&gt;http://acs.levsha.ru &lt;BR /&gt;</description>
      <pubDate>Mon, 29 Jan 2001 18:33:43 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/For-loop/m-p/8654#M6831</guid>
      <dc:creator>Sergey Krasnishov</dc:creator>
      <dc:date>2001-01-29T18:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: For loop</title>
      <link>https://ni.lithium.com/t5/LabVIEW/For-loop/m-p/8655#M6832</link>
      <description>Hi1&lt;BR /&gt;&lt;BR /&gt;Well, just an idea, but you could try to include a case in the loop, which&lt;BR /&gt;is linked to a stop button. If the stop-button is not pressed N is linked to&lt;BR /&gt;whatever your for-number is, in the case the stop-button is pressed, the&lt;BR /&gt;case would just link N to the iteration terminal and thus stop the loop!&lt;BR /&gt;I don't know, if that'll work, cause i'm not at my labview computer right&lt;BR /&gt;now, but it's just an idea i've got now.&lt;BR /&gt;Hope it helps!&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Martin Klein &lt;BR /&gt;</description>
      <pubDate>Mon, 29 Jan 2001 18:33:51 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/For-loop/m-p/8655#M6832</guid>
      <dc:creator>atsw</dc:creator>
      <dc:date>2001-01-29T18:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: For loop</title>
      <link>https://ni.lithium.com/t5/LabVIEW/For-loop/m-p/8656#M6833</link>
      <description>you can not "break" a for loop.  use a while loop instead with the logic to&lt;BR /&gt;terminate the while loop on iteration count or stop condition.&lt;BR /&gt;Stu&lt;BR /&gt;Ips McKornix &lt;KORNIKX&gt; wrote in message&lt;BR /&gt;news:952or4$3ii$1@info.cyf-kr.edu.pl...&lt;BR /&gt;&amp;gt; Hi!&lt;BR /&gt;&amp;gt; I'm in a serious trouble. I'm writing a VI that controls a temperature&lt;BR /&gt;&amp;gt; stabiliser. Sometimes there's a need to break a for loop but I really&lt;BR /&gt;can't&lt;BR /&gt;&amp;gt; cope with that. Is it possible?  Can anyone help me?&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; Thanks for all advice!&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; Ips McKornix&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; &lt;BR /&gt;&lt;/KORNIKX&gt;</description>
      <pubDate>Mon, 29 Jan 2001 18:34:07 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/For-loop/m-p/8656#M6833</guid>
      <dc:creator>Stu 708</dc:creator>
      <dc:date>2001-01-29T18:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: For loop</title>
      <link>https://ni.lithium.com/t5/LabVIEW/For-loop/m-p/8657#M6834</link>
      <description>&amp;gt; I'm in a serious trouble. I'm writing a VI that controls a temperature&lt;BR /&gt;&amp;gt; stabiliser. Sometimes there's a need to break a for loop but I really can't&lt;BR /&gt;&amp;gt; cope with that. Is it possible?  Can anyone help me?&lt;BR /&gt;&amp;gt; &lt;BR /&gt;&lt;BR /&gt;If you pop up on the for loop, there is a Replace menu item.&lt;BR /&gt;In the menu, you can choose a while loop.  This will change&lt;BR /&gt;the for to a while loop in one step.  Now take the previous&lt;BR /&gt;value of N, wire it to the top of a &amp;gt; block.  You now have&lt;BR /&gt;two Boolean cases where you want to stop.  Combine them using&lt;BR /&gt;the necessary logic and your while loop works the same as a&lt;BR /&gt;for loop except it pays attention to the button, and as many&lt;BR /&gt;other exit conditions as you need it to.&lt;BR /&gt;&lt;BR /&gt;Greg McKaskle &lt;BR /&gt;</description>
      <pubDate>Mon, 29 Jan 2001 18:34:16 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/For-loop/m-p/8657#M6834</guid>
      <dc:creator>Greg_McKaskle2</dc:creator>
      <dc:date>2001-01-29T18:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: For loop</title>
      <link>https://ni.lithium.com/t5/LabVIEW/For-loop/m-p/8658#M6835</link>
      <description>In article &amp;lt;952or4$3ii$1@info.cyf-kr.edu.pl&amp;gt;,&lt;BR /&gt;  "Ips McKornix" &lt;KORNIKX&gt; wrote:&lt;BR /&gt;&amp;gt; Hi!&lt;BR /&gt;&amp;gt; I'm in a serious trouble. I'm writing a VI that controls a temperature&lt;BR /&gt;&amp;gt; stabiliser. Sometimes there's a need to break a for loop but I really can't&lt;BR /&gt;&amp;gt; cope with that. Is it possible?  Can anyone help me?&lt;BR /&gt;&lt;BR /&gt;Assuming you are using a FOR loop because the number of iterations are known,&lt;BR /&gt;you are probably advised to use a WHILE loop and have the loop boolean stop&lt;BR /&gt;the loop on a bad condition or loop iteration = some value.  Generally&lt;BR /&gt;speaking, a WHILE loop is more useful than a FOR loop in LV.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Sent via Deja.com&lt;BR /&gt;http://www.deja.com/ &lt;BR /&gt;&lt;/KORNIKX&gt;</description>
      <pubDate>Mon, 29 Jan 2001 18:34:37 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/For-loop/m-p/8658#M6835</guid>
      <dc:creator>humenik@my-deja.com</dc:creator>
      <dc:date>2001-01-29T18:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: For loop</title>
      <link>https://ni.lithium.com/t5/LabVIEW/For-loop/m-p/8659#M6836</link>
      <description>Thank you all for all your help but I cannot find the solution.&lt;BR /&gt;My problem is as follows :&lt;BR /&gt;&lt;BR /&gt;I have to get the temperature from the stabiliser every given period of&lt;BR /&gt;time. I do it in this way : get the temperature and then I set a timer and&lt;BR /&gt;wait until the period of time passes. Then I do the next measurement and so&lt;BR /&gt;on.  Meanwhile I may want to set the stabiliser to send the value of&lt;BR /&gt;temperature in Kelvins or centigrade. Unfortunately it's done only when the&lt;BR /&gt;timer completes its job. I have to interrupt the loop that makes the timer&lt;BR /&gt;go and send a request to the stabiliser. That's what I can't do.&lt;BR /&gt;DO you have any suggests? Any help will be appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Ips McKornix &lt;BR /&gt;</description>
      <pubDate>Mon, 29 Jan 2001 18:35:40 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/For-loop/m-p/8659#M6836</guid>
      <dc:creator>Ips McKornix</dc:creator>
      <dc:date>2001-01-29T18:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: For loop</title>
      <link>https://ni.lithium.com/t5/LabVIEW/For-loop/m-p/8660#M6837</link>
      <description>Ips McKornix&lt;BR /&gt;&lt;BR /&gt;Although you have had a few answers, the one I use is not in it (yet). A&lt;BR /&gt;solution I've used in the past is the following: You still can use the for&lt;BR /&gt;loop but when your situation occurs that you want to leave the loop you set&lt;BR /&gt;the time constant in your loop (pendule) on Zero. This can be done by using&lt;BR /&gt;the tool at which you can select a TRUE value and a FALSE value and just&lt;BR /&gt;wire the output to the pendule. On this way the whole FOR loop is run&lt;BR /&gt;through, but -if there are no other time delaying statements are in it- the&lt;BR /&gt;loop will finish the last cycles very fast. I used it for detecting a STOP&lt;BR /&gt;sign of the progrm and it goes very well, although it is not a very elegant&lt;BR /&gt;solution.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Pieter Bosstad &lt;BR /&gt;</description>
      <pubDate>Mon, 29 Jan 2001 18:36:05 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/For-loop/m-p/8660#M6837</guid>
      <dc:creator>Pieter Bosstad</dc:creator>
      <dc:date>2001-01-29T18:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: For loop</title>
      <link>https://ni.lithium.com/t5/LabVIEW/For-loop/m-p/8661#M6838</link>
      <description>I don`t know if this is anything like what you`re looking for, but it`s most&lt;BR /&gt;likely how I would solve the problem (And have done in the past).&lt;BR /&gt;&lt;BR /&gt;u can use occurrences to make the two different parts of the program&lt;BR /&gt;dependent on each other.  Generate an ocurrence, wire it into the loop and&lt;BR /&gt;into the other part of the program you want to use.  Set a case structure&lt;BR /&gt;within the loop to set the ocurrence upon the required condition.  Set the&lt;BR /&gt;other part of your program within a sequence, with the first frame waiting&lt;BR /&gt;for the ocurrence.  The code you want to execute after the ocurrence comes&lt;BR /&gt;in the second frame.  Since the other part of the program is waiting for the&lt;BR /&gt;ocurrence (and the transmission of an ocurrence signal is independent of&lt;BR /&gt;dependency or loop status, i.&lt;BR /&gt;e. the ocurrence state can be transmitted&lt;BR /&gt;WITHOUT breaking the loop), this part will then execute once the condition&lt;BR /&gt;is met.  After this, the loop will ocntinue to run (Or can be stopped if you&lt;BR /&gt;prefer).&lt;BR /&gt;&lt;BR /&gt;Anyone else got an idea whether this is the best solution?&lt;BR /&gt;&lt;BR /&gt;Shane O`Neill&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Ips McKornix schrieb in Nachricht &amp;lt;9545gs$geb$1@info.cyf-kr.edu.pl&amp;gt;...&lt;BR /&gt;&amp;gt;Thank you all for all your help but I cannot find the solution.&lt;BR /&gt;&amp;gt;My problem is as follows :&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;I have to get the temperature from the stabiliser every given period of&lt;BR /&gt;&amp;gt;time. I do it in this way : get the temperature and then I set a timer and&lt;BR /&gt;&amp;gt;wait until the period of time passes. Then I do the next measurement and so&lt;BR /&gt;&amp;gt;on.  Meanwhile I may want to set the stabiliser to send the value of&lt;BR /&gt;&amp;gt;temperature in Kelvins or centigrade. Unfortunately it's done only when the&lt;BR /&gt;&amp;gt;timer completes its job. I have to interrupt the loop that makes the timer&lt;BR /&gt;&amp;gt;go and send a request to the stabiliser. That's what I can't do.&lt;BR /&gt;&amp;gt;DO you have any suggests? Any help wil&lt;BR /&gt;l be appreciated.&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;Thanks&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;Ips McKornix&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; &lt;BR /&gt;</description>
      <pubDate>Mon, 29 Jan 2001 18:36:37 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/For-loop/m-p/8661#M6838</guid>
      <dc:creator>shoneill</dc:creator>
      <dc:date>2001-01-29T18:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: For loop</title>
      <link>https://ni.lithium.com/t5/LabVIEW/For-loop/m-p/8662#M6839</link>
      <description>I think this solution is close.  What I would do is to have the timer&lt;BR /&gt;set an occurrence every time it expires.  Have the loop that requests&lt;BR /&gt;the data from the stabiliser wait for an occurrence every iteration.&lt;BR /&gt;Then allow a button or some type of logic (when you want to send a&lt;BR /&gt;request to change the units) also to set the occurrence when pressed.&lt;BR /&gt;This will also trigger the loop to execute, but will not interrupt the&lt;BR /&gt;timer.&lt;BR /&gt;&lt;BR /&gt;I can certainly draw up what I mean rather quickly and email it if&lt;BR /&gt;needed.  Let me know.&lt;BR /&gt;&lt;BR /&gt;Hope that helped.&lt;BR /&gt;&lt;BR /&gt;Mark&lt;BR /&gt;&lt;BR /&gt;In article &amp;lt;954c0g$t2g$1@pollux.ip-plus.net&amp;gt;,&lt;BR /&gt;  "Shane" &lt;SHONEILL&gt; wrote:&lt;BR /&gt;&amp;gt; I don`t know if this is anything like what you`re looking for, but&lt;BR /&gt;it`s most&lt;BR /&gt;&amp;gt; likely how I would solve the problem (And have done in the past).&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; u can use occurrences to make the two different parts of the program&lt;BR /&gt;&amp;gt; dependent on each other.  Generate an ocurrence, wire it into the loop&lt;BR /&gt;and&lt;BR /&gt;&amp;gt; into the other part of the program you want to use.  Set a case&lt;BR /&gt;structure&lt;BR /&gt;&amp;gt; within the loop to set the ocurrence upon the required condition.  Set&lt;BR /&gt;the&lt;BR /&gt;&amp;gt; other part of your program within a sequence, with the first frame&lt;BR /&gt;waiting&lt;BR /&gt;&amp;gt; for the ocurrence.  The code you want to execute after the ocurrence&lt;BR /&gt;comes&lt;BR /&gt;&amp;gt; in the second frame.  Since the other part of the program is waiting&lt;BR /&gt;for the&lt;BR /&gt;&amp;gt; ocurrence (and the transmission of an ocurrence signal is independent&lt;BR /&gt;of&lt;BR /&gt;&amp;gt; dependency or loop status, i.e. the ocurrence state can be transmitted&lt;BR /&gt;&amp;gt; WITHOUT breaking the loop), this part will then execute once the&lt;BR /&gt;condition&lt;BR /&gt;&amp;gt; is met.  After this, the loop will ocntinue to run (Or can be stopped&lt;BR /&gt;if you&lt;BR /&gt;&amp;gt; prefer).&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; Anyone else got an idea whether this is the best solution?&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; Shane O`Neill&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; Ips McKornix schrieb in Nachricht &amp;lt;9545gs$geb$1@info.cyf-kr.edu.pl&amp;gt;...&lt;BR /&gt;&amp;gt; &amp;gt;Thank you all for all your help but I cannot find the solution.&lt;BR /&gt;&amp;gt; &amp;gt;My problem is as follows :&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt;I have to get the temperature from the stabiliser every given period&lt;BR /&gt;of&lt;BR /&gt;&amp;gt; &amp;gt;time. I do it in this way : get the temperature and then I set a&lt;BR /&gt;timer and&lt;BR /&gt;&amp;gt; &amp;gt;wait until the period of time passes. Then I do the next measurement&lt;BR /&gt;and so&lt;BR /&gt;&amp;gt; &amp;gt;on.  Meanwhile I may want to set the stabiliser to send the value of&lt;BR /&gt;&amp;gt; &amp;gt;temperature in Kelvins or centigrade. Unfortunately it's done only&lt;BR /&gt;when the&lt;BR /&gt;&amp;gt; &amp;gt;timer completes its job. I have to interrupt the loop that makes the&lt;BR /&gt;timer&lt;BR /&gt;&amp;gt; &amp;gt;go and send a request to the stabiliser. That's what I can't do.&lt;BR /&gt;&amp;gt; &amp;gt;DO you have any suggests? Any help will be appreciated.&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt;Thanks&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt;Ips McKornix&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Sent via Deja.com&lt;BR /&gt;http://www.deja.com/&lt;BR /&gt;&lt;/SHONEILL&gt;</description>
      <pubDate>Mon, 29 Jan 2001 19:32:04 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/For-loop/m-p/8662#M6839</guid>
      <dc:creator>markwysong</dc:creator>
      <dc:date>2001-01-29T19:32:04Z</dc:date>
    </item>
  </channel>
</rss>

