Sorry – I have no LabVIEW to test your code.
All the assumptions concerning this problem are based on the general use of the DLLs in programs.
You should allocate space for the buffer.
In this function
ReadCh1(int *Buffer);
the parameter ‘Buffer’ is a pointer to the array of 4100 integers.