Measure voltage across load of each of the following control board
        feedback circuits:

         - Reference _(i.e., attenuated high-voltage amplifier output)_.
         - Load _(i.e., voltage across DMF device)_.

        The measured voltage _(i.e., ``V2``)_ can be used to compute the
        impedance of the measured load, the input voltage _(i.e., ``V1``)_,
        etc.

        Parameters
        ----------
        sampling_window_ms : float
            Length of sampling window (in milleseconds) for each
            RMS/peak-to-peak voltage measurement.
        n_sampling_windows : int
            Number of RMS/peak-to-peak voltage measurements to take.
        delay_between_windows_ms : float
            Delay (in milleseconds) between RMS/peak-to-peak voltage
            measurements.
        interleave_samples : bool
            If ``True``, interleave RMS/peak-to-peak measurements for analog
            channels.

            For example, ``[<i_0>, <j_0>, <i_1>, <j_1>, ..., <i_n>, <j_n>]``
            where ``i`` and ``j`` correspond to two different analog channels.

            If ``False``, all measurements for each analog channel are taken
            together.  For example, ``[<i_0>, ..., <i_n>, <j_0>, ..., <j_n>]``
            where ``i`` and ``j`` correspond to two different analog channels.
        rms : bool
            If ``True``, a RMS voltage measurement is collected for each
            sampling window.

            Otherwise, peak-to-peak measurements are collected.
        state : list
            State of device channels.  Length should be equal to the number of
            device channels.

        Returns
        -------
        :class:`FeedbackResults`

def measure_impedance(self, sampling_window_ms, n_sampling_windows,
                          delay_between_windows_ms, interleave_samples, rms,
                          state):
        '''
        Measure voltage across load of each of the following control board
        feedback circuits:

         - Reference _(i.e., attenuated high-voltage amplifier output)_.
         - Load _(i.e., voltage across DMF device)_.

        The measured voltage _(i.e., ``V2``)_ can be used to compute the
        impedance of the measured load, the input voltage _(i.e., ``V1``)_,
        etc.

        Parameters
        ----------
        sampling_window_ms : float
            Length of sampling window (in milleseconds) for each
            RMS/peak-to-peak voltage measurement.
        n_sampling_windows : int
            Number of RMS/peak-to-peak voltage measurements to take.
        delay_between_windows_ms : float
            Delay (in milleseconds) between RMS/peak-to-peak voltage
            measurements.
        interleave_samples : bool
            If ``True``, interleave RMS/peak-to-peak measurements for analog
            channels.

            For example, ``[<i_0>, <j_0>, <i_1>, <j_1>, ..., <i_n>, <j_n>]``
            where ``i`` and ``j`` correspond to two different analog channels.

            If ``False``, all measurements for each analog channel are taken
            together.  For example, ``[<i_0>, ..., <i_n>, <j_0>, ..., <j_n>]``
            where ``i`` and ``j`` correspond to two different analog channels.
        rms : bool
            If ``True``, a RMS voltage measurement is collected for each
            sampling window.

            Otherwise, peak-to-peak measurements are collected.
        state : list
            State of device channels.  Length should be equal to the number of
            device channels.

        Returns
        -------
        :class:`FeedbackResults`
        '''
        state_ = uint8_tVector()
        for i in range(0, len(state)):
            state_.append(int(state[i]))

        buffer = np.array(Base.measure_impedance(self,
                                                 sampling_window_ms,
                                                 n_sampling_windows,
                                                 delay_between_windows_ms,
                                                 interleave_samples,
                                                 rms,
                                                 state_))
        return self.measure_impedance_buffer_to_feedback_result(buffer)