Notify

Syntax

Application_Notify( EventCode As Integer )

Parameters

Integer EventCode - Code indicating which event occurred. See table below.

Remarks

When certain events occur (for instance, the beginning of a command sequence) MaxIm DL will report the event to the currently running client code, using the Notify event. A client must set the EventMask property of the Application object to indicate that it wishes to be notified of a particular event.

When the notify event is called, it is important to return control to MaxIm DL as quickly as possible. MaxIm DL is unable to continue execution until the Notify event has completed.

Notifications can be used to monitor the status of MaxIm DL, for instance, to determine whether or not an exposure has been completed. Since the Notify method avoids the need to poll MaxIm DL, they can allow your program to execute more efficiently.

 

Event Code Name

Event Code

Mask Bit Value

aeCmdSequenceStarted

32

1

aeCmdSequenceCompleted

33

2

aeTelescopeConnected

34

4

aeTelescopeDisconnected

35

8

aeTelescopeSlewStarted

36

16

aeTelescopeSlewCompleted

37

32

aeTelescopeDeclinationLimit

38

64

aeTelescopeHorizonLimit

39

128

aeAutofocusStarted

40

256

aeAutofocusFineFocusStarted

41

512

aeAutofocusCompleted

42

1024

aeAutofocusAborted

43

2048

aeFileOpen

44

4096

aeFileNew

45

8192

aeExit

46

16384