05-03-2010 06:02 PM
05-03-2010 07:10 PM
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.
05-04-2010 10:36 AM
05-04-2010 10:56 AM
A couple of things I like with the timed loop are:
It just depends on what you need?
James