.

Can.EventEnable

Enables or disables any of the events that are generated by the Can object from being reported to the host. Refer to the Events Overview section for a list of events generated by the Can object.

Version History

Introduced in MPX 2.0.

Type

Boolean (read only)

  • True: The event is generated on the host.
  • False: The even is not generated on the host.

Index

 
Index Type Description
Mpx.EventType The type of event that is being enabled or disabled.

 

Visual Basic

Syntax

Property EventEnable As Boolean(index As Mpx.EventType)

Sample Code

 

Controller.Can(0).EventEnable(Mpx.EventTypeCanEmergency) = True

x = Controller.Can(0).EventEnable(Mpx.EventTypeCanEmergency)

 

C#

Syntax

bool[] EventEnable;

Sample Code

 

Controller.Can[0].EventEnable(Mpx.EventTypeCanEmergency) = true;

x = Controller.Can[0].EventEnable(Mpx.EventTypeCanEmergency);

 

See Also

EventEnableAll
EventEnableNone

EventType

Events Overview

 

       Legal Notice  |  Tech Email  |  Feedback
      
Copyright ©
2001-2021 Motion Engineering