transformed of Fourier of the sine and square wave return is not the frequency of the wave.

Hi all

I did a few programs to determine the Fourier Transforms of the sine waves and square waves. I understand that square wave harmonics when FTed but the Harmons of the square wave is not out at the right frequency and neither is the sine wave. Any help would be appreciated. I have attached my programs, so you can take a look.

Thank you very much

M

The axis of your frequency VI is missing.

Given that the data are sampled in a uniform manner, you can use a regualr rather than the graph XY Chart. Then you need not create a table of the x-axis. A property node to set the frequency axis scale multiplier and offset.

Lynn

Tags: NI Software

Similar Questions

  • FPGA square wave generator diverts loop calendar

    Description of the problem:

    I have a simple while loop with a structure of matter inside. In one case, I have the
    Generator FPGA Sinewave sending the data of output to AO0, otherwise, I have
    the square wave FPGA sending output to AO0 generator. The sine and square
    waves are set to run at 10 kHz

    I also have a shift register that changes the State of DIO0 each loop through.
    In this way, I can look DIO0 on my scope and say how fast the loop runs.

    When I choose the sine wave generator, the output on AO0 is what I expect. That
    is I have a sinusoidal signal at 10 kHz and the loop speed is approximately 1 US. Everything is good.

    Then I move to the square wave. I get a signal square 10 kHz, which is good. But
    My loop speed was slowed down to 50 US (it follows the square wave
    exactly) is: once the loop defines the FS square wave and the
    the next time through the loop, it defines the square wave to-FS.

    My problem is that when I generate a square wave, I expect the speed of loop
    to stay fast he does it for the sine wave. You can see what my loop speed
    slows to 50 (a square wave of 10 kHz) and then all my calculations that must
    go in parallel with the square wave will also be slowed.

    Please help me with my understanding of the use of the square wave FPGA sub - VI

    Thank you
    Rich

    Software of NEITHER: LabVIEW FPGA Module version 2013 SP1
    OR hardware: USB-7855R R Series device

    If you dig into the express VI, it will loop an SSTL until there is a change in value.  The sine wave has no need to do so because the value changes constantly.

    If you can, I recommend doing your loop a SSTL and configure the express screw accordingly.  This will work as long as the rest of your code in the loop can be run in a single clock cycle.

  • market factor two AO signals with a square wave

    Hello

    I use two devices with sending two signals (sine wave) AO out simultaneously in my code. I need to have to cycle my signals. in other words, I want to start or OFF the devices at all times. To do this, I use a generator with duty cycle of 50% square wave. The devices must be running when the square wave has positive values and should be OFF when it is negative.

    The code almost made it, but it doesn't seem to be as fast it's supposed to, based on the frequency of the square wave. I was wondering if someone can help me with this problem. In addition, I'm not sure if this is the best method to do this, please leave me know if there is a better way. I've also attached the VI.

    Thank you

    Pooya

    I thought about it. Instead of the command at the AO signals with square wave and the structure of the case, I just made a square wave from 0 to 1 and multiplied the wave sqaure to the AO (sine wave) signals. In this way, when the amplitude of the square wave is 1, it sends the sine waves and when it is 0 it sends 0.

    Please note that all signals (sine and square) should have the same info of sampling.

  • Where the center anchor is on the edges of the rectangles and squares?

    I use Illustrator CC and all of a sudden the center anchor points on the edges of the rectangles and squares are not there. I really liked this feature and was so happy that they have added to Illustrator. I use it all the time in InDesign. Is there a reason why it disappeared and is it possible to reactivate it? I noticed that the central points are there when I first draw a box with the rectangle tool, but as soon as I try to click on it with the selection tool, the central points disappear.

    Use the tool free ransform for transformation.

    It happened because of the new forms of life.

    In case you want to get them back:

    Feature request/Bug Report Form

  • How can I design square wave which has a positive and negative values equal to the other and separated from each other by controlled time or distance

    How can I design square wave which has a positive and negative values equal to the other and separated from each other by controlled time or distance, as indicated in the figure below. and enter this signal in a data acquisition.

    At the time wherever you go for the beautiful diadram, you could have done the vi

    Your DAQ would like a waveform (table of values and dt ak 1/sampling rate)

    If you set the sampling rate you know the length of the array, create a matrix of zeros and set the values of the two amplitudes...

    Because I don't want to connect other duties here are some photos

    And it does have a few drawbacks leaves to be desired in my solution, just think... rounding errors and what might happen if the tables are becoming more...

  • Frequency measurement and phase of a square wave using to extract the information of your unique vi

    Hi all

    I'm trying to measure the frequency and phase of a square wave from a data acquisition card using vi retrieves your unique information. So far, the frequency can be measured precisely, but there are a few problems with the measurement of phase.

    I have attached a sample program here. I generate the wave square using Square Wave PtByPt vi. The default sample size is 1000. When I put the frequency = 7.43, phase = 80, the frequency can be measured precisely, but the phase is completely. Is there something wrong with my program?

    Thank you very much for your help.

    Best regards

    A square wave is not a single signal ;-)

    If you have a square wave use the edges to make measurements.

  • FS Square wave vs FS Sine wave

    Hi all

    We build a voice recording system and to test the system gain, inject us the sinusoidal signal and record wav PCM 16-bit record.

    The wave using default FS square the amplitude of crete it is - 12dB, while the RMS amplitude is - 15dB.

    Using FS sine wave, is the amplitude of crete - 12dB, while the RMS amplitude is - 12dB (strange however)

    Using other tools such as SpectraPlus, peak amplitude is - 12dB.

    Who s the correct setting to determine the sensitivity of the system?

    Thanks in advance

    CG

    When checking out an audio system gain or sensitivity, it's only the amplitude of crete that interests of all true. But also, of course, you must return the level of the input signal measured in the same way.

  • How can I get a continuous square wave to the duty cycle of 50% on one of the analog lines?

    Hello, I had recently just buy an analog card to our system, and I'm still very new to labview.  I have the PXI-6723, and I need to produce a wave square of 0 to 5 volts continuously.  I used the square wave generator and used a writing funtion to one of the ports.  This produces a momentary wave and that's it.  I tried to put some time a loop around the square and watched as wave function.  It produces constantly plots, but the write function always has the same thing.  If I am the writing inside the loop function I get errors.   Any help would be greatly appreciated.  Thank you, Fred

    Another function to generate the square wave, to change the generation of waveform buffer (the Subvi used) and to connect a control at the entrance to offset from the base generator functions. or simply use the add function on the output waveform.

  • How to read the digital square wave pulses

    Hello

    I recently bought a blue-white meter. I have successfully read the digital square wave from the sensor. However, I face a problem to calculate the flow rate and the total volume of liquid. Can someone help me with this?

    Technical data of the flowmeter can be access to the http://www.blue-white.com/Products/ElectronicFlow/MicroFlo/80000-406_microflo.pdf. And the calculation can be found on page 9. I use NI9401.

    Thank you


  • With the help of modulated signal pulse width (square wave) to control when a signal is enabled or disable

    With the help of modulated signal pulse width (square wave) to control when a signal is enabled or disable

    Hello all

    I am using a modulated signal to labview created pulse width (square wave) to control when a signal is activated or not.

    Here is my logic and a concrete example:
    (1) the wave source signal is continuous
    (2) use a PWM (square wave) created in labview to control when the signal is enabled or disabled
    (3) if the PWM (amplitude) signal is superior to 0 play signal PWM is not greater than 0 do not play signal.

    I use actually this to the sequence step / pulse several distinct magnetic coils using my audio card (which has several channels of audio output), I have a signal in labview played constantly.  As to compare it to the PWM (square wave) which controls whether or not the signal is played on each separate channel.  That way I can control which coil is on and offshore and in what order they are activated.

    I couldn't find an edge detection for a square wave created in labview, so I tried the limits, but it doesn't seem to work unless I change the phase manually and it only goes 1-1.  I'm just trying to compare the PWM (edges of the square wave) already created by labview / play a signal if the pulse is greater than 0 and it shuts off the signal, if she is less than 0.

    Should I do this another way

    TIA

    A waveform contains an array of values. You must check every value and respond accordingly:

  • unexpected noise of the square wave

    Hi, I just run a simple test: connect PXI4461 with the PXI-4498 via a BNC cable. Using the LabVIEW gave examples: voltage output.vi for input.vi PXI4461 and continuous tension for PXI4498. I want PXI4461 to produce a square wave, however, on the side of detection, I found that there are unacceptable summits on the rising and falling edge. There are also some signals oscillating in the stable phase. I wonder how that happens and is there any method to solve that?

    Thank you
    Kevin

    Kevin,

    In the NI449x standard:

    Part of what you see is the effect of AC coupling. Cut-3 dB frequency is 0.5 Hz. Indeed the unit sees the horizontal sections of the wave of entry as a DC signal and the coupling capacitor begins to charge. This explains the slopes of the signal acquired during the constant part of the entry.

    The ringtone and the go-around are due to the impedances are mismatched. The output impedance of the 4461 is 22 ohms while the the 4498 input impedance is 10 Mohms. 35 PF. The signals do not cause reflections on the transmission line (the BNC cable).

    The ringtone can be eliminated by having matched to the source and load impedances. However, the acceptable minimum load of the 4461 is 600 ohms which is much higher than the output impedance 4498.

    A network like this will match impedances at both ends of the cable, but will reduce the signal by about 1/2.  Your actual load can not find more acceptable source impedance.

    Because the 4498 does not have a DC coupling option, there's really nothing you can do the signals on a slope.

    Lynn

  • minimum frequency of the square wave generator?

    I am trying to generate waves with a frequency lower than one, but it doesn't seem to be possible for some reason any. If I put it to 0.5 (for example), I just get a flat line. Tried to turn around the details of sampling (frequency 1 and Fs to 500) but still no go. Is it possible to generate frequencies below 1? Thanks in advance

    Assuming you are using the square wave function, simply set the number of samples to twice the sampling frequency of a.5 Hz signal. The default value of 1000 samples/s and 1000 samples gives you of course, 1 second of a data value. Pour.5 Hz, you must display 2 seconds to see the whole pulses (1/.5).

  • AS3 drawing a rectangle with rounded corners and squares?

    Is this possible in AS3 for a rectangle with square and round corners? I'm drawing a square, which has rounded edges on the top right and bottom left and square corners for those remaining. How can I do? Right now, I have this:

    var g:Graphics = indicator.graphics;

    g.clear ();

    g.beginFill (0 x 512033);

    g.drawRoundRect (x, y, itemRenderer.width, height - 3, 20);

    g.endFill ();

    Many thanks for any help with this!

    You are welcome.

    If you are able, please mark this thread as answered.

  • I have iphone5s and my contact id does not work, all the time he show faild Setup touch id please help?

    I have iphone5s and my contact id does not work, all the time he show faild Setup touch id please help?

    Hi yjain51,

    I understand you had some problems recently with getting Touch ID to work reliably on your iPhone 5s. I know that it is a feature of great security for your iPhone, so I'm happy to help you.

    When you use Touch ID, make sure that your hands are free of any dirt or moisture so that fingerprints can be read clearly. This article explains further:

    Use the ID Touch on iPhone and iPad - Apple Support

    Thank you for using communities Support from Apple. See you soon!

  • I would use Yuanti SC police for my web development project. However, my developer is not able to use the file .ttc I extracted from the library of fonts, and .ttf, .otf .woff formats not available anywhere on the web.

    I would use Yuanti SC police for my web development project. However, my developer is not able to use the file .ttc I extracted from the library of fonts, and .ttf, .otf .woff formats not available anywhere on the web. Please, let me know how can I use this font for my project.

    Thank you

    Anton

    Unless the site you develop is for the Asian market, I don't know why you want to use that particular font. The Basic, standard and digital alphabet punctuation glyphs has sans serif, Roman characters, but the rest is thousands of Kanji characters. While you can use the font .ttf and .otf and web fonts, it would be very unusual to use one so great. Pages should load quickly and 78 MB, with a value of faces to download for those who have connections slow Internet is not fast.

    I would take a different font without serifs. There are literally thousands who look identical or virtually identical to Yuanti.

    131 free and high quality without font serif to choose here. I'm sure you can find a desired.

Maybe you are looking for

  • Scam virus?

    I get a message to dial a number because my MacBook Pro is infected. When I called access wanted India to my MacBook to solve the problem. Is - is this legitimate?

  • Keyboard and mouse do not work on startup.help

    Keyboard and mouse are unresponsive at startup... help

  • E5 - 575G Factory Default Backup

    I tried to create a backup of such factory default recommended in the user guide, but every time it fails with "we cannot create the disc of recovery-a problem occurred during the creation of the recovery drive. Any way around this error?

  • Files and folders with the same name

    I am trying to unzip some files and folders and it works fine on my computer with Windows XP. However, when you use Windows Vista I can't because there are folders and files with the same name. After an internet search, it seems that the only suggest

  • Second battery for camera SW450

    I can't find something or someone who knows something about this device, except there is no email for her support. I just want to buy a second battery for when the camera needs to be replaced. He learned to be as bad as getting a law passed by Congre