<?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: remove two leading zeros from hex string in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/remove-two-leading-zeros-from-hex-string/m-p/3319426#M972710</link>
    <description>&lt;P&gt;There is probably much more going on than it "just adding two extra zeroes" that you need to chop off.&amp;nbsp; Find out what's &lt;EM&gt;really&lt;/EM&gt; going on so you don't make the mistake of treating the symptom and not the cause.&amp;nbsp; (I can pretty much guarantee that chopping off the extra zeroes without understanding why will lead to heartache down the road.)&lt;/P&gt;</description>
    <pubDate>Fri, 08 Jul 2016 06:54:31 GMT</pubDate>
    <dc:creator>billko</dc:creator>
    <dc:date>2016-07-08T06:54:31Z</dc:date>
    <item>
      <title>remove two leading zeros from hex string</title>
      <link>https://ni.lithium.com/t5/LabVIEW/remove-two-leading-zeros-from-hex-string/m-p/3319372#M972693</link>
      <description>&lt;P&gt;I am passing a ASCII string from Test Stand to a VI i wrote and I start out with "04" and my VI get the ASCII "04" normal.&amp;nbsp; I then convert&amp;nbsp; a ASCII string to a Hex string (using a VI solution I found on the web) and instead of it being Hex Display "04", it adds two leading zeros in the Hex&amp;nbsp; Display "0004".&amp;nbsp; I need to remove the two leading zeros so it is just "04".&amp;nbsp; I am sure there is probably a obvious solution (I am rather new at LabVIEW). Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2016 23:54:58 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/remove-two-leading-zeros-from-hex-string/m-p/3319372#M972693</guid>
      <dc:creator>PO1</dc:creator>
      <dc:date>2016-07-07T23:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: remove two leading zeros from hex string</title>
      <link>https://ni.lithium.com/t5/LabVIEW/remove-two-leading-zeros-from-hex-string/m-p/3319373#M972694</link>
      <description>&lt;P&gt;String palette &amp;gt;&amp;gt; String Subset&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Better yet, fix the VI you found on the web that is giving you the extra zeroes.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2016 00:01:40 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/remove-two-leading-zeros-from-hex-string/m-p/3319373#M972694</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2016-07-08T00:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: remove two leading zeros from hex string</title>
      <link>https://ni.lithium.com/t5/LabVIEW/remove-two-leading-zeros-from-hex-string/m-p/3319374#M972695</link>
      <description>&lt;P&gt;Could you supply the code that you are doing the conversion with?&amp;nbsp; We will likely find your problem there.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2016 00:00:43 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/remove-two-leading-zeros-from-hex-string/m-p/3319374#M972695</guid>
      <dc:creator>crossrulz</dc:creator>
      <dc:date>2016-07-08T00:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: remove two leading zeros from hex string</title>
      <link>https://ni.lithium.com/t5/LabVIEW/remove-two-leading-zeros-from-hex-string/m-p/3319426#M972710</link>
      <description>&lt;P&gt;There is probably much more going on than it "just adding two extra zeroes" that you need to chop off.&amp;nbsp; Find out what's &lt;EM&gt;really&lt;/EM&gt; going on so you don't make the mistake of treating the symptom and not the cause.&amp;nbsp; (I can pretty much guarantee that chopping off the extra zeroes without understanding why will lead to heartache down the road.)&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2016 06:54:31 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/remove-two-leading-zeros-from-hex-string/m-p/3319426#M972710</guid>
      <dc:creator>billko</dc:creator>
      <dc:date>2016-07-08T06:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: remove two leading zeros from hex string</title>
      <link>https://ni.lithium.com/t5/LabVIEW/remove-two-leading-zeros-from-hex-string/m-p/3319764#M972839</link>
      <description>&lt;P&gt;I think this conversion does what you are looking for.&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://ni.lithium.com/ni/attachments/ni/170/972839/1/Convert%20to%20Hex.png" border="0" alt="" title="" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2016 16:24:20 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/remove-two-leading-zeros-from-hex-string/m-p/3319764#M972839</guid>
      <dc:creator>crossrulz</dc:creator>
      <dc:date>2016-07-08T16:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: remove two leading zeros from hex string</title>
      <link>https://ni.lithium.com/t5/LabVIEW/remove-two-leading-zeros-from-hex-string/m-p/3319810#M972865</link>
      <description>&lt;P&gt;One thing I left out.&amp;nbsp; The VI works fine by it self, when I input a 04 string&amp;nbsp;in Hex Display.&lt;/P&gt;&lt;P&gt;The problem is&amp;nbsp;that&amp;nbsp;I am passing a 04 string from TestStand, it shows up as the Hex value 34 (Hex Display), not the symbol 04 (Hex Display).&amp;nbsp; This is where I added the Hex convert section where is converts to 0004 (Hex Display) but I need it to be 04.&amp;nbsp; The convert program does&amp;nbsp;converts the string 17FF (Normal Display) to 17FF (Hex Display) correctly, it just has a problem a 04 (2 digits) vs17FF (4 digits).&lt;/P&gt;&lt;P&gt;I then pass the concatenated string to a microprocessor.&lt;IMG src="https://ip1.i.lithium.com/9352c84985518b293779228bf610789ed9d24af6/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f31383539393069334638393035393241364646424143312f696d6167652d73697a652f6f726967696e616c3f763d76322670783d2d31" border="0" alt="Labview_VI.jpg" title="Labview_VI.jpg" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2016 17:31:50 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/remove-two-leading-zeros-from-hex-string/m-p/3319810#M972865</guid>
      <dc:creator>PO1</dc:creator>
      <dc:date>2016-07-08T17:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: remove two leading zeros from hex string</title>
      <link>https://ni.lithium.com/t5/LabVIEW/remove-two-leading-zeros-from-hex-string/m-p/3319814#M972869</link>
      <description>&lt;P&gt;Wiring a format statement to a typecast operation just confuses the programer. Don't do that. The value is not important, just the type. (...and if you want a string, you don't even need to wire the type. String is the default!)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the representation of the blue zero diagram constant wired to the bottom left of "hex string to munber"? &lt;STRONG&gt;Make sure it is U8&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Please attach the actual VI, many things cannot be determine by a picture alone. Thanks!&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2016 17:41:14 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/remove-two-leading-zeros-from-hex-string/m-p/3319814#M972869</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2016-07-08T17:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: remove two leading zeros from hex string</title>
      <link>https://ni.lithium.com/t5/LabVIEW/remove-two-leading-zeros-from-hex-string/m-p/3319838#M972881</link>
      <description>&lt;P&gt;Changing&amp;nbsp; the 0 from U16 to U8 fixed it.&lt;/P&gt;&lt;P&gt;I can't believe it was that easy - I won't make that mistake again.&lt;/P&gt;&lt;P&gt;I will also look into the programming issue you pointed out.&lt;/P&gt;&lt;P&gt;Thank you, (&amp;nbsp;Kudos)&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2016 18:28:56 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/remove-two-leading-zeros-from-hex-string/m-p/3319838#M972881</guid>
      <dc:creator>PO1</dc:creator>
      <dc:date>2016-07-08T18:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: remove two leading zeros from hex string</title>
      <link>https://ni.lithium.com/t5/LabVIEW/remove-two-leading-zeros-from-hex-string/m-p/3319912#M972908</link>
      <description>&lt;P&gt;Well, this shows you why code images are not useful for troubleshooting.&lt;/P&gt;&lt;P&gt;There is no way to tell what the representation of these constants is! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2016 20:32:02 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/remove-two-leading-zeros-from-hex-string/m-p/3319912#M972908</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2016-07-08T20:32:02Z</dc:date>
    </item>
  </channel>
</rss>

