Hi all!
I have a function in a DLL that I have to wrap with python code. The function is expecting a pointer to an array of doubles. This is the error I'm getting:
Traceback (most recent call last):
File "C:\....\.FROGmoduleTEST.py", line 243, in <module>
FROGPCGPMonitorDLL.ReturnPulse(ptrpulse, ptrtdl, ptrtdP,ptrfdl,ptrfdP)
ArgumentError: argument 1: <type 'exceptions.TypeError'>: expected LP_c_double instance instead of c_double_Array_0_Array_2
I tried casting it like so:
ptrpulse = cast(ptrpulse, ctypes.LP_c_double)
but I get:
NameError: name 'LP_c_double' is not defined
Any help or direction is greatly appreciated. Thanks all!