LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I create a Waveform Chart with scrollable time/data history?

steve

 

I just need to understand your example a little better

 

what is the "log interval"?? is this the sample rate in seconds?


what is the Yscale.Scalefit?

 

can you explain how your case statement works? ...I see it changes between case 0 and case 1

 

 

Im just trying to understand how it works and how to put this in my code

 

thanks

 

 

J

 

0 Kudos
Message 11 of 13
(637 Views)

Yes, the log interval is the log time in seconds. I changed the program a bit (enclosed) to have this actually do what is needed if you want to change the interval.

 

The case statement does case 0 the first time through the while loop, and after that, case 1 is always executed (because case 1 is set to be the default).

 

The Yscale.scalefit is set to do an autoscale on Y one time. This may not be needed. This was taken from some existing code of mine.

 

steve

----------------------------------------------------------------------------------------------------------------
Founding (and only) member of AUITA - the Anti UI Thread Association.
----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 12 of 13
(627 Views)

This may make it easier to use. This version puts all the setup before the loop.

 

In the application I pulled this from, I wanted the ability to change the amount of plot time that was shown at runtime.

 

Hope this helps.

 

steve

----------------------------------------------------------------------------------------------------------------
Founding (and only) member of AUITA - the Anti UI Thread Association.
----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 13 of 13
(623 Views)