NI-DAQmx .NET Framework 4.5 API Reference

Table of Contents

SinglePoint.WaitForNextSampleClock Method (Double)

  • Updated2023-02-21
  • 1 minute(s) read
SinglePoint.WaitForNextSampleClock Method (Double)
Waits until the next pulse of the sample clock occurs.

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

Syntax

public bool WaitForNextSampleClock(
	double timeout
)
Public Function WaitForNextSampleClock ( 
	timeout As Double
) As Boolean

Parameters

timeout
Type: SystemDouble
The maximum amount of time, in seconds, to wait for the next sample clock pulse. If the time elapses, this method returns an error. If you set timeout to -1, this method waits indefinitely.

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