LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Chart X axis--Current time

Solved!
Go to solution

I got to the file earlier than expected...please have a look. Thanks

0 Kudos
Message 11 of 55
(2,509 Views)

Dennis, Please have a look at the modifications to the chart. ThanksSmiley Happy

0 Kudos
Message 12 of 55
(2,489 Views)

I can see no modifications to the chart.  It is set for the default floating point x-axis and has no property nodes.  What are we supposed to be looking at?  Maybe you posted the wrong VI???

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 13 of 55
(2,477 Views)

@NIquist wrote:

I can see no modifications to the chart.  It is set for the default floating point x-axis and has no property nodes.  What are we supposed to be looking at?  Maybe you posted the wrong VI???


Smiley SadOh I apologize, I had the file forwarded to my personnel PC. I do not have labview at home, so assumed the file was correct. 

 

Disregard. I will post the proper file in the next day or two.



0 Kudos
Message 14 of 55
(2,470 Views)

Here is my attempt to figure this out. I should point out I am some what muffed by this problem. Have a look. Thank you.Smiley Surprised

0 Kudos
Message 15 of 55
(2,451 Views)
Solution
Accepted by pistonbones

I may have found the answer to my question in this document http://digital.ni.com/public.nsf/allkb/BD901BB252C63667862566F200800D28

 

Thanks for the ideas, I will accept this as the solution. If I have further questions I will create a new post. Smiley Surprised

0 Kudos
Message 16 of 55
(2,438 Views)

I am not sure if you have the same problem that I have. I find it strange that there is not an option in the chart to show real time on x-axis. I guess that in many application you just want to show in chart the measurement done at the current time.

 

The real-time chart example show how to use a property node and calculate the seconds for the current time and input it to the property node. I cannot see an easy way of adding date to the x-axis. By unbundle day of year and year and calculate the seconds you have to know the number of days for each year since 1904. It must be an easier way.

 

  

0 Kudos
Message 17 of 55
(2,412 Views)

I agree with you..."There must be an easier way". Honestly, I'm still stuck with my problem. The examples helped and the ideas given on this forum helped some but my problem still remains the same. I am unable to post the date/time and the data point every hour at the top of the hour in a graph or chart. I'm jammed up at work so this has been on the bottom of the pile.I'll get to it eventually.

If you figure out a simple way feel free to share it with me.

 

ThanksSmiley Happy

0 Kudos
Message 18 of 55
(2,395 Views)

There is an easy way. Displaying the date is just a format setting (right click>Formatting) and you just convert current time to a DBL.

Message 19 of 55
(2,385 Views)

A very nice solution. But on my computer it does not work when the whole chart is filled with data. Then the time and date is getting very wrong.

0 Kudos
Message 20 of 55
(2,374 Views)