LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying Correct Time in XY Chart

Solved!
Go to solution

@_natalie_ wrote:

Thanks so much for all your help!  I find Charts really confusing, but now I understand how to use them with waveforms much better.

 

I am not sure why I was getting that error, but I opened up an older version of my code, added those few changes and now I have two plots.  1 plots records the current against the date and time, and one records the current against the total number of seconds.  I didn't realize that the total number of seconds counts from 1904, but I was able to work around that by substracting the current time and from the amount of seconds since then and it is working.  I was able to clear my plots by going to File-VI Properties-Execution and clear indicators when called.

 

Thanks again!  Always very helpful 🙂


I ran your application that you attached most recently and it seems to function fine. I'm not sure why you were having trouble. Yeah, just make sure you're clearing that chart of old data.

 

You can right-click the chart and select Properties > Display Format to change the way that x-axis looks. You can select Absolute Time instead of Relative Time (current settings) to make it look like you want and ignore that thousands of hours since 1904.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 11 of 14
(1,145 Views)

Thank you!

 

I decided to plot both the relative and absolute time.  It's probably too redundant, but I was happy to get them finaly working.

 

🙂

0 Kudos
Message 12 of 14
(1,124 Views)

Natalie,

 

     Did you try my method?  If you want your X axis to be "elapsed seconds", it seems to me that this is, by far, the simpler solution (no need to mess with Waveforms, worry about Absolute vs Relative Time, etc.).

 

BS

0 Kudos
Message 13 of 14
(1,111 Views)

Hi Bob,

 

I am looking at your method now.  It does start at 0 using relative time without me having to substract anything.  However, even if my time between measurements is greater than 1 second, it records it on the chart as if it were 1 second.  I am not really sure how to use the time delay properly in your example.

 

I am new to Labview so I want to try all the suggestions I get so that I can learn as much as possible, thank you!

0 Kudos
Message 14 of 14
(1,068 Views)