clade / PyDAQmx

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

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

Open eric-wieser opened 8 years ago

eric-wieser commented 8 years ago

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

clade commented 7 years ago

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).