Number of Points used in FFT calcuation​s using Spectral Measuremen​ts

Hi folks,
I'm a pretty new user of labview (Ver 7.1) and I am trying to perform spectral analysis of power systems to ensure that they comply with stated standards. I'm using PXI-1002 system with PXI-6025E DAQ cards. I am able to get the analogue data into the program and display the time and frequency domain data to screen however I require a specific resolution to the spectral analysis to comply with the standard. obviously I can set the sampling frequency but I am unable to set the number of points of the actual FFT using either the "spectral measurements" function or other specific FFT VIs.
Can the number of points be set manually or do the functions some how deside the best number of points depending on the amount of data passed to it, I've found that increasing the "Scan to read at a time" value of the AI config VI I'm using seems to increase the resolution but I don't know how the FFT functions deal with "Scan to read at a time" values that are not of 2^n.
Cheers
The Fat Controller
90% of all experts aggree that 1 out of 10 experts are wrong

Hi,
The answer lies in the labVIEW Help file< If you dig deep enough through the hierarchy of the Spectral Measurment Express VI's, you will end up eventually to the Power Spectrum.vi or Real FFT.vi that can be found in the Analyze>>Signal Processing>>Frequency Domain Palette (see screenshot attached)>
The computation details are given in the help for those VIs
I will let you go through those files for details, but basically, when the number of samples in the input signal is a valid power of 2, the VIs compute the fast Fourier transform using the a fast radix-2 FFT algorithm.
When the number of samples in the input sequence is not a valid power of 2 but is factorable as the product of small prime numbers, the VIs compute the discrete Fourier transform using an efficient DFT algorithm according to the type of trnasorm that is executed (i.e Real, Complex)
But the help file explains it better than me
Hope this helps,
Cyril Bouton
Active LabVIEW Developper
Attachments:
ScreenShot008.gif ‏29 KB

Similar Messages

  • Finite Number of Data Points using DIO-32

    I have a system designed to scan a field of view and acquire data at each point in the field of view. The acquisition process does not begin until the system/clock is initiated. It is not continuously clocked and cannot be. I am trying to run this process at 25kHz using all four data ports of the DIO-32 board. At this rate, the VI seems to miss clock triggers and does not acquire the proper number of points. Currently, I can only run the process at 6kHz. I know the board can handle a faster data rate than this. Can someone please suggest a fix or provide an example VI that can do this. Will it help me to make my VI an executable using App builder (which I don't currently own)?
    Thanks,
    Bill

    Bill,
    Are you referring to the PCI-DIO-32HS? This board is in the 653x family of digital boards. It sounds like you are either trying to do pattern input with an external clock, or burst mode handshaking input with an external clock. You should check the 653x User Manual to determine which method is actually better for your application. You can view the certain conditions for which data will be latched in. There are also benchmarks on transfer rates in the appendix of the manual that you can view for comparison. Examples get installed with NI-DAQ and are available in the LabVIEW >> Daq >> Digital >> 653x.llb directory. There is an example for each of the types of operations I mentioned above. I recommend testing with a function generator first, so that you c
    an focus and isolate the issue with just the PCI-DIO-32HS board before moving on to your program and/or using your external devices with the board.
    Regards,
    Geneva L.
    Applications Engineer
    National Instruments
    http://www.ni.com/ask

  • Same function gathers different number of points in different calls?

    I am running an automated test program, testing moving pistons. The test will extend the piston, and gather position data via some pots, and current data, while its moving. It will then retract the piston, and do the same data gathering. It then does some other tests.The data is written to some files, and is then retrieved for post-test processing later on.
    I use the same function for extending and retracting, and I am noticing that the number of data points gathered during the extend is always much less than the number of points gathered during the retract.
    This is the 3rd version of function I have used to gather data from the test apparatus, and this issue has stuck with all 3 versions . I have attached the function to this post. The top-level VI is large and contains many lower-level VIs, so I can't include the whole thing. I am using a USB 6008, LV8.5, Daqmx 8.5.
    Any ideas why this would run differently each call? 
     Explanation of the function:
    The gray box VI with 'NI' is a subvi that communicates with a controller for the tester. It sends the position to move the piston to. In the loop, the daq assistant grabs data from the 6008, and looks at pot values. If the values are close enough together, several times, it stops the loop and the data gathering (the piston has reached the end of its stroke). After the data gathering loop, the rest of the function is for writing data to a file.
    NOTE that only the 'true' case inside the while loop matters here, as thats where the problem lies.
    PS. sorry the front panel looks like crap, because this is a subvi so its front panel is never seen.
    Solved!
    Go to Solution.
    Attachments:
    move_actuator_rev3.vi ‏341 KB

    I have been thinking along the lines of what Wayne said.
    Can I initialise the Assistant by calling it outside the loop, but with a True constant on the 'stop' input, and then run the rest of the function as normal? Would I not get the error about 'resource is reserved ' or in use or whatever it is?
    Stephen : I have tried troubleshooting by stepping through the execution, but I find it doesn't run accurately. Since the function stops recording when a succession of near-identical points are detected (when the piston stops), if I run it in 'highlight execution' mode it will get 5000 points each for retract and extend (assistant is set to 1k buffer size, 5 successive similar points stops the execution). 
    I will fool around with setting up the function before the loop, until someone gives more suggestions.

  • Is there a limit to the number of points in a polygon?

    Please excuse the entry-level question (and possible use of words like 'point' in a non-technically-precise way) but we've lost out Spatial expert!
    Anyway, we get problems occassionally with complex polygons and it seems that there's a limit fo the number of points they can have.
    Are we able to set a higher limit?

    SQL> desc MDSYS.SDO_ORDINATE_ARRAY
    MDSYS.SDO_ORDINATE_ARRAY VARRAY(1048576) OF NUMBERSo this means you have have a maximum of 1048576 ordinates in your ordiante array. So that would be 1048576/2 vertices if your data is 2d, or 1048576/3 if you have z or m values.
    However... you can change this if you really need to.
    See [Increasing the Size of Ordinate Arrays to Support Very Large Geometries|http://download.oracle.com/docs/cd/E11882_01/appdev.112/e11830/sdo_migrat.htm#SPATL1426]
    I recommend you don't make this change unless you need to as it adds a bit of overhead if you want to export the data later.
    Its always worth thinking about why your polygons are so big. Maybe they are country boundaries and there are vertices every few metres and maybe you need this level of data in your system. Or maybe the data was captured in this way, but that level of details is meaningless in your context and you'd be better off by simplifying it (i.e. reducing the number of vertices). Or maybe the polygons have lots of duplicate vertices that should be removed.
    Only you can answer those questions but you need to be aware that the performance of polygons with huge number of vertices is likely to suck.

  • How to increase the number of samples in my fft?

    Hi,
    In my Labview environment I receive sampled data of a sinus function where one period consists of 4096 samples. How can I increase or control the number of samples which the fft spectrum is using for calculating its results?
    Best regards
    Jonny

    Hi,
    The sinus signal is generated to have a fixed frequency, but as seen in the figures the fft has a big SNDR. I hope do decrease this with adding the number of samples.
    Thanks
    Attachments:
    power_spec.JPG ‏50 KB
    power_spec_block.JPG ‏9 KB

  • Waveform graph number of points

    Hi,
    In my app I´m receiving data (a 10Hz sine wave) continuously (serial port) and plotting it on a chart and on a graph. After several number of points plotted, about 18000, the sine wave appears wrong on both waveform chart and graph. Is it a problem with memory?
    Thanks,
    Celia 
    Attachments:
    plot.doc ‏195 KB

    Hi Celia,
    the vi seems to be ok.
    But as I told you before:
    You collect your data in the "array" by using "build array" function - this is ok so far. The you feed those data to the "array" indicator - and also to the "waveform chart". And probably here is the problem: You feed the chart with an array when you should only feed the single values! The chart has it's own memory called "chart history" (you set it to 250 values)!
    The more values you collect the bigger memory blocks LabView has to allocate/calculate/move in RAM! And you keep on moving memory blocks from shift register to "array" indicator, chart AND graph. All three indicators have their own memory copy of the data, and in each iteration LabView has to allocate bigger memory blocks for each indicator. This takes it's time...
    And due to this behaviour the iteration time is getting longer resulting in "undersampling" of your sin wave...
    When you need constant iteration time, you should separate DAQ and display into different loops connected by queues. There are plenty example coming with LabView and also here in the forum!
    I added your vi, slightly edited. Read the comments in the last frame! (You don't need a sequence here, it's all in the dataflow )
    Message Edited by GerdW on 09-18-2007 09:42 AM
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome
    Attachments:
    RecWaveChart2.vi ‏95 KB

  • Number of cycles using power spectrum for getting frequency

    Hi,
    I have a square wave that I am getting a frequency estimate from using power and frequency estimate.vi
    I was wondering if it mattered how many cycles were inputted for the frequency estimate. Also, the signal may end in between cycles.
    Thanks,
    Jennifer

    Sorry for the vague first post. The software was already written for the device and I am just trying to understand a few things in order to make some changes.
    I am measuring the speed of a turning rotor using the square wave signal generated from a pattern on the turning rotor. I need to know the frequency of the square wave in order to determine the speed of the rotor. The pulse pattern is used in power spectrum and estimate frequency icons (appears to be similar to an example program for spectrum analyzer). The speed of the rotor is variable until it reaches steady state which can take minutes or hours. Speeds are not too high (Freq 1-100Hz). Right now the measurement is set up to sample a given number of points at a given scan rate. This means that the data most likely does not end exactly as a pulse cycle ends but somewhere in the middle of a cycle.
    We are interested in seeing the transient change in speed from start-up to steady-state. How short of a sampling period (i.e. # of cycles can be put into the power spectrum and estimate frequency.vi's) would give reliable measurments. Right now I just scan for a reasonable time in order to make sure I get enough pulses in order to better estimate the frequency of the pulse signal.
    In the future I will work with completing pulse width measurements which most likely would be the fastest I can complete a transient measurement although my data will have a bit more fluctuations. That's due to each pulse not being exactly the same width.
    Hope that gives you a better idea what's going on here.

  • What storage type number can be used

    HI,
    if I need to customize out a storage type, what prefix number can I used such that it would not be overwritten during upgrading?
    currently available in SAP
    001     High rack storage
    002     Shelf storage
    003     Open storage
    004     Bulk storage
    005     Fixed bin storage
    006     Hazardous Materials
    007     Pallet storage
    010     High rack with ID point
    011     ID point for st.ty.010
    012     Block storage with SUs
    013     Pick point for st.ty.012
    100     Production supply
    200     Intermed.zone 2-step pck.
    Thanks

    hi colin,
             its purely depend upon your requirement. when u want to place a raw material like ex: nuts,bolts place it in a 001-high rack storage bin or u want place it in a fixed bin -005.explain your product i can able to suggest the storage bin.
       use any number as per your wish it doesnt affect during upgrading.
    regards
    muthuraman.d
    Edited by: muthuraman d on Jan 12, 2010 9:09 AM

  • Bode Analyzer: How to control the number of points per decade?

    Total newbie here. I cannot control the number of points per decade in the Bode VI. It's always 5 points per decade.
    Don't even know how to get the Elvis Version #, but it's at least 4.1, cuz the Elvis installer won't install 4.1 (says current version is newer). Running WinXP. 
    How can I get Elvis to respond to my request for more points per decade?
    Mike
    Solved!
    Go to Solution.

    Hi Mike,
    If you're ever curious about what drivers that you have installed, you can view it using Measurement & Automation Explorer (Start » All Programs » National Instruments » Measurement & Automation Explorer).  Once their, navigate to My System » Software, and you'll find NI ELVISmx along with it's version.  
    This behavior that you're seeing is a known issue, filed under Corrective Action Request (CAR) #373017.  For now, the number of points per decade will remain at 5.  Please wait for the next update of NI-ELVISmx to see if this is fixed.
    Cheers,
    Che T.
    Applications Engineer
    National Instruments

  • I recently got my ipod replaced and i have its serial number. now i used to play a game on it which requires me to have its UDID for account transfer so how do i get its UDID when i dont have the ipod now. i have a new one now.

    i recently got my ipod replaced and i have its serial number. now i used to play a game on it which requires me to have its UDID for account transfer so how do i get its UDID when i dont have the ipod now. i have a new one now.

    I would try contacting Apple.
    http://www.apple.com/support/ipodtouch/contact/

  • If I change my iPhone phone number can I use the same iTunes backup?

    If I change my iPhone phone number can I use the same iTunes backup?
    Keeping iPhone 4, just want to change number and keep settings and all that.  Is it possible?

    yes

  • Long story short....I restored my computer to an earlier point using time machine and now all of the previous back-ups are gone. My question has to do with itunes...is it possible to restore my itunes library to the most recent backup because the restore

    Long story short....I restored my computer to an earlier point using time machine and now all of the previous back-ups are gone. My question has to do with itunes...is it possible to restore my itunes library to the most recent backup because the restore that I did was in march and the latest backup was in may....the reason being is that there were app that i had downloaded that are in my most recent back-up, that were not in the backup I restored to. Is it possible to just restore one application ie)itunes?

    See this post.
    tt2

  • I would like to move 2 users to creative cloud, but maintain all the other users (myself included) on CS5. Can I still get the reduced monthly rate? What serial number should I use?

    I would like to move 2 users to creative cloud, but maintain all the other users (myself included) on CS5. Can I still get the reduced monthly rate? What serial number should I use?

    Hi Thomasjewell,
    Yes you can avail the discounted prices even you are upgrading the product just for two users. You can use the serial number for your Creative Suite 5 product.
    You can follow the link: https://creative.adobe.com/plans in order to purchase Creative Cloud for Teams product.
    Let me know if it works or not.
    Thanks,
    Ratandeep Arora

  • Hello, I have created a distribution kit for my program.The problem is that the when the program is installed onto another computer, it fails to communicate with field point (Using FP-AO-200 and FP-AO-1000). Help is greatly appreciated, Thanks faen9901

    Hi Everyone,
    I have a program that sends information(analog output) to lab windows cvi in the form of a text file or user input.
    The program runs on the computers that I have the field point explorer and lab windows cvi installed on. In order to run the program without always installing labwindows/cvi and field point; I wanted to create an executable file that could be load on another computer.
    I used the create distribution kit part of labwindows/cvi to do this.After creating the distribution kit, I then installed it
    to another computer.
    My user interface appears on the screen, when the user clicks on the exe. file, but no data is sent to the field point module. I know that the data is being read from the user and textfile because in it appears in the uir.
    The following are some details about the problem:
    1. On another computer without labwindows/cvi and field point explorer not installed - no data is sent to field point module
    I know this because a current is being read on the current meter connected to field point module.
    My questions are the following:
    1. What are the possible reasons for the data not being sent to the field point module?
    2. Do I still need to create an iak. (Installing Field point Explorer) file stored on any new computer that I install my created distribution kit file too?
    Thankyou very much for any help that you can provide. I greatly appreciate it.
    Faen9901

    Re: Hello, I have created a distribution kit for my program.The problem is that the when the program is installed onto another computer, it fails to communicate with field point (Using FP-AO-200 and FP-AO-1000). Help is greatly appreciated, Thanks faen9901Faen9901,
    1) If you do not install FieldPoint Explorer, the FieldPoint Server is not installed so there is nothing on the target computer that knows how to talk to the FieldPoint system.
    2) Yes, you need an IAK file on the target computer. Assuming the settings (i.e. com port#) are identical you can simply include the iak file as part of the distribution.
    3) You also need to include as part of your installer the file "fplwmgr.dll". If this file is not installed, your program will not be able to access the FieldPoint Server. Alternatively, this file is installed automatically if FieldPoint Explorer detects LabWindows/CVI or Measurement Studio Development versions on the target computer or if you choose to do a custom FieldPoint Explorer installation and
    choose to provide LabWindows/CVI support.
    Regards,
    Aaron

  • My online number is being used for scams

    Hi all,
    I´ve received a call today from a person who´s been called to be told that she should pay 95EUR for some bank papers in Italy. I´ve never had this type of activities. So  my number showed up on their phone and they called me back to ask what this was all about.
    I have shared this number only with my customer, so I wonder how this can happen.
    Would you please check with the provider?
    Thanks!
    D.

    it might mean that someone hacked in to your phone got your phone number and is using it for FaceTime. { Or you accidentally did it}

Maybe you are looking for

  • I just ran Software Update and now many applications crash on launch

    Hardware Overview:   Model Name:    MacBook Pro   Model Identifier:    MacBookPro5,3   Processor Name:    Intel Core 2 Duo   Processor Speed:    2.66 GHz   Number Of Processors:    1   Total Number Of Cores:    2   L2 Cache:    3 MB   Memory:    4 GB

  • Upgrading Adobe Application Manager gives error A12E1 - now what?

    Just wanted to install Flash. But Application Manager first needed upgrading and it stalls on an error like "seems to be a problem with installation (error code A12E1)". What do I have to do now? I got a similar error code 5 weeks ago, and to remove

  • What will happen if I don't install foxfire 4?

    after reading through the many changes you want to provide. as a senior citzen and not wanting change I want to know what will happen to the platform i'm used to?

  • Sprint 4s not getting my text from me and others.

    Does anyone have an answer to why my wife noticed that two weeks ago, she stopped getting text messages from my 4s with Verizon and others with non Apple Cell phones as well. She has had this phone for a year with no problems. Thanks.

  • Can i have 2 US prices on one product and display them separately?

    I'm creating a store with the same products but different prices to go to two sites inside the same BC site. ie. "Product A" appears on Store1.com at 9.99 and the same "Product A" appears on Store2.com at 12.99? All of these would be inside one BC Si