05-18-2012 06:33 AM
Hello!
I am using a XY graph to plot a time series together with some measurement data. However, I want to include a third variable in the plot. This variable is a constant (straight line), but the XY graph doesn't seems to accept more than two variables? Any idea how this can be fixed?
Greetings
Kristoffer
Solved! Go to Solution.
05-18-2012 06:43 AM
Not sure I understand what you mean, you have a plot (array of X,Y) and you also want to have an horizontal straight line on the graph?
You can either add a second plot (multiplot Xy graph) or maybe simpler to add an horizontal cursor.
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
05-18-2012 06:47 AM
Have a look at this:-
http://zone.ni.com/devzone/cda/epd/p/id/4322
05-18-2012 06:50 AM
@TiTou wrote:
Not sure I understand what you mean, you have a plot (array of X,Y) and you also want to have an horizontal straight line on the graph?
You can either add a second plot (multiplot Xy graph) or maybe simpler to add an horizontal cursor.
Correct. I have a plot of array (X,Y), and want to add a horizontal straight line to the same graph.
Greetings
Kristoffer
05-18-2012 07:10 AM
@Sjefsgjogleren wrote:
@TiTou wrote:
Not sure I understand what you mean, you have a plot (array of X,Y) and you also want to have an horizontal straight line on the graph?
You can either add a second plot (multiplot Xy graph) or maybe simpler to add an horizontal cursor.
Correct. I have a plot of array (X,Y), and want to add a horizontal straight line to the same graph.
Greetings
Kristoffer
Can you post your code. This should be a real simple take to complete.
05-18-2012 07:17 AM
I have attached an image of what i try to do. From the image the time series (in datatype timestamp) that is plotted together with the measurement data can be seen. I want to add third variable to the plot (the blue numeric line). I would gladly posted the whole code, but it is to big and consist of to many subVIs so i guess there is no point.
Greetings
Kristoffer
05-18-2012 07:17 AM
Without more information, here is how I would do it.
05-18-2012 07:38 AM
The only change I would make is to make the last plot just 2 elements (min X and Max X, horizontal Value)- this requires very little extra data in the plot.
05-18-2012 07:40 AM
Or you can use a cursor to look like a horizontal line and move it to the location you desire.
05-18-2012 07:53 AM
But, depending of the settings chosen by the user, the new variable might not be the same every time the program is executed.
Greetings
Kristoffer