(self, file_path)
Starts a new TDMS file the next time data is written to disk.

        Args:
            file_path (str): Specifies the path to the TDMS file to
                which you want to log data.
Starts a new TDMS file the next time data is written to disk.
Starts a new TDMS file the next time data is written to disk .
def start_new_file(self, file_path):
        """
        Starts a new TDMS file the next time data is written to disk.

        Args:
            file_path (str): Specifies the path to the TDMS file to
                which you want to log data.
        """
        cfunc = lib_importer.windll.DAQmxStartNewFile
        if cfunc.argtypes is None:
            with cfunc.arglock:
                if cfunc.argtypes is None:
                    cfunc.argtypes = [
                        lib_importer.task_handle, ctypes_byte_str]

        error_code = cfunc(
            self._handle, file_path)
        check_for_error(error_code)
def start_new_file ( self , file_path ) : cfunc = lib_importer . windll . DAQmxStartNewFile if cfunc . argtypes is None : with cfunc . arglock : if cfunc . argtypes is None : cfunc . argtypes = [ lib_importer . task_handle , ctypes_byte_str ] error_code = cfunc ( self . _handle , file_path ) check_for_error ( error_code )