Fixed RF measurement code, reducing sampling rate and area now works

RF measurement previously sampled the input sheet incorrectly when
the sampling rate was decreased from full sampling. Now correctly
samples input sheet for all sampling values and sampling area can be
restricted.