02-23-2018 08:05 AM
You can feed an XY Graph two different ways.
Option one:
Option two:
If you need more help with this, share your code so we can see where you're having trouble.
02-23-2018 08:14 AM
If the "X" values are time then you can use a Waveform data type such that the "T0" values are the time.
There is also a variation on this that comes with the sound a vibration stuff that uses the frequency as if it is T0.
Ben
02-23-2018 08:55 AM
Oops, I just realized you can omit step 3 of Option 2, the cluster of X and Y arrays can be built directly into an array and doesn't need to be put into another cluster by itself.
02-23-2018 10:13 AM
@M.Mei wrote:
The x value is from the instrument and the number of plots is not fixed. I got an array(the dimension is typed by users ) as output from an instrument, now I want to display these lines (the first dimension is the x value, and y values respond the remaining dimension). I am very sorry I still do not know how to begin this vi, so I cannot upload a sample...
OK, so you have a 1D array of x values of size N and a 2D array of Y data with N columns and M rows (or vice versa. M=number of plots, which is variable).
So all you need is the following (If the Y values are arranged as rows instead of columns, omit the transpose, so modify as needed):
02-23-2018 11:56 AM
Thanks altenbach! My input is a bit different from your example. Your vi makes me think about this sub-vi. By this vi, it only can display and save one line at one time. Can you please help me how to revise this vi to display and save multi lines once? The 'array in' is my input, the 'array out' is the output linked the xy graph, and the number is typed by users and it is the reason why I say 'uncertain'.
02-23-2018 12:00 PM