05-14-2019 04:35 PM
Hello!
There are 3 items in my zip file, an XML, a VI, and a picture. Drop the XML onto your C:\ drive. The XML contains sinusoidal sample data. The operating frequency of the device under test is 5 MHz. The samples were collected using a sample rate of 100MHz. I want to run an FFT on the sample data to examine its composition from 0-10 MHz. The picture shows an existing FFT with a frequency domain of 0-10 MHz. The y-axis is in decibels.
How do I control the input values of the frequency domain which are used to produce FFT output values? How do I modify my existing VI to output in the same format as the picture?
I am a novice LabVIEW developer with just a month of experience. I am so very thankful for your assistance! - John
05-15-2019 01:41 AM
05-15-2019 06:36 AM
05-15-2019 07:06 AM
05-15-2019 07:16 AM
In my "Introduction to LabVIEW" talk, I have a slide titled "Concept of Time", which points out that Time is an important data feature of LabVIEW (think of digital samplings at evenly-spaced time intervals, or sampling at a particular frequency (1/time)). LabVIEW has a data-type, the Waveform, that bundles time-of-acquisition (t0), time-interval-of-sampling (dt), and the sampled data array (Y) in a cluster -- it is the optimal data structure to save sampled data from a DAQ device. If you pass a Waveform (which includes dt) to an FFT routine, it will give you a Cluster that has an array of frequencies and also the frequency spacing, df.
Look at the Waveform Functions on the Block Diagram. There's one called "Build Waveform". Expand it to show t0 and Y. Y you wire in from the 2D Dbl that you currently have going into your Spectral Measurements Express VI. dt you compute from 1/Sampling Frequency. In fact, if you do this a step earlier when you are parsing your XML string and get an Array of Waveforms, your Waveform Graph will have the correct Time axis (because you gave it dt).
Bob Schor
05-15-2019 07:29 AM
Bob,
Thank you! This is very exciting! I will work through your directions and re-post my altered VI. I must say, it's a little mentally taxing. I'm sure at day's end it will be worth it as I need to be able to defend my work. I'm looking forward to mastering this topic. Your comments and guidance are invaluable to me! Many Thanks!- John
05-15-2019 07:44 AM
Thank you Gerd! The pic will help me rebuild my VI! I'm glad to see that with a little more learning I"ll be close to producing the results I need. As a new LabVIEW programmer, your assistance and guidance is invaluable! Thanks! - John
05-15-2019 07:50 AM
Bob,
Is your "Introduction to LabVIEW" available for download? - John
05-15-2019 10:19 PM
Nathan@home wrote:
Bob,
Is your "Introduction to LabVIEW" available for download? - John
No.
05-16-2019 03:54 PM
I was able to get the waveform graph desired. Thanks!