Open flysorter opened 7 years ago
I found the bug responsible for this issue, in IC_GrabberDLL.py. The argtypes for is_camera_property_auto_available was a set (using curly braces) instead of a tuple (parentheses).
I changed the code in a fork and sent a pull request. (#21)
This is similar, I realize to issue #17, but reading through that thread didn't actually give me the information required to fix the problem.
So I've got the library installed on a Windows 10 x64 machine, with the TISGrabber_x64.dll in its default location. I can list cameras, get handles, and snap images. But problems arise when I try to set the exposure property via the API:
This returns
I'm not very familiar with Python DLL wrappers, so I haven't been able to debug very well (my apologies). As near as I can tell, this comes about because of the implementation of the IC_IsCameraPropertyAutoAvailable function in IC_GrabberDLL.py, but it appears to match up with the function prototype in the SDK docs (which is
int AC IC_IsCameraPropertyAutoAvailable ( HGRABBER | hGrabber, CAMERA_PROPERTY iProperty)
I guess the error message is complaining that argument 1 isn't of the correct type, which would be the grabber handle. If I look at the
_handle
variable in an interactive shell, it shows up as:Seems plausible, no?
Any ideas? Thanks!