Transfer the markings from the front beam, where the battens will be attached, to the second beam, where the string line is. Measure the distance between the string line and the rafters, where the battens will be attached. These measurements are the height the battens need to be cut to.