Labview write data to text file

Environment shows products that are verified to work for the solution described in this article. This solution might also apply to other similar products or applications.

Software

Whether you want to log data to a file, save data to a database, or programmatically decide what to do based on an operator decision or the conditions of your measurement, use LabVIEW to customize and automate the saving and recording of measurement data.

Quickly Save Data with the Write to Measurement File Express VI

Quickly save measurement data with the Write to Measurement File Express VI. You can use this function to configure how you'd like to save your data, and it supports multiple file formats including TDMS, LabVIEW Measurement files, and the Excel file format.

    Open Record Failure Points.vi from Saving Data to File in the Measure Physical Systems with Sensors or Actuators sample project. This VI includes a prebuilt UI, signal simulation, and limit testing that determines if the generated signal is within a specific range. In this guide, you’ll add the code to save the limit test results to an Excel file.

Figure 1: Starting point for recording failure points.
Figure 2: Navigate to the Write to Measurement File VI.
Figure 3: Configure the Write to Measurement File Express VI.
Figure 4: Finished Block Diagram to Record Limit Testing Data.
Figure 5: View Results of the Limit Test in Excel.

You can find the completed VI in the Solutions Folder in the Saving Data to File.lvproj LabVIEW project.