Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I access chart data in the CWGRAPH?

Hi,

 

Does anyone know how I can get access to, say, the last 3 Y values added to the chart?

 

Thanks,

 

Ronnie

TestStand 4.2.1, LabVIEW 2009, LabWindows/CVI 2009
0 Kudos
Message 1 of 4
(3,595 Views)

Hi Ronnie,

 

The values that are added to the chart should be stored in the yData array that you pass into the function. You could access this array to get the last 3 values added to the graph. Have a great day!

 

Best Regards,

 

Adam G 

National Instruments
Applications Engineer
0 Kudos
Message 2 of 4
(3,586 Views)

Hi Adam,

 

Perhaps I misunderstood your solution, but I'm not using an array. The values are being added one at a time using the following where yData is a single value, xInc = 1, and bChartPerRow = False.

 

ChartY Method

Syntax

CWGraph.ChartY yData [, xInc = 1] [, bChartPerRow = True]

 

Is there are a property or method that will give me access to the graph data without my code having to keep a copy?

 

 

Many thanks,

 

Ronnie

TestStand 4.2.1, LabVIEW 2009, LabWindows/CVI 2009
0 Kudos
Message 3 of 4
(3,581 Views)

Hello Ronnie,

 

There doesn't seem to be a way to get the last values using a property or a method. I believe your best bet will be to keep an array in your code with the last 3 values added to your graph. Have a great day!

 

Best Regards,

 

Adam G 

National Instruments
Applications Engineer
0 Kudos
Message 4 of 4
(3,563 Views)