ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

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
(6,217 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
0 Kudos
Message 2 of 55
(6,211 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
(6,200 Views)

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

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

try to use property node like the example!

 

 

Anderson M. Takemoto
Instituto de Pesquisas Eldorado

Message 5 of 55
(6,190 Views)

Thanks for the example I will give that a try.

0 Kudos
Message 6 of 55
(6,189 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
(6,184 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
(6,150 Views)

Not unless you show how you modified your application.

0 Kudos
Message 9 of 55
(6,142 Views)

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

Thanks

0 Kudos
Message 10 of 55
(6,131 Views)