Script to switch between MainCam and GuideCam?

Scripts and programs to automate Astroart
Post Reply
SternwarteFreimann
Posts: 7
Joined: 15 Jan 2026, 11:17

Script to switch between MainCam and GuideCam?

Post by SternwarteFreimann » 19 Apr 2026, 14:59

I want to use my ASCOM Guidecam to target the object and then switch to the main cam (ASCOM) to start a series of images.
This script does not work. Command Guider.Close does not work. Any ideas how to do this?
Thanks, Nicolaus
Attachments
2.png

fabdev
Posts: 573
Joined: 03 Dec 2018, 21:43

Re: Script to switch between MainCam and GuideCam?

Post by fabdev » 20 Apr 2026, 15:36

Hi, the correct command would be "Guider.Disconnect", however in your code there is no need for it since the command "Camera.Disconnect" disconnects also the guider.
Fabio.

SternwarteFreimann
Posts: 7
Joined: 15 Jan 2026, 11:17

Re: Script to switch between MainCam and GuideCam?

Post by SternwarteFreimann » 21 Apr 2026, 09:56

Thanks, but how can I select in a script the Guidecam to make an image?
Main and Guide camera are connected.
Which camera is selected with the command "Camera.Start(1)"?
Saluti, Nico

SternwarteFreimann
Posts: 7
Joined: 15 Jan 2026, 11:17

Re: Script to switch between MainCam and GuideCam?

Post by SternwarteFreimann » 21 Apr 2026, 14:57

Sorry, after some searching and trials I found the solution. It is the command: Guider.ShortExposure
;)

Post Reply