Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

specified timeout expired

I'm running into an issue with NI 6601 card throwing an exception.

 

The exception is:

Specified operation did not complete, because the specified timeout expired.

Task Name: _unnamedTask<6F>

Status Code: -200474

 

It happens after I configure the counter as such: 

 

///////////////////////////////////////////////////////////
// Setup and start CWCounter1
CWCounter1Task = new Task();
CWCounter1FirstEdge = CITwoEdgeSeparationFirstEdge.Rising;
CWCounter1SecondEdge = CITwoEdgeSeparationSecondEdge.Rising;
CWCounter1Task.CIChannels.CreateTwoEdgeSeparationChannel("Dev1/Ctr1", "Inbound",
minVal, maxVal, CWCounter1FirstEdge, CWCounter1SecondEdge,
NationalInstruments.DAQmx.CITwoEdgeSeparationUnits.Seconds);

CWCounter1Reader = new CounterReader(CWCounter1Task.Stream);
bCounter1Configured = true;

 

This is in C# and I have the latest NI DAQMx drivers as of this writing.

 

The issue is that it doesn't happen all of the time.  I'll get through 100 cycles of setting up the counter and reading the value before I'll get one.

 

I have another machine with PCI-6601 and it doesn't exihibit this issue.  I may get one every once in a while, but nowhere nearly as much.

 

What would cause this exception?  Is the PCI-6601 not supported properly in the latest version of the NI DaqMx driver?

 

Thanks in advance

0 Kudos
Message 1 of 2
(5,302 Views)

Hi,

 

This is error tells you there are not enough samples to read within the specified timeout.

 

How fast are you trying acquire your data? Also, have you tried running any of the shipping examples that ship with the installation of NI-DAQmx?

This would be a good starting point to see if it is something to do with the way your code is set up or whether it is just something to do with the way the DAQmx driver runs. There is a possibility that there is an issue with the way the driver handles your specific case.

First try to run one of the shipped examples. You can find these in the following file path. C:\Documents and Settings\All Users\Documents\National Instruments\NI-DAQ\Examples. Then browse to your version of the development environment and get into the "Analog In\Measure Voltage\" folder and try an example like "ContAcqVoltageSamples_IntClk. If that does not work we may have to look into the driver a bit more.

 

Regards,

 

Devon R.

Applications Engineer

Naitional Instruments

 

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