To download NI software, including the products shown below, visit ni.com/downloads.
1. Overview
This program reads all channels and all samples from a file, created with Write LabVIEW Measurement File.
2. Description
The example starts by generating a set of values to write into an example LVM, so the user can understand the way the information is ordered.
If the Read LabVIEW Measurement File is not within a while loop, only one segment of the original size or a segment of a specified size will be retrieved. That is why we need to put this Express VI inside of a while loop and use the End of File boolean to control the While loop.
Here we pull the dynamic data out, convert it to a 2D array of scalars where columns are channels. With each iteration of the While loop we extract a segment of the original sampling size. For example, if the original sampling size was 100 samples, then we are reading 100 samples with every iteration.
We use shift registers and Build Array to build an array that contains all samples from all channels in the file.
Outside of the While loop we can extract each channel from the 2D array with the help of Index Array, where the index corresponds to the channel number.
3. Requirements
4. Steps to Implement or Execute Code
5. Additional Information or References
**The code for this example has been edited to meet the new Community Example Style Guidelines.**
Description-Separate-2Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.