<?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: Raw Hexadecimal to Floating Point Conversion for RPM readings from an Inverter in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Raw-Hexadecimal-to-Floating-Point-Conversion-for-RPM-readings/m-p/3984748#M1137726</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/637053"&gt;@ardahatunoglu&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am receiving my values in the following format "0203 045F FFBC EA1A 58" where I pull out the data part which is "5F FF BC EA" this is the RPM value of the inverter when it is not rotating, it is oscillating between " 00 00 00 00", I would like to learn how to interpret it as positive and negative floating point number.&lt;/P&gt;
&lt;P&gt;Thanks in Advance!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;If I take the raw data "&lt;SPAN&gt;5F FF BC EA" and swap the order of the words to "BCEA5FFF" and feed that into the IEEE-754 converter &lt;A href="https://babbage.cs.qc.cuny.edu/IEEE-754.old/32bit.html" target="_self"&gt;here&lt;/A&gt;, I get a decimal value of&amp;nbsp;-2.8610228e-2, or about -0.0286, which sounds like the -0.03 you're expecting to see.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Nov 2019 20:41:57 GMT</pubDate>
    <dc:creator>AaronTeitlebaum</dc:creator>
    <dc:date>2019-11-05T20:41:57Z</dc:date>
    <item>
      <title>Raw Hexadecimal to Floating Point Conversion for RPM readings from an Inverter</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Raw-Hexadecimal-to-Floating-Point-Conversion-for-RPM-readings/m-p/3984220#M1137534</link>
      <description>&lt;P&gt;I am receiving my values in the following format "0203 045F FFBC EA1A 58" where I pull out the data part which is "5F FF BC EA" this is the RPM value of the inverter when it is not rotating, it is oscillating between " 00 00 00 00", I would like to learn how to interpret it as positive and negative floating point number.&lt;/P&gt;
&lt;P&gt;Thanks in Advance!&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 18:02:44 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Raw-Hexadecimal-to-Floating-Point-Conversion-for-RPM-readings/m-p/3984220#M1137534</guid>
      <dc:creator>ardahatunoglu</dc:creator>
      <dc:date>2019-11-04T18:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: Raw Hexadecimal to Floating Point Conversion for RPM readings from an Inverter</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Raw-Hexadecimal-to-Floating-Point-Conversion-for-RPM-readings/m-p/3984272#M1137538</link>
      <description>&lt;P&gt;Be careful with the word "format", because you have a binary string in hex display. (Not a formatted string with&amp;nbsp; characters 0..F, space delimiters, etc)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What RPM value do you expect from the given string? Do you know the byte order?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a first step we might try typecasting to SGL. (array reversed or plain). Is there any scaling involved?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 18:18:42 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Raw-Hexadecimal-to-Floating-Point-Conversion-for-RPM-readings/m-p/3984272#M1137538</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2019-11-04T18:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Raw Hexadecimal to Floating Point Conversion for RPM readings from an Inverter</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Raw-Hexadecimal-to-Floating-Point-Conversion-for-RPM-readings/m-p/3984281#M1137543</link>
      <description>&lt;P&gt;It should be around -0.03 rpm( I am at home but it should be around this value), LeastSignificantBit to MostSignificantBit(LSB-to-MSB is the bit order in a byte) and no scaling. Eventually while doing the tests that I want to do it will be rotating to one direction only.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 19:08:30 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Raw-Hexadecimal-to-Floating-Point-Conversion-for-RPM-readings/m-p/3984281#M1137543</guid>
      <dc:creator>ardahatunoglu</dc:creator>
      <dc:date>2019-11-04T19:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: Raw Hexadecimal to Floating Point Conversion for RPM readings from an Inverter</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Raw-Hexadecimal-to-Floating-Point-Conversion-for-RPM-readings/m-p/3984292#M1137549</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/637053"&gt;@ardahatunoglu&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;LeastSignificantBit to MostSignificantBit(LSB-to-MSB is the bit order in a byte.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;"Bit order" in a byte is &lt;U&gt;not a thing&lt;/U&gt;. Byte order defines the order of bytes in multi-byte data.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 19:38:16 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Raw-Hexadecimal-to-Floating-Point-Conversion-for-RPM-readings/m-p/3984292#M1137549</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2019-11-04T19:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: Raw Hexadecimal to Floating Point Conversion for RPM readings from an Inverter</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Raw-Hexadecimal-to-Floating-Point-Conversion-for-RPM-readings/m-p/3984573#M1137648</link>
      <description>&lt;P&gt;Just playing around with the data, it is definitely not a raw SGL.&amp;nbsp; So what does the documentation say on how to interpret the data?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 13:27:06 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Raw-Hexadecimal-to-Floating-Point-Conversion-for-RPM-readings/m-p/3984573#M1137648</guid>
      <dc:creator>crossrulz</dc:creator>
      <dc:date>2019-11-05T13:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Raw Hexadecimal to Floating Point Conversion for RPM readings from an Inverter</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Raw-Hexadecimal-to-Floating-Point-Conversion-for-RPM-readings/m-p/3984575#M1137649</link>
      <description>&lt;P&gt;Thanks for helping out by the way I learned a lot already which I didn't have almost any idea about endianness. I am using MODBUS RTU which generally implements&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A class="mw-redirect" title="IEEE floating point" href="https://en.wikipedia.org/wiki/IEEE_floating_point" target="_blank"&gt;IEEE 754&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;standard. Big Endian should be the format. So the hex that I wrote "5FFFBCEA" coressponds to 3.6855722E19 which indicates there is a problem&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 13:37:04 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Raw-Hexadecimal-to-Floating-Point-Conversion-for-RPM-readings/m-p/3984575#M1137649</guid>
      <dc:creator>ardahatunoglu</dc:creator>
      <dc:date>2019-11-05T13:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Raw Hexadecimal to Floating Point Conversion for RPM readings from an Inverter</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Raw-Hexadecimal-to-Floating-Point-Conversion-for-RPM-readings/m-p/3984576#M1137650</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/637053"&gt;@ardahatunoglu&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;It should be around -0.03 rpm( I am at home but it should be around this value), LeastSignificantBit to MostSignificantBit(LSB-to-MSB is the bit order in a byte) and no scaling.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;There has to be scaling of some sort.&amp;nbsp; Again, playing around, I came up with this setup.&amp;nbsp; Double check to documentation and correct as necessary.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://forums.ni.com/ni/attachments/ni/170/1137650/1/negative%20floating%20point%20interpretation.png" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 13:38:29 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Raw-Hexadecimal-to-Floating-Point-Conversion-for-RPM-readings/m-p/3984576#M1137650</guid>
      <dc:creator>crossrulz</dc:creator>
      <dc:date>2019-11-05T13:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: Raw Hexadecimal to Floating Point Conversion for RPM readings from an Inverter</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Raw-Hexadecimal-to-Floating-Point-Conversion-for-RPM-readings/m-p/3984748#M1137726</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/637053"&gt;@ardahatunoglu&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am receiving my values in the following format "0203 045F FFBC EA1A 58" where I pull out the data part which is "5F FF BC EA" this is the RPM value of the inverter when it is not rotating, it is oscillating between " 00 00 00 00", I would like to learn how to interpret it as positive and negative floating point number.&lt;/P&gt;
&lt;P&gt;Thanks in Advance!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;If I take the raw data "&lt;SPAN&gt;5F FF BC EA" and swap the order of the words to "BCEA5FFF" and feed that into the IEEE-754 converter &lt;A href="https://babbage.cs.qc.cuny.edu/IEEE-754.old/32bit.html" target="_self"&gt;here&lt;/A&gt;, I get a decimal value of&amp;nbsp;-2.8610228e-2, or about -0.0286, which sounds like the -0.03 you're expecting to see.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 20:41:57 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Raw-Hexadecimal-to-Floating-Point-Conversion-for-RPM-readings/m-p/3984748#M1137726</guid>
      <dc:creator>AaronTeitlebaum</dc:creator>
      <dc:date>2019-11-05T20:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Raw Hexadecimal to Floating Point Conversion for RPM readings from an Inverter</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Raw-Hexadecimal-to-Floating-Point-Conversion-for-RPM-readings/m-p/3984753#M1137730</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/628687"&gt;@AaronTeitlebaum&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;If I take the raw data "&lt;SPAN&gt;5F FF BC EA" and swap the order of the words to "BCEA5FFF" and feed that into the IEEE-754 converter &lt;A href="https://babbage.cs.qc.cuny.edu/IEEE-754.old/32bit.html" target="_self"&gt;here&lt;/A&gt;, I get a decimal value of&amp;nbsp;-2.8610228e-2, or about -0.0286, which sounds like the -0.03 you're expecting to see.&lt;/SPAN&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yep, that seems a lot more likely than what I posted earlier.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://forums.ni.com/ni/attachments/ni/170/1137730/1/Example_VI.png" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 20:52:29 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Raw-Hexadecimal-to-Floating-Point-Conversion-for-RPM-readings/m-p/3984753#M1137730</guid>
      <dc:creator>crossrulz</dc:creator>
      <dc:date>2019-11-05T20:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Raw Hexadecimal to Floating Point Conversion for RPM readings from an Inverter</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Raw-Hexadecimal-to-Floating-Point-Conversion-for-RPM-readings/m-p/3990187#M1138623</link>
      <description>&lt;P&gt;there was no way I could have done without you two. thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2019 15:53:56 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Raw-Hexadecimal-to-Floating-Point-Conversion-for-RPM-readings/m-p/3990187#M1138623</guid>
      <dc:creator>ardahatunoglu</dc:creator>
      <dc:date>2019-11-12T15:53:56Z</dc:date>
    </item>
  </channel>
</rss>

