Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

How can CWGraph refresh faster?

Dear all,
The auto zoom all function in CWGraph is a great feature. However, when more and more data accumulate to certain extent, the performance of the whole system in additional to its own program is severely affected.
My application requires to take samples continuously for several days and maybe up to 430,000 data. How can I tune the CWGraph for optimum performance? Thanks

Patrick
0 Kudos
Message 1 of 2
(3,507 Views)
You need to give more information about what you are trying to achieve in your program in order for everyone to give you pointers on how to make it perform better.

In general you should never really need to try and plot 430,000 data points on a graph at any one time, because it cannot discernably display them due to pixel limitations. Also, the number of points you are plotting definitely effects the rate at which the CWGraph updates itself. Really, if you are continuously gathering data and putting it on the CWGraph you might want to use it as a stripchart and only chart the points that are extremely necessary at any one time to keep the number of points that need to be updated to a performance friendly amount.

While you are acquiring data you should
either keep all of the points in memory or log them to a file, and if you really want to look at these other points at an arbitrary point in time, re-plot them to the graph at will based on where you are panning on the graph. Use the graph's chart length, axes minimum and maximum, and track modes to control how much and what data to display.

Jason F.
Applications Engineer
National Instruments
www.ni.com/ask
0 Kudos
Message 2 of 2
(3,507 Views)