Script commands for domes
Posted: 27 May 2021, 07:05
In AA7 SP6 it is mentioned that there are new script commands for domes. Can you provide the new commands and their functions?
Community of Astroart users
https://www.astroart-forum.net/forum/
https://www.astroart-forum.net/forum/viewtopic.php?f=5&t=596
Dome functions
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.
Dome.Slewing
Returns true if the dome is moving. See the Demo scripts for a procedure which waits until the dome is no longer moving.
Dome.GetSlaved Dome.SetSlaved(true/false)
Reads of sets the "slaved" status of dome, usually you need to disable it before closing the dome.