Gets the Exception that occurred, if any.

Syntax

Namespace: NationalInstruments.DAQmx

public Exception Error { get; }

Remarks

If the task stopped due to an error, an Exception is returned that represents the particular error. If the task did not stop due to an error, this value is null.

As an alternative to checking this property, you can call the CheckForException method.