LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Chart time not correct

I can't get the chart to display the right time, it goes too fast and skips.  Is this because I am sampling too fast for the chart?  Any help?  Thanks
0 Kudos
Message 1 of 4
(2,776 Views)

The time isn't working because you change the offset with every iteration of the loop.

 

1) How fast do you need to sample? You could also use a timed loop.

2) Add write to XScale.Minimum in the loop & Chart History to clear at beginning.

3) You only need to write to the minimum, offset & multiplier on the first iteration.

4) Just wire the timestamp with the "To Double Precision Float" eliminating unnecessary math.

5) Modify the XScale setup to display absolute or relative time might be more convenient?

6) Setting the chart history length and making the scrollbar visible might also be desired.

 

I've attached a modified version of the VI for your reference with these changes.

 

James

 

PS. You might also write to XScale.Maximun in that case to set the chart width. 

 

LabVIEW 5.0 seems so long ago...
Message 2 of 4
(2,763 Views)
Thanks for the help.  What are the advantages of using the timed loop?
0 Kudos
Message 3 of 4
(2,739 Views)

A couple of things I like with the timed loop are:

  • More accurate control of timing
  • Indication if loop finishes late

 

It just depends on what you need?

 

James

LabVIEW 5.0 seems so long ago...
0 Kudos
Message 4 of 4
(2,731 Views)