<?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: Precision loss for float in cluster in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Precision-loss-for-float-in-cluster/m-p/4460563#M1317543</link>
    <description>&lt;P&gt;We can't debug images! You even forgot to show the probe values in the screen shot, so it is utterly useless, although I would need to see other values too to even start to have a guess where things are going wrong.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That said, while I kind of can understand the Interleave Array at the left side, what you do in the loop to tear apart the individual string into two 2 char strings and then concatenate them back in exactly the same order makes no sense to me. My suspicion is actually that this could be simplified even more.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Attach the actual VIs (or at least the part you show in your picture) with some default data saved in the controls so we can play with that ourselves.&lt;/P&gt;</description>
    <pubDate>Fri, 14 Nov 2025 14:41:42 GMT</pubDate>
    <dc:creator>rolfk</dc:creator>
    <dc:date>2025-11-14T14:41:42Z</dc:date>
    <item>
      <title>Precision loss for float in cluster</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Precision-loss-for-float-in-cluster/m-p/4460559#M1317541</link>
      <description>&lt;P&gt;I'm having some issues with a program that I just can't comperehend.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have some floating point single precision values coming in as hexadimal strings. These get rearranged and converted into single precision floats correctly in Labview. Everything looks nice. I then take an array of these and shove them into a cluster using BundleByName. This causes the values to be truncated(?) to zero. Somehow, the data changes when it gets added to the cluster. I can verify this with a probe right before and right after the insertion. Taking one of the float-values and setting it in a control, and trying to add that to the array in the cluster also leaves me with zero. I just don't understand how I can get this value to stay intact. I need to maintain the binary data 100% correctly. Of course, a different data format would be ideal, but that is not possible since it would involve to much architectural changes. I increased number of digits of precision in the strict type def of the cluster, but with no luck.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Nov 2025 14:21:52 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Precision-loss-for-float-in-cluster/m-p/4460559#M1317541</guid>
      <dc:creator>ThomHell</dc:creator>
      <dc:date>2025-11-14T14:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Precision loss for float in cluster</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Precision-loss-for-float-in-cluster/m-p/4460563#M1317543</link>
      <description>&lt;P&gt;We can't debug images! You even forgot to show the probe values in the screen shot, so it is utterly useless, although I would need to see other values too to even start to have a guess where things are going wrong.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That said, while I kind of can understand the Interleave Array at the left side, what you do in the loop to tear apart the individual string into two 2 char strings and then concatenate them back in exactly the same order makes no sense to me. My suspicion is actually that this could be simplified even more.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Attach the actual VIs (or at least the part you show in your picture) with some default data saved in the controls so we can play with that ourselves.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Nov 2025 14:41:42 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Precision-loss-for-float-in-cluster/m-p/4460563#M1317543</guid>
      <dc:creator>rolfk</dc:creator>
      <dc:date>2025-11-14T14:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Precision loss for float in cluster</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Precision-loss-for-float-in-cluster/m-p/4460570#M1317544</link>
      <description>&lt;P&gt;No parts of you image shows any "precision loss". Things also happen in subVIs that we can't inspect.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please define terms such as "truncated to zero". What kind if values do you expect instead (close to zero? Large?) How do you tell "precision"? Could it just be the formatting of your indicators?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Take the toplevel VI and do a "save for previous" (2020 or below), zip up the resulting folder and attach it here (it will contain all dependencies). Make sure that all controls have reasonable default values. Also include some typical "hexacedimal strings" (sic), e.g. as diagram constants.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Nov 2025 15:23:15 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Precision-loss-for-float-in-cluster/m-p/4460570#M1317544</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2025-11-14T15:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Precision loss for float in cluster</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Precision-loss-for-float-in-cluster/m-p/4460623#M1317560</link>
      <description>&lt;P&gt;Things ended up being a bit to hurried when I wrote the initial post, as I had to leave in a hurry.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For very unfortunate reasons, I am not able to share any code that would held clarify much. But the attached screenshot shows at least one problematic value (all values that are small enough seem to be an issue). As one can see, there is one value right before "BundleByName" and a different one right after, as shown by the probe values. I need the values to be exactly what they are before "BundleByName".&lt;/P&gt;</description>
      <pubDate>Fri, 14 Nov 2025 19:14:33 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Precision-loss-for-float-in-cluster/m-p/4460623#M1317560</guid>
      <dc:creator>ThomHell</dc:creator>
      <dc:date>2025-11-14T19:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Precision loss for float in cluster</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Precision-loss-for-float-in-cluster/m-p/4460625#M1317562</link>
      <description>&lt;P&gt;Unfortunately I'm quite limited in what I'm able to share, but I've attached another screenshot in a later post.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, this is not particularly pretty, and I suspect that quite a lot of this could be done a lot simpler. Unfortunately, this is a case of "don't touch anything you don't need to, it is kinda working now". A rats nest of nasty things, made by a third party, who don't think we are a large enough of customer to prioritize us. Just the fact that floats are used to carry binary data is utterly horrendous, but nothing I can do anything about. (Custom network protocol between two different platforms, with no header in the message to define protocol version).&lt;/P&gt;</description>
      <pubDate>Fri, 14 Nov 2025 19:22:15 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Precision-loss-for-float-in-cluster/m-p/4460625#M1317562</guid>
      <dc:creator>ThomHell</dc:creator>
      <dc:date>2025-11-14T19:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: Precision loss for float in cluster</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Precision-loss-for-float-in-cluster/m-p/4460629#M1317564</link>
      <description>&lt;P&gt;I'll ask!&amp;nbsp; What is inside the (looks like To Zero) subvi?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just guessing that,&amp;nbsp; that subvi might have something to do with your issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hmmmm let's ask my 8-Ball....~~~~~Oh 8-Ball...&lt;/P&gt;</description>
      <pubDate>Fri, 14 Nov 2025 19:39:52 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Precision-loss-for-float-in-cluster/m-p/4460629#M1317564</guid>
      <dc:creator>JÞB</dc:creator>
      <dc:date>2025-11-14T19:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Precision loss for float in cluster</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Precision-loss-for-float-in-cluster/m-p/4460633#M1317565</link>
      <description>&lt;P&gt;Pretty sure it's your display format. One of your probes is set to "Floating point" and the other is "Automatic formatting" or "Scientific formatting". For example, the default Double control (what's shown for a Double array):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BertMcMahan_0-1763149575025.png" style="width: 400px;"&gt;&lt;img src="https://ip1.i.lithium.com/c3e0c140a18e0b0d9f428ef139642b9c38bbe0be/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f33353136393469414236313944353130323238453430442f696d6167652d73697a652f6d656469756d3f763d76322670783d343030" role="button" title="BertMcMahan_0-1763149575025.png" alt="BertMcMahan_0-1763149575025.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you change that to "Floating point" you get:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BertMcMahan_1-1763149594999.png" style="width: 400px;"&gt;&lt;img src="https://ip1.i.lithium.com/66ce10f53fd2d6716d1d7ab772567352bd028307/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f33353136393569464134393536443446444239303736362f696d6167652d73697a652f6d656469756d3f763d76322670783d343030" role="button" title="BertMcMahan_1-1763149594999.png" alt="BertMcMahan_1-1763149594999.png" /&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;Go to your typedef and change the display formatting for Data.InfoDataLowPri to "Automatic" or "Scientific" and you'll see the data again. Since you don't have any coercion dots, you're not losing any information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(edit: just noticed you're using a Single not a Double, but the reasoning stands.)&lt;/P&gt;</description>
      <pubDate>Fri, 14 Nov 2025 19:48:11 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Precision-loss-for-float-in-cluster/m-p/4460633#M1317565</guid>
      <dc:creator>BertMcMahan</dc:creator>
      <dc:date>2025-11-14T19:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Precision loss for float in cluster</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Precision-loss-for-float-in-cluster/m-p/4460636#M1317566</link>
      <description>&lt;P&gt;Might it be that the default numeric indicator in the probe isn't wide enough to show you the number 1.92597E-32 as a standard float?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dsbNI_0-1763149925764.png" style="width: 400px;"&gt;&lt;img src="https://ip1.i.lithium.com/cdd3615451e648855c463ade88959682033d92f8/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f33353136393669463530323932334137303539343130312f696d6167652d73697a652f6d656469756d3f763d76322670783d343030" role="button" title="dsbNI_0-1763149925764.png" alt="dsbNI_0-1763149925764.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Since you were able to pinpoint the problem area in the code, create a subVI around that bundle by name, and spend your debugging efforts there.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Nov 2025 19:57:05 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Precision-loss-for-float-in-cluster/m-p/4460636#M1317566</guid>
      <dc:creator>dsb@NI</dc:creator>
      <dc:date>2025-11-14T19:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Precision loss for float in cluster</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Precision-loss-for-float-in-cluster/m-p/4460639#M1317568</link>
      <description>&lt;P&gt;So I've found that the code in question here actually works. Although it is cumbersome and terrible, it is not wrong. I was fooled by the indicator formatting. Which means I have an issue in a completely different area of my code, but that is probably easier to pinpoint now that I know the data is correct. Thanks for all the suggestions.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Nov 2025 20:13:36 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Precision-loss-for-float-in-cluster/m-p/4460639#M1317568</guid>
      <dc:creator>ThomHell</dc:creator>
      <dc:date>2025-11-14T20:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Precision loss for float in cluster</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Precision-loss-for-float-in-cluster/m-p/4460642#M1317569</link>
      <description>&lt;P&gt;On a related note, measurement data (especially SGL) is typically not in a range of 1e-32 to 1e-37. This is really near the edge of the datatype.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You don't describe how you are turning a hex string (ambiguous term that can mean many things!) into SGL, but could it be you are using the wrong byte order? (LabVIEW is always big endian, even on windows)&lt;/P&gt;</description>
      <pubDate>Fri, 14 Nov 2025 20:41:14 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Precision-loss-for-float-in-cluster/m-p/4460642#M1317569</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2025-11-14T20:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Precision loss for float in cluster</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Precision-loss-for-float-in-cluster/m-p/4460763#M1317612</link>
      <description>&lt;P&gt;The data in question is not actually a measurement of sorts at all. It is two 16-bit integers stuffed into a 32 bit float, that is then unpacked again in labview into two 16-bit integers. So that the values look very suspicious is not that wierd.&lt;BR /&gt;&lt;BR /&gt;I finally managed to find the root cause of my problem in a completely different part of the whole program. When converting the float to two integers, someone had decided to do a numeric conversion instead of a type cast. I was just led astray by the front panel resolution on the float-values, and ended up in the completely wrong place.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Nov 2025 10:12:15 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Precision-loss-for-float-in-cluster/m-p/4460763#M1317612</guid>
      <dc:creator>ThomHell</dc:creator>
      <dc:date>2025-11-17T10:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Precision loss for float in cluster</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Precision-loss-for-float-in-cluster/m-p/4460832#M1317643</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/758629"&gt;@ThomHell&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I then take an array of these and shove them into a cluster using BundleByName. This causes the values to be truncated(?) to zero. Somehow, the data changes when it gets added to the cluster..&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I can guarantee that bundling will not touch the data. If you don't believe me, just unbundle it again and compare, e.g. as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="altenbach_0-1763151419292.png" style="width: 999px;"&gt;&lt;img src="https://ip1.i.lithium.com/8b9c52efc7049715452adc4e9fbea583ee8f3011/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f33353136393769454142393244324145303531453941342f696d6167652d73697a652f6c617267653f763d76322670783d393939" role="button" title="altenbach_0-1763151419292.png" alt="altenbach_0-1763151419292.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Depending on what kind of typedef the cluster is, you might have to use the controls editor&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Nov 2025 20:15:28 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Precision-loss-for-float-in-cluster/m-p/4460832#M1317643</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2025-11-17T20:15:28Z</dc:date>
    </item>
  </channel>
</rss>

