11-11-2009 10:54 AM
Hi,
I'm relatively new to LabVIEW and haven't found any simple solution to this so I'd appreciate any help. I have a graph plotted which displays force over time. A weight is dropped which causes a sharp spike in the graph, then it settles over time. I need to average all the data which is plotted between the time that the force first rises above a certain value and the time that the force first drops back below this same value. The data may then come back up above that trigger value but it only needs to be averaged until it drops below the trigger for the first time.
Any help is greatly appreciated.
Solved! Go to Solution.
11-11-2009 10:57 AM
11-11-2009 11:07 AM
Right now the program writes out to an excel spreadsheet, a simple one column file of force values:
0 |
0 |
34 |
186 |
288 |
418 |
603 |
891 |
995 |
1056 |
983 |
671 |
488 |
302 |
We're then taking that data, selecting the forces within our range (in this case 603 -> 671) and doing an average() in excel.
In short, there's nothing programmed to handle the data itself.
We need LV to select that data, average it, and display the average for that region.
Thanks,
Justin
11-11-2009 11:32 AM - edited 11-11-2009 11:34 AM
Edit: first try was garbage...ill try again 🙂
11-11-2009 11:41 AM
11-11-2009 11:45 AM
11-11-2009 11:46 AM - edited 11-11-2009 11:47 AM
Tim gave you a good response (much better than mine was going ot be so I'm just ommitting. Here is a way to find an average of array values once you have the array you want.
11-11-2009 11:50 AM - edited 11-11-2009 11:50 AM
@for(imstuck) wrote:
11-11-2009 12:06 PM
Thanks!
I'll be looking through all this and trying to see if I can forge it all together into a working program. I appreciate all the support!
11-11-2009 12:29 PM
A few questions, within the span finder:
As you mentioned using left, span, and array to come up with values, can you elaborate as to what you mean by this? How do I use this to output to the mean function?