03-05-2008 12:13 PM
03-05-2008 12:25 PM
03-05-2008 12:30 PM - edited 03-05-2008 12:32 PM
03-05-2008 01:21 PM
Sorry, I misunderstood what you were doing.
I don't have the exact same board but I am unable to reproduce the problem. Just using the defaults that you have for the sample rate and length of acquisition, I don't see any problems with the data.
03-06-2008 01:50 PM
Hi,
Does the signal go to zero at anytime? The USB 6128 should have a 5 volts line, if you run your code using as an input the 5 Volts does it still goes to zero?
Something that might be happening is the way you have your code set up. Number of samples per channel specifies the number of samples to read. If you leave this input unwired or set it to -1, NI-DAQmx determines how many samples to read based on if the task acquires samples continuously or acquires a finite number of samples. If the task acquires samples continuously and you set this input to -1, this VI reads all the samples currently available in the buffer. If the task acquires a finite number of samples and you set this input to -1, the VI waits for the task to acquire all requested samples, and then reads those samples. If you set the Read All Available Data property to TRUE, the VI reads the samples currently available in the buffer and does not wait for the task to acquire all requested samples.
I hope it helps