LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

HDF5 data chunking example code

Can anyone provide example code of how to save and read "chunked" data using HDF5?

0 Kudos
Message 1 of 5
(2,784 Views)

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

Tim
GHSP
0 Kudos
Message 2 of 5
(2,781 Views)

I did search the community and found the very same post you directed me to.  The thread doesn't address my question.

0 Kudos
Message 3 of 5
(2,777 Views)

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

 

0 Kudos
Message 4 of 5
(2,747 Views)

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.

0 Kudos
Message 5 of 5
(2,704 Views)