<?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 Issues in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Visa-Issues/m-p/885633#M400289</link>
    <description>I don't know why you would post a vI that is on the Instrument I/O&amp;gt;Serial palette especially since it is not used in the intialize VI and there is nothing in the VISA Configure Serial Port for termination characters on a write. The initialize function does have code to add a LF as a term character on a write. Check the manual to see if that is correct or whether you need a CR or LF/CR. Also check to see whether you can communicate to the instrument with Hyperterminal. If you can't you might have the wrong type of serial cable or incorrect com port settings.</description>
    <pubDate>Tue, 07 Apr 2009 15:58:47 GMT</pubDate>
    <dc:creator>Dennis_Knutson</dc:creator>
    <dc:date>2009-04-07T15:58:47Z</dc:date>
    <item>
      <title>Visa Issues</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Visa-Issues/m-p/885455#M400229</link>
      <description>&lt;P&gt;&amp;nbsp;I am trying to modify&amp;nbsp; the driver that comes with the lakeshore 311 temperature controller. The sample VI only had GPIB connectivity, but I would like to use serial. I have cheked that the port is working properly, but I always get the same error from VISA READ telling me that the visa has timedout. I think there maybe an issue with the terminating character. I attached my code below. The program is in lsci331 and is called "getting started temperature", the error is in the initialize VI. The 3 missing VIs--write to serial, clean up and default setup--can be found in lsci311u. Any help would be greatly appreciated. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the serial info about the controller&lt;/P&gt;&lt;P&gt;Timing format: Asynchonous&lt;/P&gt;&lt;P&gt;Transmission Mode: Half Duplex&lt;/P&gt;&lt;P&gt;Baud RAte: 300,1200,9600&lt;/P&gt;&lt;P&gt;Handshake: Software timing&lt;/P&gt;&lt;P&gt;Character bits; 1 start, 7 data, 1 parity, 1 stop&lt;/P&gt;&lt;P&gt;Parity: Odd&lt;/P&gt;&lt;P&gt;Terminators: CR, LF&lt;/P&gt;&lt;P&gt;Command Rate: 20 per sec maximum &lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2009 12:37:40 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Visa-Issues/m-p/885455#M400229</guid>
      <dc:creator>wowden</dc:creator>
      <dc:date>2009-04-07T12:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Visa Issues</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Visa-Issues/m-p/885482#M400237</link>
      <description>Have a look at the attached &lt;A href="http://www.ni.com/support/visa/vintro.pdf" target="_blank"&gt;document&lt;/A&gt;. Page 23 explains something about termination characters.</description>
      <pubDate>Tue, 07 Apr 2009 13:32:58 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Visa-Issues/m-p/885482#M400237</guid>
      <dc:creator>andre.buurman@carya</dc:creator>
      <dc:date>2009-04-07T13:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Visa Issues</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Visa-Issues/m-p/885612#M400281</link>
      <description>The issue I am having is I am using a configure visa vi that i did not write and am unsure how to write a LF character to the end. Here is the VI, i am currently passing in a value of 10 for termination char.</description>
      <pubDate>Tue, 07 Apr 2009 15:36:57 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Visa-Issues/m-p/885612#M400281</guid>
      <dc:creator>wowden</dc:creator>
      <dc:date>2009-04-07T15:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Visa Issues</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Visa-Issues/m-p/885633#M400289</link>
      <description>I don't know why you would post a vI that is on the Instrument I/O&amp;gt;Serial palette especially since it is not used in the intialize VI and there is nothing in the VISA Configure Serial Port for termination characters on a write. The initialize function does have code to add a LF as a term character on a write. Check the manual to see if that is correct or whether you need a CR or LF/CR. Also check to see whether you can communicate to the instrument with Hyperterminal. If you can't you might have the wrong type of serial cable or incorrect com port settings.</description>
      <pubDate>Tue, 07 Apr 2009 15:58:47 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Visa-Issues/m-p/885633#M400289</guid>
      <dc:creator>Dennis_Knutson</dc:creator>
      <dc:date>2009-04-07T15:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: Visa Issues</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Visa-Issues/m-p/885660#M400298</link>
      <description>How do I check to see if i have a connection using &lt;SPAN class="noindex"&gt;Hyperterminal? Also, I changed my initlization code to include the configure visa VI. I attached the new VI below.&amp;nbsp; &lt;/SPAN&gt;</description>
      <pubDate>Tue, 07 Apr 2009 16:22:04 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Visa-Issues/m-p/885660#M400298</guid>
      <dc:creator>wowden</dc:creator>
      <dc:date>2009-04-07T16:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Visa Issues</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Visa-Issues/m-p/885664#M400301</link>
      <description>&lt;P&gt;You just made things a lot worse by modifying the initialize function. Now you have nothing that sets a term character for a write and the first write in the initialize is going to fail every time. It's not a good idea to make random changes withoug understanding what the ramifications are.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hyperterminal is a utility program that ships with windows. If it's installed, in windows you get to it from Start&amp;gt;Programs&amp;gt;Accessories&amp;gt;Communication.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you check on any of the other questions? What does the manual say to use as termination character? What does the manual say about the type of cable to use.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2009 16:30:08 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Visa-Issues/m-p/885664#M400301</guid>
      <dc:creator>Dennis_Knutson</dc:creator>
      <dc:date>2009-04-07T16:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: Visa Issues</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Visa-Issues/m-p/885998#M400430</link>
      <description>The connector type is a 9 pin D-Style plug. The manual states that the CR and LF are used to indicate the end of a message string.</description>
      <pubDate>Wed, 08 Apr 2009 07:49:15 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Visa-Issues/m-p/885998#M400430</guid>
      <dc:creator>wowden</dc:creator>
      <dc:date>2009-04-08T07:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Visa Issues</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Visa-Issues/m-p/886076#M400460</link>
      <description>&lt;P&gt;When you're using MS VISTA, Hyperterminal is not installed, you will have to get it from this &lt;A href="http://www.telecomwereld.nl/s0000050.htm" target="_blank"&gt;website&lt;/A&gt;, make sure to select "Locatie 2".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In hyperterminal you select the correct COM port and COM port settings and press connect. Sometimes devices say something right away, but mostly you would now have to enter a command and press "return", then the device should respond.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is, for at least, the first step into getting a serial device to work where there is no standard device driver available. It eliminates any programming errors and focusses on hardware connectivity being correct. &lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2009 10:14:37 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Visa-Issues/m-p/886076#M400460</guid>
      <dc:creator>andre.buurman@carya</dc:creator>
      <dc:date>2009-04-08T10:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Visa Issues</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Visa-Issues/m-p/886218#M400509</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;wowden wrote: &lt;BR /&gt;The connector type is a 9 pin D-Style plug. The manual states that the CR and LF are used to indicate the end of a message string. &lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The type of physical connector is not really relevant. I asked to check the type of cable that is required and by that I meant either a null modem or straight through cable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It does appear that with your LSCI 331 Serial Write that you are using the correct termination characters. That would leave a problem with the cable or the com settings. &lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2009 14:02:37 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Visa-Issues/m-p/886218#M400509</guid>
      <dc:creator>Dennis_Knutson</dc:creator>
      <dc:date>2009-04-08T14:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Visa Issues</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Visa-Issues/m-p/886298#M400556</link>
      <description>&lt;P&gt;Oh sorry, the manual states that either a standard null modem cable or null modem adapter. I checked my cable with a multi meter and the pins are right. Also for the synchronous I/O mode for read and write should it be&amp;nbsp; synchronous or asynchronous. The manual states asynchronous, but the sample VI has them set to synchronous. Thanks alot for your help. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Apr 2009 15:15:59 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Visa-Issues/m-p/886298#M400556</guid>
      <dc:creator>wowden</dc:creator>
      <dc:date>2009-04-08T15:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Visa Issues</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Visa-Issues/m-p/886311#M400561</link>
      <description>&lt;P&gt;Did you modify your vi to make sure that it actually does include the termination characters? &lt;/P&gt;&lt;P&gt;And set the boolean to True&amp;nbsp; to enable termination character?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2009 15:31:14 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Visa-Issues/m-p/886311#M400561</guid>
      <dc:creator>Ray.R</dc:creator>
      <dc:date>2009-04-08T15:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: Visa Issues</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Visa-Issues/m-p/886378#M400590</link>
      <description>&lt;P&gt;-- Oops: didn't post image before going to a meeting --&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;IMG src="http://forums.ni.com/ni/attachments/ni/170/400590/1/cfgVisa.PNG" border="0" alt="VISA Termination Config" title="VISA Termination Config" width="91" height="85" /&gt;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by Ray.R on &lt;/SPAN&gt;&lt;SPAN class="local-date"&gt; 04-08-2009&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt; 12:37 PM&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Apr 2009 16:37:54 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Visa-Issues/m-p/886378#M400590</guid>
      <dc:creator>Ray.R</dc:creator>
      <dc:date>2009-04-08T16:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Visa Issues</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Visa-Issues/m-p/886831#M400767</link>
      <description>Yes I made those changes, but after what Dennin Kuntson said I went back to using the code I orignally posted. Still no luck. I tried using Hyperterminal and can establish a connecting, but how do I send comands. &lt;BR /&gt;&lt;DIV class="li-mod-body"&gt;&lt;DIV class="banner-text"&gt;
		&lt;DIV class="username"&gt;&lt;SPAN style="color: #666666; font-weight: bold"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
		&lt;DIV class="ranking"&gt;&lt;BR /&gt;&lt;/DIV&gt;
	&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 09 Apr 2009 07:52:52 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Visa-Issues/m-p/886831#M400767</guid>
      <dc:creator>wowden</dc:creator>
      <dc:date>2009-04-09T07:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Visa Issues</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Visa-Issues/m-p/886961#M400813</link>
      <description>&lt;P&gt;OKay..&amp;nbsp; It works with HyperTerminal... That's good.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Within Labview, click on the Help Menu and select Search Example.&lt;/P&gt;&lt;P&gt;Select the Search tab and type serial.&amp;nbsp; THere will only be one selection, so click on it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a look at the top two examples on the list at the right. &amp;nbsp;&lt;/P&gt;&lt;P&gt;Advanced Serial Port Write and Read.vi&lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;BasicSerial Write and Read.vi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should be able to communicate with your device using those two.&amp;nbsp; Then have a look at how the code was implemented in those vi's.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;IMG src="http://forums.ni.com/ni/attachments/ni/170/400813/1/serialExample.PNG" border="0" /&gt;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by Ray.R on &lt;/SPAN&gt;&lt;SPAN class="local-date"&gt; 04-09-2009&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt; 08:32 AM&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 09 Apr 2009 12:32:22 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Visa-Issues/m-p/886961#M400813</guid>
      <dc:creator>Ray.R</dc:creator>
      <dc:date>2009-04-09T12:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: Visa Issues</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Visa-Issues/m-p/887024#M400836</link>
      <description>When I run the example VI and write *IND? i get the following responce from read "LSCI,MODEL331S,336227,120407" LSCI correspounds to the company name, 311S is the model number and i am not sure about the other numbers. However, it still times out. I have it set to stop on terminal char and the model is set to return a terminal char.</description>
      <pubDate>Thu, 09 Apr 2009 13:38:33 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Visa-Issues/m-p/887024#M400836</guid>
      <dc:creator>wowden</dc:creator>
      <dc:date>2009-04-09T13:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Visa Issues</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Visa-Issues/m-p/887077#M400857</link>
      <description>I fixed the problem, thanks ray.</description>
      <pubDate>Thu, 09 Apr 2009 14:19:53 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Visa-Issues/m-p/887077#M400857</guid>
      <dc:creator>wowden</dc:creator>
      <dc:date>2009-04-09T14:19:53Z</dc:date>
    </item>
  </channel>
</rss>

