<?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: visa read doesnot show output from read buffer in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/visa-read-doesnot-show-output-from-read-buffer/m-p/1216885#M519829</link>
    <description>&lt;P&gt;Maybe there is nothing there to read?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this put your read in a loop and wait for ther eto be something in the read buffer before doing the actual read.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then set your bytes to read to some large amout.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now it will wait until there are bytes to be read and then read all teh bytes until it times out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might have to play with the number of bytes to be read, the VISA timeout time to tweak for best performance.&lt;/P&gt;</description>
    <pubDate>Mon, 16 Aug 2010 15:10:02 GMT</pubDate>
    <dc:creator>RTSLVU</dc:creator>
    <dc:date>2010-08-16T15:10:02Z</dc:date>
    <item>
      <title>visa read doesnot show output from read buffer</title>
      <link>https://ni.lithium.com/t5/LabVIEW/visa-read-doesnot-show-output-from-read-buffer/m-p/1216683#M519795</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I may be making some silly mistake, but my read buffer doesnot show any output in the indicator, it only shows 1. I am attaching the VI alongwith. Please help me out here, because I am really stuck. Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2010 13:21:19 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/visa-read-doesnot-show-output-from-read-buffer/m-p/1216683#M519795</guid>
      <dc:creator>mssrb</dc:creator>
      <dc:date>2010-08-16T13:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: visa read doesnot show output from read buffer</title>
      <link>https://ni.lithium.com/t5/LabVIEW/visa-read-doesnot-show-output-from-read-buffer/m-p/1216881#M519827</link>
      <description>&lt;P&gt;You've configured your VISA session to have the termination character enabled for reads. That's the True constant wired to the VISA Configure Serial Port. Yet you are using Bytes at Serial Port. If you're using termination characters then using Bytes at Serial Port is not necessary. Just wire a large enough number to the "bytes to read" input of VISA Read, and the read will terminate once it sees the termination character. Be sure to set the correct termination character in the VISA Configure Serial Port.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In looking briefly at the manual for the SR830 I noticed it says that commands should be terminated with a carriage return OR a linefeed, not AND. You are sending both. I do not know if the SR830 is treating this as two commands, with one of them being empty.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do not know if the above is the cause of your problem. If not, then I'd have to guess it's probably one of your commands being incorrect. You'd need to look at the manual in depth to see if this is the problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Aside: Your sequence frame is completely unnecessary. Use the error clusters for the Time Delay to control when they get executed, and ALL of your sequence frames can be deleted.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2010 15:08:31 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/visa-read-doesnot-show-output-from-read-buffer/m-p/1216881#M519827</guid>
      <dc:creator>smercurio_fc</dc:creator>
      <dc:date>2010-08-16T15:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: visa read doesnot show output from read buffer</title>
      <link>https://ni.lithium.com/t5/LabVIEW/visa-read-doesnot-show-output-from-read-buffer/m-p/1216885#M519829</link>
      <description>&lt;P&gt;Maybe there is nothing there to read?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this put your read in a loop and wait for ther eto be something in the read buffer before doing the actual read.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then set your bytes to read to some large amout.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now it will wait until there are bytes to be read and then read all teh bytes until it times out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might have to play with the number of bytes to be read, the VISA timeout time to tweak for best performance.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2010 15:10:02 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/visa-read-doesnot-show-output-from-read-buffer/m-p/1216885#M519829</guid>
      <dc:creator>RTSLVU</dc:creator>
      <dc:date>2010-08-16T15:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: visa read doesnot show output from read buffer</title>
      <link>https://ni.lithium.com/t5/LabVIEW/visa-read-doesnot-show-output-from-read-buffer/m-p/1217087#M519865</link>
      <description>&lt;P&gt;Thank you guyz for your replies they are very helpful. I removed the bytes at port and a byte count of 8 in the VISA read seems to give me the result. I must confess that I had to change the write command string too as it was incorrect. It's not FPOP but OUTR. Now I can read the data. Thank you guyz again.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2010 17:19:20 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/visa-read-doesnot-show-output-from-read-buffer/m-p/1217087#M519865</guid>
      <dc:creator>mssrb</dc:creator>
      <dc:date>2010-08-16T17:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: visa read doesnot show output from read buffer</title>
      <link>https://ni.lithium.com/t5/LabVIEW/visa-read-doesnot-show-output-from-read-buffer/m-p/1217133#M519876</link>
      <description>&lt;P&gt;Actually I must also say that the earlier command that I utilised gives me the Value of the Quantity i am measuring which is represented by 1. So, I was getting 1. But, the&amp;nbsp;setting&amp;nbsp;up of the bytes at VISA read was something that I learned from here, I always thought that I had to use bytes at port. Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2010 18:07:15 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/visa-read-doesnot-show-output-from-read-buffer/m-p/1217133#M519876</guid>
      <dc:creator>mssrb</dc:creator>
      <dc:date>2010-08-16T18:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: visa read doesnot show output from read buffer</title>
      <link>https://ni.lithium.com/t5/LabVIEW/visa-read-doesnot-show-output-from-read-buffer/m-p/1217263#M519911</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/159273"&gt;@mssrb&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;But, the&amp;nbsp;setting&amp;nbsp;up of the bytes at VISA read was something that I learned from here, I always thought that I had to use bytes at port. Thanks.&lt;/P&gt;
&lt;HR /&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are not completely understanding. It depends on the type of communication that you're doing. If you're using the termination character then there is no need for the Bytes at Serial Port since. VISA Read WILL stop reading once it sees the termination character OR it has read the number of bytes you've wired to the "bytes to read" input. Thus, if the device returns a message that's 50 bytes plus 1 byte for the termination, if you wire in a value of 25 to the "bytes to read", then all you'll get is the first 25 bytes. If you wire in a value of 200, then the VISA Read will stop once it gets to 51 bytes because it sees the termination character.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are NOT using a termination character then you want to use Bytes at Serial Port since you have to basically keep reading until whatever condition occurs that indicates you have the entire message.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, it is polite to mark the message that actually solved your issue (whichever it is), rather than marking your own thank you message as the solution.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2010 19:53:54 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/visa-read-doesnot-show-output-from-read-buffer/m-p/1217263#M519911</guid>
      <dc:creator>smercurio_fc</dc:creator>
      <dc:date>2010-08-16T19:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: visa read doesnot show output from read buffer</title>
      <link>https://ni.lithium.com/t5/LabVIEW/visa-read-doesnot-show-output-from-read-buffer/m-p/1217283#M519917</link>
      <description>&lt;P&gt;I am sorry for the mistake. LOL&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2010 20:14:24 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/visa-read-doesnot-show-output-from-read-buffer/m-p/1217283#M519917</guid>
      <dc:creator>mssrb</dc:creator>
      <dc:date>2010-08-16T20:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: visa read doesnot show output from read buffer</title>
      <link>https://ni.lithium.com/t5/LabVIEW/visa-read-doesnot-show-output-from-read-buffer/m-p/1532530#M569314</link>
      <description>&lt;P&gt;Hi.. Even I am facing same problem. Visa&amp;nbsp;read doesnt work sometimes in between. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have not enabled termination character. I am using Instruction bytes at port.Please let me know what could be the problem&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2011 10:52:06 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/visa-read-doesnot-show-output-from-read-buffer/m-p/1532530#M569314</guid>
      <dc:creator>30904407</dc:creator>
      <dc:date>2011-04-21T10:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: visa read doesnot show output from read buffer</title>
      <link>https://ni.lithium.com/t5/LabVIEW/visa-read-doesnot-show-output-from-read-buffer/m-p/1532852#M569372</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/180080"&gt;@30904407&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi.. Even I am facing same problem. Visa&amp;nbsp;read doesnt work sometimes in between. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have not enabled termination character. I am using Instruction bytes at port.Please let me know what could be the problem&lt;/P&gt;
&lt;HR /&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We are not mind readers. You have not shown us any code, and to say "doesn't work sometimes in between" means nothing. What does "doesn't work" mean? &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;You should start a new thread&lt;/U&gt; rather than hijacking someone else's thread where the question shows as having a solution. &lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2011 14:18:30 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/visa-read-doesnot-show-output-from-read-buffer/m-p/1532852#M569372</guid>
      <dc:creator>smercurio_fc</dc:creator>
      <dc:date>2011-04-21T14:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: visa read doesnot show output from read buffer</title>
      <link>https://ni.lithium.com/t5/LabVIEW/visa-read-doesnot-show-output-from-read-buffer/m-p/3307064#M967976</link>
      <description>&lt;P&gt;@RTSLVU,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I ask what is that grey box around your components? Is it a loop? I am trying to follow a vi which has that box around a time delay 'wait ms' but i cannot find it in labview palettes.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2016 14:11:08 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/visa-read-doesnot-show-output-from-read-buffer/m-p/3307064#M967976</guid>
      <dc:creator>lolasue</dc:creator>
      <dc:date>2016-06-09T14:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: visa read doesnot show output from read buffer</title>
      <link>https://ni.lithium.com/t5/LabVIEW/visa-read-doesnot-show-output-from-read-buffer/m-p/3307074#M967979</link>
      <description>&lt;P&gt;That is a flat sequence structure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hard to tell from that part of the screenshot if it is truly needed.&amp;nbsp; Sequence structures are often abused when they are put in and not needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would recommend looking at the online LabVIEW tutorials&lt;BR /&gt;&lt;A href="http://zone.ni.com/devzone/cda/tut/p/id/5243" target="_blank"&gt;&lt;FONT color="#3366cc"&gt;LabVIEW Introduction Course&amp;nbsp;&lt;/FONT&gt;&lt;FONT color="#3366cc"&gt;- Three Hours&lt;/FONT&gt;&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://zone.ni.com/devzone/cda/tut/p/id/5241" target="_blank"&gt;&lt;FONT color="#3366cc"&gt;LabVIEW Introduction Course &lt;/FONT&gt;&lt;FONT color="#3366cc"&gt;- Six Hours&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2016 14:20:49 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/visa-read-doesnot-show-output-from-read-buffer/m-p/3307074#M967979</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2016-06-09T14:20:49Z</dc:date>
    </item>
  </channel>
</rss>

