fixed lockin, changed settings.number_of_samples