Power spectrum density question: One sided convert

Hi, there
I am using the PSD function. In order to get the RMS noise, I integrated the PSD data and doubled the result because I have two sides in positive frequency range and negative frequency range. Then my result is 1.414 (or Sqrt(2)) times higher than my RMS data measured in time domain.
Then I looked into the PSD fuction and found out that in the function of  "Convert to on-sided spectrum", the amplitude was doubled. But it is not meantioned in the help file.
My thinking is: either change the help file of PSD function and mention that it is a doubled one-sided output or do not double the amplitude when convert the spectrum from two-sided to one-sided output.
best regards
Chengquan Li
CQ

Dr. Chengquan Li,
I know sometimes the help can be hard to navigate, but I think I found the help documentation that address this issue.  It can be found here: Power Spectrum.  
Under the heading "Converting a Two-Sided Power Spectrum to a Single-Sided Power Spectrum", you can find the following:
"A two-sided power spectrum displays half the energy at the positive frequency and half the energy at the negative frequency. Therefore, to convert a two-sided spectrum to a single-sided spectrum, you discard the second half of the array and multiply every point except for DC by two, as shown in the following equations."
This is why you noticed that the block diagram of "Convert to One-Sided Spectrum" had the output doubled.  I hope this helps clear up the issue.
Regards,
Elizabeth K. 
National Instruments | Applications Engineer | www.ni.com/support 

Similar Messages

  • 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.  

  • Convert power spectrum back to original waveform

    Hi,
    I have program my PXI 5610 to transmit a sine wave to my PXI 5600.
    But when I use the 'ni5660 Read Averaged Power Spectrum VI' to read the signal, it comes out as a power spectrum.. So how can I convert this power spectrum back into my sine wave to show it on the graph.
    I am new into this field, hopefully someone can help me out.
    Thanks.
    Jieyi
    Attachments:
    wiring.GIF ‏9 KB

    Hello Jieyi,
    When you read your signal as spectrum, you loose the phase data. You can still get your signal back but it would not have any information about the phase. I would suggest you acquire the time domain data. This is very simple since the driver can do everything for you.
    The time domain data will be automatically converted to In Phase (I) and Quadrature Phase (Q) which are two components that changes the carrier. You can read more about IQ signals here.
    Then, you can open the example called ni5660 Getting Started IQ.vi located under "\LabVIEW 8.x\examples\instr\ni5660" and look at this:
    Finally, if you have modulation toolkit, you can open any modulation example to transmit a sinewave. These are located at:
    "\LabVIEW 8.x\examples\Modulation\RFSG examples"
    For example, AM:
    Transmitter (Tx)
    MT RFSG Generate AM.vi
    Receiver (Rx)
    MT ni5660 Demodulate AM.vi
    These examples are ready to transmit any standard waveform including your sinewave.
    Hope these information helps,
    Message Edited by Yardov on 08-17-2007 06:50 PM
    Gerardo O.
    RF Systems Engineering
    National Instruments
    Attachments:
    acquire time domain signals.JPG ‏46 KB

  • Power spectral density

    Hello,
    I cannot seem to change the "desired units" of the SVT Power Spectral Density.vi in the sound and vibration toolkit. It is still possible to switch between EU^2/Hz and EU/sqrt(Hz) on the Power Spectral Density function?
    Regards,
    Raoul Enning

    Hello Beat,
    thanks for your help in this matter, I really do appreciate it. First and foremost let me mention that I am working with SVT version 3.1- maybe quite antiquated; i un- and reinstalled it just to make sure that no one here in my lab had fooled with it. On that note, my spectrum units.vi looks somewhat different to yours (see attachment). The relevant portion of the naming of the y-axis variables comes in the "svl_Modify Unit Label for Spectrum Type and Spectral Density.vi". If we look in this VI (also attached) we see that the larger outer conditional, which defines if the units are X^2 / Hz or X / sqrt(Hz), has itself a condition that only allows free movement when the input is linear. When the input is in dB, the conditional is always false, which amounts to forced labeling the Y-axis with X / sqrt(Hz). I actually see the same conditional in the VI you posted.
    In addition to this, the data doesnt change either.  This is because of the sv_Linear to dB.vi (also in attachment). when switching between EU^2/Hz and EU/sqrt(Hz), the "input signal" data switches between either 1 set of data, or that same set of data squared. so far so good. However, the calculation that is done here when EU/sqrt(Hz) is selected (i.e. magnitude) is 20log(Vin/Vref) which is equivalen to 10log(Vin^2/Vref^2). So, this returns us to power and not magnitude, converting the data right back to how it is when EU^2/Hz. Now I can imagine that programmers have done this to maintain the definition of the dB in electrical engineering, but I will argue that when I select EU/sqrt(Hz) (this cannot be called power spectral density anymore) I want the units in Volts, and not in Volts squared.
    Regardless of the semantics of the data computation, the units reported on the y-axis are always wrong when dB is active. Following the computation of the data in sv_Linear to dB.vi, they should always be EU^2/Hz, and not the other way around.
    In order to fix this, I am compelled to convert the 20log(Vin/Vref) computation to 10log(Vin/Vref) and to remove the "linear" condition in the svl_Modify Unit Label for Spectrum Type and Spectral Density.vi.
    What do you think of this idea? Am I completely wrong in my thoughts? 
    Regards,
    Raoul Enning
    Attachments:
    spectrum units.JPG ‏67 KB
    unit label.JPG ‏77 KB
    Linear to dB.JPG ‏120 KB

  • 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

  • Switching 2D array for Avg Power Spectrum?

    I have a 4 channel 2D array signal which is now indexed so that I can feed 1 channel to the Avg Power Spectrum. It would be much better to have the switching done by radio buttons instead of wired in the Block Diagram. How are the Radio Buttons positioned between a 2D array and the 1D array required by the Avg Power Spectrum?
    Regards,
    Raymond

    I answered your question here. Since the radio button control is just a numeric control, replace your hard coded indexing with a front panel one. Here's a picture of what I mean.
    Attachments:
    array_indexing.jpg ‏4 KB

  • Optimizing Power Spectrum Performance

    I'm continuously acquiring data from two channels on a PXIe-5122 at a rate of 50 MS/s (100 MS/s total). I would like to compute the power spectral density of each channel while acquiring the data. I'm currently using the FFT Power Spectrum and PSD VI.  I benchmarked the performance of the FFT Power Spectrum and PSD VI on its own and was processing at a rate of about 3 MS/s per channel.
    Is there a more efficient VI should I should be using to calculate the PSD?
    Is calculating the PSD at these rates even feasible?  If not, any suggestions for alternatives?  (Would an LV FPGA be an option?)
    Thanks!
    geoff
    Geoffrey Schmit
    Fermi National Accelerator Laborary

    Hello Geoff,
    This is Andrew Brown, an Applications Engineer from National Instruments. The FFT Power Spectrum and PSD VI you mentioned is the recommended method of determining the PSD of data channels. Calculating the PSD given your sampling rates (100 MS/s) would definitely be much faster using the LabVIEW process. However, I was unable to find a specific benchmark.
    Some additional resources on using LabVIEW FPGA are located at NI LabVIEW FPGA and in the LabVIEW FPGA Help for FFT. Please let me know if you have related questions on this issue. Thanks, and have a great day!
    Regards,
    Andrew Brown 
    Applications Engineer
    National Instruments

  • 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.

  • WAV power spectrum

    I am conducting a sound measurement test using a IEPE microphone and the NI USB 9233. I used the SVXMPL_WAV Recorder (DAQmx).vi to record a Wav file of the sound and then the SVXMPL.WAV Power Spectrum.vi to produce a power spectrum of the wave file. I had a concern that scaling was occurring because the spectrum seemed louder than expected. I read in another thread that no scaling occurs in the vi. Next I used SVMPL_FFT Subset (DAQmx).vi to produce a power spectrum over the same frequency range (20 to 20,000 Hz). In general, the two method agree well except that the peaks in the spectrum are at lower frequencies for the WAV Power spectrum vi than that obtained for the SVMPL_FFT vi. I was wondering if any one could please explain why this is occurring?
    Regards,
    Bill

    Hello Bill!
    Thanks for your posts back and the information. So what I have done is I ran approx 1 KHz signal through a series of different programs to see if I could reproduce anything you were seeing. I also used the program you posted as well. However when I run the  WAV Recorder (DAQmx) vi and then put that wave file into the WAV Power SPectrum I see the signal at about 1KHz like I expect. Then I aslo use your program to see if I can get the same results with the same function generated signal. I always se my signal in the same matter and the frequency components line up accordingly. See the pictures attached below. Thanks for posting your code and it seems like I am unable to reproduce what you are seeing. Did you make any changes to the VI's in your code? If you could perhaps post the wav files that you are producing to see what I can make of them? Take a look at the screen shots that I was able to produce. 
    Cheers!
    Corby_B
    http://www.ni.com/support 
    Attachments:
    Power Spectral Density.jpg ‏225 KB
    WAV Power Spec.jpg ‏202 KB
    Power Spectrum.jpg ‏142 KB

  • Keeping Power Spectrum Peaks on a Graph

    Hello,
    I am trying to read in a signal which varies in frequency as time progresses. I am taking this function and running a real time power spectrum (FFT Power Spectrum.vi) on it. As time goes the peaks move around according to teh frequency which is coming in. What I want to do is to keep the old peaks on the graph as the new peaks come in. So for example if I had a signal which was at 50 htz then 75 htz, at the end of the run I want to see both peaks on my grpah. Is this possible? Thanks.
    Intern NSWCCD Carderock.

    If you use the Spectral Measurements Express VI, you can configure it to do peak hold. In the configuration screen, turn averaging on, click on the Peak Hold radio button, and set the averaging number to 1. Then all your peaks will be displayed as they come and go. See attached vi. If you want to see how the express vi does it, you can convert the express vi to a normal vi and then look into the block diagram. I believe one of the functions has a peak hold input.
    - tbob
    Inventor of the WORM Global
    Attachments:
    SpectralMeasure.vi ‏98 KB

  • New iMac 27"  and just plugged in a Apple USB superdrive and get message, "Because a USB device was drawing too much power from your computer, one or more of your USB devices have been disabled."  I am trying to load Office mac2011  what to do?

    I have a new iMac 27"  and just plugged in a Apple USB superdrive and get message, "Because a USB device was drawing too much power from your computer, one or more of your USB devices have been disabled."  I am trying to load Office mac2011  what to do?

    If you just bought the iMac and the Sjuperdrive take the superdrive back and get a refund. The by any other brand external DVD drive that connects by USB and try that. Most come with a Y USB cable to allow you to connect to 2 USB ports to supply enogh power to the drive IF Needed.
    Or take both back and get a refund on both, you have 14 days to return it no questions asked, and buy another iMac and some other brand external DVD drive.

  • 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

  • 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...

  • How to make a reporting services report always print one sided

    We have a need to be able to print a specific report always one-sided, even when the printer property is defaulted to duplex.
    Is there a way on a report to do this?

    Hi WAConnie,
    According to your description, you want to set the one-sided printing in Reporting Services. Right?
    In Reporting Services, we don't have any feature/properties to set the printer one-sided. Please refer to the screenshots of print properties:
    In this scenario, you can only set this property on printer side.
    Reference:
    Print Reports (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Going Abroad - Question About Voltage Converter Stuff

    Hello, so I am going abroad for a few months (the Netherlands), and I have a question about voltage converter stuff. All of the voltage converters I can find say powers heat-producing appliances rated 500-1600 and converts foreign voltage of 220-240 volts to U.S. voltage 110-120. However, it says not to use on appliances under 500 watts such as computers. So first, off does anyone know how many watts an ibook g4 14" puts off. Secondly, I read that laptops have a dual adapter and that they can work on the 220-240 volts converter. Does anyone have any ideas about these issues; any help would be greatly appreciated!

    Hi Brandon,
    Welcome to the Discussions.
    Your iBook's power adapter is rated for 100-240v. All you need is an adapter for the plug so it will fit in a European outlet. You can find them at travel stores or online for a few dollars.
    John

Maybe you are looking for

  • Acrobat XI Pro Won't Convert 206 Page Word Document into PDF

    Hi there As menetioned above, Acrobat XI Pro Won't Convert my 206 Page Word Document into a PDF.  The Word document was originally a PDF file that I converted to Word and it has split all the text into sections. It sounds like converting a PDF into W

  • Do I use a number list or another method?

    Hello, I am very new to Indesign. I am working on a book project that is basically a two column layout. Every paragraph in the columns has a number prefixing it. To better understand what I mean, every paragraph is a verse and is numbered the same wa

  • Having problems compiling

    I have jdk1.3.1 and just downloaded it to upgrade from jdk1.1.8. I also have the recent j2se program. I have bought a book from the year 2002 and have installed jdk1.3.1 from it. I was trying to compile an example from the book but It gave me an erro

  • Setup Env. Variables PHP or Apache.

    Goodmorning everyone, I'm trying to setup a connection to Oracle with PHP. I installed the Instant Client and added its path to the Environment Variables. Made the connection and it all seems to work perfect on my test computer. Now I want to setup t

  • No iCal icon in dock

    I am unable to keep the iCal icon in the dock. I have several Powerbook Pros, but only one acts up. An alias always stays in the "Places" sidebar, but an iCal alias will not stay in the dock, once I close the iCal application. Help, please