Friday, July 8, 2016

Import in Matlab temporal signals (waveforms) recorded in .hws files by a National Instruments digitizer

National Instruments digitizers can save temporal signals, i.e., waveforms, in binary files with a National Instruments' proprietary format called Hierarchical Waveform Storage, based upon the HDF5 format for data storage and representation.

A waveform stored in a file with that format contains not only the time series of the signal, rather a huge amount of other data and metadata about the measurement configuration and about the settings of the National Instruments digitizer.

These additional data and metadata can be extremely useful to recover information about scaling factors, sampling rate, instrument settings, etc. ...

A .hws is a HDF5 file, thus it can be explored and read in by Matlab using its built-in functions for reading HDF5 datasets and attributes.

See this post and this other one for a few hints about importing in Matlab a waveform stored in a .hws file.