Getting started
This page takes you through a first file: its structure, its values, a chart and a copy to Excel.
Open a file
Open a .tdms, .h5, .hdf5, .he5 or .nc4 file as any other file: from the Explorer, File > Open, or by dragging it into VS Code.
It opens in the viewer, read-only.
.nc (NetCDF) and .mat (MATLAB 7.3) files do not open in the viewer by default, as other files use these extensions: right-click the file, choose Open With…, then Measurement Data Viewer.
See Which files open in the viewer.
|
| With another HDF5 viewer installed, such as H5Web, VS Code asks which one opens an HDF5 file; see Other HDF5 viewers. |
The header gives the size of the file and the time taken to read its structure, with, for a TDMS file, its number of segments and its TDMS version, and for an HDF5 file, its number of datasets and the version of its superblock. The Local time list at its right shows the timestamps in local time or in UTC.
The File tab shows:
-
the properties of the file;
-
the table of its groups, each one a link to its tab;
-
the buttons that export the whole file: Export to Excel… and Export All Groups to CSV….
Problems that do not prevent reading the file, such as a channel whose scales cannot be applied, are shown as warnings above the tabs.
Browse a group
Each group has a tab of its own.
-
Group properties and Channels unfold the properties of the group and the table of its channels with their properties.
-
The grid shows the values, one column per channel. The column headers give the name, the unit, the type and the number of values, as in NI DIAdem. Rows are numbered from 1.
The grid reads its rows as it scrolls: scroll as far as you like, even in a group of millions of rows.
Plot channels
-
In a group tab, click Open chart. The chart opens in a tab of its own, beside the viewer.
-
Tick channels in the list on the left: the X axis follows their time base.
-
Zoom with the mouse wheel, pan with a drag, double-click to see everything.
-
Click Cursors C1/C2 for measurement cursors, with the values of each curve, their differences, and the minimum, maximum and mean between them.
See Time charts. For a channel against another, use Open XY chart: see XY charts.
Copy values to Excel
-
Drag over cells of the grid, or click a column header for a whole channel.
-
Press Ctrl+C (Cmd+C on macOS).
-
Paste in Excel.
The values are copied with the decimal separator of your system, as Excel expects. See Copy and export.
Try it without your own files
Download the demo files, those of the screenshots of this documentation: TDMS and HDF5 files of a test bench, waveforms, hysteresis cycles and an endurance test of a million samples per channel.