05-08-2018 09:07 AM
Can anyone provide example code of how to save and read "chunked" data using HDF5?
05-08-2018 09:12 AM
You should search the forum in the future. Here is the exact same question:
https://forums.ni.com/t5/LabVIEW/HDF5-and-LabVIEW/td-p/3546387
05-08-2018 09:18 AM
I did search the community and found the very same post you directed me to. The thread doesn't address my question.
05-08-2018 11:46 AM - edited 05-08-2018 11:50 AM
Hi Jim,
please find HDFSaveWF.vi to store an array of Waveforms in chunks.
The chunk size is the size of the Y-Array in the waveforms multiplied by ChunkFactor.
It stores also all attributes of simple types. Complex types (cluster, arrays) result in an error. Time t0 as number (seconds since 1.1.1904 UTC) and as xml string.
It use https://sourceforge.net/projects/h5labview/files/h5labview2-2.13.1.143.vip/download
and
_MGI\Error Handling\MGI Append String to Error Source.vi
_OpenG.lib\lvdata\lvdata.llb\Get TDEnum from Data__ogtk.vi
_OpenG.lib\lvdata\lvdata.llb\Array Size(s)__ogtk.vi
_OpenG.lib\array\array.llb\Remove Duplicates from 1D Array (Variant)__ogtk.vi
Peter
05-09-2018 03:52 PM
Thank you to those who sent suggestions. I wrote some example code. It is intentionally written to be step-by-step to allow someone to follow the discrete steps. It uses the h5labview2 add on.