<?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: RS232 communication problem in LabWindows/CVI</title>
    <link>https://ni.lithium.com/t5/LabWindows-CVI/RS232-communication-problem/m-p/24165#M2139</link>
    <description>"Farid Bengrid" &lt;X&gt; wrote in message&lt;BR /&gt;news:5065000000050000004E410000-999158726000@exchange.ni.com...&lt;BR /&gt;&amp;gt; Try the following:&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; int numbytes;&lt;BR /&gt;&amp;gt; char buf[512];&lt;BR /&gt;&amp;gt; OpenComConfig (2, "COM2", 1200, 0, 7, 1, 512, 512);&lt;BR /&gt;&amp;gt; FlushInQ (2);&lt;BR /&gt;&amp;gt; FlushOutQ (2);&lt;BR /&gt;&amp;gt; sprintf(buf,"D\r");&lt;BR /&gt;&amp;gt; numbytes = ComWrt (2, Buf, 2);&lt;BR /&gt;&amp;gt; numbytes = ComRd (2, buf, 14);&lt;BR /&gt;&amp;gt; CloseCom (2);&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; Best regards.&lt;BR /&gt;&amp;gt; Farid.&lt;BR /&gt;&lt;BR /&gt;Thank you for your input, but the results are just the same ...&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Geert &lt;BR /&gt;&lt;/X&gt;</description>
    <pubDate>Wed, 12 Sep 2001 14:05:58 GMT</pubDate>
    <dc:creator>Geert Van Doorselaer</dc:creator>
    <dc:date>2001-09-12T14:05:58Z</dc:date>
    <item>
      <title>RS232 communication problem</title>
      <link>https://ni.lithium.com/t5/LabWindows-CVI/RS232-communication-problem/m-p/24163#M2137</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I try to read out the data of a METEX M-3850D multimeter in a LabWindows CVI&lt;BR /&gt;program (5.0.1).&lt;BR /&gt;These are the communication parameters:&lt;BR /&gt;1200 baud, 7-bit ASCII, no parity, 1 stop bit.&lt;BR /&gt;I use serial port 2.&lt;BR /&gt;After sending the characters 'D' and 'enter', the multimeter should respond&lt;BR /&gt;with a 14-character frame.&lt;BR /&gt;&lt;BR /&gt;This is the code I use:&lt;BR /&gt;&lt;BR /&gt;int numbytes;&lt;BR /&gt;char buf[512];&lt;BR /&gt;OpenComConfig (2, "", 1200, 0, 7, 1, 512, 512);&lt;BR /&gt;SetCTSMode (2, LWRS_HWHANDSHAKE_OFF);&lt;BR /&gt;FlushInQ (2);&lt;BR /&gt;FlushOutQ (2);&lt;BR /&gt;numbytes = ComWrtByte (2, 68);&lt;BR /&gt;numbytes = ComWrtByte (2, 13);&lt;BR /&gt;numbytes = ComRd (2, buf, 14);&lt;BR /&gt;CloseCom (2);&lt;BR /&gt;&lt;BR /&gt;This is the problem: after the instruction OpenComConfig, the RD line is&lt;BR /&gt;pulled high (+15V) by the computer, resulting in a logical 0 and thus&lt;BR /&gt;blocking the port. Wi&lt;BR /&gt;th a scope, I can clearly see that the multimeter is&lt;BR /&gt;responding its 14 characters, but as this results only in a 0.5 volt signal&lt;BR /&gt;superimposed on the +10 V, the computer is of course unable to read this&lt;BR /&gt;data.&lt;BR /&gt;Only after about 5 seconds after calling the ComRd instruction, the RD line&lt;BR /&gt;is released.&lt;BR /&gt;There are no problems with the TD line.&lt;BR /&gt;When the multimeter is unplugged, the same thing happens (except the&lt;BR /&gt;response of the multimeter of course), so I blame my program, my serial port&lt;BR /&gt;or LabWindows.&lt;BR /&gt;Changing the SetCTSMode does not help.&lt;BR /&gt;What could be the problem?&lt;BR /&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;Geert &lt;BR /&gt;</description>
      <pubDate>Wed, 12 Sep 2001 09:05:51 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabWindows-CVI/RS232-communication-problem/m-p/24163#M2137</guid>
      <dc:creator>Geert Van Doorselaer</dc:creator>
      <dc:date>2001-09-12T09:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: RS232 communication problem</title>
      <link>https://ni.lithium.com/t5/LabWindows-CVI/RS232-communication-problem/m-p/24164#M2138</link>
      <description>Try the following:&lt;BR /&gt;&lt;BR /&gt;int numbytes;&lt;BR /&gt;char buf[512];&lt;BR /&gt;OpenComConfig (2, "COM2", 1200, 0, 7, 1, 512, 512);&lt;BR /&gt;FlushInQ (2);&lt;BR /&gt;FlushOutQ (2);&lt;BR /&gt;sprintf(buf,"D\r");&lt;BR /&gt;numbytes = ComWrt (2, Buf, 2);&lt;BR /&gt;numbytes = ComRd (2, buf, 14);&lt;BR /&gt;CloseCom (2);&lt;BR /&gt;&lt;BR /&gt;Best regards.&lt;BR /&gt;Farid. &lt;BR /&gt;</description>
      <pubDate>Wed, 12 Sep 2001 12:53:34 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabWindows-CVI/RS232-communication-problem/m-p/24164#M2138</guid>
      <dc:creator>Farid Bengrid</dc:creator>
      <dc:date>2001-09-12T12:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: RS232 communication problem</title>
      <link>https://ni.lithium.com/t5/LabWindows-CVI/RS232-communication-problem/m-p/24165#M2139</link>
      <description>"Farid Bengrid" &lt;X&gt; wrote in message&lt;BR /&gt;news:5065000000050000004E410000-999158726000@exchange.ni.com...&lt;BR /&gt;&amp;gt; Try the following:&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; int numbytes;&lt;BR /&gt;&amp;gt; char buf[512];&lt;BR /&gt;&amp;gt; OpenComConfig (2, "COM2", 1200, 0, 7, 1, 512, 512);&lt;BR /&gt;&amp;gt; FlushInQ (2);&lt;BR /&gt;&amp;gt; FlushOutQ (2);&lt;BR /&gt;&amp;gt; sprintf(buf,"D\r");&lt;BR /&gt;&amp;gt; numbytes = ComWrt (2, Buf, 2);&lt;BR /&gt;&amp;gt; numbytes = ComRd (2, buf, 14);&lt;BR /&gt;&amp;gt; CloseCom (2);&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; Best regards.&lt;BR /&gt;&amp;gt; Farid.&lt;BR /&gt;&lt;BR /&gt;Thank you for your input, but the results are just the same ...&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Geert &lt;BR /&gt;&lt;/X&gt;</description>
      <pubDate>Wed, 12 Sep 2001 14:05:58 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabWindows-CVI/RS232-communication-problem/m-p/24165#M2139</guid>
      <dc:creator>Geert Van Doorselaer</dc:creator>
      <dc:date>2001-09-12T14:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: RS232 communication problem</title>
      <link>https://ni.lithium.com/t5/LabWindows-CVI/RS232-communication-problem/m-p/24166#M2140</link>
      <description>Hi geert,&lt;BR /&gt;&lt;BR /&gt;Did you try with hyperterminal ?&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Farid. &lt;BR /&gt;</description>
      <pubDate>Wed, 12 Sep 2001 14:31:59 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabWindows-CVI/RS232-communication-problem/m-p/24166#M2140</guid>
      <dc:creator>Farid Bengrid</dc:creator>
      <dc:date>2001-09-12T14:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: RS232 communication problem</title>
      <link>https://ni.lithium.com/t5/LabWindows-CVI/RS232-communication-problem/m-p/24167#M2141</link>
      <description>&amp;gt; When the multimeter is unplugged, the same thing happens (except the&lt;BR /&gt;&amp;gt; response of the multimeter of course), so I blame my program, my serial&lt;BR /&gt;port&lt;BR /&gt;&amp;gt; or LabWindows.&lt;BR /&gt;&lt;BR /&gt;This is not correct. It is indeed the multimeter that messes up its own data&lt;BR /&gt;transmit line (which is the PC data receive line). So I will start reverse&lt;BR /&gt;engineering which command is still missing to put the multimeter in its&lt;BR /&gt;appropriate mode.&lt;BR /&gt;&lt;BR /&gt;Sorry for bothering you. Thanks for your inputs and your time, Farid!&lt;BR /&gt;&lt;BR /&gt;Geert &lt;BR /&gt;</description>
      <pubDate>Wed, 12 Sep 2001 15:36:02 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabWindows-CVI/RS232-communication-problem/m-p/24167#M2141</guid>
      <dc:creator>Geert Van Doorselaer</dc:creator>
      <dc:date>2001-09-12T15:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: RS232 communication problem</title>
      <link>https://ni.lithium.com/t5/LabWindows-CVI/RS232-communication-problem/m-p/24168#M2142</link>
      <description>Geert&lt;BR /&gt;&lt;BR /&gt;Try this small example program to see if you can communicate with your multimeter correctly.  If you have the same problem with this program, let me know.&lt;BR /&gt;&lt;BR /&gt;Brian &lt;BR /&gt;</description>
      <pubDate>Thu, 13 Sep 2001 20:21:02 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabWindows-CVI/RS232-communication-problem/m-p/24168#M2142</guid>
      <dc:creator>bman</dc:creator>
      <dc:date>2001-09-13T20:21:02Z</dc:date>
    </item>
  </channel>
</rss>

