Espectros de amplitudes en dominio de frecuencia

Buenos días a todos,
De nuevo necesito ayuda. Trabajo con Labview 8.6 y DIAdem 11 
Tengo que realizar unos informes en DIAdem a traves de Labview donde debo sacar gráficas de espectros de amplitudes en el dominio de la frecuencia de unas señales de geófonos(velocidad) y acelerómetros(aceleración)
He estado mirando en labview, en Signal Processing-->Spectral Analysis la función de "Amplitude and Phase Spectrum" y está saca el espectro de amplitud pero en el dominio del tiempo.
Necesito encontrar la función que me obtenga la transformada de Fourier en el dominio de la frecuencia. 
¿Alguien me puede ayudar?

Gracias dSierra,
Precisamente es la función que estoy utilizando, tras mirar ejemplos y el foro ya conseguí lo que necesitaba (el espectro de amplitud)
Ahora tengo otro problema:
Esta gráfica es composición de un cluster de 3 elementos:
pero esta gráfica forma parte de un informe de Diadem, así que para ello utilizo el objeto Diadem Report y cuando uso la vi "Convert to Dinamic Data" no me pinta la gráfica bien.
Este es el código completo:
y el resultado en Diadem es este:
¿alguien me puede ayudar?
gracias a todos

Similar Messages

  • Espectro de un sonido

    Hola,
    estoy utlizando una tarjeta de sonido para adquirir datos. Mi intención es adquirir sonido y ver su espectro de frecuencias. Creo que consigo ver el espectro, pero no consigo ver las frecuencias en las unidades correctas. Alguien sabe como debo hacerlo?
    Gracias.

    Que tal Andreuu,
    Las unidades de frecuencia dependen de tu frecuencia de muestreo.
    Si tu frecuencia de muestreo es 44100 tus datos validos van a ir de 0 a 22050Hz. Ahora, dependiendo de que VIs estés utilizando es posible que tengas los datos en espejo, es decir de -22050Hz a 22050Hz.Si este es el caso debes tomar nada mas la mitad de los datos. En la mayoría de los análisis de frecuencia tus resultados tienen la mitad de muestras de los datos originales.
    Hay un documento muy completo en este link (en ingles):
    http://zone.ni.com/devzone/conceptd.nsf/2d17d611efb58b22862567a9006ffe76/c045a890751303a6862568650061ea98?OpenDocument
    Espero que te sea de utilidad esta información,
    Juan Carlos

  • Modulacion PSK y QAM URGE

    Hola, buenas tardes, estoy realizando la modulacion de BPSK, QPSK,8 PSK y 8QAM. mi duda es la siguiente 
    Estoy metiendo una portadora senoida o cosenoidal segun sea elc aso para modular, con una amplitud de 1V y frecuencia de 10 Hz.... me dijeorn que debo de cambiar esa frecuencia debido a mis tencicas de modulacion (PSK Y QAM), mas no se que valor sea el adecuado.
    Alguien podría decirme que valor de frecuencia es el mas adecuado y porque??? o donde encontrar esta información, gracias.

    buenas disculpe la molestia quisiera saber si podria ayudarme el esquema que tengo de modulacion 8qam no me funciona al leer el blog vi que estabas realizando dicho esquema de modulacion quisiera saber s me podrias enviar tu archivo de esa modulacion deberas ya estoy desesperada ... por favor un  proyecto importante depende de eso ... este es mi correo [email protected]
    espero tu respuesta muchas gracias...

  • GENERAR GRAFICA DE AMPLITUD FRENTE A FRECUENCIA

    Hola,
    Quería saber si existe la posibilidad (o alguna función) que me permita transformar una gráfica [eje y = velocidad (mm/s); eje x = tiempo (s)], en otra gráfica que represente la amplitud en eje y, y la frecuencia (Hz) en eje x. Es decir, para resumir, quiero transformar una señal para representarla como amplitud frente a frecuencia.
    Un saludo y gracias

    Hola Aristoy, que es lo que
    estas buscando hacer? en que consiste tu aplicación?. Una forma de pasar las
    señales del Dominio del Tiempo al dominio de la frecuencia es utilizando la FFT
    (Fast Fourier Transform). Esta te va a dar las amplitudes a distintas frecuencias.
    Para utilizar esta en
    LabVIEW puedes utilizar el VI Express de Spectral, se encuentra en la paleta de
    Expres>> Signal Analisys.
    Tambien puedes utilizar el
    VI directo en la paleta de  Signal Precessing>> Waveform
    Measurements >> FFT.
    FFT and Signal Analysis Tutorial
    Puedes encontrar varios
    ejemplos en Help>>Find Examples
    Saludos
    Benjamin C
    Senior Systems Engineer // CLA // CLED // CTD

  • Where can I find the amplitude and phase frequency response when the AC coupling is set on the 4472

    My friends,
      I need to know the amplitude atenuation but most important, the phase distortion introduced on the low frequency components of the signals when the AC coupling is setted (i.e. when the high pass filter is connected) on the 4472 and 4472B DAQBoard.
      I can construct the amplitude frequency response by generating and aquiring a sine waveform of a knew amplitude. But I cannot construct the phase distortion introduced by the circuitry. 
      However, I assume that this crucial information should be available in the DAQ Manual or  in the website of NI, but untill now I haven´t found it.
    Thankning in advance,
    crimolvic from Chile

    crimolvic,
    Here are the Specifications and Datasheet for the 4472.  They indicate a phase non-linearity of less than 0.5 degrees across all frequencies.
    For information on how this varies with frequency, see the attached
    spreadsheet.  This response was the result of testing on a single
    4472.  Although this is classified as a "typical" response, it is
    not gauranteed.
    Have a great, day!
    Travis
    Attachments:
    4472 Phase Linearity.xls ‏21 KB

  • How to get the amplitude of a sound as a float number in Java

    Hi, I would like to create a program which plays an audio file(it may be a midi, probably) and it returns
    the amplitude of the sound in terms of float number.
    I mean, is it possible to obtain this number, since every sound file is actually a sequence of float number like
    110.010110101 etc.
    Can you help me with suggestions and details about the way to take.
    Regards
    Frank

    For sampled sound, the answer might be seen in [ this thread|http://forums.sun.com/thread.jspa?messageID=10636576#10636576]. For MIDI it is different in that you will only be able to get it as sampled sound once it has been synthesized, and as I recently found out, to get the audio coming through the regular sound lines will take nothing less than a physcical or software 'audio loopback' being installed, on most PCs.
    Of course, if it is MIDI, you might just cheat by calculating a 'volume' from the note velocities in the MIDI score.

  • How to read and save complex data (amplitude and phase) from pna E8361C

    Hi, all,
    I installed the PNA series driver to my PC. And I got wavefrom from the PNA but always the amplitude. How can I get also phase info from the PNA and save it to my text file?

    I did installed the driver for that PNA, I can select the format such as amplitude or phase, but I can only see one of them at one time.
    Could it be seen and save simultaneously?

  • Amplitude is not changing on the receiver side

    I am trying to transmit square wave using USRP 2920. If I change the amplitude of square wave in Tx file from 1 to lets say 100. The Tx waveform shows that it is changed but on the receiver side there is no change in the amplitude. Can any body look at my files and guide me why I am not able to see increase in amplitude on Rx file when I increase the amplitude of Square wave on Tx file
    Note: I am generating a randon number between 0 to 1. If random no. is greater than 0.5 then the amplitude is 1 or higher but if the random no. is less than 0.5 amplitude will be zero.
    Thanks 
    JK
    Attachments:
    TX.vi ‏23 KB
    RX.vi ‏34 KB

    Your not going to get a clean squarewave back on the receive side. The USRP uses a local oscillator (LO) so anything it reads will be interpreted as sinusoidal in nature. This is evedent in the screen shots in the attached .zip folder. 
    To address your voltage question, assuming your antenna is terminated with a characteristic impedance of 50 Ohms (Zo) and the max power of 100 mW, Power = (approximately) Voltage^2 / Zo
    Therefore Voltage = ( Power * Zo ) ^ (1/2) = 2.2 Volts approximately. 
    What is your overall application? Why are you concerned about the voltage? What are you testing?
    Brad S.
    Application Engineering
    National Instruments
    Attachments:
    USRP.zip ‏216 KB

  • How-to set pre-specified time for amplitude measurement vi?

    In acquiring data at 100 Hz, I'm writing this to file while using the Amplitude & Level measurement VI to decide when the data has peaked. I've built arrays to accumulate the data but I don't see a simple timing scheme to continue this for one or five minutes.
    This is a GPIB instrument read over a GPIB-USB-B adapter in LV 7.0 running on Windows XP Pro. The computer is a Pentium 4, 2.4 GHz, with 512 MB RAM.
    Attachments:
    Input_fluke_with_peak_array_2620.vi ‏329 KB

    So I do not have the Fluke or the driver to see how your code runs. From what LabVIEW tells me with the wire size, it looks like you are reading one point at a time from the instrument. You will need to address this so you can get useful data. It is not that reading one point at a time is bad--it just slow. Often it is more desirable to collect more than one point at a time to get a fixed dt between the points. I would focus on seeing the data in a graph first.
    Once you are able to get the data comming in a numeric array then you can focus on termiating the acquistion when a peak is found. There are several ways to define a peak. You can say it is a point that is larger than the surrounding points but this will only show a local maximum. Noise will often cause a peak to be undesirably found. Another method for peak detection takes in account hysterisis. This says that if a high value is n units higher than later points, it must have been a peak. Look for hysterisis on NI's site for a better description. Another method for peak detection says that any values above x is a peak. This is useful if you want to collect data that is rising until 6V. LabVIEW has some VIs for peak dection on arrays. I recommend playing with them but remember you will need to decide what works best in your application.
    Now that you have data in the form of an array and a way to analyze it, you are in business. Well almost. How much time can elapse between aquiring data and analyzing it. If it is not critical, you can aquire 1000 points, analyze it, determine if you need to aquire more (use a while loop) and iterate or not. If the timming is more critical then you can use a model for VIs where there are two while loops in parallel. In one loop, you can aquire data and feed it to a queue. This allows data to be transfered to the second loop that can dequeue the data and analyze it. When the analysis indicates the data acquision loop can be triggered to stop when it returns with data. This method allows for data to be streamed off the device as fast as possible and then later processed in another loop while the VI is waiting for more data. It is very slick and difficult to code. Look in the LabVIEW shipping examples for queue to see examples of queue use. This data processing loop can write to file as the data is avaliable (slow) or it can save the data and write to the file at one time once the peak has been detected (fast). You can even add logic to only write data up to the peak. (the ease of this depends on how to detect the peak).
    I do not know if I have helped or not. It is a lot of stuff to consider. I recommend looking for a simmilar example program. This can really jumpstart any project. Look in the shipping examples and use the advanced search page. I cannot say enough good things about how well that searches NI's site for example programs, knowledgebase articles, discussions, etc.

  • Most efficient way to extract the amplitude of a signal and display on an intensity graph

    Hi All,
    I am having difficulty to display the amplitude of an voltage signal (voltage picked up by NI DAQ card).
    what I am trying: Voltage signal (Dynamic data type)--> 2D array of dynamic data type (using 2 nested for loops) --> normal 2D array with scalar values --> intensity graph
    I have difficulty to convert the dynamic 2D array to scalar 2D arry.
    I only want to extract the amplitude of the imcoming signal.. any body can give some advice? thanks in advance..
    Charlie

    Hi Hillary,
    Thanks for your reply.
    Yes, I did tried to use Amplitude and Levels Express vi, it should be the one I am looking for, but I found it not work in my case, I need to put the value of amplitudes into a 2D array.
    If I use Amplitude and Levels Express vi, it will give me a 3D array, I have found the solution, just convert the dynamic data to single scalar. (see pic attached)
    Anybody can help me to solve the following 2 problems:
    1. The speed of this program is too low, i think ii due to the DAQ assistant in the 2 for loops (for creating 2D array), it should be able to re-write using DAQmx (as "centerbolt" told me), I am working on this now, if anybody can help, I will appreciate that.
    2. Is there any other way to creat the 2D array (for purpose of increasing speed also).
    Thanks,
    Charlie

  • Add variuos amplitudes to sound graph

    Hi
    I have the following code that computes a sound graph with a fixed amplitude for a number of waves. I need to be able to control the amplitude of each wave, but am not sure how to amend the following code to produce the effect. There is also an fft function that converts the amplitude time graph to frequency time graph, but I am not concerned for this now - only want to change the amplitude for n number of waves.
    import java.awt.*;
    import java.awt.event.*;
    public class FFTv1 extends Frame
       implements ActionListener, WindowListener
      final int maxDim = 1024;
      int width =400, height =300;
      Button b;
      Complex x[];
      drawPanel pdraw;
      //float sam[] = {5, 10, 1};
      public FFTv1() {
    // The title of the frame is "FFT".       
         super("FFT");
    // Use the BorderLayoutlayout manager.    
         setLayout(new BorderLayout());
         addWindowListener(this);
    // Instantiate a button with label "FFT" which when pressed takes the FT.
         b = new Button("FFT");
    // Instantiate a panel object p where the button will be placed.    
         Panel p = new Panel();
    // Place the panel p in the South position  of the frame.  
         add("South", p);
    // Add the button to the panel p    
         p.add(b);
    // The button listens for click events.    
         b.addActionListener(this);
    // Instantiate an array x of type Complex with a length of maxDim.
    // Loop over all the elements of the array setting them equal to the value of a test function
         x = new Complex[maxDim];
    // Initialise the value of test function to zero for all sampling points x[i] = (0,0) for i = 0 to N-1.     
         for (int i=0; i < maxDim; i++) {
            x=new Complex(0.0f, 0.0f);
    // The outer loop is over the N sample points.
    // The inner loop is over the n number of graphs - in this case 2
    // CAN AMPLITUDE BE ADDED BELOW??
         for (int i=0; i < maxDim; i++) {      
              for (int j=10; j < 30; j+=10) {               
         float arg = (float)(j*i * Math.PI/maxDim);
         x[i].setReal(x[i].getReal()+(float)Math.cos(arg));      
    // Instantiate a panel object pdraw where the graph will be drawn.
    pdraw = new drawPanel(x);
    // Place the panel pdraw in the Center position of the frame.
    add("Center", pdraw);
    setBounds(100,100, width, height);
    setVisible(true);
    public void actionPerformed(ActionEvent e) {
    // On clicking the button perform the FT on function contained in complex array x.
    //Instantiate object fft of type FFT passing the array x to the constructor.
    FFT fft = new FFT(x);
    // The FT input data x is overwritten.
    fft.Execute();
    // The drawing panel pdraw needs to be repainted.
    pdraw.repaint();
    static public void main(String argv[]) {
    // Instantiate an object of type FFTv1 which contains the GUI elements and thus drives the overall program.      
    new FFTv1();
    public void windowClosing(WindowEvent wEvt)
    System.exit(0); //exit on System exit box clicked
    public void windowClosed(WindowEvent wEvt){}
    public void windowOpened(WindowEvent wEvt){}
    public void windowIconified(WindowEvent wEvt){}
    public void windowDeiconified(WindowEvent wEvt){}
    public void windowActivated(WindowEvent wEvt){}
    public void windowDeactivated(WindowEvent wEvt){}
    To draw the graphs, we need drawPanel class
    import java.awt.*;
    class drawPanel extends Panel
       Complex x[];
       float ymin, ymax;
       float hscale, vscale;
       int ytop, ybot;
       float ampmax[] = {5, 10, 1};
       float ampmin[] = {-5, -10, -1};
       protected drawPanel(Complex xa[])
        x = xa;
        ymin = -1e9F;
        ymax = 1e9F;     
      public void paint(Graphics g)
          ymin = 1e9F;
          ymax = -1e9F;
           for (int i=0; i< x.length; i++)
              if (x.getReal() > ymax) {ymax = -2;}
         if (x[i].getReal() < ymin) {ymin = 2;}     
    Dimension d = getSize();
    hscale = (float)d.width/x.length;
    vscale = 0.9f*((float)(d.height))/(ymax - ymin);
    ytop = (int)(d.height*0.95);
    ybot = 0;// (int)(d.height*0.05);
    int x0 = calcx(0);
    int y0 = calcy(x[0].getReal());
    System.out.println(y0);
    for (int i = 0; i < x.length; i++)
         int x1 = calcx(i);
         int y1 = calcy(x[i].getReal());
         g.drawLine(x0, y0, x1, y1);
         x0 = x1;
         y0 = y1;
    private int calcx(int i)
    return (int) (i*hscale);
    private int calcy(float y)
         return ytop-(int)((y - ymin)*vscale)+ybot;     
    //=============================================
    I am hoping someone can help, as I have spent hours trying to change the amplitude - I thought it may be ymax and ymin of drawPanel - but then I cannt get n number of waves at the required frequency.
    Please help!
    Thanks
    sam

    Like this
    By the way, that Abort VI button is not for stopping your loops.  I just kills execution wherever it may be.  It should only be used as a last resort if your stopping code is not working properly.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    Record_BD.png ‏88 KB

  • Why is the amplitude smaller when using the Extract Single Tone VI to measure the amplitude of a signal?

    Whenever I measure the amplitude of a signal using the Extract Single Tone VI, the amplitude is smaller than if I measured the signal by hand by positioning the top and bottom cursors to the highest and lowest peaks of the captured waveform.  Should I not use the Extract Single Tone VI to measure amplitude?  I'm using Labview 6i.

    I'm not exactly sure but I think the amplitude from the Extract Single Tone vi is in peak volts (Vp).  When you use the cursors on a scope set to the top and bottom peaks, you are measuring volts peak to peak (Vp-p).  If the Extract vi amplitude is one half of your scope reading, then this is true.  Just double your Extract vi amplitude to get the peak to peak voltage.  It also depends on the signal.  If your signal is a square wave from 0 to 5 volts (TTL), this is usually measured in peak voltage.  A sinewave going positive and negative (from -5 to +5) is usually measured in peak to peak.
    - tbob
    Inventor of the WORM Global

  • How is calculated the amplitude in the FFT function?

    Hello,
    I have a time signal, for example an 1KHz tone. I use the FFT complex function to calculate its Fourier Transform, and I want to Know, which is the relation beetween the amplitude of this FFT and my time signal.
    I have an example of a sine of 1KHz with an amplitude of 1V. When I calculate the FFT the result is one delta at the correspondient frecuency, but with an amplitude of 12149. My signal has 65536 samples.
    Could you help me please?

    With the complex FFT, I do believe you have to normalize the by half the size of your sample set. This should give you back the original magnitude of your signal. Take a look at this screenshot.
    Attachments:
    fft_magnitude.jpg ‏65 KB

  • How does one increase the y-axis (amplitude) of the audio tracks?

    How does one increase the y-axis (amplitude) of the audio tracks? My patient appears to have flatlined. I don't want to increase the gain, just the way the waveform looks on my monitor.

    DrDtMM
    The "Expert view" is a part of the new interface of Premiere Elements 11. In your version 10, you have the Timeline and the Sceneline view choices.
    For now, I will assume that you are in the Timeline view where you utilize video and audio tracks and not a Filmstrip with scene slots.
    I suspect that you may be after the following. Let us see.
    To the right of where it shows the name "Audio 1" is a microphone icon. That represents the "Audio Display Style". There are two Audio Display Styles and you can select one or the other by toggling that microphone icon.
    a. In one instance, you will see the wave form plus a horizontal orange line which is typically the Volume Rubberband for Volume adjust. This Display Style has a light green background.
    and
    b. In the other case, you will see a dark horizontal line, no wave form. That dark line is on a light green background.
    I suspect you are at "b". Are you aware that "a" exists.
    If you want a really blown up version of "a" to look at, you could separate the audio from the video, double click the audio to open the Preview Windows, and then scale up the Preview Window.
    We will be watching for your follow up to see if we are getting in sync.
    Thanks.
    ATR

  • Hello!!!ho​w can I control an omron plc (sysmac cqm1)with an OPC server?I want to adquire a signal controllin​g its amplitude and frecuency.​How can it be done with OPC server?I already have the NI CD of OPC drivers.Th​ank you

    Hello!!!how can I control an omron plc (sysmac cqm1)with an OPC server?I want to adquire a signal controlling its amplitude and frecuency.How can it be done with OPC server?I already have the NI CD of OPC drivers.Thank you

    Hola Jose David, que OPC estas utilizando?, Si tienes comunicación entre tu computadora y PLC pero falla la comunicación entre el OPC y el PLC? La configuración y direcciones entre los dos es correcta? La comunicación es por cable serial?
    Espero tus respuestas
    Saludos
    Benjamin C
    Senior Systems Engineer // CLA // CLED // CTD

Maybe you are looking for

  • How to setup the data in consumption tab in MM02

    MM02>Additional data>Consumption TAB in consumption values, the field is grey, which means I cannot input anything what should I do so that I can make some input? in SPRO or in front? thank you in advance!!!

  • HT201263 Ipad Air not turning on.  Black Screen.  Cannot open in Itunes.

    Hi,    My Ipad Air will not start up.  It makes no response.  When I connect to itunes, i get a message that tells me I cannot connect until I enter my 4 digit password.  However, the ipad is not on, so I cannot enter the password. Please help, Thank

  • Face time issue

    hi Since i am experecing the face time ,,  even my sons own i phones  they cannot connect me  is there a problem out there ?

  • App store error message downloading BBM to iPod touch

    Has anybody seen this message? It's my daughters iPod. Trying to get her BBM so she and I can chat when I'm away (I have BB...not always carryin my iPad around with me). I did have BBM on my previous iPhone 5S, but it doesn't appear in my purchased a

  • Can CDHtmlDialog play swf file with audio component?

    Hello, I'm using CDHtmlDialog in our application to play swf that shows user how to do a workflow. It works fine if swf does NOT have audio; if the swf has audio component, then it does not play. Can CDHtmlDialog play swf with audio? If not, any sugg