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

Capturing a time stamp train in .NET from a 6602

$
0
0

I am trying to use a 6602 PCI to collect an array of time stamps of pulses using DAQmx.dll i.e. .NET. c#

 

I have so far used the CountDigEventsBufContinuous_ExtClk.2010 example, and it works without error, but I am not sure what the array of doubles represetns.  All I get are 0s.  My real problem is that when I alter the code to capture what I would really like, an array CiDataTicks or time stamps, I get the following error : "Read cannot be performed because this version of DAQmx Read does not match the type of channels in the task.  \n\nUse the version of DAQmx Read that corresponds to the channel type.\n\nTask Name: _unnamedTask<0>\n\nStatus Code: -200525" when it gets to the following line: "data = myCounterReader.EndMemoryOptimizedReadMultiSamplePulseTicks(ar, out actualNumberOFSamplesRead);" in the AsyncCallback.  

 

First, am going about this wrong?  Second, if not, then what is wrong with my readers that they can't perform the reading of an array of times or ticks?


Viewing all articles
Browse latest Browse all 1271

Trending Articles



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