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.

  1. 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.
  2. Optional: Read specific information about the waveform or waveforms.
    OptionDescription
    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
Figure 37. Graphing a Subset of a Waveform
VI block diagram showing the reading of a waveform and the plotting of a 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.

Figure 38. Graphing Specific Waveforms from a Multi-Waveform File
Block diagram showing Read Waveform from File VI and Index Array function.

You can also use the Storage/DataPlugin VIs or the Read From Measurement File Express VI to read waveforms from a file.