Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Reading from Datalog Files

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Complete the following steps to read data from a datalog file.

  1. Place the Open/Create/Replace Datalog function on the block diagram to open the datalog file for reading.
  2. Create a cluster that matches the data record and wire the cluster to the record type input of the Open/Create/Replace Datalog function. LabVIEW uses the cluster to verify that the specified file is a datalog file containing records whose type matches record type. If they do not match, LabVIEW reports an error when you run the VI.
  3. Place the Read Datalog function on the block diagram.
  4. Wire the refnum output of the Open/Create/Replace Datalog function to the refnum input of the Read Datalog function.
  5. Close the datalog file.
    1. Place the Close File function on the block diagram.
    2. Wire the refnum out output of the Read Datalog function to the refnum input of the Close File function.
  6. Right-click the record(s) output of the Read Datalog function and select Create»Indicator from the shortcut menu. An indicator is added to the front panel.
  7. Run the VI. LabVIEW displays the data record in the front panel indicator.

Refer to the Simple Temp Datalog Reader VI in the labview\examples\file\datalog.llb for an example that reads the temp/date/time cluster datalog file created by the Simple Temp Datalogger VI.


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit