<?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: get data from textfile in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/get-data-from-textfile/m-p/1673274#M596459</link>
    <description>&lt;P&gt;smercurio_fc,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the correction.&lt;/P&gt;
&lt;P&gt;I didn't seen the the whole file in hurry.&lt;/P&gt;
&lt;P&gt;Hope you will continue with&amp;nbsp;your suggestions in future.&lt;/P&gt;</description>
    <pubDate>Wed, 17 Aug 2011 05:40:14 GMT</pubDate>
    <dc:creator>a.p</dc:creator>
    <dc:date>2011-08-17T05:40:14Z</dc:date>
    <item>
      <title>get data from textfile</title>
      <link>https://ni.lithium.com/t5/LabVIEW/get-data-from-textfile/m-p/1670264#M595777</link>
      <description>&lt;P&gt;Hello Forum,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible to get a 'specific' data that has been saved into a text file already, and put it into the front panel ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let's say, i want the maximum value of this part of the text file&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;23&lt;BR /&gt;21&lt;BR /&gt;94&lt;BR /&gt;56&lt;BR /&gt;78&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Obviously, I want to get '94' out from the textfile, and into my VI's front panel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is LabVIEW able to do this ?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2011 06:23:25 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/get-data-from-textfile/m-p/1670264#M595777</guid>
      <dc:creator>ThePotatoMan</dc:creator>
      <dc:date>2011-08-15T06:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: get data from textfile</title>
      <link>https://ni.lithium.com/t5/LabVIEW/get-data-from-textfile/m-p/1670276#M595781</link>
      <description>&lt;P&gt;Yes.&lt;/P&gt;
&lt;P&gt;Read the file.&lt;/P&gt;
&lt;P&gt;Use format spreadsheet string to array.&lt;/P&gt;
&lt;P&gt;Then use min/max on the array and wire the max to an indicator.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Felix&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2011 06:52:56 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/get-data-from-textfile/m-p/1670276#M595781</guid>
      <dc:creator>F._Schubert</dc:creator>
      <dc:date>2011-08-15T06:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: get data from textfile</title>
      <link>https://ni.lithium.com/t5/LabVIEW/get-data-from-textfile/m-p/1670282#M595782</link>
      <description>&lt;P&gt;I'm sorry,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do you 'Read the File' ?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2011 06:58:01 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/get-data-from-textfile/m-p/1670282#M595782</guid>
      <dc:creator>ThePotatoMan</dc:creator>
      <dc:date>2011-08-15T06:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: get data from textfile</title>
      <link>https://ni.lithium.com/t5/LabVIEW/get-data-from-textfile/m-p/1670292#M595784</link>
      <description>&lt;P&gt;File I/O:&lt;/P&gt;
&lt;P&gt;Read from Text File&lt;/P&gt;
&lt;P&gt;even simpler&lt;/P&gt;
&lt;P&gt;Read from Spreadsheet File&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Felix&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2011 07:12:26 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/get-data-from-textfile/m-p/1670292#M595784</guid>
      <dc:creator>F._Schubert</dc:creator>
      <dc:date>2011-08-15T07:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: get data from textfile</title>
      <link>https://ni.lithium.com/t5/LabVIEW/get-data-from-textfile/m-p/1670296#M595785</link>
      <description>&lt;P&gt;Okay thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Will try it when I'm on my main computer!&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2011 07:14:30 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/get-data-from-textfile/m-p/1670296#M595785</guid>
      <dc:creator>ThePotatoMan</dc:creator>
      <dc:date>2011-08-15T07:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: get data from textfile</title>
      <link>https://ni.lithium.com/t5/LabVIEW/get-data-from-textfile/m-p/1670562#M595846</link>
      <description>&lt;P&gt;When you get to that computer, you might also want to consider opening up the LabVIEW Help and doing some tutorials, as your question is extremely basic. To learn more about LabVIEW it is recommended that you go through the &lt;A href="http://www.ni.com/gettingstarted/labviewbasics/" target="_blank"&gt;introduction material&lt;/A&gt;, tutorial(s), and other material in the NI Developer Zone's &lt;A href="http://zone.ni.com/devzone/cda/tut/p/id/5054" target="_blank"&gt;Learning Center&lt;/A&gt; which provides links to other materials and other tutorials. There are also several &lt;A href="http://www.ni.com/labview/technical-resources/" target="_blank"&gt;Technical Resources&lt;/A&gt;. You can also take the &lt;A href="http://www.ni.com/academic/lv_training/how_learn_lv.htm" target="_blank"&gt;online courses&lt;/A&gt; for free.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2011 13:14:49 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/get-data-from-textfile/m-p/1670562#M595846</guid>
      <dc:creator>smercurio_fc</dc:creator>
      <dc:date>2011-08-15T13:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: get data from textfile</title>
      <link>https://ni.lithium.com/t5/LabVIEW/get-data-from-textfile/m-p/1671602#M596067</link>
      <description>&lt;P&gt;Hello, as you can see from the attachment,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have 3&amp;nbsp;columns of&amp;nbsp;numbers here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First column, Angle of degree,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Second ﻿﻿﻿﻿﻿﻿column, Average data,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Third column, statisical error&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to retrieve data from the MAXIMUM 'AVERAGE DATA'&amp;nbsp;at which&amp;nbsp;'ANGLE OF DEGREE'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, it would be best to retrieve the whole row, of the maximum average data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I do so ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've tried the method you've suggested, but I can't seem to get it connected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S: For this example(in attachment), the max degrees is at 20, and the average data at 4.16 ... &lt;/P&gt;
&lt;P&gt;How do I get the whole row of data out and display it to the front panel ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2011 05:45:55 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/get-data-from-textfile/m-p/1671602#M596067</guid>
      <dc:creator>ThePotatoMan</dc:creator>
      <dc:date>2011-08-16T05:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: get data from textfile</title>
      <link>https://ni.lithium.com/t5/LabVIEW/get-data-from-textfile/m-p/1671660#M596081</link>
      <description>&lt;P&gt;hello PotatoMan,&lt;/P&gt;
&lt;P&gt;use this vi and see if your function works.......................&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2011 06:43:41 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/get-data-from-textfile/m-p/1671660#M596081</guid>
      <dc:creator>a.p</dc:creator>
      <dc:date>2011-08-16T06:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: get data from textfile</title>
      <link>https://ni.lithium.com/t5/LabVIEW/get-data-from-textfile/m-p/1672102#M596188</link>
      <description>&lt;P&gt;alok123, that VI simply will not work. The file contains a bunch of lines of headers, and your VI doesn't take this into account. The conversion will simply convert ALL lines, including the header. Thus, in this case it will pull out the line that says "Data per picture&amp;nbsp;&amp;nbsp;&amp;nbsp; 800﻿" because "Data per picture" will be converted to 0 and be in the first column, and 800 will appear in the second column. The third column will be zero. When you seach the second column for the largest value, you get 800. You need to chop off the header lines.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Besides, if you are going to read a file as a spreadsheet file, then simply use the Read From Spreadsheet File VI.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;PotatoMan said:&lt;BR /&gt;I've tried the method you've suggested, but I can't seem to get it connected.﻿&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What do you mean you "can't seem to get it connected"? Show us what you did. A VERY simple solution is to use Read From Spreadsheet File, and chop off the lines which are the header. Then you can search the second column for the max value, and pick out the corresponding row. This is a corrected version of alok123's VI.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2011 13:43:17 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/get-data-from-textfile/m-p/1672102#M596188</guid>
      <dc:creator>smercurio_fc</dc:creator>
      <dc:date>2011-08-16T13:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: get data from textfile</title>
      <link>https://ni.lithium.com/t5/LabVIEW/get-data-from-textfile/m-p/1673274#M596459</link>
      <description>&lt;P&gt;smercurio_fc,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the correction.&lt;/P&gt;
&lt;P&gt;I didn't seen the the whole file in hurry.&lt;/P&gt;
&lt;P&gt;Hope you will continue with&amp;nbsp;your suggestions in future.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2011 05:40:14 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/get-data-from-textfile/m-p/1673274#M596459</guid>
      <dc:creator>a.p</dc:creator>
      <dc:date>2011-08-17T05:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: get data from textfile</title>
      <link>https://ni.lithium.com/t5/LabVIEW/get-data-from-textfile/m-p/1676516#M597151</link>
      <description>&lt;P&gt;Hi &lt;A id="link_145" class="lia-link-navigation lia-page-link lia-user-name-link" style="color: #666666;" href="http://forums.ni.com/t5/user/viewprofilepage/user-id/33243" target="_self"&gt;&lt;SPAN class="login-bold"&gt;smercurio_fc&lt;/SPAN&gt;&lt;/A&gt;. The below screenshot is what I have done so far, so can you tell me what are the remaining arrays or VI's that I need to use so as to get what I want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://forums.ni.com/t5/image/serverpage/image-id/50792i8C455E0EE18E8247/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="max value.png" title="max value.png" align="center" /&gt;&lt;/P&gt;
&lt;P&gt;Hope to get your prompt reply.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2011 02:26:23 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/get-data-from-textfile/m-p/1676516#M597151</guid>
      <dc:creator>ThePotatoMan</dc:creator>
      <dc:date>2011-08-19T02:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: get data from textfile</title>
      <link>https://ni.lithium.com/t5/LabVIEW/get-data-from-textfile/m-p/1676984#M597239</link>
      <description>&lt;P&gt;My posting is a VI snippet, so you can just drag and drop it onto a LabVIEW block diagram. This only works with newer versions of LabVIEW and IE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for the code itself, from left to right:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Read From Spreadsheet File&lt;/LI&gt;
&lt;LI&gt;Array Subset (to chop out the header rows)&lt;/LI&gt;
&lt;LI&gt;Index Array (to pull out the second column)&lt;/LI&gt;
&lt;LI&gt;Array Max Min (to get the highest value in the second column)&lt;/LI&gt;
&lt;LI&gt;Index Array (to get the element in the first column of the row with the highest value in the second column)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will reiterate my statement about cracking open that LabVIEW Help and doing some tutorials. To learn more about LabVIEW it is recommended that you go through the &lt;A href="http://www.ni.com/gettingstarted/labviewbasics/" target="_blank"&gt;introduction material&lt;/A&gt;, tutorial(s), and other material in the NI Developer Zone's &lt;A href="http://zone.ni.com/devzone/cda/tut/p/id/5054" target="_blank"&gt;Learning Center&lt;/A&gt; which provides links to other materials and other tutorials. There are also several &lt;A href="http://www.ni.com/labview/technical-resources/" target="_blank"&gt;Technical Resources&lt;/A&gt;. You can also take the &lt;A href="http://www.ni.com/academic/lv_training/how_learn_lv.htm" target="_blank"&gt;online courses&lt;/A&gt; for free.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2011 13:04:45 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/get-data-from-textfile/m-p/1676984#M597239</guid>
      <dc:creator>smercurio_fc</dc:creator>
      <dc:date>2011-08-19T13:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: get data from textfile</title>
      <link>https://ni.lithium.com/t5/LabVIEW/get-data-from-textfile/m-p/1678220#M597495</link>
      <description>&lt;P&gt;Thank you for the help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This problem has been solved.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ThePotatoMan.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2011 03:04:25 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/get-data-from-textfile/m-p/1678220#M597495</guid>
      <dc:creator>ThePotatoMan</dc:creator>
      <dc:date>2011-08-22T03:04:25Z</dc:date>
    </item>
  </channel>
</rss>

