LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 20003

Hi

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

0 Kudos
Message 1 of 5
(4,115 Views)
Hi Kannath,
 
This error is an indicator that at the vi in question there are no samples (no data) being passed to it.  If you probe the input to that vi what are the values you get?
I would suggest checking that the signals are being aquired correctly.  Also try giving the function some dummy data to see how it reacts.
In the mean time could you attach your code for me to have a look at.
I might be able to debug it for you.
 
Thanx
 
AdamB
Applications Engineering Team Leader | National Instruments | UK & Ireland
0 Kudos
Message 2 of 5
(4,106 Views)

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

0 Kudos
Message 3 of 5
(4,099 Views)
Hello again,
It looks to me like you have set up the physical channels as well as the task.
Do they both match?
I would suggest just setting up a task (as you have done with the two outputs) and editing the task instead of trying to progromatically create the task in LabVIEW.
 
As I don't have your task details I can't actually run the code so I can't confirm this is the problem.
Give it a go?
 
 
AdamB
 
Applications Engineering Team Leader | National Instruments | UK & Ireland
0 Kudos
Message 4 of 5
(4,095 Views)

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

0 Kudos
Message 5 of 5
(4,090 Views)