11-09-2008 06:24 PM
11-09-2008 07:18 PM
Use cursors that are locked to the plot (not free). Easiest would be to use the "cursor index" property, which gives the array index corresponding to the cursor positions. Now simply use the two indices and get the array subset accordingly. Feed it into "Mean" from the probability&statistics palette.
11-09-2008 07:45 PM
Here's a quick example (LabVIEW 8.5).
Let me know if you need a older version or have questions.
11-09-2008 10:10 PM
11-09-2008 10:39 PM
It gives the average of all points between the two cursors.
(It takes the sub-array starting at the lower cursor with a length of as many points as you have between the two cursors.)
Is there anything in the code or results that makes you think otherwise?
11-10-2008 01:50 PM
Sorry I couldn't check the example you sent until this morning but I have an older version of LabVIEW (8.2). Is there any way you could send another example which I can open with this older version?
Thanks.
11-10-2008 01:53 PM - edited 11-10-2008 01:55 PM
OK, here's a downconverted version. (I have not tested it in 8.2, hopefully it is still intact. :D))
(It might need a tweak or two, depending on if you want to include or exclude the cursor positions in the mean calculation. Modify as needed)
11-10-2008 05:23 PM
11-10-2008 05:54 PM
11-10-2008 09:18 PM
It's a very big file so I've created a picture as an example - I've used random numbers instead of the real data being fed into the bundle (they are all DBL) because this data has been calibrated before it is fed in. I have got a moving chart of all 5 plots and a graph of the 5 plots to show the entire run (waveform graph). It is this waveform graph where I want to put the cursors and then find the average between them - I can lock the cursors to the relevant waveform. Would I connect from (a) or (b) in the picture into the array? I didn't get any errors when I connected from position (a) but I just wanted to check I was reading in the right data. Thanks again for your help.