08-12-2011 04:02 PM
Hi, I'm using a Hamamatsu camera and I'd like to acquire 16-bit pixel image instead of 8-bit. However, it seems to me that the default is 8-bit. I'm trying to modify the program based on Grab and basic attributes becuase Gain, Exposure and pixel format are the only things I'd like to change. When the value of pixelformat is set to 0 (seems 0 is the value for 8-bit), it works fine but I don't know how to set to 16-bit becuase when I change it to 1, as I assume that's the value for 16-bit, error message pops out as I run the vi saying it's out of range.
Thank you very much for your help!
08-12-2011 05:13 PM
Besides, despite that I set the fps as 30, it seems the fps is slower than what it should be considering the exposure time. Is there a way to know what's the time interval between two frames taken? Is there a way to set the time interval for frames when taking a sequence? Thank you.
08-15-2011 07:02 PM
Hi soljiang,
I would recommend testing out the configuration and acquisition parameters in Measurement and Automation Explorer (MAX) before moving to setting them programmatically in LabVIEW. If you select your camera in MAX (My System»Devices and Interfaces»NI-IMAQ/IMAQdx devices), there should be tabs for Acquisition Attributes and Camera Attributes. These will contain the same attribute names and values that will be set in LabVIEW. A good strategy is to test the acquisition first in MAX, obtain the desired attribute values or gain an understanding of how they are controlled, and then move to programmatically the controlling the attributes in LabVIEW.
Are you able to acquire images at the desired framerate and bit-depth in MAX?
08-16-2011 08:40 AM
Hi, Matt,
Thank you for your reply. Yes, I can select the desired parameter and change them in MAX. Also in the program that I attached, the attributes listed are the attributes available for the camera.
Best,
Charles
08-17-2011 06:44 PM - edited 08-17-2011 06:45 PM
Hi Charles,
If you change the bit depth in MAX, how do you do so? What attributes are set to what value? If 8 bit images are the default it is possible that setting the attribute to 0 is just selecting the default value. If you input 8 or 16 does the program acquire images effectively?
08-20-2011 02:06 PM
Yes. I think the default is 8-bit and its binary is 0. I guess that's also why when I set the value to 0 through explicit function in the program, no error pops out. However I assume 16-bit is one (which I also verified by looking at the item property of that value setting), but when I explicit wire a 1 to that value property, the error says it's out of the value range.
08-22-2011 06:42 PM
Hi Charles,
If you set the PixelFormat to 1 in MAX it acquires a 16 bit image without error? LabVIEW will call the camera properties in the same manner as MAX, so setting PixelFormat to 1 in MAX should be the same as setting it to 1 in LabVIEW. Could you please include a screenshot of the settings in MAX?
Thanks!
09-12-2011 09:52 PM
In max, there's a pull-down menu and it's not binary. Apparently, it's itemized and I don't know which binary is associated to it. Since I think the 8-bit is 0, I'd assume 16-bit is 1.
09-13-2011 05:53 PM
Hi Charles,
What is the specific Hamamatsu camera model are you using? We may be able to gain some insight by looking at the camera file. There is a relatively general Knowledge Base article on camera files that should provide some additional information on camera files.
04-23-2013 05:27 AM
Hi,
I'd like to enquire the same problem as yours, have you solved it yet? Can you share it with me? Thank you!
Best regards