LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

High-Mean-Low Chart

Please how can one construct a chart with high, mean, and low points plotted for a data set during continuos data acquisition. A sample plot is attached.
0 Kudos
Message 1 of 2
(2,654 Views)
Sam,

I attached a VI that will probably guide you toward a solution for your specific need. It is saved in 6i. Basically what I assume from your question is that you want to get a set of points, let's say 10 points, scan the max value, the min value and the mean value, and plot those three points in the chart. I didn't do it for a data acquisition example because I don't know what kind of hardware or signal you are acquiring but I'm simulating that with a random number generator. In case of a data acquisition, you set the number of points to acquire in AI Read, so after receiving this data, you split that array so you can scan the Y value part of it as the same way I'm scanning my array of points in the example, then follow the same procedure to insert tho
se points in a Chart.

In case you want more customize style chart you should make a little programming to get this.

I hope this example helps, good luck!

Nestor Sanchez
Applications Engineering
National Instruments
Nestor
Message 2 of 2
(2,654 Views)