ErrorEventMask Property
Syntax
CWIMAQ.ErrorEventMask
Data Type
You can use the following constants with this data type:
- cwimaqAcquiring—Acquiring NI-IMAQ operation.
- cwimaqCameraAttribute—Camera attribute operation.
- cwimaqConfiguring—Configuring NI-IMAQ operation.
- cwimaqConfiguringTriggers—Obsolete—Use the cwimaqSignalIO enumeration instead. This enumeration configures triggers.
- cwimaqInitializing—Initializing NI-IMAQ operation.
- cwimaqLoading—Loading NI-IMAQ operation.
- cwimaqPlottingImage—WindowPlot NI-IMAQ operation.
- cwimaqPropertyRead—Read only property.
- cwimaqResetting—Resetting NI-IMAQ operation.
- cwimaqSaving—Saving NI-IMAQ operation.
- cwimaqSignalIO—Signal I/O NI-IMAQ operation.
- cwimaqStarting—Starting NI-IMAQ operation.
- cwimaqStopping—Stopping NI-IMAQ operation.
Purpose
Contexts for which the control generates error events.
Remarks
To select the contexts for which CWIMAQ generates error events, add the appropriate CWIMAQErrorContexts constants and assign the sum of the constants to ErrorEventMask.
For example, the default setting for this property on the CWIMAQ control is as follows:
ErrorEventMask = cwimaqAcquiring
With this default setting, CWIMAQ generates events only when an acquisition is in progress, rather than when you call the AcquireImage, Start, Stop, or Reset methods. When calling these methods, you must test the return value to detect errors or catch exceptions, depending on the value of the ExceptionOnError property.