<?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: Items not being enqueued in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Items-not-being-enqueued/m-p/3130597#M899755</link>
    <description>&lt;P&gt;Hi Intaris,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A bit more info--the preview was just a troubleshooting measure to make sure that the item was being enqueued correctly. &amp;nbsp;My dequeue is attached below and is inside a while loop connected to a case structure. &amp;nbsp;I'm also included a capture of the type of enqueue that is being used inside the consumer loop to automatically advance as necessary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Brendan&lt;/P&gt;</description>
    <pubDate>Wed, 06 May 2015 14:08:31 GMT</pubDate>
    <dc:creator>Brendan222</dc:creator>
    <dc:date>2015-05-06T14:08:31Z</dc:date>
    <item>
      <title>Items not being enqueued</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Items-not-being-enqueued/m-p/3130580#M899744</link>
      <description>&lt;P&gt;I've got a relatively straightforward queued state machine with enum as my queue data type. &amp;nbsp; Everything has been going well for several days, but I made some minor changes yesterday (tried undoing, thought I covered everything) and now i've got a problem with enqueuing and dequeuing certain states. &amp;nbsp;My QSM runs through the first three states automatically. &amp;nbsp;It then enters another state upon user input, then returns to state three. &amp;nbsp;All of this happens correctly. &amp;nbsp;When I try to enter the "initialize interview" state, however, the queue seems to break. &amp;nbsp;Although an element seems to be added correctly (per the preview function), the consumer loop returns to the default state. &amp;nbsp;Additionally, this default state is the first state, which correctly queued an element and advanced to the next state during startup. &amp;nbsp;Initially, all references to the queue were by local variable for the queue, as shown on the right. &amp;nbsp;As a troubleshooting measure, I tried&amp;nbsp;obtaining some of them by name. &amp;nbsp;This seems to help a little bit, but there are still some erratic outcomes.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One other note: &amp;nbsp;If I restart labview, the QSM makes it past the "initialize interview" error, but hangs the next time the producer loop is activated, even though nothing more is enqueed. &amp;nbsp;As with the above scenario, the queue cannot be changed after the consumer loop returns to the default state, even though it appears to continue looping. &amp;nbsp;I'm attaching a picture of the obtain and enqueue functions where the problem originates.&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2015 14:09:56 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Items-not-being-enqueued/m-p/3130580#M899744</guid>
      <dc:creator>Brendan222</dc:creator>
      <dc:date>2015-05-06T14:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Items not being enqueued</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Items-not-being-enqueued/m-p/3130581#M899745</link>
      <description>&lt;P&gt;Way not enough information but a quick comment: the dequeue operation shouldn't be in an event structure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ben64&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2015 13:50:55 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Items-not-being-enqueued/m-p/3130581#M899745</guid>
      <dc:creator>ben64</dc:creator>
      <dc:date>2015-05-06T13:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Items not being enqueued</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Items-not-being-enqueued/m-p/3130592#M899751</link>
      <description>&lt;P&gt;You are previewing the queue, not reading from it meaning that you will NOT remove old values each iteration.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Replace the "Preview Queue" with "Read from Queue" and all should be OK.&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2015 14:01:49 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Items-not-being-enqueued/m-p/3130592#M899751</guid>
      <dc:creator>Intaris</dc:creator>
      <dc:date>2015-05-06T14:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Items not being enqueued</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Items-not-being-enqueued/m-p/3130597#M899755</link>
      <description>&lt;P&gt;Hi Intaris,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A bit more info--the preview was just a troubleshooting measure to make sure that the item was being enqueued correctly. &amp;nbsp;My dequeue is attached below and is inside a while loop connected to a case structure. &amp;nbsp;I'm also included a capture of the type of enqueue that is being used inside the consumer loop to automatically advance as necessary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Brendan&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2015 14:08:31 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Items-not-being-enqueued/m-p/3130597#M899755</guid>
      <dc:creator>Brendan222</dc:creator>
      <dc:date>2015-05-06T14:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: Items not being enqueued</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Items-not-being-enqueued/m-p/3130600#M899757</link>
      <description>&lt;P&gt;OK, giving us little bits of your program whenever you feel fit isn't going to get us anywhere quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why don't you post your VI (and information regarding which LV version it's in) and we'll look further.&amp;nbsp; If you can't post it all, try to break it down.&amp;nbsp; Often, the problem becomes apparent when you try to get an example going for the forums.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My avatar isn't a rubber duck for nothing!&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2015 14:11:16 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Items-not-being-enqueued/m-p/3130600#M899757</guid>
      <dc:creator>Intaris</dc:creator>
      <dc:date>2015-05-06T14:11:16Z</dc:date>
    </item>
  </channel>
</rss>

