I see why the ranks work. I have never approached the non-parametric analysis this way.You were following the instructions correctly.
I suggest trying the repeated measures analysis. Make sure that your data is organized as Heart Rate, Treatment, Subject, and Hour. See the A Multivariate Approach example in sample I cited.