LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx Read VI Times out

I am having a problem reading and writing to the DAQmx digital pins 0-7. I have a 6229 DAQ card. Writing seems to be working but whenever I use the prebuilt DAQmx Read VI it always times out on me. What would cause this?
0 Kudos
Message 1 of 4
(2,966 Views)

Hi Flowserve1,

One possible reason for getting a timeout error is that you might be trying to read in more values than what is currently in the buffer. I'm not exactly sure what error code you are getting, but the following document might help you solve the issue.

Why Do I Get Error -200284 from my DAQmx Read VI?

Have you tried using Test Panel in Measurement and Automation Explorer to see if you can get any readings? Are you trying to run just the shipping example by itself?

S_Hong
National Instruments
Applications Engineer
0 Kudos
Message 2 of 4
(2,922 Views)
I am getting an error code 200474. I get this error when I am trying to read a frequency from a PFI pin. I was told that the read would time out if there were no signal on the PFI. Is this true?
0 Kudos
Message 3 of 4
(2,910 Views)

Hi Flowserve1,

The reason for this error code 200474 is because your DAQmx Read VI is probably timing out. There's a nice article on our website which explains just that and how it can be fixed.

Error -200474 With Digital Frequency Example VIs Modified for Continuous Acquisition

An easier way to fix the problem is to simply have an indefinite timeout value by wiring a -1 to the timeout input of the Read VI.

S_Hong
National Instruments
Applications Engineer
0 Kudos
Message 4 of 4
(2,894 Views)