What is an LVM file?
LVM (LabVIEW Measurement File) stores measured values as tab-delimited (or comma-delimited) text. The file starts with a header that states the separator, the decimal separator, the recording date and time and more. After that come segment headers with the number of channels, units and sampling interval, followed by the rows of values.
Write To Measurement File can also save binary TDMS files. For TDMS, see How to open and plot TDMS files.
What the file contains
| Header field | Meaning |
|---|---|
| Separator | The delimiter (Tab or Comma) |
| Decimal_Separator | The decimal separator (. or ,) |
| X_Columns | How X (time) columns are stored: No = none, One = one column first, Multi = one column per channel |
| Time_Pref | How X time values are expressed: Relative = seconds from the start of the recording, Absolute = seconds since 1 January 1904 |
| Date, Time | Recording date and time |
| Channels, Samples | Number of channels and number of points written at a time |
| Y_Unit_Label | Unit of each channel |
| X0, Delta_X | Start of X and the interval between values (seconds) |
The header ends with a line that reads ***End_of_Header***. The next line holds the column headings (X_Value and the channel names) and the values follow. In a file appended to during a measurement, this pair of segment header and values repeats.
Ways to open LVM files
| Method | What it is | Keep in mind |
|---|---|---|
| Notepad or another text editor | Shows the content as it is | Cannot plot it |
| Excel | Opens it as tab-delimited text | The header lines sit above the values. The worksheet limit of 1,048,576 rows applies, and files with repeated segments have header lines in the middle |
| LabVIEW | Read From Measurement File reads it | Requires LabVIEW |
| LOGADEC | Time-series viewing and analysis software with no installation. It reads the header and uses the channel names, units, sampling interval and recording date and time | The comment column is not read |
Opening an LVM file in LOGADEC
- Start it from Try it in your browser, or download the free version and open the extracted HTML file in Google Chrome or Microsoft Edge.
- Click CSV/Excel and choose the .lvm file.
- Each channel appears as a column with its name and unit. In a file with X columns the first column becomes the X axis; otherwise X is built from Delta_X in the header.
- Select the channels you want, click [Import], then click [Select all] in the [Series] tab.
A file with two or more segments is joined in order into one continuous data set. Files with a decimal comma (saved on a PC with German or similar regional settings) are read as stated in the header.
See Loading Data in the user manual for details.
What you can do after loading
- Frequency analysis: FFT, STFT and wavelets (Frequency Analysis).
- Filters and anomaly detection: low-pass and notch filters, outlier and change point detection (Time-Domain Analysis).
- Export to CSV or Excel: [Export data] writes a clean table without the header lines.
- Batch import: [Folder] imports all .lvm files in a folder at once.