LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

IMAQdx Grab changing my images from 16 bit to 8 bit?

I have a labview application that I am trying to use with 16 bit images.  It is currently running and working with 8 bit images.  I though that if I changed the image type from 8 bit to 16 bit and changed the settings on my camera from 8 bit to 1 using MAX that the program would run the same but with 16 bit images instead.  However, even when I do this the camera only captures 8 bit images and then the application fails because of an incompatible image type error because all the settings are set to 16 bit images.  I set a few probes and realized that very early in my application all my images are 8 bit even when the camera is set to a 16 bit setting.  Also the resolution of my images is different than what the camera is set to.  I think that the culprit is IMAQdx Grab because I was reading in the help that if the image type does not match the video format of the camera then IMAQdx Grab changes the image type to a suitable format.  How can I make it so IMAQdx Grab wont change the image type?  I am fairly new with LabView so this might be something simple or not.  Thank you.
0 Kudos
Message 1 of 2
(2,436 Views)

Hi Optical Intern,

It sound to me that you are having problems with getting the camera file to do what you want.  My guess is that you are not saving the attributes in Measurement and Automation (MAX) when you change them.  If you are saving them then I would try and set the attributes programmatically in your VI.  This should force it to what you want within the program.  Let me know how it goes.

Adam H
National Instruments
Applications Engineer
Message 2 of 2
(2,411 Views)