clade / PyDAQmx

Interface to National Instrument NIDAQmx driver
Other
133 stars 55 forks source link

Add a matching rule for const char * arguments in NIDAQ functions. #20

Closed drogenlied closed 9 years ago

drogenlied commented 9 years ago

When trying to use DAQmxSetCISemiPeriodTerm(...) in a python3 application, there is an exception with ctypes TypeError, saying that the third argument has the wrong type.

The signature of this function is int32 __CFUNC DAQmxSetCISemiPeriodTerm(TaskHandle taskHandle, const char channel[], const char data); and const char data gets assigned the type c_char_p. With the attached diff, this gets assigned CtypesString(), which then works.