06-16-2008 05:02 PM
06-16-2008 07:59 PM
06-16-2008 08:58 PM
I am not sending any commands to set the frame rate.
I issue a one-time command to change the shutter, and the frame rate gets cut from 30 fps (or thereabouts) to 3 fps. I stop, clear, and re-set up the acquisition when I change the shutter.
Any other ideas?
06-16-2008 09:12 PM
Not many other ideas. I did mean shutter, of course.
Perhaps try not completely resetting the acquisition. Just stop, change shutter, then start. You shouldn't need to completely clear the acquisition and start from scratch. In some cases, you can actually change the parameter without stopping the acquisition at all. You could try that, but I would guess you would get an error.
Second idea - read the current shutter value, then set it to the same value and see if you get the slowdown. After setting it, read it to see if it changed to what you wanted.
Bruce
06-17-2008 11:20 AM
I tried what you said and had some success. I should mention that I have the camera set up in MAX as a IMAQdx device, but I am using the older IMAQ for IEEE-1394 function calls. I am programming in VB6.
When I started the program, the shutter value was 333. I changed it to 100, and the image got darker, but only for about 2 seconds, then returned to the original brightness. Putting in a still lower value made the image darker still, but again it returned to the original brightness after about 2 seconds.
I then did a imaq1394AttributeInquiry2CW for IMG1394_ATTR_SHUTTER, and it showed among other things Auto set to 1.
Couple of questions...
Thanks!
06-17-2008 10:15 PM
I think you have to use matching function calls. If you configure the camera in MAX to be IMAQdx, you must use IMAQdx function calls. Same thing with the older driver and functions.
I think you can disable Auto in MAX. It might be due to mixing the versions, though. It might be easier to set the camera in MAX to the old drivers.
I don't use VB6, so I don't know the details for using IMAQ with it. Hopefully somebody from NI will chime in here.
Bruce
06-18-2008 11:22 AM