<?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: Decimal to Hexadecimal conversion in LabVIEW</title>
    <link>https://forums.ni.com/t5/LabVIEW/Decimal-to-Hexadecimal-conversion/m-p/2747678#M811368</link>
    <description>&lt;P&gt;HI all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; While we are doing serial communication like RS 232 we need to transfer the comands to the registers in the slave in the form of hexa decimal code, If we use normal conversion like number to hexadecimal string we will get the convertion value, but during transmission, only corrosponding ASCII code is been transmited to the slave which results in instable operation.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To avoid it we must do proper hexa transmission.&lt;/P&gt;
&lt;P&gt;See the VI attached below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Karthick K&lt;/P&gt;
&lt;P&gt;INDIA&lt;/P&gt;</description>
    <pubDate>Thu, 20 Feb 2014 03:56:18 GMT</pubDate>
    <dc:creator>whitecr</dc:creator>
    <dc:date>2014-02-20T03:56:18Z</dc:date>
    <item>
      <title>Decimal to Hexadecimal conversion</title>
      <link>https://forums.ni.com/t5/LabVIEW/Decimal-to-Hexadecimal-conversion/m-p/2745568#M810925</link>
      <description>&lt;P&gt;Hi all, I am trying to convert decimal number to hexadecimal number by normal conversion in the string palate, I am getting the proper hexadecimal value when my string indicator is in Normal display mode, when I change it to hex display I am getting ASCII code. I want to convert decimal value to proper hexadecimal value for my application please some one help.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2014 04:45:13 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Decimal-to-Hexadecimal-conversion/m-p/2745568#M810925</guid>
      <dc:creator>whitecr</dc:creator>
      <dc:date>2014-02-19T04:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Decimal to Hexadecimal conversion</title>
      <link>https://forums.ni.com/t5/LabVIEW/Decimal-to-Hexadecimal-conversion/m-p/2745588#M810932</link>
      <description>&lt;P&gt;Post your VI.&amp;nbsp; Give examples of what you have and what you want it to look like.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem with terms like decimal, hexadecimal, and ASCII is that they are frequently misused, and everyone has a slightly different intepretation as to what they mean by them.&amp;nbsp; For instance, I don't know what you mean exactly by "when I change to hex display I am getting ASCII code."&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2014 05:42:15 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Decimal-to-Hexadecimal-conversion/m-p/2745588#M810932</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2014-02-19T05:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: Decimal to Hexadecimal conversion</title>
      <link>https://forums.ni.com/t5/LabVIEW/Decimal-to-Hexadecimal-conversion/m-p/2745590#M810933</link>
      <description>&lt;P&gt;Thanks friend I got solution for it my self.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2014 05:45:20 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Decimal-to-Hexadecimal-conversion/m-p/2745590#M810933</guid>
      <dc:creator>whitecr</dc:creator>
      <dc:date>2014-02-19T05:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: Decimal to Hexadecimal conversion</title>
      <link>https://forums.ni.com/t5/LabVIEW/Decimal-to-Hexadecimal-conversion/m-p/2745594#M810934</link>
      <description>&lt;P&gt;Please find the attached VI, I got answer.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2014 05:53:57 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Decimal-to-Hexadecimal-conversion/m-p/2745594#M810934</guid>
      <dc:creator>whitecr</dc:creator>
      <dc:date>2014-02-19T05:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Decimal to Hexadecimal conversion</title>
      <link>https://forums.ni.com/t5/LabVIEW/Decimal-to-Hexadecimal-conversion/m-p/2745596#M810935</link>
      <description>&lt;P&gt;Well, yes... but more conventionally, you would use the Number to Hexadecimal String node in the Number/String Conversion palette.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2014 05:59:16 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Decimal-to-Hexadecimal-conversion/m-p/2745596#M810935</guid>
      <dc:creator>billko</dc:creator>
      <dc:date>2014-02-19T05:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: Decimal to Hexadecimal conversion</title>
      <link>https://forums.ni.com/t5/LabVIEW/Decimal-to-Hexadecimal-conversion/m-p/2745688#M810952</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.ni.com/t5/user/viewprofilepage/user-id/135106"&gt;@billko&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Well, yes... but more conventionally, you would use the Number to Hexadecimal String node in the Number/String Conversion palette.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;No, his string is in hex display, your conversion would give something entirely different.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(Granted, the original problem description was completely ambiguous and was not sufficient to give a solution.)&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2014 08:21:23 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Decimal-to-Hexadecimal-conversion/m-p/2745688#M810952</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2014-02-19T08:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Decimal to Hexadecimal conversion</title>
      <link>https://forums.ni.com/t5/LabVIEW/Decimal-to-Hexadecimal-conversion/m-p/2746738#M811173</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.ni.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://forums.ni.com/t5/user/viewprofilepage/user-id/135106"&gt;@billko&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Well, yes... but more conventionally, you would use the Number to Hexadecimal String node in the Number/String Conversion palette.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;No, his string is in hex display, your conversion would give something entirely different.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(Granted, the original problem description was completely ambiguous and was not sufficient to give a solution.)&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Nah, it wasn't the OPs fault.&amp;nbsp; I probably shouldn't be answering questions at midnight.&amp;nbsp; Upon looking at it in the morning, his solution is totally appropriate - that's the classic way of using the Type Cast Function.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2014 15:03:37 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Decimal-to-Hexadecimal-conversion/m-p/2746738#M811173</guid>
      <dc:creator>billko</dc:creator>
      <dc:date>2014-02-19T15:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Decimal to Hexadecimal conversion</title>
      <link>https://forums.ni.com/t5/LabVIEW/Decimal-to-Hexadecimal-conversion/m-p/2747678#M811368</link>
      <description>&lt;P&gt;HI all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; While we are doing serial communication like RS 232 we need to transfer the comands to the registers in the slave in the form of hexa decimal code, If we use normal conversion like number to hexadecimal string we will get the convertion value, but during transmission, only corrosponding ASCII code is been transmited to the slave which results in instable operation.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To avoid it we must do proper hexa transmission.&lt;/P&gt;
&lt;P&gt;See the VI attached below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Karthick K&lt;/P&gt;
&lt;P&gt;INDIA&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2014 03:56:18 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Decimal-to-Hexadecimal-conversion/m-p/2747678#M811368</guid>
      <dc:creator>whitecr</dc:creator>
      <dc:date>2014-02-20T03:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Decimal to Hexadecimal conversion</title>
      <link>https://forums.ni.com/t5/LabVIEW/Decimal-to-Hexadecimal-conversion/m-p/2747694#M811370</link>
      <description>&lt;P&gt;This is all obvious once we know what you actually want. "Hexadecmal" is a &lt;U&gt;display format&lt;/U&gt; while the device is apparently interested in the raw binary data, no matter how it is displayed.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2014 04:20:12 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Decimal-to-Hexadecimal-conversion/m-p/2747694#M811370</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2014-02-20T04:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Decimal to Hexadecimal conversion</title>
      <link>https://forums.ni.com/t5/LabVIEW/Decimal-to-Hexadecimal-conversion/m-p/2748190#M811449</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;But the device is not supporting the normal formate, we have to do like this only. I have tested with my device.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2014 13:21:16 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Decimal-to-Hexadecimal-conversion/m-p/2748190#M811449</guid>
      <dc:creator>whitecr</dc:creator>
      <dc:date>2014-02-20T13:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Decimal to Hexadecimal conversion</title>
      <link>https://forums.ni.com/t5/LabVIEW/Decimal-to-Hexadecimal-conversion/m-p/2748210#M811452</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.ni.com/t5/user/viewprofilepage/user-id/289532"&gt;@whitecr&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;But the device is not supporting the normal formate, we have to do like this only. I have tested with my device.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So do you still have a problem?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2014 13:34:11 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Decimal-to-Hexadecimal-conversion/m-p/2748210#M811452</guid>
      <dc:creator>crossrulz</dc:creator>
      <dc:date>2014-02-20T13:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Decimal to Hexadecimal conversion</title>
      <link>https://forums.ni.com/t5/LabVIEW/Decimal-to-Hexadecimal-conversion/m-p/2748564#M811519</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;whitecr wrote:
&lt;P&gt;But the device is not supporting the normal formate, we have to do like this only. I have tested with my device.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I wasn't questioning the method you use to communicate, I was just &lt;U&gt;questioning the terminology&lt;/U&gt; you use to describe it. No format is "normal", whatever that means. What counts are the actual bits. "hexadecimal" is just one possible way to show these values to the human eye.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You instruments apparently wants big endian flattened data. If you would have said that from the beginning, there would have been no ambiguity. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&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;</description>
      <pubDate>Thu, 20 Feb 2014 16:44:51 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Decimal-to-Hexadecimal-conversion/m-p/2748564#M811519</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2014-02-20T16:44:51Z</dc:date>
    </item>
  </channel>
</rss>

