Reading from Datalog Files
- Updated2025-08-15
- 1 minute(s) read
Complete the following steps to read data from a datalog file.
- Add the Open/Create/Replace Datalog function to the block diagram to open the datalog file for reading.
- 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.
- Add the Read Datalog function to the block diagram.
- Wire the refnum out output of the Open/Create/Replace Datalog function to the refnum input of the Read Datalog function.
- Close the datalog file.
- Add the Close File function to the block diagram.
- Wire the refnum out output of the Read Datalog function to the refnum input of the Close File function.
- 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.
- Run the VI. LabVIEW displays the data record in the front panel indicator.