FieldPoint Family

cancel
Showing results for 
Search instead for 
Did you mean: 

x axis time scale spans two different days

I am trying to display data on graph. I want it to be able to show on the graph 12 hours or 1 day worth of data. However, when it's 9 am the scale on the x-axis is wrong because the time goes back past midnight. How can I get it to display the current time as the x max and 12 or 24 hours prior as the x min?
0 Kudos
Message 1 of 3
(3,564 Views)
jem,

This is going to take a little programming on your part. You can use the X Scale properties to control the minimum and maximum scale values. However, you are going to need to know not to set them past midnight from the current day.
Another way would be to use functions to get the current date and time. Then, set the time to midnight and use that as the Xo of the graph. Either method will work.

Randy Hoskin
Applications Engineer
National Instruments
http://www.ni.com/ask
0 Kudos
Message 2 of 3
(3,564 Views)
Hi jem,

You might be able to get some additional responses to your x-axis graph question if you post in one of the software categories. For example, if you are using LabVIEW, I would recommend that you post your question in the LabVIEW General category.

Otherwise, you way wish to browse the Code Library and search for example code. You could try searching using the following query: +axis +time +graph

Regards,
Wilbur Shen
Web Support and Operations
National Instruments
0 Kudos
Message 3 of 3
(3,564 Views)