LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to set the time slice using CWGraph

Hi!

How can I set the time slice in CWGraph? It's not necessary to set it programatically, but I didn't find the place that I can set it in properties.

I want to fix the time slice of X axis in 3 minutes. If the data is 3 minutes old, it will not appear in the graph because the graph moves from right to left.

How can I fix or solve it?

I am using CVI 8.1 and Measurement Studio 8.1

I also attached the .uir file which I am trying to use.

Thank you in advance.
Gustavo
0 Kudos
Message 1 of 4
(3,195 Views)

Hi

If you remove the autoscale option for the x-axis and write 0 to 300. By that the x-axis will take 300 points

You will have to adjust the number based on the updating frequency. A rate of 100 updates pr. min.

will result in 3 minutes. This works for CWUIControlsLib__DCWGraphChartY()

There are several plot functions and I don't know if it will work with others.

Regards Per

0 Kudos
Message 2 of 4
(3,147 Views)
Is there any way to plot it if I don't know the data frequency previously?

Regards


0 Kudos
Message 3 of 4
(3,144 Views)

Hi

Not sure what you mean.

You can use CWUIControlsLib_CWPlotPlotXY () to plot an array of previously collected data.

0 Kudos
Message 4 of 4
(3,139 Views)