LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -200284 occurred at DAQmx Read

Hello
 
I am using NI PCI E series Multifunctional PCI-6071E (MIO-64E-1) DAQ card with  LabView 8.01 version and using NI-DAQmx Functions to read the data. 
I can not include the code because it is very big. but I include the sub vi. You might need to change some setting in the code (It will read multi channel)

Here what I am doing. This SubVi is working fine when all inputs are connected.
But If I disconnect the inputs to DAQ card then it will give me this error
"
Error -200284 occurred at DAQmx Read (Analog 2D DBL NChan NSamp).vi:5
Possible reason(s):
Some or all of the samples requested have not yet been acquired.
To wait for the samples to become available use a longer read timeout or read later in your program. To make the samples available sooner, increase the sample rate. If your task uses a start trigger,  make sure that your start trigger is configured correctly. It is also possible that you configured the task for external timing, and no clock was supplied. If this is the case, supply an external clock.
Property: RelativeTo
Corresponding Value: Most Recent Sample
Property: Offset
Corresponding Value:

Task Name: _unnamedTask<6>"
 
So when this error accurse my program stuck at DAQmx Read (Analog 2D DBL NChan NSamp).vi subVI. It look like it is waiting for ever even though I have set 5 second timeout.
 
I thought that if there no inputs at DAQ card it will some garbage value.
 
Please help me.
 
Amit

Message Edited by amittpatel@yahoo.com on 11-22-2006 03:20 PM

0 Kudos
Message 1 of 5
(5,275 Views)

 

Here is missing subVI On DAQmx config.vi in the attachment

 

0 Kudos
Message 2 of 5
(5,266 Views)

Hi

Do you use on board clock or external one ?


It is also possible that you configured the task for external timing, and no clock was supplied. If this is the case, supply an external clock.

This could explain the behaviour you are confronted to. Without any clock signal, the board doesn't acquire samples and you get a timeout error. Please read here.

Regards,


0 Kudos
Message 3 of 5
(5,265 Views)

Thanks for posting this last subVI !

That was the problem ! Please connect a clock to PFI7 Smiley Tongue

Regards,


0 Kudos
Message 4 of 5
(5,264 Views)
Thank you Mathieu
 

You important suggestion helps me to fix my problems.

 

Amit

0 Kudos
Message 5 of 5
(5,234 Views)