Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Exporting imaqImageToArray arrays from CVI DLL

I have created a DLL in CVI (6.0) that populates an array sent to it by another process (also a CVI program.) The program works fine - until I try to incorperate IMAQ commands - specifically imaqImageToArray (as contained in Imaq 6.0.5 for CVI.)
When I examine the array produced by the imaq command - WHILE still in the DLL - The result looks great - BUT what gets exported is blank (set to zeros.)
I have determined that the command imaqImageToArray is causing this behavior. Is a workaround/fix available?

Thanks in Advance!
0 Kudos
Message 1 of 3
(3,397 Views)
Martin,

It seems that this questions has already been answered through our Email Support team, if I'm not wrong, the correction was to pass the newer pointer value to the program from the DLL, in that way you would get an updated pointer. I will reference the same example in the web that shows how to use this function as well.

IMAQ Image To Array in CVI

Regards,

Nestor Sanchez
IMAQ/Motion Group
National Instruments
Nestor
0 Kudos
Message 2 of 3
(3,397 Views)
Hi Nestor,

Yes, the support team solution did work to pass this 'double pointer' value. My problem now is how to get Labview to call this new DLL. I was able to pass array values by reference - but now that I have a 'double pointer' - I get 'memory full' errors.

Any ideas?

Thanks!
-Martin
0 Kudos
Message 3 of 3
(3,397 Views)