topic How to compute FFT for the output of FP read.vi? in FieldPoint Family
https://forums.ni.com/t5/FieldPoint-Family/How-to-compute-FFT-for-the-output-of-FP-read-vi/m-p/770458#M7795
<P>I'm using the field point FP-2000 and FP-AI-100 for signal processing in lab, but i'm confused about how to do the FFT for the output of FP read.vi?</P>Tue, 02 Sep 2008 13:21:18 GMTguaner2008-09-02T13:21:18ZHow to compute FFT for the output of FP read.vi?
https://forums.ni.com/t5/FieldPoint-Family/How-to-compute-FFT-for-the-output-of-FP-read-vi/m-p/770458#M7795
<P>I'm using the field point FP-2000 and FP-AI-100 for signal processing in lab, but i'm confused about how to do the FFT for the output of FP read.vi?</P>Tue, 02 Sep 2008 13:21:18 GMThttps://forums.ni.com/t5/FieldPoint-Family/How-to-compute-FFT-for-the-output-of-FP-read-vi/m-p/770458#M7795guaner2008-09-02T13:21:18ZRe: How to compute FFT for the output of FP read.vi?
https://forums.ni.com/t5/FieldPoint-Family/How-to-compute-FFT-for-the-output-of-FP-read-vi/m-p/770501#M7796
<P>Hi!</P><P> When you perform a FP read on a FP-AI-100, specifying all channels in FP IO point, you should get an array of double, which contains all the eight channels. You should perform the reading of a single channel, and then build an array of values read at that channel through time. Then, you use this array as input of FFT function.</P><P> </P><P> Try, and if you have further questions post your code, then it'll be easyer to help you!</P><P> </P><P> As a further step, consider to clock someway your sampling, otherwise you'll likeky have a asynchronous sampling, since this hardware doesn't have a clocked sampling process, just sample as fast as possible (max all channel update rate: 360 Hz) </P><P> </P><P>graziano </P><P> </P><P>PS.: I'm really sorry, I don't have that hardware, only have DI, DO, so I can't actually test... </P>Tue, 02 Sep 2008 14:06:18 GMThttps://forums.ni.com/t5/FieldPoint-Family/How-to-compute-FFT-for-the-output-of-FP-read-vi/m-p/770501#M7796Graziano2008-09-02T14:06:18ZRe: How to compute FFT for the output of FP read.vi?
https://forums.ni.com/t5/FieldPoint-Family/How-to-compute-FFT-for-the-output-of-FP-read-vi/m-p/771162#M7800
<P>Hi,graziano,</P><P> </P><P>Thanks a lot for your reply.</P><P>I'm a rookie for using Labview and FPs. The whole process is sampling a signal (about 50Hz) from only one channel of FP-AI-100, and then do the FFT for the output. I've made a code to perform, the sampling rate however is too low and the FFT is not the expect result. Can you give me some specified advice for how to adjust sampling by code and how to do FFT for that.</P><P> </P><P>Guaner</P><P> </P><P>PS:I post my code which name is Test.vi.</P><P> </P><P> </P>Wed, 03 Sep 2008 12:15:34 GMThttps://forums.ni.com/t5/FieldPoint-Family/How-to-compute-FFT-for-the-output-of-FP-read-vi/m-p/771162#M7800guaner2008-09-03T12:15:34ZRe: How to compute FFT for the output of FP read.vi?
https://forums.ni.com/t5/FieldPoint-Family/How-to-compute-FFT-for-the-output-of-FP-read-vi/m-p/771724#M7801
<P>Hi Guaner,</P><P> I have two problems: I'm not familiar with Datasocket, so I don't know if your VI is correct, and I don't have an analog In module, so that I can't test my VI... I think that what I've written should work, only look at the timings, I suppose that 16 milliseconds is a little too fast for FP-2000, even if update rate is 360 Hz. You should test the actual speed at which controller can get values from AI module.</P><P> </P><P> Also, please post the FFT you obtained, in which sense it is not as expected?</P><P> </P><P><IMG src="http://forums.ni.com/ni/attachments/ni/110/7801/2/test%20FP-AI-100_mod.PNG" border="0" alt="FP-AI-100 FFT" title="FP-AI-100 FFT" width="860" height="438" /> </P><P> </P><P>graziano </P><DIV class="message-edit-history"><SPAN class="edit-author">Message Edited by Graziano on </SPAN><SPAN class="local-date"> 09-04-2008</SPAN><SPAN class="local-time"> 02:07 AM</SPAN></DIV>Thu, 04 Sep 2008 07:07:00 GMThttps://forums.ni.com/t5/FieldPoint-Family/How-to-compute-FFT-for-the-output-of-FP-read-vi/m-p/771724#M7801Graziano2008-09-04T07:07:00ZRe: How to compute FFT for the output of FP read.vi?
https://forums.ni.com/t5/FieldPoint-Family/How-to-compute-FFT-for-the-output-of-FP-read-vi/m-p/772824#M7811
<P>Hi Guaner,</P><P> </P><P>AI-100 update rate is 2.8ms which means there is not point in running the loop better than this. Also to get a 50Hz signal correctly, idealy you should be sampling at 250 Samples per second. Also there is the throughput rate which will decide how fast the data will be available through network.Are you running the code on windows or on the FP-2000 controller. You will get better results if you run the code on the FP-2000 controller (RT). </P>Fri, 05 Sep 2008 18:10:47 GMThttps://forums.ni.com/t5/FieldPoint-Family/How-to-compute-FFT-for-the-output-of-FP-read-vi/m-p/772824#M7811kikiduu2008-09-05T18:10:47Z