I am trying to communicate with a National Instrument DAQ via PyCall.jl and the NI Python library nidaqmx. For some functions I have to pass a C contiguous array (flag C_CONTIGUOUS has to be true).
I tried to create a C contiguous array using PyCall and np.ascontiguousarray but the C_CONTIGUOUS flag stays false. Here is my minimal working example:
If you want to convert back to a Julia ::AbstractArray, you can use PyArray(dataMatrix_np)/pyconvert(PyArray, dataMatrix_np) (wraps, row-major) or pyconvert(Array, dataMatrix_np) (copies, column-major).