Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

setting bit depth from LabVIEW

Hi am using a PCI-1409 frame grabber with an RS-170 camera.  I developed an application using LV 6.1 with Vision 6.1.  I upgraded the software to LV 7.1 and Vision 7.0.  When I recently installed the later Imaq driver 3.1.3 my program stopped working.  It turns out that bitdepth was changed back to 10 bit where previously I had set it to 8 bit.  My application requires 8 bit so I had to use MAX to set the bitdepth back to 8.  I know that I can simply change the ICD file to also reflect 8 bits. I know that I can find the bitdepth property which is read only.  Is there a way of setting the bit depth to 8 bit from LabVIEW? 
 
regards, 
 
Bob
0 Kudos
Message 1 of 2
(3,429 Views)
Hi Bob -

The "Bits per Pixel" property in LabVIEW is read-only because this property is set in the camera file, which is loaded when a session is created (by using the IMAQ Init VI). Since you need to have an open session to the framegrabber to be able to read and write properties, this property is fixed by the time you can use an IMAQ Property Node.

As such, there is no other way to configure the bitdepth of an acquisition than in MAX or in the camera file.  If you are concerned about porting an application to other computers, you can bring your camera file with the program to the target machine.
David Staab, CLA
Staff Systems Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,413 Views)