function to send freq range to spectrum analyzer