Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Passing a Variant array to ArrayToImage Function

Hi,
I need help passing a Variant array to the ArrayToImage function in the NI Vision library.
 
I have no problems using the ImageToArray function - but when going back to the CWIMAQImage type the application throws an exception.
 
Are there any code samples for doing this?
Thanks!
0 Kudos
Message 1 of 2
(6,173 Views)
Hello,

Thank you for posting to the NI forums! Try calling the ImageToArray function then immediately passing the resultant array back to ArrayToImage. That will determine whether the ArrayToImage function is causing the error, or the array that is passed into it. Can you post a small sample of how you call the ArrayToImage function and the errors that are thrown?

Thanks,
Maclean G.
Applications Engineering
National Instruments
0 Kudos
Message 2 of 2
(6,157 Views)