<?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: Implementation of Fast Fourier Transform in different file formats in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Importing-CSV-data-for-FFT-analysis/m-p/3790782#M1069313</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I want to implement the Fast Fourier Transform to Technical data management streaming, in this file format one is time stamp data and other are sensors data, I create an array to select the sensor with respect to time data, when i run the VI the sensor data waveform spectrum shows correctly but sensor 2 data waveform spectrum is not showing, please the check other sensors data also, i want the frequency spectrum peaks at 2400 Hz and 3250 Hz. once check the code and please correct the VI in correct format&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I also implement the fast Fourier transform to different file formats also&amp;nbsp; but it not showing the correct waveform spectrum , please once check the code whether it is right or not&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 May 2018 04:58:13 GMT</pubDate>
    <dc:creator>sowji25</dc:creator>
    <dc:date>2018-05-09T04:58:13Z</dc:date>
    <item>
      <title>Importing CSV data for FFT analysis</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Importing-CSV-data-for-FFT-analysis/m-p/3294067#M963116</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry if this is a dumb question, but I searched for anything relevant and I couldn't find a problem that was close enough to what I needed. Part of the problem is that I am not that experienced in Labview (I am more Matlab, my coworker usually works on Labview but he is in Europe right now).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am attempting to extract data from a CSV file that contains waveform data captured from an oscilloscope. I was hoping to 1) extract the data from the file in Labview and then 2) perform an FFT analysis on it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is what I have gathered I should do so far:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Use the "Read from Spreadsheet" function to import the CSV file. All I've worked out so far is set the delimiter and add a control for the file select. Not sure where to go from here. And would the output of this function result in an array or a plot?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Using the information from the Read from Spreadsheet function, I would then use an FFT function (presumably under the Waveform Function menu) which would then take the data and output it in some way (graph, etc).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am combing through tutorials and other cases similar to mine, but any help would be appreciated. Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I included a CSV file in case it was needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 18:07:35 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Importing-CSV-data-for-FFT-analysis/m-p/3294067#M963116</guid>
      <dc:creator>johnBURL</dc:creator>
      <dc:date>2016-05-11T18:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: Importing CSV data for FFT analysis</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Importing-CSV-data-for-FFT-analysis/m-p/3294095#M963133</link>
      <description>&lt;P&gt;Is this sort of what you're looking for?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/b33121c1a4d4cf92cf00f3c3309310fc7a967f20/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f31383332393369353437424435393541353043433545362f696d6167652d73697a652f6f726967696e616c3f763d76322670783d2d31" border="0" alt="FFT.png" title="FFT.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 19:25:32 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Importing-CSV-data-for-FFT-analysis/m-p/3294095#M963133</guid>
      <dc:creator>B_Strange</dc:creator>
      <dc:date>2016-05-11T19:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Importing CSV data for FFT analysis</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Importing-CSV-data-for-FFT-analysis/m-p/3294101#M963136</link>
      <description>&lt;P&gt;That does look promising...so from how I interpret it, it looks like you are using a function that takes the CSV (or info inside the CSV) that posts it to an array, and then that array is fed into some soft of function which then results in a graph? Would you be able to explain further so that I could recreate it in my Labview? Thanks for the reply.&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 19:33:45 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Importing-CSV-data-for-FFT-analysis/m-p/3294101#M963136</guid>
      <dc:creator>johnBURL</dc:creator>
      <dc:date>2016-05-11T19:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Importing CSV data for FFT analysis</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Importing-CSV-data-for-FFT-analysis/m-p/3294104#M963139</link>
      <description>&lt;P&gt;If you've got LabVIEW 2013 or newer, simply save the image I posted (say, to the desktop) and then drag it into the block diagram. The code will automatically be created.&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 19:39:45 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Importing-CSV-data-for-FFT-analysis/m-p/3294104#M963139</guid>
      <dc:creator>B_Strange</dc:creator>
      <dc:date>2016-05-11T19:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Importing CSV data for FFT analysis</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Importing-CSV-data-for-FFT-analysis/m-p/3294127#M963152</link>
      <description>&lt;P&gt;D'oh, thanks. That does make it much easier.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've enabled my Context Help button, and I see that you put the data from the CSV file into the box that is wired to the Spreadsheet String node of the "Spreadsheet String to Array" function. Would I be able to instead insert a control in there, so that I could select the CSV file? Or how would I select a different file? The reason why I am asking is that I think the Identifying info on the CSV file is messing up the array and possibly the FFT. I am really only interested in columns D and E on that file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From there I see that the function outputs to an array, which also leads to the Index Array function. And then an FFT function. But I'm a bit lost on what exactly these are doing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Most examples I've seen use the Read from Spreadsheet function, was there a reason why you decided not to?&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 20:07:21 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Importing-CSV-data-for-FFT-analysis/m-p/3294127#M963152</guid>
      <dc:creator>johnBURL</dc:creator>
      <dc:date>2016-05-11T20:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Importing CSV data for FFT analysis</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Importing-CSV-data-for-FFT-analysis/m-p/3294137#M963157</link>
      <description>&lt;P&gt;I haven't messed with Read From Spreadsheet File.vi much before. After some quick testing, I can only get the first column of data out of it which is all zeros. It seems like you should be able to get columns D &amp;amp; E out without too much effort though.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the code below, I'm pulling out column E (LabVIEW arrays are zero-indexed so a column index of 4 actually means the "fifth" column). I've reworked the code to include file I/O and also added some comments which will hopefully clear some of the hazy stuff up. If you're curious about what data is being passed through on any wires, right click and select either "Probe" or "Create &amp;gt; Indicator". They both do what amounts to basically the same thing (show the data on the wire) but the probe is a little less invasive.&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="https://ip1.i.lithium.com/8db4b1a1493cefbfd2da35c753c295dd1c619613/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f31383333303369393741313035323341423845463430302f696d6167652d73697a652f6f726967696e616c3f763d76322670783d2d31" border="0" alt="FFT2.png" title="FFT2.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 20:36:43 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Importing-CSV-data-for-FFT-analysis/m-p/3294137#M963157</guid>
      <dc:creator>B_Strange</dc:creator>
      <dc:date>2016-05-11T20:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: Importing CSV data for FFT analysis</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Importing-CSV-data-for-FFT-analysis/m-p/3294138#M963158</link>
      <description>&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/f3a926cdaf3bf9a5d1f2580c42784733396304b7/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f31383333303569444134354638443546394438433038372f696d6167652d73697a652f6f726967696e616c3f763d76322670783d2d31" border="0" alt="FFTMod.png" title="FFTMod.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just use the File I/O primitives Dave described above and feed the output to the spreadsheet string to array function. Also, there is nothing stopping you from manipulating that array once you create it. I'd use the&amp;nbsp;Array Subset instead of Index Array to get the last 2 rows.&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 20:55:52 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Importing-CSV-data-for-FFT-analysis/m-p/3294138#M963158</guid>
      <dc:creator>Eric1977</dc:creator>
      <dc:date>2016-05-11T20:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Importing CSV data for FFT analysis</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Importing-CSV-data-for-FFT-analysis/m-p/3294144#M963162</link>
      <description>&lt;P&gt;Thanks, Dave. Let me mess around a little bit with what you've made already, I don't want to bother you any more than I have to. I appreciate all of the help so far.&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 20:54:11 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Importing-CSV-data-for-FFT-analysis/m-p/3294144#M963162</guid>
      <dc:creator>johnBURL</dc:creator>
      <dc:date>2016-05-11T20:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: Importing CSV data for FFT analysis</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Importing-CSV-data-for-FFT-analysis/m-p/3294156#M963165</link>
      <description>&lt;P&gt;Thank you also, Eric. Just for curiousity's sake, I also ran your VI, and &amp;nbsp;ended up getting quite a different graph than Dave's. I think the only difference was the Array Subset. I'm going to keep messing around with both, maybe clean up the CSV files (I am not sure if just column D/E are being calculated).&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 21:35:08 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Importing-CSV-data-for-FFT-analysis/m-p/3294156#M963165</guid>
      <dc:creator>johnBURL</dc:creator>
      <dc:date>2016-05-11T21:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Importing CSV data for FFT analysis</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Importing-CSV-data-for-FFT-analysis/m-p/3294387#M963235</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/341173"&gt;@johnBURL&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;quite a different graph&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I don't have access to LabVIEW on this machine but I think with the "length" parameter of Array Subset unwired, you get all remaining columns (which in this case is two data columns and a column of zeros). Try wiring a 2 constant.&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 10:43:05 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Importing-CSV-data-for-FFT-analysis/m-p/3294387#M963235</guid>
      <dc:creator>B_Strange</dc:creator>
      <dc:date>2016-05-12T10:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Importing CSV data for FFT analysis</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Importing-CSV-data-for-FFT-analysis/m-p/3294646#M963317</link>
      <description>&lt;P&gt;Not sure if that made a difference, really. If I can, I am going to upload my VI and the simpler dataset I was using for testing. I made a few changes but I think my main problem now, is that the FFT chart is using and X and Y axis labeled Time and Amplitude. The Amplitude label is fine, but I was hoping to see the frequency of the signal as the X-Axis.Not sure how to change that label or what info I need to pull from the CSV file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To make it easier to show, I used a dataset that contained a 220khz signal being generated. So I would expect to see on the FFT a large spike for the 220khz and any smaller spikes for harmonics that may be present.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again, guys. I feel like with your help, I'm really close to accomplising my task.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eric: I appreciate your help but I feel a bit lost with your function because the graph is not at all what I was expecting! Lol. Thanks again, brother.&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 18:22:30 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Importing-CSV-data-for-FFT-analysis/m-p/3294646#M963317</guid>
      <dc:creator>johnBURL</dc:creator>
      <dc:date>2016-05-12T18:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Importing CSV data for FFT analysis</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Importing-CSV-data-for-FFT-analysis/m-p/3294653#M963320</link>
      <description>&lt;P&gt;Just double click on the word "time" and edit it.&amp;nbsp; You can also change it in the properties dialog fo that graph.&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 18:31:53 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Importing-CSV-data-for-FFT-analysis/m-p/3294653#M963320</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2016-05-12T18:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Importing CSV data for FFT analysis</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Importing-CSV-data-for-FFT-analysis/m-p/3294660#M963325</link>
      <description>&lt;P&gt;Doesn't that just change the label, though? What I meant was, the FFT was defaulting "time" (or in this case, the record length, which is 10k) as the x-axis.The FFT should be an amplitude v frequency graph, time/record length shouldn't be a factor, I believe. Right now the FFT is showing me amplitude v time, so I see spikes of the amplitude but I cannot tell what frequency they are.&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 18:50:14 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Importing-CSV-data-for-FFT-analysis/m-p/3294660#M963325</guid>
      <dc:creator>johnBURL</dc:creator>
      <dc:date>2016-05-12T18:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Importing CSV data for FFT analysis</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Importing-CSV-data-for-FFT-analysis/m-p/3294705#M963339</link>
      <description>&lt;P&gt;FFT gives you amplitude vs. frequency.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The axis on the graph says "time", but that is just a label.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But that FFT function puts out an array of frequency bins, you just need to scale those bins.&amp;nbsp; The dF of that graph is the frequency of your incoming data divided by the number of data points.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a subVI I put together to graph an FFT for me from the basic FFT function, so I didn't have to deal with the Express VI's.&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/963339/1/FFT%20Scaling_BD.png" border="0" alt="" title="" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 20:16:37 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Importing-CSV-data-for-FFT-analysis/m-p/3294705#M963339</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2016-05-12T20:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: Implementation of Fast Fourier Transform in different file formats</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Importing-CSV-data-for-FFT-analysis/m-p/3790782#M1069313</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I want to implement the Fast Fourier Transform to Technical data management streaming, in this file format one is time stamp data and other are sensors data, I create an array to select the sensor with respect to time data, when i run the VI the sensor data waveform spectrum shows correctly but sensor 2 data waveform spectrum is not showing, please the check other sensors data also, i want the frequency spectrum peaks at 2400 Hz and 3250 Hz. once check the code and please correct the VI in correct format&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I also implement the fast Fourier transform to different file formats also&amp;nbsp; but it not showing the correct waveform spectrum , please once check the code whether it is right or not&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 04:58:13 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Importing-CSV-data-for-FFT-analysis/m-p/3790782#M1069313</guid>
      <dc:creator>sowji25</dc:creator>
      <dc:date>2018-05-09T04:58:13Z</dc:date>
    </item>
  </channel>
</rss>

