<?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: Trying to create multithreading problems when opening file dialog in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Trying-to-create-multithreading-problems-when-opening-file/m-p/69168#M42663</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The for loop (all loops by the way) is halted until everything in it is&lt;BR /&gt;finished.&lt;BR /&gt;&lt;BR /&gt;Try this:&lt;BR /&gt;&lt;BR /&gt;+ Make a while loop&lt;BR /&gt;+ wire TRUE to the stop criterium.&lt;BR /&gt;+ Put an indicator on the 'I'.&lt;BR /&gt;+ Put a MS Wait in it (e.g. 80 ms), to prevent 100% processor time.&lt;BR /&gt;&lt;BR /&gt;Run it, and the indicator will increase fast.&lt;BR /&gt;&lt;BR /&gt;Now put any dialog in the while loop. E.g. a message box.&lt;BR /&gt;&lt;BR /&gt;The indicator will increase everytime you press 'OK'.&lt;BR /&gt;&lt;BR /&gt;Note: stop by pressing CTRL+. and clicking 'OK' several times.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Wiebe.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;"N Cook" &lt;X&gt; wrote in message&lt;BR /&gt;news:5065000000080000001E6C0000-1031838699000@exchange.ni.com...&lt;BR /&gt;&amp;gt; Warning: Newbie to Labview...&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; I have a problem in a rather complicated VI where bringing up the open&lt;BR /&gt;&amp;gt; file dialog halts some background operations.&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; I would real&lt;BR /&gt;ly like to reproduce this behaviour for various reasons,&lt;BR /&gt;&amp;gt; but am unable to. I've created a simple VI with a for-loop where the&lt;BR /&gt;&amp;gt; index feeds a sine converter which in turn feeds a tank indicator.&lt;BR /&gt;&amp;gt; This produces an oscillating behaviour. To this VI I've added a file&lt;BR /&gt;&amp;gt; dialog control.&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; Regardless of the multithreading setup, I'm unable to get the&lt;BR /&gt;&amp;gt; oscillating of the tank indicator to stop when the dialog is open. Is&lt;BR /&gt;&amp;gt; there something I can do to get this behaviour? I realize it's unusual&lt;BR /&gt;&amp;gt; to try to break things, but it is rather important for me.&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; Thank you,&lt;BR /&gt;&amp;gt; Nigel &lt;BR /&gt;&lt;/X&gt;</description>
    <pubDate>Thu, 19 Dec 2002 08:36:11 GMT</pubDate>
    <dc:creator>wiebe@CARYA</dc:creator>
    <dc:date>2002-12-19T08:36:11Z</dc:date>
    <item>
      <title>Trying to create multithreading problems when opening file dialog</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Trying-to-create-multithreading-problems-when-opening-file/m-p/69167#M42662</link>
      <description>Warning: Newbie to Labview...&lt;BR /&gt;&lt;BR /&gt;I have a problem in a rather complicated VI where bringing up the open file dialog halts some background operations.&lt;BR /&gt;&lt;BR /&gt;I would really like to reproduce this behaviour for various reasons, but am unable to. I've created a simple VI with a for-loop where the index feeds a sine converter which in turn feeds a tank indicator. This produces an oscillating behaviour. To this VI I've added a file dialog control. &lt;BR /&gt;&lt;BR /&gt;Regardless of the multithreading setup, I'm unable to get the oscillating of the tank indicator to stop when the dialog is open. Is there something I can do to get this behaviour? I realize it's unusual to try to break things, but it is rather important for me.&lt;BR /&gt;&lt;BR /&gt;Tha&lt;BR /&gt;nk you,&lt;BR /&gt;Nigel &lt;BR /&gt;</description>
      <pubDate>Thu, 19 Dec 2002 04:07:51 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Trying-to-create-multithreading-problems-when-opening-file/m-p/69167#M42662</guid>
      <dc:creator>N Cook</dc:creator>
      <dc:date>2002-12-19T04:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to create multithreading problems when opening file dialog</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Trying-to-create-multithreading-problems-when-opening-file/m-p/69168#M42663</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The for loop (all loops by the way) is halted until everything in it is&lt;BR /&gt;finished.&lt;BR /&gt;&lt;BR /&gt;Try this:&lt;BR /&gt;&lt;BR /&gt;+ Make a while loop&lt;BR /&gt;+ wire TRUE to the stop criterium.&lt;BR /&gt;+ Put an indicator on the 'I'.&lt;BR /&gt;+ Put a MS Wait in it (e.g. 80 ms), to prevent 100% processor time.&lt;BR /&gt;&lt;BR /&gt;Run it, and the indicator will increase fast.&lt;BR /&gt;&lt;BR /&gt;Now put any dialog in the while loop. E.g. a message box.&lt;BR /&gt;&lt;BR /&gt;The indicator will increase everytime you press 'OK'.&lt;BR /&gt;&lt;BR /&gt;Note: stop by pressing CTRL+. and clicking 'OK' several times.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Wiebe.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;"N Cook" &lt;X&gt; wrote in message&lt;BR /&gt;news:5065000000080000001E6C0000-1031838699000@exchange.ni.com...&lt;BR /&gt;&amp;gt; Warning: Newbie to Labview...&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; I have a problem in a rather complicated VI where bringing up the open&lt;BR /&gt;&amp;gt; file dialog halts some background operations.&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; I would real&lt;BR /&gt;ly like to reproduce this behaviour for various reasons,&lt;BR /&gt;&amp;gt; but am unable to. I've created a simple VI with a for-loop where the&lt;BR /&gt;&amp;gt; index feeds a sine converter which in turn feeds a tank indicator.&lt;BR /&gt;&amp;gt; This produces an oscillating behaviour. To this VI I've added a file&lt;BR /&gt;&amp;gt; dialog control.&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; Regardless of the multithreading setup, I'm unable to get the&lt;BR /&gt;&amp;gt; oscillating of the tank indicator to stop when the dialog is open. Is&lt;BR /&gt;&amp;gt; there something I can do to get this behaviour? I realize it's unusual&lt;BR /&gt;&amp;gt; to try to break things, but it is rather important for me.&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; Thank you,&lt;BR /&gt;&amp;gt; Nigel &lt;BR /&gt;&lt;/X&gt;</description>
      <pubDate>Thu, 19 Dec 2002 08:36:11 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Trying-to-create-multithreading-problems-when-opening-file/m-p/69168#M42663</guid>
      <dc:creator>wiebe@CARYA</dc:creator>
      <dc:date>2002-12-19T08:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to create multithreading problems when opening file dialog</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Trying-to-create-multithreading-problems-when-opening-file/m-p/69169#M42664</link>
      <description>Thanks for your comments Wiebe. I've done what you suggested, but still the indicator continues to increase regardless of any dialog being open. Is there a way to get the indicator from stopping until the dialog is closed?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Nigel &lt;BR /&gt;</description>
      <pubDate>Thu, 19 Dec 2002 16:43:16 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Trying-to-create-multithreading-problems-when-opening-file/m-p/69169#M42664</guid>
      <dc:creator>N Cook</dc:creator>
      <dc:date>2002-12-19T16:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to create multithreading problems when opening file dialog</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Trying-to-create-multithreading-problems-when-opening-file/m-p/69170#M42665</link>
      <description>Nigel,&lt;BR /&gt;&lt;BR /&gt;Try this example. This is what he was talking about.&lt;BR /&gt;&lt;BR /&gt;A loop iteration will not complete until every thing in that iteration is complete. In this case, the dialog does not complete until you press the OK button.&lt;BR /&gt;&lt;BR /&gt;Randy Hoskin&lt;BR /&gt;Applications Engineer&lt;BR /&gt;National Instruments&lt;BR /&gt;http://www.ni.com/ask &lt;BR /&gt;</description>
      <pubDate>Thu, 19 Dec 2002 18:36:22 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Trying-to-create-multithreading-problems-when-opening-file/m-p/69170#M42665</guid>
      <dc:creator>Randy_H</dc:creator>
      <dc:date>2002-12-19T18:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to create multithreading problems when opening file dialog</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Trying-to-create-multithreading-problems-when-opening-file/m-p/69171#M42666</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Are you sure you've put the message box in the while loop? It has to popup&lt;BR /&gt;several times, not just once.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Wiebe.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;"N Cook" &lt;X&gt; wrote in message&lt;BR /&gt;news:50650000000500000077BE0000-1031838699000@exchange.ni.com...&lt;BR /&gt;&amp;gt; Thanks for your comments Wiebe. I've done what you suggested, but&lt;BR /&gt;&amp;gt; still the indicator continues to increase regardless of any dialog&lt;BR /&gt;&amp;gt; being open. Is there a way to get the indicator from stopping until&lt;BR /&gt;&amp;gt; the dialog is closed?&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; Thanks,&lt;BR /&gt;&amp;gt; Nigel &lt;BR /&gt;&lt;/X&gt;</description>
      <pubDate>Fri, 20 Dec 2002 10:06:05 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Trying-to-create-multithreading-problems-when-opening-file/m-p/69171#M42666</guid>
      <dc:creator>wiebe@CARYA</dc:creator>
      <dc:date>2002-12-20T10:06:05Z</dc:date>
    </item>
  </channel>
</rss>

