DisableEvent()

Disables one or more event conditions, and disconnects their user-defined handlers.

Member of the MccBoard class.

Function Prototype

VB .NET

Public Function DisableEvent(ByVal eventType As MccDaq.EventType As MccDaq.ErrorInfo

C# .NET

public MccDaq.ErrorInfo DisableEvent(MccDaq.EventType eventType)

Parameters

eventType

Specifies one or more event conditions that will be disabled. More than one event type can be specified by bitwise OR'ing the event types. Note that specifying an event that has not been enabled is benign and will not cause any errors. Refer to EnableEvent() for a list of valid Event Types.

To disable all events in a single call, use AllEventTypes.

Returns

Notes

Important

In order to understand the methods, you must read the board-specific information contained in the Universal Library User's Guide. Review and run the example programs before attempting any programming of your own. Following this advice will save you hours of frustration, and possibly time wasted holding for technical support.

This note, which appears elsewhere, is especially applicable to this method. Now is the time to read the board-specific information for your board (see the Universal Library User's Guide). We suggest that you make a copy of that page to refer to as you read this manual and examine the example programs.