Quantcast
Channel: Software Bisque
Viewing all articles
Browse latest Browse all 1744

Scripting Separate Autoguider

$
0
0

Greetings,

I a in the process of writing a VB app to control TheSkyX.  I have successfully coded the dome, Camera and focuser to connect upon launching TheSkyX.  I cannot however get the Orion SSAG to connect with code.  Manually, withinTheSkyX, I can connect with no problem.

To connect the camera (an STF-8300) I use the following code within the app:

Dim objSkyCam as Object

objSkyCam = CreateObject("CCDSoft2XAdaptor.ccdsoft5Camera")

objSkyCam.Connect()

objSkyCam.focConnect()

This works fine.  Now, how do I connect the autoguider?  I believe I need to define a new object and create another instance of ccdsoft5camera.  But I need to tell the object that this applies to the SSAG instead of the STF-8300.  There is a (integer) property of ccdsoftcamera named Autoguide that holds whether the object is an autoguider (if not = 0) or is the imager (if = 0).  But I cannot get that property to work as it throws a "There is no connection for this connection ID" error.

The scripting documentation references a ccdsoftCamera object and also a ccdSoft2XAdaptor.ccdsoft5Camera program ID.  Are these separate entities or is the latter the updated version ofthe former?  Is there a syntax I need to follow to define the autopguider?

I am using TheSkyX v10.5.0 (Build 10229) with the Camera Add-on, the native SBIG driver for the imager and the ASCOM driver for the SSAG.  Again, the autoguider will connect manually without issue but not from code.

Thanks, Marc


Viewing all articles
Browse latest Browse all 1744

Trending Articles