Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Using CounterReader and AsyncCallback is there a way to determine current amount of collected data?

Solved!
Go to solution
I am collecting a quadrupole encoder using CounterReader and AsyncCallback.  At any time I would like to know how many values are currently stored/collected before receiving the AsyncCallback and calling EndReadMultiSampleDouble.
0 Kudos
Message 1 of 3
(3,597 Views)
Solution
Accepted by fjm1

Hi fjm,

 

If I correctly understand what you are asking, you should try the DaqStream.AvailableSamplesPerChannel property:

 

DAQstream.png

 

 

If you are performing a buffered Counter input task then this property can be used to query the amount of samples available in the input buffer that have not yet been read into application memory.

 

 

Best Regards,

John

 

John Passiak
Message 2 of 3
(3,575 Views)

John,

 

Thanks for the info.  It looks like it will do the trick.

 

Frank

0 Kudos
Message 3 of 3
(3,559 Views)