02-05-2007 10:35 AM
hi,
i'm trying to create a program that writes a finite number of samples from a waveform (created from a general digital waveform generator which i made- that works fine) to an analog output channel and then reads in the same number of samples through an analog input channel and saves all this data to file.however, when i run the program, it comes up with an error and says:
Read failed, because there are no input channels in this task from which data can be read.
can anyone suggest any possible solutions to this problem?
steve
02-06-2007 06:49 AM
02-07-2007 12:00 PM
02-07-2007 12:20 PM
02-08-2007 05:11 AM
Hi Steve,
You should be able to see finite samples appear on your graph as well. One thing I noticed on your VI is that you had a while loop on the Read VI while having the output and input tasks set on generating/acquiring finite samples. This will cause an error after the first iteration of the while loop with your current settings, because you will be trying to read extra samples that do not exist in memory (DAQ card would have finished and stopped acquiring data after first iteration).
If you remove the while loop (or set it to run for only one iteration) when acquiring finite samples, they should appear fine on your graph (make sure you set your graph X and Y scales accordingly).
Let me know if that helps and if you have any more questions.
Regards
Way S.