Example Code

How to Write to and Read from a Datalog

Code and Documents

Attachment

Overview

This VI demonstrate the use of Datalog functions to read students' information from a datalog file.

 

Description

You can use the attached VIs to write different types of information to a datalog file, and read the information by indexing. The read information is split and shown separately which is easy for future processing.

 

 

Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Open the VI "Write to Datalog.vi".
  2. Enter students' information at front panel.
  3. Open the VI ”Read from Datalog.vi”.
  4. Enter Index
  5. Run the VIs

 

Additional Information or References
VI Snippet of "Read from Datalog.vi"

Block Diagram.PNG

 

VI Snippet of "Write to Datalog.vi"

Block Diagram.PNG

 

 **This document has been updated to meet the current required format for the NI Code Exchange.**

 

Shalini B
Applications Engineer
National Instruments UK & Ireland

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.