LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to extract 64 bit data from imaq image using IMAQ Extract VI

I have LV 8.5.1, Vision 8.5 and need to extract 64 bit data from a 64 bit image and I get the "invalid image" error while using the IMAQ Extract VI.  What version of Vision do I need to allow me to do this? 

 

Currently, the work-around I have...

1) convert the image to 32bit

2) use the ROI tools I to get the rectangle data I need

3) then go back to the original image and the convert the image to a 64 bit array

4) take the rectangle data to extract the data needed out of the 64 bit array data.

 

klunky but it works.  I would think that the IMAQ Extract tool should allow me to extract the 64 bit data but it doesnt... forces me to 32 bit.

 

suggestions?

0 Kudos
Message 1 of 10
(3,052 Views)

Not all image types are supported by IMAQ Extract...

 

Vision 2009:

 

IMAQ Extract.png

 

So, its possible with workaround only (like you have already).

 

Andrey.

 

0 Kudos
Message 2 of 10
(3,036 Views)

pfth... Smiley Tongue

 

is this on a list of things to get fixed?  I cant be the only one after this.

 

thanks for the feedback...

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

Hi,

 

You can try attached VI. Quick and dirty created and without guarantees, but may be will work for you (not sure about Vision 8.5).

 

Andrey.

 

Message 4 of 10
(3,007 Views)
thanks, it did not work... get an error message -1074396120
0 Kudos
Message 5 of 10
(3,003 Views)

steve05ram360 wrote:
thanks, it did not work... get an error message -1074396120

Try to connect Dst Image (should be differ from Src).

 

Andrey.

 

0 Kudos
Message 6 of 10
(2,995 Views)

awesome, that does work.  However I end up with the same problem I was asking about here...

 

http://forums.ni.com/ni/board/message?board.id=170&thread.id=496447

0 Kudos
Message 7 of 10
(2,990 Views)

steve05ram360 wrote:

awesome, that does work. 


Attached DLL slightly corrected and should be OK also "in place" when Dst is not connected like original IMAQ function. Hopefully it works properly now. By the way all IMAQ types are supported, not only U64.

 

Andrey.

 

Message 8 of 10
(2,986 Views)
Awesome, works as expected, thanks!
0 Kudos
Message 9 of 10
(2,968 Views)

Andrey, do you happen to have a 64-bit DLL as well?  This solution works great, but of course only in 32-bit LabVIEW.  Thanks for finding a way around the IMAQ limitation.

0 Kudos
Message 10 of 10
(2,504 Views)