Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50085

Macro needed for calculating impulse of ground reaction force

$
0
0
Dear all,

I have a large data set containing vertical ground reaction force during running at variable speeds. The sample frequency is 200Hz.

at each step I would like to work out the area under the vGRF curve to calculate the impulse.

The data is not uniform (obviously as they are running), so steps do not occur at exactly the same time point with the same amount of contact time (duration of stance phase) throughout the data set.

what I would like to do is produce a template or a macro that can be used to sum the values in the cells between two points.

I appreciate this isnt very clear so I have attached an example of the data set.

if you scroll down to cell I113 you will see the impulse has been calculated, it is the sum of cell H46:H112. This is area (calculated using trapezoidal rule) under the vGRF curve starting at the lowest point (cell H46) and ending when the cells reach the lowest acceleration value at the end of the stance phase (Cell H112)

The next step starts ar cell H112 and ends at cell H177.

How could I get excel to find the impulse of each step? I think I need some sort of macro in VBA that tells excel to sum the cells together between the 2 lowest points and do this all the way down to the bottom of the data set. I am not sure this is possible.

If anyone has had to do anything similar and has any time saving macros it would be much appreciated

kind regardsexample data_excel help forum.xlsx

Viewing all articles
Browse latest Browse all 50085

Trending Articles