Solution
The minimum timeout value must be greater than the samples to read divided by the sampling rate. This is the minimum amount of time required for the DAQ device to acquire the requested number of samples.
For example, if 1000 Hz is used for the sampling rate and 5000 samples is specified for the samples to read, the timeout value must be greater than 5 seconds.
The maximum value that can be used for your DAQmx timeout is -1. This specifies that you want to wait forever for the specified number of samples. This can be used for applications where the start trigger may come at an unknown time.