<?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: Basic tutorial of sending Ascii commands via RS-232 in Instrument Control (GPIB, Serial, VISA, IVI)</title>
    <link>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Basic-tutorial-of-sending-Ascii-commands-via-RS-232/m-p/3701246#M75813</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry that I am using the older version Labview and cannot open your Vi.&lt;/P&gt;
&lt;P&gt;May&amp;nbsp;I trouble you to take a few screen shot on how you write the E3C command? I still cannot make it work.&lt;/P&gt;
&lt;P&gt;Here I attach my simple vi as well as the command list for your comment.&lt;/P&gt;
&lt;P&gt;I just try to realize a simple function: to read Relay 1 status. But I dont understand how to put "254,4" command in the correct format. And then&amp;nbsp;the Visa Read always time out...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much. Looking forward to your reply.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Lu&lt;/P&gt;</description>
    <pubDate>Wed, 11 Oct 2017 10:43:43 GMT</pubDate>
    <dc:creator>dinglu</dc:creator>
    <dc:date>2017-10-11T10:43:43Z</dc:date>
    <item>
      <title>Basic tutorial of sending Ascii commands via RS-232</title>
      <link>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Basic-tutorial-of-sending-Ascii-commands-via-RS-232/m-p/2290116#M57501</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am a beginning LabView user and have only made vi's using different existing drivers found onine.&amp;nbsp; Now I have a R25DPDTCNRS RS-232 relay and want to send ASCII commands to control it via LabView.&amp;nbsp; There are no drivers for this device, so I was hoping someone could please explain the basics of ASCII control with LabView or even show me to some kind of tutorial.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2013 23:57:15 GMT</pubDate>
      <guid>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Basic-tutorial-of-sending-Ascii-commands-via-RS-232/m-p/2290116#M57501</guid>
      <dc:creator>scustodio</dc:creator>
      <dc:date>2013-01-23T23:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: Basic tutorial of sending Ascii commands via RS-232</title>
      <link>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Basic-tutorial-of-sending-Ascii-commands-via-RS-232/m-p/2290134#M57502</link>
      <description>&lt;P&gt;Look in the LabVIEW example finder for Serial Write Read.&amp;nbsp; There should be an example showing how to send commands and read from a serial port using VISA.&amp;nbsp; You simply write your ASCII commands and read any response if any.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2013 00:13:55 GMT</pubDate>
      <guid>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Basic-tutorial-of-sending-Ascii-commands-via-RS-232/m-p/2290134#M57502</guid>
      <dc:creator>crossrulz</dc:creator>
      <dc:date>2013-01-24T00:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Basic tutorial of sending Ascii commands via RS-232</title>
      <link>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Basic-tutorial-of-sending-Ascii-commands-via-RS-232/m-p/2291118#M57507</link>
      <description>&lt;P&gt;The manual is &lt;A href="http://assets.controlanything.com/manuals/R2X.PDF" target="_self"&gt;HERE&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is a very basic command set.&amp;nbsp; I have whipped up part of the driver&amp;nbsp;as an example of how to complete your project.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2013 15:57:12 GMT</pubDate>
      <guid>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Basic-tutorial-of-sending-Ascii-commands-via-RS-232/m-p/2291118#M57507</guid>
      <dc:creator>JÞB</dc:creator>
      <dc:date>2013-01-24T15:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Basic tutorial of sending Ascii commands via RS-232</title>
      <link>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Basic-tutorial-of-sending-Ascii-commands-via-RS-232/m-p/2291160#M57511</link>
      <description>&lt;P&gt;Wouldn't you know,&amp;nbsp; I left out the constant on Set Both.vi.&amp;nbsp; Please accept my appologies.&lt;img id="smileyembarrassed" class="emoticon emoticon-smileyembarrassed" src="https://forums.ni.com/i/smilies/16x16_smiley-embarrassed.gif" alt="Smiley Embarassed" title="Smiley Embarassed" /&gt;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://forums.ni.com/t5/image/serverpage/image-id/96640i16FEB158F2BA0ADC/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="Set Both.png" title="Set Both.png" align="center" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2013 16:11:47 GMT</pubDate>
      <guid>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Basic-tutorial-of-sending-Ascii-commands-via-RS-232/m-p/2291160#M57511</guid>
      <dc:creator>JÞB</dc:creator>
      <dc:date>2013-01-24T16:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: Basic tutorial of sending Ascii commands via RS-232</title>
      <link>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Basic-tutorial-of-sending-Ascii-commands-via-RS-232/m-p/3335745#M73028</link>
      <description>dear&lt;BR /&gt;have good time&lt;BR /&gt;i have quick read instrument of marposs so i want read mesuring by labview on serial port .&lt;BR /&gt;according examples used visa serial and write and read and close but i ca t read data for example in instrument command M? with inter caractor should be read mesure valve what s problem?</description>
      <pubDate>Wed, 17 Aug 2016 02:19:12 GMT</pubDate>
      <guid>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Basic-tutorial-of-sending-Ascii-commands-via-RS-232/m-p/3335745#M73028</guid>
      <dc:creator>hoomanky</dc:creator>
      <dc:date>2016-08-17T02:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Basic tutorial of sending Ascii commands via RS-232</title>
      <link>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Basic-tutorial-of-sending-Ascii-commands-via-RS-232/m-p/3335853#M73031</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.ni.com/t5/user/viewprofilepage/user-id/345337"&gt;@hoomanky&lt;/a&gt; wrote:&lt;BR /&gt;i have quick read instrument of marposs so i want read mesuring by labview on serial port .&lt;BR /&gt;according examples used visa serial and write and read and close but i ca t read data for example in instrument command M? with inter caractor should be read mesure valve what s problem?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Exactly what instrument?&amp;nbsp; What is its messaging protocol?&amp;nbsp; Where is your code?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2016 10:12:51 GMT</pubDate>
      <guid>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Basic-tutorial-of-sending-Ascii-commands-via-RS-232/m-p/3335853#M73031</guid>
      <dc:creator>crossrulz</dc:creator>
      <dc:date>2016-08-17T10:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Basic tutorial of sending Ascii commands via RS-232</title>
      <link>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Basic-tutorial-of-sending-Ascii-commands-via-RS-232/m-p/3701246#M75813</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry that I am using the older version Labview and cannot open your Vi.&lt;/P&gt;
&lt;P&gt;May&amp;nbsp;I trouble you to take a few screen shot on how you write the E3C command? I still cannot make it work.&lt;/P&gt;
&lt;P&gt;Here I attach my simple vi as well as the command list for your comment.&lt;/P&gt;
&lt;P&gt;I just try to realize a simple function: to read Relay 1 status. But I dont understand how to put "254,4" command in the correct format. And then&amp;nbsp;the Visa Read always time out...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much. Looking forward to your reply.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Lu&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2017 10:43:43 GMT</pubDate>
      <guid>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Basic-tutorial-of-sending-Ascii-commands-via-RS-232/m-p/3701246#M75813</guid>
      <dc:creator>dinglu</dc:creator>
      <dc:date>2017-10-11T10:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: Basic tutorial of sending Ascii commands via RS-232</title>
      <link>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Basic-tutorial-of-sending-Ascii-commands-via-RS-232/m-p/3701263#M75814</link>
      <description>&lt;P&gt;You have the infamous Bytes At Port.&amp;nbsp; DO NOT USE THE BYTES AT PORT!!!!! (I feel I did not emphasize that enough).&amp;nbsp; The Bytes At Port causes weird race conditions like what you are seeing.&amp;nbsp; You write the data and then immediate check to see if any bytes have been received without giving your device a chance to respond.&amp;nbsp; Since it looks like the device should respond with 1 byte (0 or 1), then just tell the VISA Read to read 1 byte.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And finally, since this is using what I call a binary format (others say Hex or ASCII code), you need to turn off the Termination Character.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://forums.ni.com/ni/attachments/ni/140/75814/1/SciShutter_BD.png" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2017 11:27:22 GMT</pubDate>
      <guid>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Basic-tutorial-of-sending-Ascii-commands-via-RS-232/m-p/3701263#M75814</guid>
      <dc:creator>crossrulz</dc:creator>
      <dc:date>2017-10-11T11:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Basic tutorial of sending Ascii commands via RS-232</title>
      <link>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Basic-tutorial-of-sending-Ascii-commands-via-RS-232/m-p/3701455#M75817</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.ni.com/t5/user/viewprofilepage/user-id/125122"&gt;@dinglu&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry that I am using the older version Labview and cannot open your Vi.&lt;/P&gt;
&lt;P&gt;May&amp;nbsp;I trouble you to take a few screen shot on how you write the E3C command? I still cannot make it work.&lt;/P&gt;
&lt;P&gt;Here I attach my simple vi as well as the command list for your comment.&lt;/P&gt;
&lt;P&gt;I just try to realize a simple function: to read Relay 1 status. But I dont understand how to put "254,4" command in the correct format. And then&amp;nbsp;the Visa Read always time out...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much. Looking forward to your reply.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Lu&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Here is a 8.2.1 project of the E3C driver&lt;/P&gt;
&lt;P&gt;All Commands are enumerated and examples are implemented for Get ID, Enable Selected (Init.vi) Set Single Relay, Set Both Relays, and Get relay Status.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Those should demo how to complete the driver.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not bad a 4.5 year bump between anyone using that&amp;nbsp;silly relay board.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2017 16:12:55 GMT</pubDate>
      <guid>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Basic-tutorial-of-sending-Ascii-commands-via-RS-232/m-p/3701455#M75817</guid>
      <dc:creator>JÞB</dc:creator>
      <dc:date>2017-10-11T16:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Basic tutorial of sending Ascii commands via RS-232</title>
      <link>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Basic-tutorial-of-sending-Ascii-commands-via-RS-232/m-p/3702171#M75832</link>
      <description>&lt;P&gt;I will contact you labview and arduino using proteus, displaying the sensor values underneath and i need help or an example&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 21:09:21 GMT</pubDate>
      <guid>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Basic-tutorial-of-sending-Ascii-commands-via-RS-232/m-p/3702171#M75832</guid>
      <dc:creator>sou1994sou</dc:creator>
      <dc:date>2017-10-12T21:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Basic tutorial of sending Ascii commands via RS-232</title>
      <link>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Basic-tutorial-of-sending-Ascii-commands-via-RS-232/m-p/3702229#M75833</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.ni.com/t5/user/viewprofilepage/user-id/586571"&gt;@sou1994sou&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I will contact you labview and arduino using proteus, displaying the sensor values underneath and i need help or an example&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I recommend you start a new thread and give a lot more information on what you have and where you are stuck.&amp;nbsp; There are plenty of examples floating around.&amp;nbsp; But to help, we need to know protocols and any code to show where you are stuck.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 22:48:14 GMT</pubDate>
      <guid>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Basic-tutorial-of-sending-Ascii-commands-via-RS-232/m-p/3702229#M75833</guid>
      <dc:creator>crossrulz</dc:creator>
      <dc:date>2017-10-12T22:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Basic tutorial of sending Ascii commands via RS-232</title>
      <link>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Basic-tutorial-of-sending-Ascii-commands-via-RS-232/m-p/3702518#M75835</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thank you very much. I manage to control the shutter finally. Indeed need to convert data using bytes-to-string. However, my shutter still doesn't reply me anything. The read buffer is just empty.&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Lu&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2017 14:27:30 GMT</pubDate>
      <guid>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Basic-tutorial-of-sending-Ascii-commands-via-RS-232/m-p/3702518#M75835</guid>
      <dc:creator>dinglu</dc:creator>
      <dc:date>2017-10-13T14:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Basic tutorial of sending Ascii commands via RS-232</title>
      <link>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Basic-tutorial-of-sending-Ascii-commands-via-RS-232/m-p/3702520#M75836</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thank you very much. I manage to control the shutter finally. Indeed need to convert data using bytes-to-string. However, my shutter still doesn't reply me anything. The read buffer is just empty. I decided to ignore it.&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Lu&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2017 14:28:47 GMT</pubDate>
      <guid>https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Basic-tutorial-of-sending-Ascii-commands-via-RS-232/m-p/3702520#M75836</guid>
      <dc:creator>dinglu</dc:creator>
      <dc:date>2017-10-13T14:28:47Z</dc:date>
    </item>
  </channel>
</rss>

