05-22-2006 12:07 PM
I am using a USB DAQ 6008 for continuous reading of some voltage values
from a circuit. I configured an AI voltage task for 2 input channels,
one of which was then filtered and the result displayed. Everything
worked fine upto this point. But when I reconfigured the task to
include 2 more input channels (continuous voltage measurement) I began
to get this error message "20003: No: of samples should be >0" at the
filter block... although I have entered a value of 5000 in the no: of
samples/channel attribute of the DAQmx Read VI. Can anyone help me out
with this?
Thanks in advance
Kannath
05-23-2006 05:41 AM
05-23-2006 07:16 AM
Hi Adam
Thanks for your quick replyl. As you said, it seems the filter block is not receiving any samples at all ( the probe at the filter input shows no values). But I dont understand why its happening because when I use just 2 channels (ch2 and ch3) for continuous acquisition, the filter works fine. But when i add 2 more channels (ch0 and ch1), it doesnt run at all. anyway, i am attaching the code for you to go through. Hopefully you will be able to figure out whats wrong.
Thanks again
Kannath
05-23-2006 07:46 AM
05-23-2006 12:37 PM
Thanx a lot adam. That really worked well:manvery-happy:
All i did was to remove the create channel block and just use the task....and it worked perfectly. But I still dont understand what went wrong. When i created the channels i made sure that they were matching with the task properties ( by alloting the order for each channel). Or is there something else that i need to check??
anyway...thanks a ton...it was beginning to get rather frustrating.
kannath