NI-DAQmx .NET Framework 4.0 API Reference

Table of Contents

EveryNSamplesWrittenEventArgs.CheckForException Method

  • Updated2023-02-21
  • 1 minute(s) read
EveryNSamplesWrittenEventArgs.CheckForException Method
Throws the Exception that occurred, if any exists.

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

Syntax

public void CheckForException()
Public Sub CheckForException

Remarks

If the task stops due to an error, the Error property returns an Exception that represents the particular error. If the task did not stop due to an error, the method returns. As an alternative to calling this method, you can check the Error property.

See Also

Log in to get a better experience