Supported files
Measurement Data Viewer reads NI TDMS files and HDF5 files. HDF5 support is a first version: files of the LabVIEW toolkit h5labview2 and of h5py.
TDMS files
The parser is checked against reference files written by LabVIEW: it must return what NI’s own TDMS functions read from them.
- Versions
-
TDMS 1.0 and 2.0 files (versions 4712 and 4713), written by LabVIEW or any other tool.
- Layout
-
Multiple segments, incremental metadata, contiguous and interleaved data, little- and big-endian data.
- Types
-
Channels and properties of type I8 to I64, U8 to U64, SGL, DBL, Boolean, String (UTF-8) and Timestamp.
- Waveforms
-
Channels with the
wf_start_time,wf_incrementandwf_xnameproperties are plotted against their waveform time. - Units
-
Taken from the
unit_stringproperty. - Interrupted writes
-
Files cut by an interrupted write: the complete data is shown, with a warning.
DAQmx logs
Files logged by DAQmx (DAQmx raw data) are scaled as NI’s own reader scales them:
-
voltage, current, thermocouple, RTD, strain gage, bridge, IEPE, resistance and counter channels;
-
custom linear, polynomial, table and map ranges scales;
-
digital lines.
Other channels with scaling information (NI_Scale properties, NI_Scaling_Status "unscaled") are scaled the same way.
When the scales of a channel cannot be applied, its unscaled values are shown, with a warning and "(unscaled)" next to its type. See Warnings.
HDF5 files
Files with the extension .h5, .hdf5 or .he5 open in the viewer, read by ranges as TDMS files are, without any library to install.
The reader is checked against reference files written by h5py: every object, type, layout, attribute and value must match what the HDF5 library itself reads from them.
How an HDF5 file is shown
HDF5 is a general container, a tree of groups and datasets. The viewer shows it as measurement channels:
- Groups
-
A group that holds datasets is a group of the viewer, named by its path:
/bench/fast, or/for the root group. - Channels
-
A dataset of one dimension is a channel.
- Compounds
-
The fields of a dataset of compounds, such as LabVIEW clusters or NumPy structured arrays, are the channels of a group of their own.
- Two dimensions
-
The rows or the columns of a dataset of two dimensions are the channels of a group of their own: the shorter dimension gives the channels. This rule is provisional.
- Properties
-
Attributes are properties.
Files and layouts
- Versions
-
Files written by the HDF5 library 1.8 to 2.0, in its earliest and its latest file formats, SWMR files included. A userblock before the HDF5 data is skipped.
- Layouts
-
Compact, contiguous and chunked datasets.
- Filters
-
Chunks compressed with deflate (gzip), shuffle, Fletcher-32 or LZF.
- Types
-
Integers, floats (half and extended precision are shown as doubles), strings of fixed and variable length, Booleans, enums (as integers) and object references (as paths).
Conventions
HDF5 has no standard convention for time or units. The viewer reads those of the producers of measurement files:
| Producer | What the viewer reads |
|---|---|
LabVIEW, with h5labview2 |
Waveforms: their |
Python, with h5py |
Times of the CF conventions: an attribute |
The charts plot these channels against their time, as for TDMS files:
A CF time is shown as dates in the grid, and serves as the time of the channels of its group:
The LabVIEW toolkit Live HDF5 will be supported as far as reference files can be written with it. Not targeted for now: MATLAB v7.3, pandas and PyTables, NetCDF4.
Not read yet
What the viewer does not read is listed, with the reason, instead of being left out:
-
datasets compressed with other filters, such as Blosc, szip or scale-offset;
-
complex values;
-
datasets of three dimensions or more;
-
links to other files, given as a warning.
Reading files of the LabVIEW toolkits written by their own VIs, rather than by imitations, is the next step. Two-dimensional views, such as spectrograms, are being studied.
Any file
-
Files that are not on a disk, such as a version of a file in the Git history, are read whole: up to 2 GiB.
-
Following a file that is still being written is not supported yet.
-
In charts: saved chart configurations are not supported yet.
Report a file
A file that does not open as expected helps a lot: report it in the issues, with the file if you can share it.