<?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: Serial Port Write in LabVIEW</title>
    <link>https://forums.ni.com/t5/LabVIEW/Serial-Port-Write/m-p/523775#M248317</link>
    <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;ok&amp;nbsp;&amp;nbsp; good example&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;write&amp;nbsp;code ansi and display decimal in a micro atmega &lt;/P&gt;
&lt;P&gt;how i can&amp;nbsp; write code decimal and display decimal ?&lt;/P&gt;
&lt;P&gt;&lt;A href="mailto:talivan-@hotmail.com" target="_blank"&gt;talivan-@hotmail.com&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 20 May 2007 19:41:51 GMT</pubDate>
    <dc:creator>talivan</dc:creator>
    <dc:date>2007-05-20T19:41:51Z</dc:date>
    <item>
      <title>Serial Port Write</title>
      <link>https://forums.ni.com/t5/LabVIEW/Serial-Port-Write/m-p/52750#M33136</link>
      <description>I am new to labview and need some help.  I'm wondering if it's possible to have my very simple design reviewed.  All I want to do is write a string to the serial port when the button is pushed. &lt;BR /&gt;</description>
      <pubDate>Mon, 22 Jul 2002 15:41:56 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Serial-Port-Write/m-p/52750#M33136</guid>
      <dc:creator>schmir1</dc:creator>
      <dc:date>2002-07-22T15:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Serial Port Write</title>
      <link>https://forums.ni.com/t5/LabVIEW/Serial-Port-Write/m-p/52751#M33137</link>
      <description>Yep,&lt;BR /&gt;&lt;BR /&gt;its just that easy.&lt;BR /&gt;&lt;BR /&gt;Add comments to diagram.&lt;BR /&gt;&lt;BR /&gt;Close reference when you are done.&lt;BR /&gt;&lt;BR /&gt;Check for errors if you care.&lt;BR /&gt;&lt;BR /&gt;Ben &lt;BR /&gt;</description>
      <pubDate>Mon, 22 Jul 2002 16:58:45 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Serial-Port-Write/m-p/52751#M33137</guid>
      <dc:creator>Ben</dc:creator>
      <dc:date>2002-07-22T16:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Serial Port Write</title>
      <link>https://forums.ni.com/t5/LabVIEW/Serial-Port-Write/m-p/523775#M248317</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;ok&amp;nbsp;&amp;nbsp; good example&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;write&amp;nbsp;code ansi and display decimal in a micro atmega &lt;/P&gt;
&lt;P&gt;how i can&amp;nbsp; write code decimal and display decimal ?&lt;/P&gt;
&lt;P&gt;&lt;A href="mailto:talivan-@hotmail.com" target="_blank"&gt;talivan-@hotmail.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 20 May 2007 19:41:51 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Serial-Port-Write/m-p/523775#M248317</guid>
      <dc:creator>talivan</dc:creator>
      <dc:date>2007-05-20T19:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: Serial Port Write</title>
      <link>https://forums.ni.com/t5/LabVIEW/Serial-Port-Write/m-p/523786#M248325</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;A couple more comments:&lt;BR /&gt;&lt;BR /&gt;1) It is considered bad form to pass wires under things that they aren't connected to ( the wire from the "String to Write" input).&lt;BR /&gt;2) Always connect up the error clusters. The one from the serial configuration function to the serial write is not connected. The problem is that the code as written will return the wrong error if the initialization fails. All you will see is an error related to a serial write error, which isn't the real problem.&lt;BR /&gt;3) You should have an error input cluster as well to errors that are generated before this code starts can also be reported.&lt;BR /&gt;&lt;BR /&gt;Mike...&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Message Edited by mikeporter on &lt;SPAN class="date_text"&gt;05-20-2007&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;06:44 PM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 20 May 2007 22:43:35 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Serial-Port-Write/m-p/523786#M248325</guid>
      <dc:creator>mikeporter</dc:creator>
      <dc:date>2007-05-20T22:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Serial Port Write</title>
      <link>https://forums.ni.com/t5/LabVIEW/Serial-Port-Write/m-p/524189#M248496</link>
      <description>Hi Talivan,&lt;BR /&gt;&lt;BR /&gt;Is this question related to this (5 year old) post at all? &lt;BR /&gt;&lt;BR /&gt;I do not really understand what you are trying to do: could you explain what you mean with write decimal and display decimal? What are you trying to communicate with?&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 21 May 2007 17:01:00 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Serial-Port-Write/m-p/524189#M248496</guid>
      <dc:creator>SamboNI</dc:creator>
      <dc:date>2007-05-21T17:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: Serial Port Write</title>
      <link>https://forums.ni.com/t5/LabVIEW/Serial-Port-Write/m-p/524411#M248582</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Hi &lt;SPAN style="COLOR: #3366cc"&gt;&lt;STRONG&gt;SamboNI&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;ok &lt;/DIV&gt;
&lt;DIV&gt;with&amp;nbsp;a control numeric&amp;nbsp; (code decimal) i want converter&amp;nbsp; to code ANSI o ASCII&amp;nbsp; for&amp;nbsp; write visa. &amp;nbsp;with read visa no problem converter string-numeric but in write no work the converter numeric -string&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;the comunication serial is with a microcontroller &amp;nbsp;ATMEGA&amp;nbsp; family AVR &lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;in a program with VISUAL BASIC 6&amp;nbsp; it´s ok&amp;nbsp;&amp;nbsp; write and read for&amp;nbsp;ATMEGA and VISUAL&amp;nbsp; BASIC&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; no problem&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;examples use&amp;nbsp; Research_TelB&amp;nbsp; (▲), basic and advanced serial read write (labview 7)&lt;/DIV&gt;</description>
      <pubDate>Tue, 22 May 2007 01:56:16 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Serial-Port-Write/m-p/524411#M248582</guid>
      <dc:creator>talivan</dc:creator>
      <dc:date>2007-05-22T01:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Serial Port Write</title>
      <link>https://forums.ni.com/t5/LabVIEW/Serial-Port-Write/m-p/524427#M248587</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;The code shown below does the same thing. If you can't get the basic serial write and read example to work by entering a numeric value into the string control, then using a numeric control on the front panel and converting to a string won't work either. &lt;/P&gt;
&lt;P&gt;You have posted the same question over and over again and have been asked to provide additional information. Such as, does the micro code require a CR and LF at the end of each command? Are you sure it requires ASCII (there is no such thing as ansi)? Does it work with Hyperterminal? Answer some of these questions instead of just saying your LabVIEW program does no work.&lt;/P&gt;
&lt;P&gt;If you are going to talk about some vb example that works, provide a link to the code or post the code itself. The statement 'Research_TelB&amp;nbsp;' is meaningless. &lt;/P&gt;
&lt;P&gt;You might also consider posting your question in both English and your native language.&lt;/P&gt;&lt;P&gt;Message Edited by Dennis Knutson on &lt;SPAN class="date_text"&gt;05-21-2007&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;09:27 PM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2007 03:23:28 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Serial-Port-Write/m-p/524427#M248587</guid>
      <dc:creator>Dennis_Knutson</dc:creator>
      <dc:date>2007-05-22T03:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Serial Port Write</title>
      <link>https://forums.ni.com/t5/LabVIEW/Serial-Port-Write/m-p/524431#M248588</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;i put 'Research_TelB&amp;nbsp; because is the link above&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;code in VB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; `work very well&lt;/P&gt;
&lt;P&gt;Private Sub Command1_Click()&lt;BR /&gt;variable = Val(Text1.Text)&lt;/P&gt;
&lt;P&gt;MSComm1.Output = Chr(variable)&lt;/P&gt;
&lt;P&gt;End Sub&lt;/P&gt;
&lt;P&gt;Private Sub msComm1_OnComm()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;y = MSComm1.Input&lt;BR /&gt;&amp;nbsp; Label1.Caption = y&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;End Sub&lt;BR /&gt;Private Sub Form_Load()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; MSComm1.CommPort = 1 'define puerto serial comm1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MSComm1.InBufferSize = 1024 'default mayor tamaño&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MSComm1.InputLen = 0 'no limita tamaño&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MSComm1.Settings = "9600,n,8,1" 'define velocidad, paridad etc&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MSComm1.RThreshold = 1 'hab int al recibir&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MSComm1.SThreshold = 1 'hab int al transmitir&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MSComm1.Handshaking = comNone&amp;nbsp; 'protocolo&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MSComm1.DTREnable = False 'lineas de protocolo NO&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MSComm1.NullDiscard = False 'no descarta los nulos&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MSComm1.PortOpen = True&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'abrir puerto&lt;/P&gt;
&lt;P&gt;End Sub&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2007 03:37:08 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Serial-Port-Write/m-p/524431#M248588</guid>
      <dc:creator>talivan</dc:creator>
      <dc:date>2007-05-22T03:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: Serial Port Write</title>
      <link>https://forums.ni.com/t5/LabVIEW/Serial-Port-Write/m-p/524436#M248591</link>
      <description>&lt;DIV&gt;excuse my english&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;bien lo que quiero decir es que quiero poner un control numerico y el numero que aparece&amp;nbsp;&amp;nbsp;&amp;nbsp; sea el que mande al puerto serial.&amp;nbsp; tengo que poner un convertidor&amp;nbsp; pero no me ha funcionado como quisiera&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;con&amp;nbsp; el ejemplo Research_TelB&amp;nbsp; me referia al que esta en el primer mensage de este tema&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;tambien he ocupado los ejemplos de lab view 7 : basic y&amp;nbsp; avansado&amp;nbsp; serial visa write read&lt;/DIV&gt;
&lt;DIV&gt;con estos ejmplos no puedo escribir en el puerto &lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;el ejemplo Research_TelB&amp;nbsp; que mencionan aqui me ha funcionado bien solo&amp;nbsp; lo que quiero es lo que digo en el primer parrafo&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;disculpen mi ingles pero hago lo que puedo &lt;/DIV&gt;
&lt;DIV&gt;gracias&lt;/DIV&gt;</description>
      <pubDate>Tue, 22 May 2007 03:52:32 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Serial-Port-Write/m-p/524436#M248591</guid>
      <dc:creator>talivan</dc:creator>
      <dc:date>2007-05-22T03:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: Serial Port Write</title>
      <link>https://forums.ni.com/t5/LabVIEW/Serial-Port-Write/m-p/524438#M248592</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;The Chr command converts text to numeric I believe. So, it does not appear you want to send ASCII text. For example, to send a carriage return which is decimal 13 or hex D, you do a Chr(13). In LabVIEW, you can use the Byte Array to String function. You can use the Type Cast function. You can also right click on a string control/constant and select Hex Display. Enter the commands in hex.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://forums.ni.com/attachments/ni/170/248592/1/write%20hex%20to%20serial.PNG" /&gt;&lt;A href="http://forums.ni.com/attachments/ni/170/248592/1/write%20hex%20to%20serial.PNG" target="_blank"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;p.s. you just put the text 'Research_TelB' in the post. You did not insert a link.&lt;/P&gt;&lt;P&gt;Message Edited by Dennis Knutson on &lt;SPAN class="date_text"&gt;05-21-2007&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;09:55 PM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2007 03:54:23 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Serial-Port-Write/m-p/524438#M248592</guid>
      <dc:creator>Dennis_Knutson</dc:creator>
      <dc:date>2007-05-22T03:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Serial Port Write</title>
      <link>https://forums.ni.com/t5/LabVIEW/Serial-Port-Write/m-p/524792#M248726</link>
      <description>talivan,&lt;BR /&gt;&lt;BR /&gt;Dennis' methods are definitely valid.&lt;BR /&gt;&lt;BR /&gt;For a single numeric control, have you tried wiring this to a "Number to Fractional String"? This function converts your numeric control to ASCII, which you can then feed into your VISA write.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 22 May 2007 16:09:01 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Serial-Port-Write/m-p/524792#M248726</guid>
      <dc:creator>SamboNI</dc:creator>
      <dc:date>2007-05-22T16:09:01Z</dc:date>
    </item>
  </channel>
</rss>

