02-25-2012 02:26 AM
After searching for one week in the forum,I decide to post my question.
I'm currently working on a project which has a part that allows user to config the attributes of the camera using LabVIEW.
I'm using the LabVIEW 2010 and have installed the Vision toolkit and I have created a VI that can snap and save image.
The camera I'm using is directshow compliant and I've learned that I should find out what attributes have been passed through directshow by running MAX or Vision Assistant.In MAX and Vision Assistant I've been able to access the camera's attributes and change them as I want.See the attaching file.
However,when I want to create a VI to accomplish the same goal as the MAX,I have absolutely no clue,some say that I should call the camera's driver which usually is a dll file.But I only got an ax file,since I can config the camera in MAX I figure the attributes should be in the ax file.When I use the call library node function to call the ax file it shows the following function:DllCanUnloadNow etc see the attaching file.
I wonder have someone called the camera's driver and configed the camera successfully.
I just need a hint on how to achieve this or is it possible to config the camera in LabVIEW,any suggestion will be greatly appreciated.
Sorry for my bad English and if anything that you don't quite understand please contact me and I will do my best to make myself clear.
02-25-2012 05:34 AM
Hello
Wow, no need to reinvent the wheel... There's an example for that.
In the example finder, go to Hardware I/O->IMAQdx->HighLevel->Grab and attribute setup.
Hope this helps
Regards
02-25-2012 08:34 PM
Hello,toto26,thank you very much,this should work.
Best regards!
02-27-2012 02:53 AM
Hi,toto26,I just learned that the Grab and Attributes setup.vi isn't exactly what I wanted.
It seems that the camera's white balance attribute can't be changed in this VI or it will report an error and cause the terminate of the VI.So I assume that this VI is reading the attributes from the register.
I have a software which is compiled by C++,it simply uses just one function(OleCreatePropertyFrame)to call out the propertyframe and fill it in the blank frame.
So I believe that the attributes is already in the dshow and the method that the C++ used is differ from the previous VI. I was hoping maybe you can help me with this,it should only takes a few steps to achieve the same result as the C++.
And any other suggestion will be greatly appreciated!
Best regards!