<?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: Analog read loses data when dragging window in LabVIEW</title>
    <link>https://forums.ni.com/t5/LabVIEW/Analog-read-loses-data-when-dragging-window/m-p/3207446#M930552</link>
    <description>&lt;P&gt;When dragging the window what it your CPU usage?&amp;nbsp; Maybe the buffered data gets overwritten before they are read by your application because of the lack of CPU to process them. Just an idea.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Oct 2015 17:36:58 GMT</pubDate>
    <dc:creator>Michel_Gauvin</dc:creator>
    <dc:date>2015-10-22T17:36:58Z</dc:date>
    <item>
      <title>Analog read loses data when dragging window</title>
      <link>https://forums.ni.com/t5/LabVIEW/Analog-read-loses-data-when-dragging-window/m-p/3207440#M930547</link>
      <description>&lt;P&gt;I'm using DAQmx and have a program that is collecting analog read data from a CDAQ module. There are a few graph controls on the window that data is being displayed to. When I&amp;nbsp;drag the window data collection pauses though until I stop the drag. There is no event structure in the code. Does anyone have thoughts about what the cause can be.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry, I'm not allowed to post the code.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2015 17:26:20 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Analog-read-loses-data-when-dragging-window/m-p/3207440#M930547</guid>
      <dc:creator>Steve_Block</dc:creator>
      <dc:date>2015-10-22T17:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Analog read loses data when dragging window</title>
      <link>https://forums.ni.com/t5/LabVIEW/Analog-read-loses-data-when-dragging-window/m-p/3207444#M930551</link>
      <description>&lt;P&gt;No event structure, huh? Is the acquisition stopping, or just the graphs?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you &lt;EM&gt;sure&lt;/EM&gt; there's no event structure? That sounds like something is stopping the code when a drag event occurs.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2015 17:35:15 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Analog-read-loses-data-when-dragging-window/m-p/3207444#M930551</guid>
      <dc:creator>James.M</dc:creator>
      <dc:date>2015-10-22T17:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: Analog read loses data when dragging window</title>
      <link>https://forums.ni.com/t5/LabVIEW/Analog-read-loses-data-when-dragging-window/m-p/3207446#M930552</link>
      <description>&lt;P&gt;When dragging the window what it your CPU usage?&amp;nbsp; Maybe the buffered data gets overwritten before they are read by your application because of the lack of CPU to process them. Just an idea.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2015 17:36:58 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Analog-read-loses-data-when-dragging-window/m-p/3207446#M930552</guid>
      <dc:creator>Michel_Gauvin</dc:creator>
      <dc:date>2015-10-22T17:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Analog read loses data when dragging window</title>
      <link>https://forums.ni.com/t5/LabVIEW/Analog-read-loses-data-when-dragging-window/m-p/3207449#M930554</link>
      <description>If the PC has poor graphics performance and the graph terminals are in the same loop as the daq read them this behaviour is likely.  Use a producer/consumer architecture and draw the graph in the consumer loop.&lt;BR /&gt;Cheers. Michael.</description>
      <pubDate>Thu, 22 Oct 2015 17:41:25 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Analog-read-loses-data-when-dragging-window/m-p/3207449#M930554</guid>
      <dc:creator>Michael_78</dc:creator>
      <dc:date>2015-10-22T17:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Analog read loses data when dragging window</title>
      <link>https://forums.ni.com/t5/LabVIEW/Analog-read-loses-data-when-dragging-window/m-p/3207450#M930555</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.ni.com/t5/user/viewprofilepage/user-id/22008"&gt;@Michel_Gauvin&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;When dragging the window what it your CPU usage?&amp;nbsp; Maybe the buffered data gets overwritten before they are read by your application because of the lack of CPU to process them. Just an idea.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I was thinking this, but I think it wouldn't be one gigantic gap of data from drag-start to drag-end that is lost. It would be laggy sections of data&amp;nbsp;during the drag that are lost. But I guess we don't know what OP's code looks like, so it's possible.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2015 17:42:14 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Analog-read-loses-data-when-dragging-window/m-p/3207450#M930555</guid>
      <dc:creator>James.M</dc:creator>
      <dc:date>2015-10-22T17:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Analog read loses data when dragging window</title>
      <link>https://forums.ni.com/t5/LabVIEW/Analog-read-loses-data-when-dragging-window/m-p/3207517#M930580</link>
      <description>&lt;P&gt;I had a very similar problem some time ago. &amp;nbsp;I has an Intel Atom based fanless embedded PC, a very low spec machine. &amp;nbsp;Whenever I moved the front panel, the CPU hit about 90% and everything else stopped completely. &amp;nbsp;Charts were the problem. &amp;nbsp;Please correct me if I am wrong, but I think that because&amp;nbsp;charts must store every value written to them, they block the UI thread while they are being written. &amp;nbsp;This is not true for other indicators, as LabVIEW has an intermediate buffer and can update the UI at will. To correct the problem, I moved the chart to a 'UI update' loop and queued its data. I hope this is helpful, &amp;nbsp;Michael.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2015 19:43:24 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Analog-read-loses-data-when-dragging-window/m-p/3207517#M930580</guid>
      <dc:creator>Michael_78</dc:creator>
      <dc:date>2015-10-22T19:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Analog read loses data when dragging window</title>
      <link>https://forums.ni.com/t5/LabVIEW/Analog-read-loses-data-when-dragging-window/m-p/3207547#M930596</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.ni.com/t5/user/viewprofilepage/user-id/102363"&gt;@Michael_78&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I had a very similar problem some time ago. &amp;nbsp;I has an Intel Atom based fanless embedded PC, a very low spec machine. &amp;nbsp;Whenever I moved the front panel, the CPU hit about 90% and everything else stopped completely. &amp;nbsp;Charts were the problem. &amp;nbsp;Please correct me if I am wrong, but I think that because&amp;nbsp;charts must store every value written to them, they block the UI thread while they are being written. &amp;nbsp;This is not true for other indicators, as LabVIEW has an intermediate buffer and can update the UI at will. To correct the problem, I moved the chart to a 'UI update' loop and queued its data. I hope this is helpful, &amp;nbsp;Michael.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So what part of moving to a separate loop fixed the problem? Does the hangup occur at the terminal, so the loop would actually lag at the terminal write node?&lt;/P&gt;
&lt;P&gt;Would the interface still lag in this instance, but just not lose the data because of the queue?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried to simulate the issue here on my own by writing a ton of data to a chart, but what I get is the window drag itself lags/skips and the data doesn't. I run SolidWorks on this machine, though, so it might just be too fast.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2015 20:50:39 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Analog-read-loses-data-when-dragging-window/m-p/3207547#M930596</guid>
      <dc:creator>James.M</dc:creator>
      <dc:date>2015-10-22T20:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Analog read loses data when dragging window</title>
      <link>https://forums.ni.com/t5/LabVIEW/Analog-read-loses-data-when-dragging-window/m-p/3207792#M930680</link>
      <description>&lt;P&gt;The other thing that does not make sense is the AtoD on the DAQ should be FIFO buffered.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Oct 2015 12:56:07 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Analog-read-loses-data-when-dragging-window/m-p/3207792#M930680</guid>
      <dc:creator>Steve_Block</dc:creator>
      <dc:date>2015-10-23T12:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Analog read loses data when dragging window</title>
      <link>https://forums.ni.com/t5/LabVIEW/Analog-read-loses-data-when-dragging-window/m-p/3207821#M930693</link>
      <description>&lt;P&gt;OK, I was wrong, it does not block the UI thread as such, or we would have major probelms with most applications! &amp;nbsp;But it does *seem* to block the loop on a low performance machine. &amp;nbsp;Onboard graphics pre-intel i series with single core processors will probably suffer worst. &amp;nbsp;What machine are you running the application on? &amp;nbsp;As for the buffers, if your delay is in the order of seconds you will have a problem as the FIFO on the DAQ will be comparatively small. &amp;nbsp;Move the charts out of the DAQ read loop and see what happens.&lt;/P&gt;
&lt;P&gt;Michael.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Oct 2015 13:53:49 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Analog-read-loses-data-when-dragging-window/m-p/3207821#M930693</guid>
      <dc:creator>Michael_78</dc:creator>
      <dc:date>2015-10-23T13:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Analog read loses data when dragging window</title>
      <link>https://forums.ni.com/t5/LabVIEW/Analog-read-loses-data-when-dragging-window/m-p/3208099#M930778</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.ni.com/t5/user/viewprofilepage/user-id/54134"&gt;@Steve_Block&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;The other thing that does not make sense is the AtoD on the DAQ should be FIFO buffered.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;What's the exact hardware you are using? What is your sample rate? Can you duplicate the behavior with a simple example?&lt;/P&gt;</description>
      <pubDate>Sat, 24 Oct 2015 12:14:27 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Analog-read-loses-data-when-dragging-window/m-p/3208099#M930778</guid>
      <dc:creator>Michel_Gauvin</dc:creator>
      <dc:date>2015-10-24T12:14:27Z</dc:date>
    </item>
  </channel>
</rss>

