LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

plot data on a XY graph

Hi, I am trying to plot Time with speed. This data is recorded from a device. So if we change the time of this device we can get two speed values for some particular values if time ... like if we change the time back for an hour or so .. we can get 2 speed values for that whole particular hour........ so if we plaot this on a XY graph we get a plot which is not one to one.... i.e the graph traverses backwards and then continues normally...... is there any way to plot all the values of speed and also make the plot one tp one.... ? ? Thank you Anirudh
0 Kudos
Message 1 of 10
(2,967 Views)

If you want to plot from say "X" time again, why don't you overwrite data point? Where are you storing your points, Shift registor?

 

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
0 Kudos
Message 2 of 10
(2,962 Views)
hi, overwrite data point ?? sorry I am new to labview and I am using 2011 version. I have my data in a 2d array two of my colums are time n respective speed. now as the time is repeating since there was a time change on the device . Can you please explain the solution . Thank you, Anirudh
0 Kudos
Message 3 of 10
(2,959 Views)

Yes, You have a 2D array right?.. One column would be Time. So when new (time,Value) entry comes, you can check if that time is already present in 2D array, if yes then replace Value in corresponding location in Value column.

If not, then add as new element.

 

Now did you get my point?

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
0 Kudos
Message 4 of 10
(2,956 Views)
yeah Gaurav ... i get your point .. but I don't wanna replace the value... i need all the values nad also plot it as a one to one graph .. i . e manipulating the x axis scale some how .. i.e repeating the values on the x axis if needed. Thank you, Anirudh
0 Kudos
Message 5 of 10
(2,948 Views)

Hi

 

Check the attached vi and let me know if that is what you are looking for. You can have two plots with the same X axis. You will have to manage the data you are plotting on the chart correctly.

Regards
Freelance_LV
TestAutomation Consultant
0 Kudos
Message 6 of 10
(2,937 Views)
hey, noo .. i dont want to milti plot .. i've attached a vi to show you my prob .. its in 2012 version .. hope you'll be able to open it ... in this graph .. i need to make it a one to one rather than making it traverse back again ... !! please look at it once.... Thanks, Anirudh
0 Kudos
Message 7 of 10
(2,918 Views)

Can you post it in 2009? I am not getting your point, as what do you mean by one to one..Smiley Sad

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
0 Kudos
Message 8 of 10
(2,915 Views)
yes .. in this plot you will observe that at some point in the graph there are two vales of y for a single value of x... soo can i coustamise my x axis such that x axis contains duplicate values so that i can plot the graph smoothly ... i e .. there wont be any over lapping ... aah .. do u get it ? like ,.... if values that i am plotting on x axis are 1 2 3 4 5 6 4 5 6 7 8 .... here 4 5 6 are repeated so... the graph will be not one to one .. so now i want to plot the x axis as the values i have. i.e.. if the data that i want to plot on x axis repeats .. the x axis values also should repeat ... is this possible ?? bcoz we know that vlaues on x scale n y scale are unique ... so can we get duplicate values on x scale ?? Thanks Anirudh
0 Kudos
Message 9 of 10
(2,911 Views)

It will be a multiple plot then..I don't see other solution for this. You can plot it as a Point. so you will see it as duplicate point rather than a different plot.

Did you get my point?

I just wonder, how many multiple plots can we have on XY Graph.

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
0 Kudos
Message 10 of 10
(2,907 Views)