Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Error when setting Camera Attribute

When I try to set the camera attribute "Milliseconds" (niIMAQ.CameraAttribute("Milliseconds") = lMilliseconds) on my Hamamatsu Orca II camera with a NI 1422 frame grabber to anything over 32700 milliseconds, I get an error (see attachment). This suggests that the Milliseconds attribute is an integer somewhere in the underlying code, but the Orca II can integrate upto 600000 milliseconds (10 minutes). I want to be able to use milliseconds as opposed to seconds. Is there a way around this error?
0 Kudos
Message 1 of 4
(3,384 Views)
Have you tried setting this attribute in the Measurement and Automation Explorer (MAX) utility? I've tried it here and it allows me to set the Milliseconds attribute up to 600 million milliseconds. I can also set the Seconds attribute to 600,000 seconds, and the Minutes attribute to 9999 minutes. If you are unable to set the camera to these maximums, please contact our techincal support engineers by going to ni.com/ask and generating a service request number.
0 Kudos
Message 2 of 4
(3,384 Views)
It is possible to set the value very in in the MAX utility (since all it is doing is writing to a flat file). However, The failure occurs when you try to capture an image with the camera (reading from the flat file). My camera fails using the MAX software with any value over 32760 (just as in VB). Can you get a camera to function with anything larger than 32760?
0 Kudos
Message 3 of 4
(3,384 Views)
When you say the camera fails, what error is being thrown? If it is a timeout error, you may need to increase your timeout value to account for the long integration time of the camera. Also, since you're seeing this behavior in both MAX and your program, we should probably get it to work in MAX first before diving into software.

Kyle V
Applications Engineer
National Instruments
0 Kudos
Message 4 of 4
(3,384 Views)