From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Chart X axis--Current time

Solved!
Go to solution

I am trying to plot hourly data. However I am unable to set the x axis to display the time the data point is sent to the chart. I have attempted to use property nodes but I'm not familiar with using this technique. See vi for details.

0 Kudos
Message 1 of 55
(4,893 Views)

Right click the chart, select properties and then change the time to relative or absolute.  Use absolute for "clock" time.

 

EDIT: It's on the Display Format tab.

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019 - Unfortunately now moving back to C#, .NET, Python due to forced change to subscription model by NI. 8^{
0 Kudos
Message 2 of 55
(4,887 Views)

NIquist,

 

That doesn't seem to work. The "clock" time is erroneous, instead of displaying the current date and time it displays Dec. 31 at 19:00 as the start time. I attempted to adjust the x axis manually but that didn't work either. Were does it take the time from...the PC or the device?

0 Kudos
Message 3 of 55
(4,876 Views)

You need to set the offset of the x-axis with today's date and time.

0 Kudos
Message 4 of 55
(4,872 Views)

try to use property node like the example!

 

 

Anderson M. Takemoto
Instituto de Pesquisas Eldorado

Message 5 of 55
(4,866 Views)

Thanks for the example I will give that a try.

0 Kudos
Message 6 of 55
(4,865 Views)

@massaNI wrote:

try to use property node like the example!

 

 


That example does nothing to set the X axis to the current time.

 

Look at the shipping examples. There is one called Real-Time Chart.

Message 7 of 55
(4,860 Views)

Dennis I looked at the example but I am unable to make it work in my application. Is there another way?

0 Kudos
Message 8 of 55
(4,826 Views)

Not unless you show how you modified your application.

0 Kudos
Message 9 of 55
(4,818 Views)

OK, I will not be near the PC until Monday...I'll upload the VI then.

Thanks

0 Kudos
Message 10 of 55
(4,807 Views)