LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I plot 1hr intervals on the X-axis grid lines of a Waveform chart?

Hello all

 

I am using a Waveform Chart in LV 8.5.1.

 

I have the "major" grid lines turned on. I want each grid line to represent a 1 hour interval of time...up to 24hrs

 

So as my data is plotted the intervals are fixed.

 

Can someone help me with this?

 

thanks

 

J

 

 

0 Kudos
Message 1 of 6
(3,299 Views)

So it's the chart settings you are having trouble with as opposed to the programming to write data once per hour to the chart?

At any rate, I hope the attached VI helps.

Richard






0 Kudos
Message 2 of 6
(3,290 Views)

My problem is really a programming question... using a Waveform Chart

 

My data is being plotted on the Y axis when my program runs.

 

What I want is when the data is being plotted, that the 1hr intervals dont get crossed until it matches that value in real time.

 

So if its now plotting data @ 4:04pm EST, .....the 5pm grid line should not get crossed until its real time 5pm EST and so on

 

 

Can you help with this ?

 

J

 

 

0 Kudos
Message 3 of 6
(3,282 Views)
than just change the display property for the waveform chart to absolute time...
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 4 of 6
(3,279 Views)

Yes, I already have the display format set to absolute time.

 

But I need the grid lines set only by the hour....using absolute time the choices are hh:mm  or hh:mm:ss

 

Each grid line should be 1hour value to the next.

 

 

How do I do this?  I have attached my code, but its not hour to hour.......

 

J

0 Kudos
Message 5 of 6
(3,271 Views)

Good Afternoon hova2010,

 

Try right-clicking the x-axis of the chart and going to the Display Format tab of the Properties window.  Once there, change the radio button option to Advanced editing mode.  In the format string, delete the "extra" portion of the entry so that it reads more like: %<%I %p %m/%d/%y>T

 

This will tell the chart to only display the hour portion of the time.

0 Kudos
Message 6 of 6
(3,216 Views)