CounterSingleChannelReader.EndReadSingleSamplePulseTime Method
- Updated2023-02-21
- 1 minute(s) read
CounterSingleChannelReaderEndReadSingleSamplePulseTime Method
Handles the end of an asynchronous read initiated with BeginReadSingleSamplePulseTime(AsyncCallback, Object) and retrieves the read samples.
Namespace: NationalInstruments.DAQmx
Assembly: NationalInstruments.DAQmx (in NationalInstruments.DAQmx.dll) Version: 20.7.40.49302
Syntax
public CIDataTime EndReadSingleSamplePulseTime( IAsyncResult asyncResult )
Public Function EndReadSingleSamplePulseTime ( asyncResult As IAsyncResult ) As CIDataTime
Parameters
- asyncResult
- Type: SystemIAsyncResult
An IAsyncResult that represents an asynchronous call started by calling BeginReadSingleSamplePulseTime(AsyncCallback, Object).
Return Value
Type: CIDataTimeA pulse sample in terms of time from the task.
Exceptions
Exception | Condition |
---|---|
ArgumentException | asyncResult is or is not an instance of IAsyncResult returned from a call to BeginReadMultiSample(Int32, AsyncCallback, Object). |
DaqException | The NI-DAQmx driver returned an error during the asynchronous operation. |
OutOfMemoryException | There is not enough memory to carry out this operation. |
Remarks
If you call EndReadSingleSamplePulseTime(IAsyncResult) before the asynchronous read represented by the provided IAsyncResult is complete, EndReadSingleSamplePulseTime(IAsyncResult) waits for the read to complete before returning.
NI-DAQmx read and write methods time out after the amount of time specified by the Timeout property on the task you are reading from or writing to.
![]() |
---|
Refer to Asynchronous Reads and Writes for additional information. |