Hi,
I'm at the end of my tether with this one...
The code below takes a time history of strain data and filters it so that only the peaks and valleys of the data remain. The data then needs to be re ordered so that it starts with the highest peak/ lowest valley (whichever has the greatest magnitude). What I don't understand is that sometimes the code runs fine and sometimes it breaks at this point.
Please Login or Register to view this content.
If you want to download the real deal it's at http://www.dur.ac.uk/p.r.greaves/ and its the 1.9MB file entitled Rainflow_Spreadsheet 2007.xlsmPlease Login or Register to view this content.
The problem code is found by clicking on the 'PV Find' Sheet and pressing the 'Peak Valley Slice' button. I've searched the error code and can't find anything similar to what I'm doing... I'm not trained to write code so apologies if it's really obvious where I'm going wrong. I must stress that sometimes this code works fine, regardless of whether it is searching for a max or min value, and I can't find anything that would cause it to stop running.
Any help on this will be greatly appreciated!
Bookmarks