Reads records from an open datalog file specified by refnum and returns it in record(s). Reading begins at the current datalog position. Use the Set Datalog Position function to move the current datalog position of the file.


icon

Inputs/Outputs

  • cudlrn.png refnum

    refnum is the file refnum associated with the file you want to read. If you want to read more than one element at a time, wire the count parameter.

  • ci32.png count (1)

    count is the number of datalog records to read.

    The function returns count data elements in record(s), or if it reaches the end of the file, it returns all the complete data elements read thus far and an end-of-file error. By default, the function returns a single data element. If count is –1, the function reads the entire file. If count is less than –1, the function returns an error.

    If count calls for an array of elements and the record(s) data type is an array, the function automatically returns a cluster of arrays or cluster array because LabVIEW does not allow arrays of arrays.

  • cerrcodeclst.png error in

    error in describes error conditions that occur before this node runs. This input provides standard error in functionality.

  • iudlrn.png refnum out

    refnum out returns refnum.

  • ipoly.png record(s)

    record(s) contains the datalog records read from the file.

  • ierrcodeclst.png error out

    error out contains error information. This output provides standard error out functionality.