10-07-2005 01:19 PM
10-10-2005 03:15 PM
Hello Jonathan,
I was not able to find any example code that modifies camera attributes in VB (there were plenty for LabVIEW and CVI). I did find a knowledgebase called "IMAQ Camera Attribute Function In Visual Basic", but it did not provide anything more than syntax information (which you are already familiar with).
One thing to consider is that when you modify the camera attribute, it will not affect an acquisition that is currently in progress. For instance, if you change an acquisition parameter after initializing a grab, you will modify the camera file, but subsequent grabs will continue to use the old settings. Only if you reinitialize the board for a new grab acquisition will it use the updated camera attributes.
Also, I would make sure that manually changing the camera file changes the acquisition the way you think it should. If it does not, you may want to get that working first.
If you need to be able to change the attributes of a camera's acquisition while it is in the middle of one, you may be able to use the serial functions that the IMAQ driver provides to communicate directly with the camera through the Camera Link connection. The IMAQ function is called "imgSessionSerialReadBytes". I hope this information helps. Take care!
Regards,
Aaron B.10-14-2005 03:48 PM