Scripts and programs to automate Astroart
5 posts • Page 1 of 1
From the help:
Dome.Connect Dome.Disconnect Dome.Connected
These functions are intended for connection with the ASCOM hubs, for example "POTH" or "DeviceHub", where the movement of the dome is controlled by ASCOM. Your scripts will just open or close the window, or park the dome. Example:
Dome.Connect("ASCOM.DeviceHub.Dome") , Dome.Connect("POTH.Dome") , Dome.Connect("Simulator")
By the way, if your dome is fixed and you only need to open and close it, you can directly connect with its driver. To find out the name of this driver, the first time use the following code:
Dome.Connect("ASCOM.Chooser") : Print Dome.Name : Dome.Disconnect
Dome.OpenShutter Dome.CloseShutter Dome.ShutterStatus
Opens or closes the window. The Status is a number 0..5, for more information see the official ASCOM docs, do an internet search: "ASCOM Dome Class".
Dome.Park Dome.AtPark Dome.FindHome Dome.AtHome
Parks the dome or returns the current status.
Returns true if the dome is moving. See the Demo scripts for a procedure which waits until the dome is no longer moving.
Reads of sets the "slaved" status of dome, usually you need to disable it before closing the dome.