def METHOD_NAME(self, n_samples, channel):
    """
    Configure the counter for an array of measurements.
    :param n_samples: The number of samples
    :param channel: Measurment channel (A, B, C, E, INTREF)
    """
    n_samples = truncated_range(n_samples, [1, self.MAX_BUFFER_SIZE])
    channel = strict_discrete_set(channel, self.CHANNELS)
    channel = self.CHANNELS[channel]
    self.write(f":CONF:ARR:FREQ {n_samples},(@{channel})")