Save Power spectrum

Hi
I would like to save a power spectrum ( about 80000 lines of data) as a file that i can later plot. When i write the cluster (coming out of FFT Powerspewctrum.vi)  to an excel  (excel works only upt o 56000 or something like that, so i can´t use it anyways) or .txt file using the a combination of open -write -close  file i get weird number and letters and not the data i´d like to have. Which data format ( iwould like to make graphs in origin) and vi´s should i use to export the spectrum or is it the best to extract the y-value of the spectrum (magnitude) using the unbundle by name .vi  and export it as txt?
 Thanks for any help

I believe this is also something i can use for my application, however, when trying to recreate the code in LabVIEW 2011 SP1, the connections between the For Loop and the Close File return an error that the data types are different.The Path wire returns that the source is 1-D array of byte stream file reference with the sink being byte stream file reference. The Error wire returns that the source is 1-D array of cluster of 3 elements with the sink being a cluster of 3 elements.  How would i go about fixing this?
I plan on using this to write to the file from an accelerometer connected to a NI-9234 c-series module through a cDAQ-9178 usb chasssis.  So my intention is to use this as a subVI to connect the accelerometer signal from the DAQ Assist of another VI.  I am trying to record the spectral data. Attached is the attempt at recreating your code.
Attachments:
Save Power Spectrum.vi ‏55 KB

Similar Messages

  • Save Power Spectrum from ni5660

    I am using ni5660 to capture the power pectrum using "ni5660 Power in Band" example.
    Is it possible to save the power spectrum for later use?  In which format can it be saved?  Is there a VI that will do it for me?
    When I mean the spectrun data I mean the output of "ni5660 Read Averaged Power Spectrum".
    Thanks.

    Hi,
    Using any of the File I/O VIs within LabVIEW should work fine for this.  I have attached an example of how this could be implemented by writing to a binary file.  When streaming data in the way you intend to with this example, the binary file format is recommended because it is more efficient in terms of space than other file formats.  In addition to the modified example I have also attached a sample VI that shows how you can read back the data written to the file and confirm that the spectrum actually was saved.  Let me know if you have any questions.
    Regards,
    Andrew W
    National Instruments
    Attachments:
    ni5660 Power In Band w Binary Write.vi ‏57 KB
    Read Binary.vi ‏243 KB

  • Basic accelerometer-power spectrum readings

    Hi all,
    I'm new to Labview and am trying to create a simple power spectrum logger. I've had a look at multiple tutorials but am stuck getting to places (most of the tutorials require sound and vibration toolkit, are really old and incompatible with Labview 2011 etc). The program I'm trying to do is:
    1) Collect signals from accelerometer (4kS/s)
    2) Generate power spectrum
    3) Save to disk (on board the cRIO)
    My setup is:
    - cRIO 9014
    - NI 9234
    - Labview 2011
    So far, I've managed to get the signal readings (XYZ axis) and merge them, put them into a 'Collector' block and then output them to the power spectrum block. I've very crudely used a 'Time Delay' block to set the sample rate (which I know is probably not accurate, but I cannot figure out how else to do it). I'm having a problem figuring out how to input the sample rate into the collector, which is why my power spectrum is giving me 0 to 0.5Hz (it's likely assuming the sample rate is 1Hz). I've attached my .vi.
    Would someone be able to point me to a tutorial/example/alternative solution? Thank you very much in advance.
    Attachments:
    accelero.vi ‏93 KB

    I think what you want is the CompactRIO vibration data logger.  It does not require the S&V measurement suite, though you will find it very useful. 
    Check this out!
    http://zone.ni.com/devzone/cda/epd/p/id/6388
    It has a waveform acquisition template for the FPGA.  It has a data logging state design. 
    You can see a Video of it working here
    http://www.ni.com/mcm/wind/
    Let us know if this helps. 
    Preston Johnson
    Principal Sales Engineer
    Condition Monitoring Systems
    Vibration Analyst III - www.vibinst.org, www.mobiusinstitute.com
    National Instruments
    [email protected]
    www.ni.com/mcm
    www.ni.com/soundandvibration
    www.ni.com/biganalogdata
    512-683-5444

  • Power Spectrum Density conversion to Time Series Data

    Hi,
    This may seem an odd request but is there a way to convert power spectrum density data back to the time series data that generated it in the first place. I have lost the original time series data but still have the PSD and need the time series to do other analysis.
    Thanks,
    Rhys Williams

    Hate to be the bearer of bad news, but there are an infinite number of time series that will generate a given PSD.  You lose all phase information upon taking the PSD.  For this reason I almost always save time domain data, or at least complex FFT values.  

  • Streaming data to disk, need help reading data into Power Spectrum/O​ctave vi

    I'm streaming data to disk in one loop, however once this finishes I'd like to read the data into power spectrum vi/Octave analysis vi in another loop. The data from the read vi is a string and power spectrum vi needs 1d waveform. Does anyone have experience with this process?

    From your general description, I gather you are streaming to a text based file (comma or tab separated spreadsheet format) and would like to analyse this data with a power spectrum or octave analysis when you finish. Since you are streaming, I assume you have a lot of data. Do you have more than one channel?
    In any case, you have two simple options (and lots of complex ones). You can either read the data back from disk and convert it to a 1D array (try the Read From Spreadsheet File.vi - will get a 2D array, take the first column or the column of your choice if you have more than one channel) or you can use the Spreadsheet String to Array primitive to create an array from your text data before you save it to disk.
    If your data rate is slow enough, you can analyze as you acquire and store.
    Taking your data as text is very inefficient. What you really want to do is read the data as binary, use that for your analysis, and use something like the Write to Spreadsheet File.vi to save text data to disk.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • Power spectrum averaging

    I am performing a power spectrum and averaging over a number of spectrums.  In addition to saving the average power values for the spectrum, I would like to save standard deviation, max, min.  Is there a way to do this?  It seems that in the Power Spectrum dialog box there is only the option to turn on averaging, but not to save this other data.

    Hi,
    Hoe do you want to save the data (format)?
    If you want you can save the value as txt numeric data in spredsheet file.
    Or do you have any other idea
    Regards

  • Firefox 5.0 locks up Ubuntu 11.04 Dell laptop computer after turning off screen to save power - it doesn't allow mouse or keyboard input

    After my Dell studio1535 running Ubuntu 11.04 switches to screen saver and then blanks the screen to save power I canl bring back my desktop, but not accept any keyboard or mouse clicks. It will allow courser movement only. The only solution is to power down and re-boot.
    This only happens when I leave a window with Firefox 5.0 open. No other software package causes this problem.

    After my Dell studio1535 running Ubuntu 11.04 switches to screen saver and then blanks the screen to save power I canl bring back my desktop, but not accept any keyboard or mouse clicks. It will allow courser movement only. The only solution is to power down and re-boot.
    This only happens when I leave a window with Firefox 5.0 open. No other software package causes this problem.

  • Power Spectrum no longer working correctly after upgrading to 8.0.1

    Recently, I installed Labview 8.0.1 to correct a problem I was experiencing in 8.0.  The installation resolved my problem, but now the Power Spectrum no longer gives the correct result.  My program has not changed other than the update.  I checked my circuit and everything is functioning properly.  Before changing to 8.0.1 the power spectrum peaked at 40Hz and 80Hz,  which was correct, and now it peaks at 0Hz and 10Hz.  On top of everything, the peaks are much higher than they should be.  I expect peaks with a max of 2.5millivolts and now they are 1volt.  I don't understand what is going on. Nothing changed, but the software version.  Can someone please help me? 

    In addtion to Altenbach's comments - 
    I'd recommend trying another VI function to get the power spectrum for
    your signal to see if the behavior is the same.  You can find some
    examples of VIs using the power spectrum functions using the NI Example
    Finder.
    You can go to LabVIEW's Example Finder by going to Help >> Find Examples.
    Then search for FFT. There should be some results that include FFT and
    Power Spectrum Units.vi, Power Spectrum Measurement.vi, Basic Spectral Measurements.vi,  and Spectrum Measurements.vi. Try opening and
    running these examples to see if the VIs are returning the proper
    results.
    Mark Walters
    Application Engineer
    National Instruments

  • In Safari, why doesn't Internet Plug-in, stop plug-in to save power work anymore?

    In Safari, why doesn't Internet Plug-in, stop plug-in to save power work anymore?

    Yes, the Mozilla Plugin Check page is specifically for Firefox.

  • Signal-to-Noise ratio from Power Spectrum?

    Hi,
    I have a feeling this is a basic issue but for some reason I'm not getting it.  I hope this forum can help.
    I have a Power Spectrum (freq on the x-axis and power on the y-axis) and I am trying to determine the signal to noist ratio of the rf signal live.
    I am using LV 8.5 and have the spectrum toolkit and am using an RFSA in a PXI chassis.
    Any suggestions?
    Thanks
    - rf curious

    Hi Rf Curious,
    This questions does not have a simple
    answer but let me share my thoughts and you can decide what it makes
    most sense for your application. For signal to noise ratio (SNR) you
    should have ideally the power of the signal and divide it by the power
    of the noise. The problem here is that you are looking at both at the
    same time (rf live signal). Depending of what type of signal is it, you
    can recreate it and substract it from the spectrum (you will need to
    recreate the phase and magnitude and delete it from the phase and
    magnitude of the spectrum). This is normally done with simple signals
    such as a tone.
    If you don't have access to the magnitude and
    phase of the data, and you only see the spectrum, then you will have to
    do things different. You can probably measure the power of the signal
    by measuring the power of the band where the signal is located. Then,
    you can terminate your input and measure the power of the noise of the
    instrument (with same attenuation and RBW settings) and have a rough
    estimate. This method should have better results when S >> N. You
    can also take the adjacent channel (or further) noise reference.
    Finally,
    if your signal has a pretty flat spectrum, then you can only take the
    difference between the noise and the signal since they both have the
    same RBW.
    If by now, you have found other methods, feel free to post your ideas here for any other person that come across this problem.
    Regards,
    Gerardo O.
    RF Systems Engineering
    National Instruments

  • Intel "Save Power / Increase Performance" popup

    Currently starting to replace the older X series laptops with the X220's here at work.  The problem we are running into is that annoying green popup window from Intel HD graphics asking to save power or increase performance.  The window can't be moved and the users can't do much of anything for the couple minutes it stays on the screen.  It's becoming a real hassle for us helpdesk guys.
    How do we get rid of this?
    Removing the drivers doesn't work, they just reinstall after reboot.

    From an unrelated thread out there on the web:
    When unplugging the mains ac adapter in Speed mode I had an annoying green Icon in the middle of my screen for 2 minutes that said "Save power" -> "Increased performance" stays for some time on top of other windows. I renamed the file C:\Windows\System32\nvvsvc.exe This however unelegant appears to have eliminated the annoying popup, if anyone has a better solution for this do let me know.
    Untested, unlikely, and a little scary.  It's the only thing I could find that even suggested a solution.  Otherwise, there are just a few other people complaining about the same thing on a variety of platforms.
    Z.
    The large print: please read the Community Participation Rules before posting. Include as much information as possible: model, machine type, operating system, and a descriptive subject line. Do not include personal information: serial number, telephone number, email address, etc.  The fine print: I do not work for, nor do I speak for Lenovo. Unsolicited private messages will be ignored. ... GeezBlog
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество

  • Memory leak with Power Spectrum function

    Hi
    I have a memory leak on my application. By observing with the "Desktop Execution Trace Toolkit", the Power Spectrum function (from NI_AALPro.lvlib) seems to have two "Reference leak".
    The first one refers to the function "Open VI reference"; I got around this problem by replacing the "Open VI reference" by an "Initialize" input boolean, but I don't understand the second memory leak.
    Any idea ?
    Thanks...
    (See attachments : Desktop Execution Trace + code)
    LV8.6.1 + Desktop Execution Trace Toolkit 2009
    Same problem with LV2012 + Desktop Execution Trace Toolkit 2012
    Attachments:
    DesktopExecutionTraceToolkit.png ‏82 KB
    MemoryLeakPowerSpectrum.zip ‏7 KB

    Hi Mathilde,
    Thank you for using NI Discussion Forums!
    I reproduce this problem with LV2012 + Desktop Execution Trace Toolkit 2012. I will look further into this.
    Are there many calls of this function in your code? Could it be a problem for you?
    Thank you.
    Regards,
    Audrey_P
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    Journées techniques : des fondamentaux aux dernières technologies pour la mesure et le contrôle/comm...

  • Monitor went to save power mode

    hi, i have a ibm netvista 8306, i loaded in win xp, but lost my drivers but the main problem i have is that i installed the correct graphics driver for this desktop comp. but when i restarted the comp. the comp. went onto save power mode, icant seem to do anything as the keyboard fails to work and i seem to be stuck with this message, after about 5 secs. the screen goes blank...can anyone please help me is there a reset button ?...will reinstalling windows fix it ?
    if anyone can tell me how to fix this i would be very gratefull....
    thanks ppl..

    This from an earlier post by Wonkanobe:
    Quote
    looking for 28a 35a and 16a 3.3 5 and 12v
    So, you want at least 28a for 3.3, 35a for 5, and 16a for 12v rails, according to Wonk, who runs the same PSU that I do...and for a reason. ANd since you're running a TI4200, you'll probably want more.
    Yours:
    +3.3 V 20a
    +5v 33a
    +12v 15a
    I've got 30 years in the business, and I'm not making this up. Your symptoms are just like those who have had underrated supplies and have fixed them by replacing the PSU. You are also in danger of wrecking your RAM, by the way, which costs much more than a PSU.
    Don't know why you reported a problem if you don't want to even consider the advice, or avail yourself of the painstaking research I did.

  • What is the equation for a Low-Sidelo​be Window Function (in Power Spectrum VI)?

    I am trying to find out what is the equation for the Low Sidelobe Window which is mentioned in the Power Spectrum VI. Hanning second sidelobe is around -32dB of the first. What is that for Low Sidelobe?

    The CWT is not equivalent to the discrete dyadic wavelet transform. In theory, the CWT can compute the wavelet coefficient at any positive real scale and any real shift, while the discrete dyadic wavelet transform only includes the dyadic scales (2,4,8,16...). So the formula used to describe the CWT can be referred to the equation in pp.80 in S. Mallat's book.
    In SPT's implementation, the time interval controls the shift in number of samples. The scales indicate the wavelet coefficients at integer scales 1,2,3,...,"scales" are contained in the output scalogram.
    NISH DSP
    Medical ultrasound and signal processing

  • Need Help related to Power Spectrum of two signal

    Hello Sir, 
    I have two signals of different frequencies but i want to take the FFT power spectrum of both signals at same graph . So for that case i take the FFT power spectrum of both signal indivisualy and after this build the array. so i got the one graph and all the components in same graph. Now
    The problem is that in that graph i want to extract the magnitudes at each frequency, but when i extract the information from final graph it will be the " 1D array of Cluster of 3 Elements" so its information is saprate for these two signal. but i want to tale the magnitude at each frequency , how can i got this sir . Please Help me 
    Agnivesh

    Sir it works thanks but there is one new problem is that wahen i am going to extract the magnitude for every frequency it is also works, but my question is that if my frequency is in floating point then how can i extract magnitude for that frequency. i mean i extracted the magnitude for every frequency component starting from 0 to 1...2..3...4.............so on (Frequency ) but if my frwquency id 2.3Hz so how can i do this.i am sending you my VI also 
    Agnivesh
    Attachments:
    Analysis HP Compressor test 1.vit ‏3485 KB

Maybe you are looking for

  • Vendor Return Excise Invoice printing

    All SAP Gurus, We have created an Excise invoice for vendor return (J1IS). Now we are using J1IV for printing Excise invoice, but we are not getting the print in desired format. We want  to use the print format same as that being used by SD people. I

  • CSS not showing fully in DW CS3

    I recently installed DW CS3 on XP and realized that some of my <div> tags with CSS backgrounds are not displaying in design view, however, are doing fine in DW 8. Has anyone experienced anything similar? I certainly want to use DW CS3 for the updated

  • Setting Icon Image in JDialog

    The following code sets the top-left icon of a JDialog box.But when I uncomment the line 'setResizable(false)' the Icon is not seen. So how do run the code if I want the JDialog box not Resizable ? Code is as follows..................................

  • Event to trigger Process Chain

    Hello Experts, I need your suggestions to write an event to trigger a process chains after user put text file to server, but the PC is not run. here the step what I have done. a. define an event SM62 "ZEV_PC_START" b. create abap code to check the fi

  • Not able run background job.

    Hi I am using GUI_Upload function module to upload excel content into internal table. But the problem is when i run the program in background is not working but the job is successfully executed. Note : the program is working fine in foreground. Pleas