cancel
Showing results for 
Search instead for 
Did you mean: 

Chart time not correct

secr1973
Member

Chart time not correct

Message contains an attachment
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
3 REPLIES 3
James@Home
Member

Re: Chart time not correct

Message contains an attachment

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...
secr1973
Member

Re: Chart time not correct

Thanks for the help.  What are the advantages of using the timed loop?
Highlighted
James@Home
Member

Re: Chart time not correct

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...