Reading Waveforms from Files
- Updated2026-05-01
- 2 minute(s) read
Use the Read Waveforms from File VI to read one or more waveforms from a file.
Read Waveforms from File can read from files that contain a single waveform or files that contain multiple waveforms.
In addition to reading an entire waveform, you can also read a portion of a waveform. You can also read attributes that describe the waveform.
To read waveforms from files, complete the following steps.
-
Use the Read Waveforms from File VI.
- For a single-waveform file, the VI returns the waveform.
- For a multi-waveform file, the VI returns an array of waveform data. You can display this data in a multi-plot graph.
- Optional:
Read specific information about the waveform or waveforms.
Option Description Retrieve a subset of the waveform at a specified time or index Use the Get Waveform Subset VI. Extract waveform attributes Use the Get Waveform Attribute function. Note To use these capabilities on specific waveforms within a file that contains multiple waveforms, first use the Index Array function to isolate the individual waveforms in the file.
Reading a Waveform from a Single-Waveform File
The VI in Figure 37. Graphing a Subset of a Waveform performs the following operations:
- Reads a waveform from a single-waveform file
- Returns the first 100 elements of the waveform
- Plots the subset of the waveform to a graph
Reading Specific Waveforms from a Multi-Waveform File
The VI in Figure 38. Graphing Specific Waveforms from a Multi-Waveform File accesses a file that includes multiple waveforms. The Index Array function reads the first and third waveforms in the file and plots them on two separate waveform graphs.
You can also use the Storage/DataPlugin VIs or the Read From Measurement File Express VI to read waveforms from a file.
Related Information
- Types of Graphs and Charts
LabVIEW includes specific types of graphs and charts. Different types of data suit each type of visualization.
- Grouping Data with Arrays and Clusters