<?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 VISA bug in LabVIEW</title>
    <link>https://forums.ni.com/t5/LabVIEW/VISA-bug/m-p/30551#M20249</link>
    <description>Firstly, I'm using LabVIEW 5.1.1&lt;BR /&gt;I have a program which continually talks to the serial port, using the VISA&lt;BR /&gt;vi's.  My program talks to a device through the com port, requesting a&lt;BR /&gt;"status packet" of 9 bytes to be sent back.&lt;BR /&gt;&lt;BR /&gt;This all works well, I recieve all the right values, etc, until one case&lt;BR /&gt;occurs.  When the 4th byte returned by the device is a 10, (the first three&lt;BR /&gt;are 0's), the VISA read vi doesn't read the rest of the data in.  (I&lt;BR /&gt;definately asked it for 9 bytes), but only 4 get read.&lt;BR /&gt;&lt;BR /&gt;Can somebody tell me if this is a known bug in LabVIEW, or what, cause its&lt;BR /&gt;confusing the hell outta me!&lt;BR /&gt;I looked for any possible explaination, without success, (but I'm a mere&lt;BR /&gt;novice!).&lt;BR /&gt;&lt;BR /&gt;Any help would be greatly appreciated!&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Slade Squire&lt;BR /&gt;Programmer&lt;BR /&gt;Rectifier Technolo&lt;BR /&gt;gies Pacific&lt;BR /&gt;Melbourne, Australia&lt;BR /&gt;SladeSquire@rtp.com.au &lt;BR /&gt;</description>
    <pubDate>Wed, 12 Dec 2001 06:05:59 GMT</pubDate>
    <dc:creator>Slade Squire</dc:creator>
    <dc:date>2001-12-12T06:05:59Z</dc:date>
    <item>
      <title>VISA bug</title>
      <link>https://forums.ni.com/t5/LabVIEW/VISA-bug/m-p/30551#M20249</link>
      <description>Firstly, I'm using LabVIEW 5.1.1&lt;BR /&gt;I have a program which continually talks to the serial port, using the VISA&lt;BR /&gt;vi's.  My program talks to a device through the com port, requesting a&lt;BR /&gt;"status packet" of 9 bytes to be sent back.&lt;BR /&gt;&lt;BR /&gt;This all works well, I recieve all the right values, etc, until one case&lt;BR /&gt;occurs.  When the 4th byte returned by the device is a 10, (the first three&lt;BR /&gt;are 0's), the VISA read vi doesn't read the rest of the data in.  (I&lt;BR /&gt;definately asked it for 9 bytes), but only 4 get read.&lt;BR /&gt;&lt;BR /&gt;Can somebody tell me if this is a known bug in LabVIEW, or what, cause its&lt;BR /&gt;confusing the hell outta me!&lt;BR /&gt;I looked for any possible explaination, without success, (but I'm a mere&lt;BR /&gt;novice!).&lt;BR /&gt;&lt;BR /&gt;Any help would be greatly appreciated!&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Slade Squire&lt;BR /&gt;Programmer&lt;BR /&gt;Rectifier Technolo&lt;BR /&gt;gies Pacific&lt;BR /&gt;Melbourne, Australia&lt;BR /&gt;SladeSquire@rtp.com.au &lt;BR /&gt;</description>
      <pubDate>Wed, 12 Dec 2001 06:05:59 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/VISA-bug/m-p/30551#M20249</guid>
      <dc:creator>Slade Squire</dc:creator>
      <dc:date>2001-12-12T06:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: VISA bug</title>
      <link>https://forums.ni.com/t5/LabVIEW/VISA-bug/m-p/30552#M20250</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;No, this is the default terminate character.&lt;BR /&gt;You will need to set to terminator chararter to something else.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Ray Farmer &lt;BR /&gt;</description>
      <pubDate>Wed, 12 Dec 2001 08:23:03 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/VISA-bug/m-p/30552#M20250</guid>
      <dc:creator>RayFarmer</dc:creator>
      <dc:date>2001-12-12T08:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: VISA bug</title>
      <link>https://forums.ni.com/t5/LabVIEW/VISA-bug/m-p/30553#M20251</link>
      <description>Hi,&lt;BR /&gt;  the problem is the VISA termination character, which defaults to 10. If you want to change the termination character to another value, you need to create a property node and change the value (preferably to something that doesn't occur often, I have used 255 in the past). Theoretically you can disable the termination character (there is an option to do this under the VISA properties), but that doesn't always work (certainly under NT I have never been able to disable the termination character).&lt;BR /&gt;&lt;BR /&gt;If you want to avoid these problems with termination characters all together, use the basic serial drivers with LabView. They are not as comprehensive as the VISA drivers, but they don't have this trouble with termination characters.&lt;BR /&gt;&lt;BR /&gt;Hope that helps,&lt;BR /&gt;Jonathan &lt;BR /&gt;</description>
      <pubDate>Wed, 12 Dec 2001 10:14:59 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/VISA-bug/m-p/30553#M20251</guid>
      <dc:creator>JonM</dc:creator>
      <dc:date>2001-12-12T10:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: VISA bug</title>
      <link>https://forums.ni.com/t5/LabVIEW/VISA-bug/m-p/30554#M20252</link>
      <description>Slade:&lt;BR /&gt;&lt;BR /&gt;The way to disable the termchar in Serial is to set the Serial End In Mode to none (0).  You use a property node to do this.  The VISA driver treats that character as an End indicator (similar to EOI in GPIB) by default, not just as termchar.  That is why setting the Termchar Enable to false does not help.&lt;BR /&gt;&lt;BR /&gt;Dan Mondrik&lt;BR /&gt;Senior Software Engineer, NI-VISA&lt;BR /&gt;National Instruments &lt;BR /&gt;</description>
      <pubDate>Wed, 12 Dec 2001 17:43:11 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/VISA-bug/m-p/30554#M20252</guid>
      <dc:creator>Dan_Mondrik</dc:creator>
      <dc:date>2001-12-12T17:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: VISA bug</title>
      <link>https://forums.ni.com/t5/LabVIEW/VISA-bug/m-p/30555#M20253</link>
      <description>Hi Slade,&lt;BR /&gt;A workaround is to do another reading when receive less bytes than expected ... this will give you the remaining string. Concatenate them including that “10” and you will have the valid string. Anyway, if you receive less than 9, check if there are more before reading again (in order to avoid interpreting a possible error as a “10” occurence).&lt;BR /&gt;Hope this helps &lt;BR /&gt;</description>
      <pubDate>Wed, 12 Dec 2001 18:42:47 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/VISA-bug/m-p/30555#M20253</guid>
      <dc:creator>Lab Viewer</dc:creator>
      <dc:date>2001-12-12T18:42:47Z</dc:date>
    </item>
  </channel>
</rss>

