<?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: OPC Datasocket server too slow in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/OPC-Datasocket-server-too-slow/m-p/564996#M265156</link>
    <description>Stephanie:&lt;BR /&gt;&lt;BR /&gt;I am using 5 Data Socket Reads using variant data type. The reads are in a run while loop without a timer, working as fast as possible. Every update takes 15 seconds. The Data Socket Reads work normally using the Labview Demo Server instead of the Octavis Server. (Very Fast)&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 13 Aug 2007 19:33:39 GMT</pubDate>
    <dc:creator>Fred Bauer</dc:creator>
    <dc:date>2007-08-13T19:33:39Z</dc:date>
    <item>
      <title>OPC Datasocket server too slow</title>
      <link>https://ni.lithium.com/t5/LabVIEW/OPC-Datasocket-server-too-slow/m-p/564549#M264974</link>
      <description>I am using datasocket read with an IFM Octavis server to bring data into Labview. The read update takes 15 seconds. This is not a timing issue. The instruction really takes that long to execute. IFM says the update time is a function of the client. In other words the problem is in the Labview. &lt;BR /&gt;&lt;BR /&gt;Any Suggestions?&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 12 Aug 2007 19:45:12 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/OPC-Datasocket-server-too-slow/m-p/564549#M264974</guid>
      <dc:creator>Fred Bauer</dc:creator>
      <dc:date>2007-08-12T19:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: OPC Datasocket server too slow</title>
      <link>https://ni.lithium.com/t5/LabVIEW/OPC-Datasocket-server-too-slow/m-p/564968#M265145</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hi Fred,&lt;/P&gt;
&lt;P&gt;What version of LabVIEW are you using? What type of data are you reading and how often are you trying to read it? How often is the data being updated? &lt;A href="http://digital.ni.com/public.nsf/allkb/2D9C6D73A160537986256B290076456E?OpenDocument" target="_blank"&gt;This KnowledgeBase entry&lt;/A&gt; contains a few things for you to try - let me know the results. Thanks! &lt;/P&gt;
&lt;P&gt;Stephanie&lt;/P&gt;</description>
      <pubDate>Mon, 13 Aug 2007 18:52:00 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/OPC-Datasocket-server-too-slow/m-p/564968#M265145</guid>
      <dc:creator>Stephanie B</dc:creator>
      <dc:date>2007-08-13T18:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: OPC Datasocket server too slow</title>
      <link>https://ni.lithium.com/t5/LabVIEW/OPC-Datasocket-server-too-slow/m-p/564996#M265156</link>
      <description>Stephanie:&lt;BR /&gt;&lt;BR /&gt;I am using 5 Data Socket Reads using variant data type. The reads are in a run while loop without a timer, working as fast as possible. Every update takes 15 seconds. The Data Socket Reads work normally using the Labview Demo Server instead of the Octavis Server. (Very Fast)&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 13 Aug 2007 19:33:39 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/OPC-Datasocket-server-too-slow/m-p/564996#M265156</guid>
      <dc:creator>Fred Bauer</dc:creator>
      <dc:date>2007-08-13T19:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: OPC Datasocket server too slow</title>
      <link>https://ni.lithium.com/t5/LabVIEW/OPC-Datasocket-server-too-slow/m-p/564998#M265157</link>
      <description>And my Labview Verson is 8.2&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 13 Aug 2007 19:35:09 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/OPC-Datasocket-server-too-slow/m-p/564998#M265157</guid>
      <dc:creator>Fred Bauer</dc:creator>
      <dc:date>2007-08-13T19:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: OPC Datasocket server too slow</title>
      <link>https://ni.lithium.com/t5/LabVIEW/OPC-Datasocket-server-too-slow/m-p/565404#M265349</link>
      <description>Hi fred,&lt;BR /&gt;&lt;BR /&gt;Correct me if I am wrong, but it seems to me, after your comment, that the Octavis Server is holding up your data from being sent to LabVIEW.&amp;nbsp;&amp;nbsp; Since it runs quite fast using the LabVIEW server, it seems like it has to do more with how the Octavis server is sending data.&amp;nbsp; One thing that got me concerned as well is that you do not have any timing in your while loop- this is extremely bad, as it could cause your processor to use all of its cycles on your processes, thus cripling it from doing other tasks.&amp;nbsp; Have you tried adding some timing?&amp;nbsp; Have you tried just using one datasocket read and testing the speed with that?&lt;BR /&gt;&lt;BR /&gt;I hope this helps,&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Nadim&lt;BR /&gt;Applications Engineering&lt;BR /&gt;National Instruments&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Aug 2007 15:00:49 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/OPC-Datasocket-server-too-slow/m-p/565404#M265349</guid>
      <dc:creator>Nadim R</dc:creator>
      <dc:date>2007-08-14T15:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: OPC Datasocket server too slow</title>
      <link>https://ni.lithium.com/t5/LabVIEW/OPC-Datasocket-server-too-slow/m-p/565431#M265362</link>
      <description>Using a OCP Client Demo software it is possible to get one second updates.&amp;nbsp; Not fast, but better results. Yes, it does appear the fault is with the Octavis Server but they deny this and there is nothing I can do about it. I can only try to fix from my end, with the Labview. &lt;BR /&gt;&lt;BR /&gt;I am aware that while loops usually require a timer to limit processor use, but the loop takes 15 seconds to execute, so this is hardly a problem. If you use a 1 second timer it won't work at all because it's not enough time to finish. &lt;BR /&gt;&lt;BR /&gt;I don't know any other approach for reading from the Octavis OPC server other than using DataSocket Read. Is there some other way it could be done, some other method? &lt;BR /&gt;  &lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Aug 2007 15:31:09 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/OPC-Datasocket-server-too-slow/m-p/565431#M265362</guid>
      <dc:creator>Fred Bauer</dc:creator>
      <dc:date>2007-08-14T15:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: OPC Datasocket server too slow</title>
      <link>https://ni.lithium.com/t5/LabVIEW/OPC-Datasocket-server-too-slow/m-p/565447#M265370</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;The reason that loops need a small delay is to prevent race conditions.&amp;nbsp; &lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;1 second is not the minimum value&amp;nbsp;try 1ms&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;this is a delay of the loop&amp;nbsp;NOT an elapsed timer that will move on to the next iteration after the time expires&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;The wait(ms) or time delay VIs will finish the loop iteration before moving on to the next iteration&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;use the wait(ms) with a value of 1 or if you need flow control use the time delay express vi with a value of .001&lt;/DIV&gt;&lt;P&gt;Message Edited by James R on &lt;SPAN class="date_text"&gt;08-14-2007&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;10:46 AM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2007 15:45:39 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/OPC-Datasocket-server-too-slow/m-p/565447#M265370</guid>
      <dc:creator>James_R</dc:creator>
      <dc:date>2007-08-14T15:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: OPC Datasocket server too slow</title>
      <link>https://ni.lithium.com/t5/LabVIEW/OPC-Datasocket-server-too-slow/m-p/565459#M265382</link>
      <description>Just to be perfectly clear here, the loop is taking 15 seconds to execute. Four per minute as incredibly slow as that sounds. &lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Aug 2007 15:58:28 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/OPC-Datasocket-server-too-slow/m-p/565459#M265382</guid>
      <dc:creator>Fred Bauer</dc:creator>
      <dc:date>2007-08-14T15:58:28Z</dc:date>
    </item>
  </channel>
</rss>

