From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
06-22-2015 01:41 PM
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.
06-22-2015 01:50 PM
So the plot is backwards? Can you post your code?
Matt
06-22-2015 01:54 PM - edited 06-22-2015 01:55 PM
OOpps i misread it
06-22-2015 02:01 PM
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...
06-22-2015 02:03 PM
Yes, thanks for the quick reply!
I did the program on a stand alone that has labview, this network computer does not have labview let me know if you are able to read the file
06-22-2015 03:00 PM
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.
06-22-2015 05:18 PM
Thanks Niquist your response worked!
Thank you to oeveryone else as well!