LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading 3D dataset using HDF5 interface libraray and LabVIEW 8.2

I am trying to read 3D datasets in LabVIEW 8.2 using the HDF5 interface library. Does anyone have an example of this? The datasets consist of 60 frames of 2048X2048 of U16 data. Any help would be appreciated. More information on the Library is at http://www.me.mtu.edu/researchAreas/isp/lvhdf5/
 
Gary
0 Kudos
Message 1 of 10
(3,456 Views)

I should probably clarify, I need to read 1 frame at a time. If I read all the frames at once then I run out of memory.

 

Thanks,

Gary

0 Kudos
Message 2 of 10
(3,447 Views)
Some resources which may help:
  1. See if you can find an e-mail for Jason Sommerville (discussion forum user Jason S), the author of the API, to determine if it will do what you want to do and supply some examples.  He last checked the forums on Nov 28.
  2. The HDF5 helpdesk (help@hdfgroup.org) usually replies to queries within 24 hours (at least they did five years ago when I was learning this stuff).  They were instrumental in my learning process.
  3. The manuals from the HDF5 website (which it sounds like you already have).
  4. Usually, one or two other people will reply to HDF5 questions.  I am somewhat surprised they haven't.  'Tis the season...
  5. Post your code!  As you know HDF5 is very particular.  I would be happy to look it over.
0 Kudos
Message 3 of 10
(3,443 Views)

Thanks for Responding, Here is my code so far. I think everything works up to the read Dataset.

 

0 Kudos
Message 4 of 10
(3,438 Views)
You have a 7-element array going into Create Simple for your memory dataspace.  This should be a 2-element array with both elements equal to 2048.  You could extract this from the file dataspace dims by taking the two largest values.
0 Kudos
Message 5 of 10
(3,433 Views)

I tried that at first but I get the following error. HDF Error in call to HSDread. Dataspace interface Out of range: selection+offset not within extent. (Error 14,4)

 

0 Kudos
Message 6 of 10
(3,428 Views)
It appears that you also need to wire in a preallocated version of your output array.  Note the bottom input on the read VI.  Internally, it appears the read is using this to generate dataspace information.  Since you have an empty input, the input dataspace is also empty.  This is a guess.  I can't fully install the API without breaking other things on my machine, so I can't try it.
0 Kudos
Message 7 of 10
(3,426 Views)

OK tried that and got the same result. Here is my code now. Thanks for looking.

gary

 

0 Kudos
Message 8 of 10
(3,421 Views)
OK, found another issue.  Your count array is in the wrong order.  Look at the Dims on your front panel.  It is 10, 2048, 2048.  Change your count to 1, 2048, 2048 and, hopefully, it will work.
0 Kudos
Message 9 of 10
(3,415 Views)

You Da Man!!!!!!!!!!!!!!!! That did it. Nothing can stop me now. Thanks, MUCH.

 

garySmiley Very Happy

0 Kudos
Message 10 of 10
(3,401 Views)