function to measure channel properties