02-07-2014 03:34 AM
I want my chart to have a constant slope already plotted before it continues to start plotting the real time data.. so that I can compare my new data point to point with the ideal slope that i already have in the background
Solved! Go to Solution.
02-07-2014 04:21 AM
02-07-2014 05:00 AM
Hi, raza51,
I tried it with a XY plot. You can take a look.
02-07-2014 05:09 AM
Hi GerdW,,
Thanks for the reply.. Actually if I use graph they plot data after all the calculations are done. I want to plot data as I receive the data,, like in waveform chart. Basically I have 2 slopes .. 1 is what I expect and 1 is which I am receiving,, I want my expected slope to be there on the chart and when I start the calculation the received results should be plotted over it..
Please see the snapshot I attached.. Here I want my red slope "expected" to be there and and when I start the calculation the white slope should be plotted..
02-07-2014 05:30 AM
02-07-2014 07:30 AM
Hi,
the problem is I have 2 arrays of data and I want 1 array to print before the loop executes and second array prints when the loop runs. and both arrays should be printed on the same chart .
02-07-2014 07:34 AM
Hi,
Thanks for help.. But this would work when i have one array and a constant "slope". What if I want to print 2 arrays of data.. means if there is an array of data instead of constant "slope"...
02-07-2014 07:36 AM - edited 02-07-2014 07:39 AM
Hi raza,
as said before: it is no problem to have two plots on a graph. But you will have to use a graph instead of a chart!
Like this:
having a constant plot created before the loop and a variable plot created in the loop!
02-07-2014 07:40 AM - edited 02-07-2014 07:42 AM
@raza51 wrote:
Hi,
Thanks for help.. But this would work when i have one array and a constant "slope". What if I want to print 2 arrays of data.. means if there is an array of data instead of constant "slope"...
Since your graph is refreshed every time you go through the loop anyway, just set up the constant/reference array before the loop and feed it into the graph. That way you'll also have a full X-axis (and a Y-axis which at least includes all the reference data) for the graph already set up.
(That's twice in two days I've been scooped by a couple of minutes, I've got to get my typing speed up...)
Cameron
02-07-2014 07:48 AM
Hi GerdW,
Thanks for help,, actually i am new to labView so my basics are weak.. this helped,, the only thing is I need to enable auto indexing and I got my desired result 🙂
Thanks Again..
Cheers!!
Raza