Receiving Error -2558 When Converting TDMS File to HEAD Acoustics (HDF) File

Updated Aug 14, 2019

Issue Details

I want to convert TDMS file to HEAD acoustics (*.hdf) file format "HDF" by using sample program (Convert to hdf - Example. vi) from National Instruments website. I have also downloaded and installed HDF DataPlugin (Head_Data_Format_Scaling.uri) available in the website . However, after running the VI, I receive below error:

Error -2558 occurred at Close Data Storage

Possible reason(s):

LabVIEW:  LabVIEW cannot open the data storage file. Ensure that you chose a correct DataPlugin for this file format.

 
 
There is no modification done to the sample program. How can I resolve this error?

Solution

This error occurs because HDF file format specified at the front panel of the sample program is not properly read by Open Data Storage Express VI. This error might happen when DataPlugin parameter of Open Data Storage Express VI is set to auto-detect the storage format

Please follow the steps below to manually specify *.HDF DataPlugin in Open Data Storage Express VI in order to resolve the error.
  1. Delete all front panel controls except the error in and error out. 
  2. Open the block diagram, press <Ctrl-B> to eliminate broken wires. 
  3. Double click on the first Open Data Storage Express VI, and it should open up a window where you can select the DataPlugin (*.TDMS) and the file location. 
  4. Double click the second Open Data Storage Express VI, and it should open up a window where you can select the *.HDF DataPlugin and enter a file location. 
  5. Run the VI and check the file that was generated in the path mentioned in step 4. 

Additional Information

By default, HDF file format is not supported in LabVIEW. Make sure you have downloaded and installed the DataPlugin which will allow you to do the conversion.