EventMask

Property

CCDCamera.EventMask ( read-write, Integer )

Syntax

CCDCamera.EventMask

Remarks

EventMask controls which codes the Notify event reports to a script, and which codes will be hidden from the script.

The EventMask property is a bit mask. Each bit of the EventMask value corresponds to a particular event that a script may receive. If the bit is set to 1, then whenever the event occurs MaxIm calls the Notify event to communicate this to the script. If the bit is set to 0, the script is not notified, even if the event occurs.

See the Notify event for a table of event codes that may be reported by the CCDCamera object. Each event code has a particular mask value associated with it, also given in the table. Some EventMask examples are given below. For brevity, each example omits the code required to set up and connect to a camera, and to shut MaxIm down when finished.

 

Initialize the event mask. Both filter wheel events will generate notifications. No other notifications will be generated.

cam.EventMask = 4096 Or 8192

Enable notifications for the 'Guider Correction Started' event. Leave other notification settings unchanged.

cam.EventMask = cam.EventMask Or 1024

Disable notifications for camera connection/disconnection events. Other notifications are unaffected.

cam.EventMask = cam.EventMask And (Not (16384 Or 32768))

Disable all notifications.

cam.EventMask = 0

Enable all notifications.

cam.EventMask = (-1)