<?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: Bynary array to number in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Bynary-array-to-number/m-p/1083770#M479727</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;Ben wrote: &lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;Azzimuth wrote: &lt;BR /&gt;How would that help? That works with strings while I need byte array... &lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THat would help with the string coming from the serial port. If can be expanded and used to format multiple fields from a string.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt; Well that part is done and working fine. The only thing I need now is byte array to number conversion&lt;/P&gt;</description>
    <pubDate>Thu, 04 Mar 2010 14:34:11 GMT</pubDate>
    <dc:creator>Azzimuth</dc:creator>
    <dc:date>2010-03-04T14:34:11Z</dc:date>
    <item>
      <title>Bynary array to number</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Bynary-array-to-number/m-p/1083739#M479710</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm developing a program which would read serial port, capture packets, extract payload, convert the data in the payload and display. Now, everything until the last steps working fine. The problem is with the converting a byte array to number. In the serial communication, packets carry 16-bit unsigned integers (which basically means 2 bytes in the payload). Now the problem is how to convert these two bytes to an unsigned 16-bit integer in LabView. If I just try to convert the byte array using U16 converter, it outputs a 1-D array of unsigned 16-bit integers while I need only one. Is there any way to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As an example, if I have two bytes 0x02 and 0x8C, and try to convert these to an unsigned 16-bit integer using U16 converter, it outputs an array [2, 140] while I need it to be converted to just 652. &lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by Azzimuth on &lt;/SPAN&gt;&lt;SPAN class="local-date"&gt; 03-04-2010&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt; 08:09 AM&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 04 Mar 2010 14:09:16 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Bynary-array-to-number/m-p/1083739#M479710</guid>
      <dc:creator>Azzimuth</dc:creator>
      <dc:date>2010-03-04T14:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Bynary array to number</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Bynary-array-to-number/m-p/1083754#M479719</link>
      <description>&lt;P&gt;have you tried the "Scan From String" opeartor in the String palette?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See the help on that node to see if it may help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2010 14:22:27 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Bynary-array-to-number/m-p/1083754#M479719</guid>
      <dc:creator>Ben</dc:creator>
      <dc:date>2010-03-04T14:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Bynary array to number</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Bynary-array-to-number/m-p/1083760#M479721</link>
      <description>How would that help? That works with strings while I need byte array...</description>
      <pubDate>Thu, 04 Mar 2010 14:26:31 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Bynary-array-to-number/m-p/1083760#M479721</guid>
      <dc:creator>Azzimuth</dc:creator>
      <dc:date>2010-03-04T14:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Bynary array to number</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Bynary-array-to-number/m-p/1083761#M479722</link>
      <description>&lt;P&gt;Also, on the Numeric &amp;gt;&amp;gt;&amp;gt; Data manipulation &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;palette you will find "Join Numbers" that will combine two byte into a U16.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2010 14:27:01 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Bynary-array-to-number/m-p/1083761#M479722</guid>
      <dc:creator>Ben</dc:creator>
      <dc:date>2010-03-04T14:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Bynary array to number</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Bynary-array-to-number/m-p/1083766#M479725</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;Azzimuth wrote: &lt;BR /&gt;How would that help? That works with strings while I need byte array... &lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THat would help with the string coming from the serial port. If can be expanded and used to format multiple fields from a string.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2010 14:29:13 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Bynary-array-to-number/m-p/1083766#M479725</guid>
      <dc:creator>Ben</dc:creator>
      <dc:date>2010-03-04T14:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Bynary array to number</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Bynary-array-to-number/m-p/1083770#M479727</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;Ben wrote: &lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;Azzimuth wrote: &lt;BR /&gt;How would that help? That works with strings while I need byte array... &lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THat would help with the string coming from the serial port. If can be expanded and used to format multiple fields from a string.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt; Well that part is done and working fine. The only thing I need now is byte array to number conversion&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2010 14:34:11 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Bynary-array-to-number/m-p/1083770#M479727</guid>
      <dc:creator>Azzimuth</dc:creator>
      <dc:date>2010-03-04T14:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Bynary array to number</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Bynary-array-to-number/m-p/1083774#M479728</link>
      <description>&lt;P&gt;use index array to pull out the two bytes (it can be expanded by dragging the bottm down to get two outputs).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wire those two bytes to teh join and you are ready to go.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THere are other ways but I'll leave others to mention.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2010 14:37:10 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Bynary-array-to-number/m-p/1083774#M479728</guid>
      <dc:creator>Ben</dc:creator>
      <dc:date>2010-03-04T14:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Bynary array to number</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Bynary-array-to-number/m-p/1083781#M479730</link>
      <description>&lt;IMG src="http://forums.ni.com/t5/image/serverpage/image-id/11585i6D94005C8F975C7B/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="Join.PNG" title="Join.PNG" align="center" /&gt;</description>
      <pubDate>Thu, 04 Mar 2010 14:44:55 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Bynary-array-to-number/m-p/1083781#M479730</guid>
      <dc:creator>Ben</dc:creator>
      <dc:date>2010-03-04T14:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Bynary array to number</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Bynary-array-to-number/m-p/1083783#M479731</link>
      <description>Thanks a lot! That worked just fine &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Thu, 04 Mar 2010 14:47:01 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Bynary-array-to-number/m-p/1083783#M479731</guid>
      <dc:creator>Azzimuth</dc:creator>
      <dc:date>2010-03-04T14:47:01Z</dc:date>
    </item>
  </channel>
</rss>

