Quantcast
Channel: Counter/Timer topics
Viewing all articles
Browse latest Browse all 1271

specified timeout expired

$
0
0

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


Viewing all articles
Browse latest Browse all 1271

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>