<?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 Serial Communication between Labwindows and Kinetis in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Serial-Communication-between-Labwindows-and-Kinetis/m-p/762833#M14569</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using kinetis Design Studio ,Processor Expert , how to do serial communication from LabWindows ?&lt;/P&gt;&lt;P&gt;I am creating a GUI in LabWindows which will be sending &amp;amp; receiving characters via the serial port with Kinetis K10 processor. Unfortunately unable to do so. could anyone please suggest a way to solve the issue ?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Kinetis Processor Expert Code :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;in main.c&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;/* this is used when receiving data , currently commented out*********/&lt;/P&gt;&lt;P&gt;//volatile bool DataReceivedFlg = FALSE;&lt;BR /&gt;//unsigned char InpData[10];&lt;/P&gt;&lt;P&gt;/******** to send a character**********/&lt;/P&gt;&lt;P&gt;unsigned char OutData[] = "1";&lt;/P&gt;&lt;P&gt;LDD_TError Error;&lt;BR /&gt;LDD_TDeviceData *MySerialPtr;&lt;/P&gt;&lt;P&gt;int main(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;PE_low_level_init();&lt;BR /&gt;MySerialPtr = AS1_Init(NULL);&lt;BR /&gt; for(;;) {&lt;/P&gt;&lt;P&gt;Error = AS1_SendBlock(MySerialPtr, OutData, sizeof(OutData));&lt;BR /&gt;WAIT1_Waitms(100);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;LabWindows Code:&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bytes_read = ComRd(comport,buf,2);&lt;/P&gt;&lt;P&gt;CopyString (tbox_read_data, 0, buf, 0, bytes_read);&lt;BR /&gt; SetCtrlVal (panelHandle, PANEL_TBOX_READ, tbox_read_data);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;every time "buf" is empty .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Mar 2018 09:04:12 GMT</pubDate>
    <dc:creator>kharsha</dc:creator>
    <dc:date>2018-03-15T09:04:12Z</dc:date>
    <item>
      <title>Serial Communication between Labwindows and Kinetis</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Serial-Communication-between-Labwindows-and-Kinetis/m-p/762833#M14569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using kinetis Design Studio ,Processor Expert , how to do serial communication from LabWindows ?&lt;/P&gt;&lt;P&gt;I am creating a GUI in LabWindows which will be sending &amp;amp; receiving characters via the serial port with Kinetis K10 processor. Unfortunately unable to do so. could anyone please suggest a way to solve the issue ?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Kinetis Processor Expert Code :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;in main.c&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;/* this is used when receiving data , currently commented out*********/&lt;/P&gt;&lt;P&gt;//volatile bool DataReceivedFlg = FALSE;&lt;BR /&gt;//unsigned char InpData[10];&lt;/P&gt;&lt;P&gt;/******** to send a character**********/&lt;/P&gt;&lt;P&gt;unsigned char OutData[] = "1";&lt;/P&gt;&lt;P&gt;LDD_TError Error;&lt;BR /&gt;LDD_TDeviceData *MySerialPtr;&lt;/P&gt;&lt;P&gt;int main(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;PE_low_level_init();&lt;BR /&gt;MySerialPtr = AS1_Init(NULL);&lt;BR /&gt; for(;;) {&lt;/P&gt;&lt;P&gt;Error = AS1_SendBlock(MySerialPtr, OutData, sizeof(OutData));&lt;BR /&gt;WAIT1_Waitms(100);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;LabWindows Code:&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bytes_read = ComRd(comport,buf,2);&lt;/P&gt;&lt;P&gt;CopyString (tbox_read_data, 0, buf, 0, bytes_read);&lt;BR /&gt; SetCtrlVal (panelHandle, PANEL_TBOX_READ, tbox_read_data);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;every time "buf" is empty .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2018 09:04:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Serial-Communication-between-Labwindows-and-Kinetis/m-p/762833#M14569</guid>
      <dc:creator>kharsha</dc:creator>
      <dc:date>2018-03-15T09:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Serial Communication between Labwindows and Kinetis</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Serial-Communication-between-Labwindows-and-Kinetis/m-p/762834#M14570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" data-content-finding="Community" data-userid="311680" data-username="kharsha" href="https://community.nxp.com/people/kharsha"&gt;K HARSHA&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Sorry I don't know the Labwindows well.&lt;/P&gt;&lt;P&gt;While I recommend you firstly use a serial terminal (Putty or others )&lt;/P&gt;&lt;P&gt;to check whether the send data can work well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2018 03:53:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Serial-Communication-between-Labwindows-and-Kinetis/m-p/762834#M14570</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2018-03-16T03:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: Serial Communication between Labwindows and Kinetis</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Serial-Communication-between-Labwindows-and-Kinetis/m-p/762835#M14571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have checked the output in teraterm (Serial Terminal) as well as the CRO .Its coming fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Harsha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2018 05:44:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Serial-Communication-between-Labwindows-and-Kinetis/m-p/762835#M14571</guid>
      <dc:creator>kharsha</dc:creator>
      <dc:date>2018-03-16T05:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Serial Communication between Labwindows and Kinetis</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Serial-Communication-between-Labwindows-and-Kinetis/m-p/762836#M14572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the trouble, but could you please tell me if the code snippet for sending the character I have used is correct . I wanted to know if there is any other way to do so.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Harsha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2018 10:39:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Serial-Communication-between-Labwindows-and-Kinetis/m-p/762836#M14572</guid>
      <dc:creator>kharsha</dc:creator>
      <dc:date>2018-03-30T10:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Serial Communication between Labwindows and Kinetis</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Serial-Communication-between-Labwindows-and-Kinetis/m-p/762837#M14573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;Yes, there is no error in your sending code.&lt;/P&gt;&lt;P&gt;I rememberd you said it can work well :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/45562iDB36100014695616/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About the usage of&amp;nbsp; Serail_LDD, there are demo code you can refer to:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/45715i433843B0C18B100D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2018 09:44:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Serial-Communication-between-Labwindows-and-Kinetis/m-p/762837#M14573</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2018-04-02T09:44:54Z</dc:date>
    </item>
  </channel>
</rss>

