# disable_event()

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

## Function Prototype

disable_event(board_num, event_type)

## Parameters

board_num (int)

The number associated with the board when it was installed with InstaCal or created with create_daq_device().

event_type (EventType)

Specifies one or more event conditions to disable. More than one event type can be specified by adding the event types. Note that specifying an event that has not been enabled is benign and will not cause any errors. Refer to enable_event() for valid event_type settings.

To disable all events in a single call, use EventType.ALL_EVENT_TYPES.

## Notes

- For most event types, this function cannot be called while any background operations (a_in_scan(), a_pretrig(), or a_out_scan()) are active. Perform a stop_background() before calling disable_event(). However, for EventType.ON_EXTERNAL_INTERRUPT events, you can call disable_event() while the board is actively generating events.