LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Graph with two Y axes has wrong time

Solved!
Go to solution

Hello,

 

So I'm reading data from a sensor and then show in a graph the data. This graph has two Y axes and share the same X axe. My grpah should show the time at that moment (see img1)

img1img1

The problem I see is that the time in the graph is not the real time.

 

This is how I mange the graph (img2 and img3)

img2img2img3img3

 

What can I do to fix this error?

0 Kudos
Message 1 of 9
(1,521 Views)

Your data doesn't have time info, so it can be in graph settings. Try it

graph.PNG

0 Kudos
Message 2 of 9
(1,500 Views)

Thank you for answering. 

I have tried your advice but I still have the same error.

0 Kudos
Message 3 of 9
(1,491 Views)

Can you attach vi or FP with this graph?

0 Kudos
Message 4 of 9
(1,469 Views)

What I have is what you can see in the images I posted in the first thread and this new image:

 

img4img4

0 Kudos
Message 5 of 9
(1,458 Views)

Hi yavs,

 

the Offset and/or the Multiplier are wrong. Or switch on Autoscale…

Best regards,
GerdW


using LV2016/2019/2020 on Win8.1/10+cRIO
0 Kudos
Message 6 of 9
(1,452 Views)



@yavs wrote:

What I have is what you can see in the images I posted in the first thread and this new image:

You sad, that have tried my advice, but I see another. Compare this two images:

 

001.PNG002.PNG

0 Kudos
Message 7 of 9
(1,445 Views)
Solution
Accepted by topic author yavs

Thanks to everyone for your help.

I tried with offset=0; Multiplier=1 and with/without Autoscale but it didn't work.

 

I thought about a different idea with the information you gave me and found a solution.

 So first of all, everything I showed in the images above are inside a timed loop that is executed every 1 second.

 

The next image attached is outside the timed loop.

What I did is convert time stamp at the begining of the test to DBL, then I linked this to the offset value of the graph (property node).  With this solution now each time I execute the .vi the grpah has the real time.

img5img5

 

Again, thank you to everyone!!

0 Kudos
Message 8 of 9
(1,390 Views)

Hi yavs,

 

all this would be much easier if you would use waveforms to display them in your graph…

Best regards,
GerdW


using LV2016/2019/2020 on Win8.1/10+cRIO
0 Kudos
Message 9 of 9
(1,371 Views)