PyDAQmx icon indicating copy to clipboard operation
PyDAQmx copied to clipboard

DAQmxFunctions.array_type requires 'WRITABLE' flag even for `const float *`

Open eric-wieser opened this issue 9 years ago • 1 comments

the pointer_type_array regex should be split in two, into pointer_type_const_array and pointer_type_array

eric-wieser avatar Aug 01 '16 22:08 eric-wieser

Thanks for this issue.

I have implemented this distinctions on the dev2 branch (https://github.com/clade/PyDAQmx/tree/dev2). There is a new parser for the NIDAQmx.h file. For const array, I have also implemented to possibility to use a list or a tuple instead of a numpy array (see https://github.com/clade/PyDAQmx/blob/dev2/pydaqmx/native/ctypes_array.py).

clade avatar Sep 26 '16 08:09 clade