07-09-2024 05:05 PM
So I have a signal I want to convert from the time domain to the frequency domain.
I have streamed the data from the analog input to FIFO on target to the received on the Host VI.
However, changing the input signal frequency does not reflect on the Waveform Graph.
Does anyone know how to fix this?
Thank you.
Solved! Go to Solution.
07-09-2024 07:13 PM
I don't use FPGA so I don't know the names or what the inputs/outputs of those first two VIs in your loop are, but it looks like the second one is the signal generator setup, which then wires something out of it, inverts it, and uses that as the ∆t for your waveform.
If that's the case, then doesn't that mean that you're setting the time between points on your waveform to be based on the waveform being generated, and not on the timing of the data point reads like it should be?
(If that's not what you have wired in there, then disregard this...)
07-09-2024 07:22 PM
Yes, that is exactly the case and I apologize for this confusion.
However, if I pick the input to the FFT function from the output of the 'DBL" function I still get the same results.
Corrections are attached. Hope these help.
Thank you.
07-09-2024 08:42 PM
It's really hard to tell what's going on in your pictures.
07-10-2024 01:12 PM
So the sine wave here is coming from an arbitrary waveform generator which is then fed into the analog input of the FPGA. As such the frequency (period) of the signal is predefined on the arbitrary waveform generator.
Also, my understanding of LabVIEW is still not much though I have been trying by reading a lot on the documentation and also using the examples in the Help section but getting the blocks to work seamlessly has been an issue.
Thank you anyway.
I appreciate your assistance.
07-10-2024 01:28 PM
First, I would tell you to concentrate on digitizing the correct signal. It looks like either you are doing it wrong or interpreting the digitized signal wrong.
07-10-2024 01:33 PM
I will be sharing my project file with you here.
I have been trying a bunch of different things so I want to move this specific one to a different project so I can share.
Once again thank you very much.
07-10-2024 03:03 PM
This is a simplified version of the project files including the VIs.
You can have a look at it.
07-10-2024 03:46 PM
I don't have Real Time or FPGA on this computer, but I was able to peak at the FPGA code.
You need to put a loop timer in the code to have the loop run at a predictable rate. What do you want your Sampling Rate to be on the Analog Input? Note it has to match the capabilities of your digitizer. The loop timer below can be set in ticks, us, and ms, set it for the correct value. That should clear up the Analog Input part of your FPGA. When I get a chance, probably not till late tonight, I'll try to look at the RT code on another computer. The time you set here should match your dt on the RT loop; then your timing will be correct.
07-10-2024 03:59 PM
So I am not using a digitizer in this case but an FPGA with a sampling frequency of 200 kSa/s.
My analog signal is coming from an arbitrary waveform generator with a sampling frequency of 150 MSa/s.