LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Average value for waveform chart

Solved!
Go to solution

Hello everyone.

 

Can i make a time interval, where i can measure average value for a waveform chart ?

 

for example fom 0:30 to 0:45

 

INterval.png

 

I have uploadet my VI
:


Thanks in advance

 

Oesen

 

Best regards

Oesen
0 Kudos
Message 1 of 15
(10,925 Views)

Oesen,

 

With a graph it is very easy - use cursors.  However, charts do not have cursors.  You can use a property node to get the chart history data and use array subset to extract a portion of that.  This will not give you a visual indication on the chart of the data you want to average.

 

What happens if you are selecting some data to average and it "slides" off the chart while you are selecting or after the selection but before the average? 

 

Lynn

0 Kudos
Message 2 of 15
(10,909 Views)

Thanks for the answer johnsold

 

I don't really understand your question. Can you go more thoroughly into the question please

 

Thanks in advance

 

Oesen

Best regards

Oesen
0 Kudos
Message 3 of 15
(10,885 Views)

Can someone help please ? 😞

Best regards

Oesen
0 Kudos
Message 4 of 15
(10,865 Views)

HI I have attached a VI. Is that you were looking for?

Labview user
0 Kudos
Message 5 of 15
(10,860 Views)

Oesen,

 

When you are displaying data on a chart, the newest data is appears at the right of the previous data. When the chart history buffer is full (default length = 1024), adding a new point deletes the oldest point.  Visually it appears that the data slides to the left as new data is added to the right end.

 

My question relates to how the user would "tell" the program what data to average. In the image you posted you marked a segment of the data to be averaged.  Suppose the user marks point "A" as the beginning of the segment. While the user is deciding where to put mark "B" additional data is acquired and point "A" disappears because it is beyond the history length.  What does the program do in such a case?   A slight variation is the situation where both "A" and "B" have been marked but some of the data is deleted from the history before the averaging or other processing has begun.

 

Lynn

0 Kudos
Message 6 of 15
(10,857 Views)

Thanks for the answers

 

If my measurement test is about 1 hour, then i can set X.Min to 0 and X.Max to 60*60. I think i can ret rid of "sliding" when i use that method ?, so the chart automatically stops after one hour.

 

 

Best regards

Oesen
0 Kudos
Message 7 of 15
(10,849 Views)

Thanks for the answer Aojha

 

I don't really need a running average, but a average between a Min.Time and Max.Time i will adjust from the Time-axis.

 

Best regards

Oesen
0 Kudos
Message 8 of 15
(10,849 Views)

If you are doing post processing then, just put every data in an array.

Find its subset by taking indexes corresponding to Min. Time and Max. Time and caculate average.

Labview user
0 Kudos
Message 9 of 15
(10,845 Views)

Thanks for the answer Aojha

 

I really want to determine the average value from the peaks in the chart (i'm measuring pressure), so it will be a long way, if i'm going to find the Min.Time and Max.Time from the numbers in the array.

Best regards

Oesen
0 Kudos
Message 10 of 15
(10,838 Views)