07-09-2010 10:24 AM
I was wondering if i could get some help with an error I am getting.
I am trying to set up a ring acquisition where i can set the camera attributes prior to acquisition. The code works just fine except for when i try to change the Area of Interest settings for the Camera. I am using a Basler A504k and a PCIe 1429. When I change the Area of Interest Settings to anything other than the default settings my code times out at the IMAQ Copy Acquired Buffer.vi.
I am using a copy of the BaslerA504kCommand.vi provided by EnricoSegre that i found on another thread, which can be found at http://decibel.ni.com/content/docs/DOC-5049.
I originally was changing the attributes after i configured the buffer list. When I got the error I thought that maybe IMAQ Copy Acquired Buffer.vi couldn't read the buffers because they weren't the right size. So I changed the attributes before configuring the buffer, but I am still getting the same error.
Attached is an example of what I am trying to do. As well as the code provided by EnricoSegre (BaslerA504kCommand.vi)
If anyone could offer me any guidance, or a push in the right direction I would be very greatful.
-Thanks
07-12-2010 12:46 PM
The first step would be to ensure that you can change the AOI in a regular test VI, then see if we can get it up and running in your own program. With the camera file that comes with the IMAQ drivers I didn't see any applicable attributes to change the area of interest--are you looking at altering the Acquisition Window? If it is the actual AOI, are you using a different camera file than the one that ships with our drivers? If you don't have a different camera file, then it will probably be easiest to look at it using your example VI that you got from Basler. I'm guessing that when we change the AOI, we aren't actually changing the buffer size of the image that is allocated. Does it acquire any images, or error out immediately? What I'd like to try, is to put the serial commands of this VI into a Grab or a Snap example and see if we run into the same issues. The examples are found under Help>Find Examples> Hardware Input and Output>IMAQ>High-Level.