IC-Imaging-Control-Samples
IC-Imaging-Control-Samples copied to clipboard
Cannot get Map Strings for Strobe Mode in python
I am trying to use the function:
int AC IC_GetPropertyMapStrings(HGRABBER hGrabber, char* Property, char *Element, int *StringCount, char **Strings );
but I am getting an error on parameter 5, char **Strings, here is what I have in python:
num = ctypes.c_int()
strings = ctypes.c_char_p()
strings = ctypes.POINTER(ctypes.c_char_p)
self.ic.IC_GetPropertyMapStrings(self.hGrabber, tis.T("Strobe"), tis.T("Mode"), num, strings)
The error I get is: "ctypes.ArgumentError: argument 5: <class 'TypeError'>: Don't know how to convert parameter 5"
Is there something I am doing wrong?
I am trying to set the strobe on, with positive polarity, and setting it to be a fixed duration of a few microseconds. That is my actual task but I see no example code using strobe, at least not in python. So if someone knows the strings for the modes that I can use, that is my end goal. I am only trying to call this function because I do not see that information anywhere around.
Thank you!