(self, timeout=10)
return bool(data[0])
Reads a single boolean sample from a single digital input
        channel in a task. The channel can contain only one digital
        line.

        Args:
            timeout (Optional[float]): Specifies the amount of time in
                seconds to wait for samples to become available. If the
                time elapses, the method returns an error and any
                samples read before the timeout elapsed. The default
                timeout is 10 seconds. If you set timeout to
                nidaqmx.constants.WAIT_INFINITELY, the method waits
                indefinitely. If you set timeout to 0, the method tries
                once to read the requested samples and returns an error
                if it is unable to.
        Returns:
            bool:

            Indicates a single boolean sample from the task.
Reads a single boolean sample from a single digital input
        channel in a task. The channel can contain only one digital
        line.
Reads a single boolean sample from a single digital input channel in a task . The channel can contain only one digital line .
def read_one_sample_one_line(self, timeout=10):
        """
        Reads a single boolean sample from a single digital input
        channel in a task. The channel can contain only one digital
        line.

        Args:
            timeout (Optional[float]): Specifies the amount of time in
                seconds to wait for samples to become available. If the
                time elapses, the method returns an error and any
                samples read before the timeout elapsed. The default
                timeout is 10 seconds. If you set timeout to
                nidaqmx.constants.WAIT_INFINITELY, the method waits
                indefinitely. If you set timeout to 0, the method tries
                once to read the requested samples and returns an error
                if it is unable to.
        Returns:
            bool:

            Indicates a single boolean sample from the task.
        """
        data = numpy.zeros(1, dtype=numpy.bool)
        _read_digital_lines(self._handle, data, 1, timeout)

        return bool(data[0])
def read_one_sample_one_line ( self , timeout = 10 ) : data = numpy . zeros ( 1 , dtype = numpy . bool ) _read_digital_lines ( self . _handle , data , 1 , timeout ) return bool ( data [ 0 ] )