The following CVI code, showed how to use IMAQArrayToImage. You have to create the image before using this function otherwise you will get error saying " Not an Image".
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.