LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem With Plotting a graph

Hi,

 

I need help plotting a graph.

 

The situation is .... I have data of speed against time. Data is like this : a truck runs at some speed until 10 o clock. Now the driver changes time of the speed vs. time tracking device back to 9 o clock. Now if I plot this data it becomes a invalid graph as between 9 - 10 I will be having two values for the speed.

 

I thought of a solution that when ever a time change occurs I will drop the speed to 0 and again start plotting the graph with next point on the scale of x axis with the new set time ...... Is this possible ? 

 

 

Please help.

 

Thanks and regards

Anirudh

0 Kudos
Message 1 of 6
(2,833 Views)

I am not understanding part of your question - Now the driver changes time of the speed vs. time tracking device back to 9 o clock

 

How does time go backwards to 9 o'clock?

 

 

 

0 Kudos
Message 2 of 6
(2,811 Views)

Hi, 

 

Its like ... Resetting the time to an earlier time...  !!  its was just an example. See.... generally u have continous data on x axis. like time.

and now if you reset the time to an earlier value now you have an overlap in the graph. So , i wanted to know that fi its possible to discontue the former x axis at the time reset and continue with the new time so that over laping wont happen.

 

I will upload some pics of the over lapped graph soon. That might help you to understand my problem.

 

Thanks and regards,

Anirudh 

0 Kudos
Message 3 of 6
(2,792 Views)

Hi,

 

Here is a photo of what I want to do with the graph.

 

Here as the values that i am mappinng on x axis are repeated the graph is not one to one. Now to make it look like a one to one i want to drop it zero at the first 6. the restart the scale after 6 as 5 and continue mapping. Is this possible ?? ?? 

 

 

Thanks and Regards,

Anirudh.

0 Kudos
Message 4 of 6
(2,770 Views)

Hi,

 

Is this what you want?

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

You will have to take the x componenet of your data and compair it to the x component of the other set of data. You will have to remove the unwanted data from the first array where the time is greater than the start of the second array. Do not forget to remove the y data too. You will have to build one array of data and plot it if you want one line. If you do not mind having two lines then you could just plot each line after that and change the color on the second to match the first and you would not know that there where two different lines.

Tim
GHSP
0 Kudos
Message 6 of 6
(2,747 Views)