(self)
return ReadRelativeTo(val.value)
:class:`nidaqmx.constants.ReadRelativeTo`: Specifies the point
            in the buffer at which to begin a read operation. If you
            also specify an offset with **offset**, the read operation
            begins at that offset relative to the point you select with
            this property. The default value is
            **ReadRelativeTo.CURRENT_READ_POSITION** unless you
            configure a Reference Trigger for the task. If you configure
            a Reference Trigger, the default value is
            **ReadRelativeTo.FIRST_PRETRIGGER_SAMPLE**.
:class:`nidaqmx.constants.ReadRelativeTo`: Specifies the point
            in the buffer at which to begin a read operation. If you
            also specify an offset with **offset**, the read operation
            begins at that offset relative to the point you select with
            this property. The default value is
            **ReadRelativeTo.CURRENT_READ_POSITION** unless you
            configure a Reference Trigger for the task. If you configure
            a Reference Trigger, the default value is
            **ReadRelativeTo.FIRST_PRETRIGGER_SAMPLE**.
: class : nidaqmx . constants . ReadRelativeTo : Specifies the point in the buffer at which to begin a read operation . If you also specify an offset with ** offset ** the read operation begins at that offset relative to the point you select with this property . The default value is ** ReadRelativeTo . CURRENT_READ_POSITION ** unless you configure a Reference Trigger for the task . If you configure a Reference Trigger the default value is ** ReadRelativeTo . FIRST_PRETRIGGER_SAMPLE ** .
def relative_to(self):
        """
        :class:`nidaqmx.constants.ReadRelativeTo`: Specifies the point
            in the buffer at which to begin a read operation. If you
            also specify an offset with **offset**, the read operation
            begins at that offset relative to the point you select with
            this property. The default value is
            **ReadRelativeTo.CURRENT_READ_POSITION** unless you
            configure a Reference Trigger for the task. If you configure
            a Reference Trigger, the default value is
            **ReadRelativeTo.FIRST_PRETRIGGER_SAMPLE**.
        """
        val = ctypes.c_int()

        cfunc = lib_importer.windll.DAQmxGetReadRelativeTo
        if cfunc.argtypes is None:
            with cfunc.arglock:
                if cfunc.argtypes is None:
                    cfunc.argtypes = [
                        lib_importer.task_handle, ctypes.POINTER(ctypes.c_int)]

        error_code = cfunc(
            self._handle, ctypes.byref(val))
        check_for_error(error_code)

        return ReadRelativeTo(val.value)
def relative_to ( self ) : val = ctypes . c_int ( ) cfunc = lib_importer . windll . DAQmxGetReadRelativeTo if cfunc . argtypes is None : with cfunc . arglock : if cfunc . argtypes is None : cfunc . argtypes = [ lib_importer . task_handle , ctypes . POINTER ( ctypes . c_int ) ] error_code = cfunc ( self . _handle , ctypes . byref ( val ) ) check_for_error ( error_code ) return ReadRelativeTo ( val . value )