Hey folks, I am having difficulties plotting some data points from a text file, when I try plotting them myself in labview I get a graph that is frequency v.s. data points(16000) and that is not what I am hoping for, I am looking to plot magnitude(y) v.s. frequency(x).
If someone could help me out that would be greatly appreciated.
I have attached the file I wish to plot as well as what the plot should look like once you plot it.
Solved! Go to Solution.
OOpps i misread it
You probably only need to re-scale your X-Axis to your frequency units. Since it appears the frequency data is evenly spaced every data point is equal to 1062500 HZ. Just right click on the graph and adjust the multiplier property. You can, of course, read in both columns and make an XY graph as well. Look at some of the shipping examples: Help > Find Examples > Building User Interfaces > Displaying Data > Charts and Graphs.
If you have trouble post your code...
If you're going to send a 2D array to a waveform graph (it expects a constant time between samples - dt) then you get multiple plots. One for each 1D array. You can either scale your x-axis or use an XY graph. The XY Graph is more useful in applications where the dt of the waveform is not constant but it can be used here.
I used Index Array to get freq and amp, then bundled them for display in the XY Graph.