NI-DAQmx .NET Framework 4.0 API Reference

SinglePoint.WaitForNextSampleClock Method

  • Updated2023-02-21
  • 1 minute(s) read
SinglePoint.WaitForNextSampleClock Method
Waits until the next pulse of the sample clock occurs, with a timeout value of 10 seconds.

Namespace:  NationalInstruments.DAQmx
Assembly:  NationalInstruments.DAQmx (in NationalInstruments.DAQmx.dll) Version: 20.7.40.49302

Syntax

public bool WaitForNextSampleClock()
Public Function WaitForNextSampleClock As Boolean

Return Value

Type: Boolean
Specifies whether the next sample clock is late.

Exceptions

ExceptionCondition
DaqExceptionThe NI-DAQmx driver returned an error.

Remarks

If an extra sample clock pulse occurs between calls to this method, the second call returns an error or warning and waits for the next sample clock pulse. Use the ConvertLateErrorsToWarnings property to specify whether this method returns errors or warnings.

Use this method to ensure I/O cycles complete within sample clock periods. National Instruments recommends you use this method for certain applications only.

See Also

Log in to get a better experience