<?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: Convert Hexadecimal String to Byte Array in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Convert-Hexadecimal-String-to-Byte-Array/m-p/3009267#M860962</link>
    <description>Sorry for the misunderstanding...

another way of doing the conversion</description>
    <pubDate>Tue, 30 Sep 2014 07:34:48 GMT</pubDate>
    <dc:creator>Vijay_J</dc:creator>
    <dc:date>2014-09-30T07:34:48Z</dc:date>
    <item>
      <title>Convert Hexadecimal String to Byte Array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Convert-Hexadecimal-String-to-Byte-Array/m-p/3009131#M860941</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to convert an Hexadecimal String (e.g. 0x156FD18A4) to a Byte Array, the problem is that I do not have any delimiter (e.g 15 6F D1 8A 4) so I cannot use the Spreadsheet String To Array function, I tried to do something on my own, but everything seems to be too complicated is there any proper, clean and neat way to achieve what I want?&amp;nbsp;(or maybe a smart trick&amp;nbsp;to add delimiter every two characters in my original String)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2014 04:47:16 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Convert-Hexadecimal-String-to-Byte-Array/m-p/3009131#M860941</guid>
      <dc:creator>Nelval</dc:creator>
      <dc:date>2014-09-30T04:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Hexadecimal String to Byte Array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Convert-Hexadecimal-String-to-Byte-Array/m-p/3009135#M860943</link>
      <description>&lt;P&gt;Use the LabVIEW inbuilt function "String To Byte Array"&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2014 05:06:18 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Convert-Hexadecimal-String-to-Byte-Array/m-p/3009135#M860943</guid>
      <dc:creator>Vijay_J</dc:creator>
      <dc:date>2014-09-30T05:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Hexadecimal String to Byte Array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Convert-Hexadecimal-String-to-Byte-Array/m-p/3009137#M860944</link>
      <description>&lt;P&gt;Please attach a VI containing a typical input string as a diagram constant.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the input a hdexadecimally formatted string starting with "0x" and followed by a string if characters in the range A..F?&lt;/P&gt;
&lt;P&gt;What is the max (or fixed) lenght of the string? Does it represent a numeric of known representation?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2014 05:07:05 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Convert-Hexadecimal-String-to-Byte-Array/m-p/3009137#M860944</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2014-09-30T05:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Hexadecimal String to Byte Array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Convert-Hexadecimal-String-to-Byte-Array/m-p/3009161#M860947</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/202406"&gt;@Vijay_J&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Use the LabVIEW inbuilt function "String To Byte Array"&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Ok seems I was not clear enough, I do not want the value of the ASCII characters so this "&lt;SPAN&gt;LabVIEW inbuilt function "String To Byte Array"" cannot work unless I do some tricks substracting a certain number but to me it seems a bit weirdo to do that (but true I could do that to some extent,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;A = 65 =&amp;gt; 65 - 55 = 10, altough I don't really like the idea to rely on a blurry definition of what character set (i.e. encoding) is used through this conversion).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a example of what I want to achieve:&lt;/P&gt;
&lt;P&gt;Let's say my input is "0X465F66A54", ok I can trim the two first characters at beginnning of that Hexadecimal String and get something like that: "465F66A54".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now I would like to convert it to the corresponding&amp;nbsp;Byte Array matching the Hexadecimal Numbers represented by this Hexadecimal String aka:&lt;/P&gt;
&lt;P&gt;46 5F 66 A5 (0 left padding)4&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the Bytes I want to get (0x&amp;nbsp;is just here&amp;nbsp;to indicate the radix)&lt;/P&gt;
&lt;P&gt;0x46 [0]&lt;/P&gt;
&lt;P&gt;0x5F [1]&lt;/P&gt;
&lt;P&gt;0x66 [2]&lt;/P&gt;
&lt;P&gt;0xA5 [3]&lt;/P&gt;
&lt;P&gt;0x04 [4]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it clear enough now, or do I need to explain something else?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Oh last thing, about the string length, I don't really know but it can be pretty lon (e.g 42, 43 up to a few undreds of characters), and as it was introduced in the example above the string length is not necesserarly a multiple of two.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2014 05:48:23 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Convert-Hexadecimal-String-to-Byte-Array/m-p/3009161#M860947</guid>
      <dc:creator>Nelval</dc:creator>
      <dc:date>2014-09-30T05:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Hexadecimal String to Byte Array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Convert-Hexadecimal-String-to-Byte-Array/m-p/3009165#M860948</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/189874"&gt;@Nelval&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/202406"&gt;@Vijay_J&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Use the LabVIEW inbuilt function "String To Byte Array"&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Ok seems I was not clear enough, I do not want the value of the ASCII characters so this "&lt;SPAN&gt;LabVIEW inbuilt function "String To Byte Array"" cannot work unless I do some tricks substracting a certain number but to me it seems a bit weirdo to do that (but true I could do that to some extent,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;A = 65 =&amp;gt; 65 - 55 = 10, altough I don't really like the idea to rely on a blurry definition of what character set (i.e. encoding) is used through this conversion).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a example of what I want to achieve:&lt;/P&gt;
&lt;P&gt;Let's say my input is "0X465F66A54", ok I can trim the two first characters at beginnning of that Hexadecimal String and get something like that: "465F66A54".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now I would like to convert it to the corresponding&amp;nbsp;Byte Array matching the Hexadecimal Numbers represented by this Hexadecimal String aka:&lt;/P&gt;
&lt;P&gt;46 5F 66 A5 (0 left padding)4&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the Bytes I want to get (0x&amp;nbsp;is just here&amp;nbsp;to indicate the radix)&lt;/P&gt;
&lt;P&gt;0x46 [0]&lt;/P&gt;
&lt;P&gt;0x5F [1]&lt;/P&gt;
&lt;P&gt;0x66 [2]&lt;/P&gt;
&lt;P&gt;0xA5 [3]&lt;/P&gt;
&lt;P&gt;0x04 [4]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it clear enough now, or do I need to explain something else?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Oh last thing, about the string length, I don't really know but it can be pretty lon (e.g 42, 43 up to a few undreds of characters), and as it was introduced in the example above the string length is not necesserarly a multiple of two.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Please refer the attachment and VI snippet&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2014 06:02:30 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Convert-Hexadecimal-String-to-Byte-Array/m-p/3009165#M860948</guid>
      <dc:creator>Vijay_J</dc:creator>
      <dc:date>2014-09-30T06:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Hexadecimal String to Byte Array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Convert-Hexadecimal-String-to-Byte-Array/m-p/3009171#M860950</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/202406"&gt;@Vijay_J&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/189874"&gt;@Nelval&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/202406"&gt;@Vijay_J&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Use the LabVIEW inbuilt function "String To Byte Array"&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Ok seems I was not clear enough, I do not want the value of the ASCII characters so this "&lt;SPAN&gt;LabVIEW inbuilt function "String To Byte Array"" cannot work unless I do some tricks substracting a certain number but to me it seems a bit weirdo to do that (but true I could do that to some extent,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;A = 65 =&amp;gt; 65 - 55 = 10, altough I don't really like the idea to rely on a blurry definition of what character set (i.e. encoding) is used through this conversion).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a example of what I want to achieve:&lt;/P&gt;
&lt;P&gt;Let's say my input is "0X465F66A54", ok I can trim the two first characters at beginnning of that Hexadecimal String and get something like that: "465F66A54".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now I would like to convert it to the corresponding&amp;nbsp;Byte Array matching the Hexadecimal Numbers represented by this Hexadecimal String aka:&lt;/P&gt;
&lt;P&gt;46 5F 66 A5 (0 left padding)4&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the Bytes I want to get (0x&amp;nbsp;is just here&amp;nbsp;to indicate the radix)&lt;/P&gt;
&lt;P&gt;0x46 [0]&lt;/P&gt;
&lt;P&gt;0x5F [1]&lt;/P&gt;
&lt;P&gt;0x66 [2]&lt;/P&gt;
&lt;P&gt;0xA5 [3]&lt;/P&gt;
&lt;P&gt;0x04 [4]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it clear enough now, or do I need to explain something else?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Oh last thing, about the string length, I don't really know but it can be pretty lon (e.g 42, 43 up to a few undreds of characters), and as it was introduced in the example above the string length is not necesserarly a multiple of two.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Please refer the attachment and VI snippet&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This does not work either: the output is a String Array (and not matter what value contained in are not really matching the representation of the bytes contained in the Hexadecimal String).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2014 06:09:51 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Convert-Hexadecimal-String-to-Byte-Array/m-p/3009171#M860950</guid>
      <dc:creator>Nelval</dc:creator>
      <dc:date>2014-09-30T06:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Hexadecimal String to Byte Array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Convert-Hexadecimal-String-to-Byte-Array/m-p/3009181#M860951</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/202406"&gt;@Vijay_J&lt;/a&gt; wrote:&lt;BR /&gt;Please refer the attachment and VI snippet&amp;nbsp;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So, why is the input string set to hex display?&lt;/P&gt;
&lt;P&gt;If the lenght is odd, Is the right-most hex character always padded on the left with zero?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2014 06:27:45 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Convert-Hexadecimal-String-to-Byte-Array/m-p/3009181#M860951</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2014-09-30T06:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Hexadecimal String to Byte Array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Convert-Hexadecimal-String-to-Byte-Array/m-p/3009183#M860952</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Either entire string should be treated as Hex or Normal one all along&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Output byte array for the input hex string "465F66A54” is as follows&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;0x46 [0] - &amp;gt; 70&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;0x5F [1] - &amp;gt; 95&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;0x66 [2] - &amp;gt; 102&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;0xA5 [3] - &amp;gt; 165&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;0x04 [4] - &amp;gt; 4&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This is what exactly the "String To Byte Array" function does. Converting the Number/decimal/Unsigned integer to hex string is performed by "Number To Hexadecimal String".&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please refer the attachment. Hope I have conveyed, if not may be I did not understand your requirement correctly.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Vijay.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2014 06:28:36 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Convert-Hexadecimal-String-to-Byte-Array/m-p/3009183#M860952</guid>
      <dc:creator>Vijay_J</dc:creator>
      <dc:date>2014-09-30T06:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Hexadecimal String to Byte Array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Convert-Hexadecimal-String-to-Byte-Array/m-p/3009189#M860953</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/7614"&gt;@altenbach&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/202406"&gt;@Vijay_J&lt;/a&gt; wrote:&lt;BR /&gt;Please refer the attachment and VI snippet&amp;nbsp;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So, why is the input string set to hex display?&lt;/P&gt;
&lt;P&gt;If the lenght is odd, Is the right-most hex character always padded on the left with zero?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;As a sample VI, control accepting hex string directly, otherwise LabVIEW will perform the ASCI conversion.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Second, I haven't considered the length as odd or even. It always segregates from least significant bytes.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2014 06:34:49 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Convert-Hexadecimal-String-to-Byte-Array/m-p/3009189#M860953</guid>
      <dc:creator>Vijay_J</dc:creator>
      <dc:date>2014-09-30T06:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Hexadecimal String to Byte Array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Convert-Hexadecimal-String-to-Byte-Array/m-p/3009201#M860956</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/202406"&gt;@Vijay_J&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN&gt;Either entire string should be treated as Hex or Normal one all along&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Output byte array for the input hex string "465F66A54” is as follows&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;0x46 [0] - &amp;gt; 70&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;0x5F [1] - &amp;gt; 95&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;0x66 [2] - &amp;gt; 102&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;0xA5 [3] - &amp;gt; 165&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;0x04 [4] - &amp;gt; 4&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This is what exactly the "String To Byte Array" function does. Converting the Number/decimal/Unsigned integer to hex string is performed by "Number To Hexadecimal String".&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please refer the attachment. Hope I have conveyed, if not may be I did not understand your requirement correctly.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Vijay.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I agree with comment made above about the hexadecimal display. When I receive the String, it is already a Hexadecimal Format why should I need to use the Hexadecimal of a String Control... that actually makes absolutely no sense at all! (especially when the value are converted to their ASCII equivalent), I though I made myself clear with my example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I'm struggling about how to make it even more clear now, it is quite crystal for me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is attached an example but using a space delimiter as a separator in the Hexadecimal Input String, how to achieve the same with if I do not have the same separator between each Byte Representation in the orignal Hexadecimal String?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2014 06:48:04 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Convert-Hexadecimal-String-to-Byte-Array/m-p/3009201#M860956</guid>
      <dc:creator>Nelval</dc:creator>
      <dc:date>2014-09-30T06:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Hexadecimal String to Byte Array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Convert-Hexadecimal-String-to-Byte-Array/m-p/3009209#M860958</link>
      <description>&lt;P&gt;Hi Neival,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;something like this may work for you:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/ab01cc4c37164d2afde07890fa0d87454ec93bf7/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f31353536333969373243333138313036344244423234312f696d6167652d73697a652f6f726967696e616c3f763d6d70626c2d312670783d2d31" border="0" alt="check.png" title="check.png" align="middle" /&gt;&lt;/P&gt;
&lt;P&gt;(String in normal display mode…)&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2014 06:53:42 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Convert-Hexadecimal-String-to-Byte-Array/m-p/3009209#M860958</guid>
      <dc:creator>GerdW</dc:creator>
      <dc:date>2014-09-30T06:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Hexadecimal String to Byte Array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Convert-Hexadecimal-String-to-Byte-Array/m-p/3009249#M860960</link>
      <description>&lt;P&gt;I already came up with a solution pretty similar, I was expecting something a bit more builtin from LabVIEW, anyway, thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2014 07:21:04 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Convert-Hexadecimal-String-to-Byte-Array/m-p/3009249#M860960</guid>
      <dc:creator>Nelval</dc:creator>
      <dc:date>2014-09-30T07:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Hexadecimal String to Byte Array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Convert-Hexadecimal-String-to-Byte-Array/m-p/3009267#M860962</link>
      <description>Sorry for the misunderstanding...

another way of doing the conversion</description>
      <pubDate>Tue, 30 Sep 2014 07:34:48 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Convert-Hexadecimal-String-to-Byte-Array/m-p/3009267#M860962</guid>
      <dc:creator>Vijay_J</dc:creator>
      <dc:date>2014-09-30T07:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Hexadecimal String to Byte Array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Convert-Hexadecimal-String-to-Byte-Array/m-p/3009271#M860964</link>
      <description>&lt;P&gt;And where do these "solutions" do a left padding of the last "4" in the original example string?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2014 07:36:41 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Convert-Hexadecimal-String-to-Byte-Array/m-p/3009271#M860964</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2014-09-30T07:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Hexadecimal String to Byte Array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Convert-Hexadecimal-String-to-Byte-Array/m-p/3009279#M860966</link>
      <description>&lt;P&gt;Hi Christian,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;why insist on left padding? Conversion of trailing "4" will give the expected result 4…&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The question should rather be: Why does the data source omit the zero padding leaving us with an odd number of chars?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2014 07:44:09 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Convert-Hexadecimal-String-to-Byte-Array/m-p/3009279#M860966</guid>
      <dc:creator>GerdW</dc:creator>
      <dc:date>2014-09-30T07:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Hexadecimal String to Byte Array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Convert-Hexadecimal-String-to-Byte-Array/m-p/3009287#M860967</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/16916"&gt;@GerdW&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;why insist on left padding? Conversion of trailing "4" will give the expected result 4…&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes, yours does, but the other two don't.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2014 07:55:23 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Convert-Hexadecimal-String-to-Byte-Array/m-p/3009287#M860967</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2014-09-30T07:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Hexadecimal String to Byte Array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Convert-Hexadecimal-String-to-Byte-Array/m-p/3009297#M860968</link>
      <description>&lt;P&gt;Here's what should cover all scenarios (odd or even lenght)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;IMG src="https://ni.lithium.com/ni/attachments/ni/170/860968/1/HexHex.png" border="0" alt="" title="" align="center" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2014 08:07:31 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Convert-Hexadecimal-String-to-Byte-Array/m-p/3009297#M860968</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2014-09-30T08:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Hexadecimal String to Byte Array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Convert-Hexadecimal-String-to-Byte-Array/m-p/3009321#M860972</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/7614"&gt;@altenbach&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Here's what should cover all scenarios (odd or even lenght)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;IMG src="https://ni.lithium.com/ni/attachments/ni/170/860968/1/HexHex.png" border="0" alt="" title="" align="center" /&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for completing that part of the solution.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2014 08:32:08 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Convert-Hexadecimal-String-to-Byte-Array/m-p/3009321#M860972</guid>
      <dc:creator>Nelval</dc:creator>
      <dc:date>2014-09-30T08:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Hexadecimal String to Byte Array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Convert-Hexadecimal-String-to-Byte-Array/m-p/3010007#M861108</link>
      <description>&lt;P&gt;I know this post has been marked answered, but I just can't help myself.&amp;nbsp; And I do have the greatest respect for Chris' experience.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mostly in answer to Vijay's several attempts (some flat-out wrong, and the final one close but improvable), I'll attach the following two images (note, only one is a snippet):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/7c9c7e59d7433a94ceb21158f88dfbccf19ffb89/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f31353536383969463336363445364434313736443930362f696d6167652d73697a652f6f726967696e616c3f763d6d70626c2d312670783d2d31" border="0" alt="Efficient conversion of string of char pairs to U8 array.png" title="Efficient conversion of string of char pairs to U8 array.png" align="center" /&gt;&lt;IMG src="https://ip1.i.lithium.com/a4b02a9c5c3004b8fc10deab589eb0e4171e4687/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f31353536383769324536344344444638383744304542462f696d6167652d73697a652f6f726967696e616c3f763d6d70626c2d312670783d2d31" border="0" alt="tire_swing.jpg" title="tire_swing.jpg" align="center" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Apologies to all and best regards,&lt;/P&gt;
&lt;P&gt;Dave&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2014 17:26:26 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Convert-Hexadecimal-String-to-Byte-Array/m-p/3010007#M861108</guid>
      <dc:creator>DavidBoyd</dc:creator>
      <dc:date>2014-09-30T17:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Hexadecimal String to Byte Array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Convert-Hexadecimal-String-to-Byte-Array/m-p/3010221#M861150</link>
      <description>&lt;P&gt;for the fun of it:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/d483a3f30bd860cc68ba2fb173ba9b55689845fe/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f31353537303569303438333632333735463039353035342f696d6167652d73697a652f6f726967696e616c3f763d6d70626c2d312670783d2d31" border="0" alt="HexStringToBytes.png" title="HexStringToBytes.png" align="center" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2014 20:32:54 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Convert-Hexadecimal-String-to-Byte-Array/m-p/3010221#M861150</guid>
      <dc:creator>Darin.K</dc:creator>
      <dc:date>2014-09-30T20:32:54Z</dc:date>
    </item>
  </channel>
</rss>

