<?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: data displayed from a spreadsheet not correctly in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/data-displayed-from-a-spreadsheet-not-correctly/m-p/3313467#M970331</link>
    <description>&lt;P&gt;If you need more detailed help, attach the data file (or a smaller version of it) and the actual VI.&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jun 2016 23:14:20 GMT</pubDate>
    <dc:creator>altenbach</dc:creator>
    <dc:date>2016-06-23T23:14:20Z</dc:date>
    <item>
      <title>data displayed from a spreadsheet not correctly</title>
      <link>https://ni.lithium.com/t5/LabVIEW/data-displayed-from-a-spreadsheet-not-correctly/m-p/3313451#M970328</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to read the content of a spreadsheet (matlab&amp;nbsp;variable) in labview using read from speardsheet VI.But the problem is that&amp;nbsp;when i display the data (using the polymorphic VI double) I get an array containing 2, 1 etc.. but the correct values should be 0.026855000000000 (via Matlab)..&lt;/P&gt;&lt;P&gt;I'm using this data&amp;nbsp;as an input for a matlab&amp;nbsp;algorithm (.m file using matlab script) , since i get a different result implementing the same .m file and input in using&amp;nbsp;labview than using matlab,&amp;nbsp;i thought that maybe the problem is&amp;nbsp;the input data..&lt;BR /&gt;Here is the code&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2016 22:30:53 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/data-displayed-from-a-spreadsheet-not-correctly/m-p/3313451#M970328</guid>
      <dc:creator>remapears</dc:creator>
      <dc:date>2016-06-23T22:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: data displayed from a spreadsheet not correctly</title>
      <link>https://ni.lithium.com/t5/LabVIEW/data-displayed-from-a-spreadsheet-not-correctly/m-p/3313465#M970330</link>
      <description>&lt;P&gt;Try to use %f instead of %d (%d is for signed integers)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(...or just leave the format and # of rows unwired. The defaults are OK!)&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2016 23:13:51 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/data-displayed-from-a-spreadsheet-not-correctly/m-p/3313465#M970330</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2016-06-23T23:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: data displayed from a spreadsheet not correctly</title>
      <link>https://ni.lithium.com/t5/LabVIEW/data-displayed-from-a-spreadsheet-not-correctly/m-p/3313467#M970331</link>
      <description>&lt;P&gt;If you need more detailed help, attach the data file (or a smaller version of it) and the actual VI.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2016 23:14:20 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/data-displayed-from-a-spreadsheet-not-correctly/m-p/3313467#M970331</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2016-06-23T23:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: data displayed from a spreadsheet not correctly</title>
      <link>https://ni.lithium.com/t5/LabVIEW/data-displayed-from-a-spreadsheet-not-correctly/m-p/3313491#M970340</link>
      <description>&lt;P&gt;Pictures are pretty useless -- we cannot "inspect" them, we cannot "execute" them, and they are frequently "incomplete" (a small piece of the puzzle). &amp;nbsp;I'm sure there is a problem in your code, but would need to see your code, so&amp;nbsp;&lt;U&gt;attach your VI&lt;/U&gt;. &amp;nbsp;Also, since the problem involves reading and parsing a data file,&amp;nbsp;&lt;U&gt;attach an example of the data file&lt;/U&gt;. &amp;nbsp;With these two things to guide us, you should get a quick (and correct) response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bob Schor&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that Altenbach just said this -- I'm just a poor echo ...&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2016 01:26:53 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/data-displayed-from-a-spreadsheet-not-correctly/m-p/3313491#M970340</guid>
      <dc:creator>Bob_Schor</dc:creator>
      <dc:date>2016-06-24T01:26:53Z</dc:date>
    </item>
    <item>
      <title>Re : data displayed from a spreadsheet not correctly</title>
      <link>https://ni.lithium.com/t5/LabVIEW/data-displayed-from-a-spreadsheet-not-correctly/m-p/3313582#M970375</link>
      <description>&lt;P&gt;Hi there, thanks for your replies .. Okay I attached two files (Matlab variables saved as ASCII) that I want to load to the VI and&amp;nbsp;get the correct classification (i.e: h1_Healthy as (in french) healthy gears, healthy bearings, healthy shaft (engrenages&amp;nbsp;sains, roulements sains et arbres de rotation saines&amp;nbsp;) and h4_Healthy_F_F as Healthy gear, faulty bearing and faulty shaft (engrenages&lt;SPAN&gt;&amp;nbsp;sains, &lt;/SPAN&gt;roulements defectueux&amp;nbsp;&lt;SPAN&gt;et &lt;/SPAN&gt;arbres de rotation defectueuses&lt;SPAN&gt;) ) ..&lt;BR /&gt;&lt;/SPAN&gt;For your information, the VI contains the MATLAB script of some classifiers (3) that&amp;nbsp;predict the class of 3 component&amp;nbsp;of a gearbox (gears, bearings and shaft). And since the data that they (classifiers) learned on are the same I'm trying to&amp;nbsp;load, the percent of prediction should be 100% for every correct class, the problem is&amp;nbsp;for gears&amp;nbsp;the percent of the correct classification is only 66% meaning that&amp;nbsp;one classifier thought that the gear is faulty (for h1_Healthy) .., you can see the same problem for the second variable..&lt;BR /&gt;I hope&amp;nbsp;this time the idea is clearer..Thank you for your time and consideration.&lt;/P&gt;&lt;P&gt;The reason why I didn't want to put up the vi and all, because it wouldn't work on your computers because it needs so many things like other variables, modules and most of all MATLAB installed..&lt;/P&gt;&lt;P&gt;Thank you for your time and consideration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2016 08:35:43 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/data-displayed-from-a-spreadsheet-not-correctly/m-p/3313582#M970375</guid>
      <dc:creator>remapears</dc:creator>
      <dc:date>2016-06-24T08:35:43Z</dc:date>
    </item>
    <item>
      <title>Re : data displayed from a spreadsheet not correctly</title>
      <link>https://ni.lithium.com/t5/LabVIEW/data-displayed-from-a-spreadsheet-not-correctly/m-p/3313720#M970420</link>
      <description>&lt;P&gt;Your problem is that each line in the file contains extra speaces,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All you need is "read lines" (&lt;A href="https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/functions/read-from-text-file.html" target="_blank" rel="noopener"&gt;see details here&lt;/A&gt;), then &lt;A href="https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/functions/fract-exp-string-to-number.html" target="_blank" rel="noopener"&gt;convert to DBL&lt;/A&gt;, e.g. as follows.&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/970420/1/ReadLines3.png" border="0" alt="" title="" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(You ave many very questionable code constructs, for example:&lt;/P&gt;
&lt;P&gt;None of your value proerty nodes (bottom left of diagram) are needed, just configure the VI to clear indicator when called (execution option). Your property nodes also execute in parallel to the writing to the indicators, thus you can have a race condition and whatever writes last wins. You don't guarantee that the real data writes last.. I am sure you "pyramid" of case structures could be eliminated completely. Try to avoid overlapping and hidden wires. You string concatenation could be replaced by a simple formatting operation. Your little FOR loop does not do autoindexing on the output, thus all you get is the last value, a 2D array with a single element. etc.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Apr 2026 16:35:33 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/data-displayed-from-a-spreadsheet-not-correctly/m-p/3313720#M970420</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2026-04-19T16:35:33Z</dc:date>
    </item>
    <item>
      <title>Re : data displayed from a spreadsheet not correctly</title>
      <link>https://ni.lithium.com/t5/LabVIEW/data-displayed-from-a-spreadsheet-not-correctly/m-p/3313768#M970450</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;Thank you for your reply, I have tried using the VIs you told me, but I still get one value (2) instead of an array of numvers like 0.002458 &amp;nbsp;etc..&lt;/P&gt;&lt;P&gt;Concerning the other hint you gave me, I'll try to implement them to have a cleaner code.. thanks !&lt;/P&gt;&lt;P&gt;I should tell you that the file i'm&amp;nbsp;trying to import was exported from matlab using the function save ... ascii&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2016 15:06:49 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/data-displayed-from-a-spreadsheet-not-correctly/m-p/3313768#M970450</guid>
      <dc:creator>remapears</dc:creator>
      <dc:date>2016-06-24T15:06:49Z</dc:date>
    </item>
    <item>
      <title>Re : data displayed from a spreadsheet not correctly</title>
      <link>https://ni.lithium.com/t5/LabVIEW/data-displayed-from-a-spreadsheet-not-correctly/m-p/3313770#M970451</link>
      <description>&lt;P&gt;Then show us your new code. Did you really wire a -1 to the number of lines as shown? Did you right-click the file read to "read lines"?&lt;/P&gt;&lt;P&gt;What language is your OS? Does it use e.g. comma as decimal delimiter?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2016 15:08:57 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/data-displayed-from-a-spreadsheet-not-correctly/m-p/3313770#M970451</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2016-06-24T15:08:57Z</dc:date>
    </item>
    <item>
      <title>Re : data displayed from a spreadsheet not correctly</title>
      <link>https://ni.lithium.com/t5/LabVIEW/data-displayed-from-a-spreadsheet-not-correctly/m-p/3313772#M970452</link>
      <description>&lt;P&gt;Yes i did... the output of the read lines VI is a scalar..&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2016 15:09:51 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/data-displayed-from-a-spreadsheet-not-correctly/m-p/3313772#M970452</guid>
      <dc:creator>remapears</dc:creator>
      <dc:date>2016-06-24T15:09:51Z</dc:date>
    </item>
    <item>
      <title>Re : data displayed from a spreadsheet not correctly</title>
      <link>https://ni.lithium.com/t5/LabVIEW/data-displayed-from-a-spreadsheet-not-correctly/m-p/3313778#M970457</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/330684"&gt;@remapears&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;Yes i did... the output of the read lines VI is a scalar..&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;No,&amp;nbsp;you did not! See the different look of the file IO?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to right-click the file read and select "&lt;STRONG&gt;read lines&lt;/STRONG&gt;".!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(currently you are reading the file a a single long scalar string. Once you &lt;U&gt;read lines&lt;/U&gt;, you get an array of strings, one element per line)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://ni.lithium.com/ni/attachments/ni/170/970457/1/readalllines.png" border="0" alt="" title="" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2016 15:22:23 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/data-displayed-from-a-spreadsheet-not-correctly/m-p/3313778#M970457</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2016-06-24T15:22:23Z</dc:date>
    </item>
    <item>
      <title>Re : data displayed from a spreadsheet not correctly</title>
      <link>https://ni.lithium.com/t5/LabVIEW/data-displayed-from-a-spreadsheet-not-correctly/m-p/3313785#M970461</link>
      <description>&lt;P&gt;wow i didn't&amp;nbsp;know the reason for the different looks.. &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Okay so I did that and the results in strings&amp;nbsp;and in double are attached (the picture)..&lt;/P&gt;&lt;P&gt;Apparently, the strings show&amp;nbsp;a more accurate value, than those in double (no change) but still the values are not 2.98... it's 0.00298..&lt;/P&gt;&lt;P&gt;Your help is very appreciated!&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2016 15:27:32 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/data-displayed-from-a-spreadsheet-not-correctly/m-p/3313785#M970461</guid>
      <dc:creator>remapears</dc:creator>
      <dc:date>2016-06-24T15:27:32Z</dc:date>
    </item>
    <item>
      <title>Re : data displayed from a spreadsheet not correctly</title>
      <link>https://ni.lithium.com/t5/LabVIEW/data-displayed-from-a-spreadsheet-not-correctly/m-p/3313789#M970464</link>
      <description>&lt;P&gt;The values in the file are e.g.&amp;nbsp;2.6855000000000000&lt;STRONG&gt;e-02&lt;/STRONG&gt;, which is the same as 0.0&lt;SPAN&gt;26855000000000000. (make your string indicators wider to show the entire number!)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You still have not told us about the decimal delimiter setting in your OS. If your numbers typically display with a comma instead of a decimal point, you need to correct for that, e.g. by wiring a FALSE to the top of&lt;A href="http://zone.ni.com/reference/en-XX/help/371361M-01/glang/fract_exp_string_to_number/" target="_blank"&gt; fract/exp string to number&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can change the formatting of the numeric indicator to anything you want (e.g. exponential format, number of digits shown, etc.)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2016 15:40:06 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/data-displayed-from-a-spreadsheet-not-correctly/m-p/3313789#M970464</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2016-06-24T15:40:06Z</dc:date>
    </item>
    <item>
      <title>Re : data displayed from a spreadsheet not correctly</title>
      <link>https://ni.lithium.com/t5/LabVIEW/data-displayed-from-a-spreadsheet-not-correctly/m-p/3313797#M970470</link>
      <description>&lt;P&gt;Perfect!&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;wired the false constant to that VI and changed the display formating&amp;nbsp;and I got the&amp;nbsp;correct display of the double array &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you very much! &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;</description>
      <pubDate>Fri, 24 Jun 2016 15:42:36 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/data-displayed-from-a-spreadsheet-not-correctly/m-p/3313797#M970470</guid>
      <dc:creator>remapears</dc:creator>
      <dc:date>2016-06-24T15:42:36Z</dc:date>
    </item>
  </channel>
</rss>

