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.
05-14-2021 04:04 PM
Hello!
So I am trying to create a piece of code that will take in multiple csv files of data (containing time (x) and amplitude (y)) and will plot all of them onto one graph. I am stuck on how to take the 2D arrays of data and plot them all on the same graph. Currently I am able to plot them all by using "Build Array" and taking the time portion from one of the files and using it for all of them, but the problem I have is that not all of my files have the exact same time column, or x-values (data points happen at different times). Anyone have any ideas on how I can do this? Thanks in advance!
05-14-2021 04:34 PM
05-14-2021 05:10 PM
Are the points for each dataset equally spaced? If not, you need an xy graph.
05-17-2021 12:37 PM
That is what I am trying to do, but I guess I am just unsure on how to feed multiple sets of x-values to the waveform.
And to answer the other question, yes the data points are equally spaced, but some of the data sets are sampled at a higher frequency than others.
05-17-2021 12:45 PM
Hi ebohannon,
@ebohannon wrote:
That is what I am trying to do, but I guess I am just unsure on how to feed multiple sets of x-values to the waveform.
If you would attach your VI with some example data we could tell you where you made errors…
@ebohannon wrote:
And to answer the other question, yes the data points are equally spaced, but some of the data sets are sampled at a higher frequency than others.
So you can use (arrays of) waveforms…