X2 Standard  Version 1.21
How to Write a TheSkyX Driver

For illustration purposes, the following steps are for creation of a camera driver, but the same steps are involved in making any X2 driver.

The X2Camera example source code provides a pattern to follow to create a TheSkyX camera driver.

  1. Obtain TheSkyX version 10.1.9 or later.
  2. Tell TheSkyX A) how to display your camera to the user for selection and B) the name of the file that is your plug in binary by making your own company specific list of camera hardware.
    1. Make a copy of "cameralist.txt" distributed by TheSkyX and name it "cameralist My Company.txt" where 'My Company' is your company name. The files goes in the same folder as cameralist.txt.
    2. Edit "cameralist My Company.txt" remove all lines except one and by following the existing format, enter your specific camera information and the name of your plug in binary is "My Company Plug In File Name", for example:
      1. "2|My Company|My Company Hardware Model|Comment| |My Company Plug In File Name|x2 developer string||||"
      2. See the header of the file "hardwarelist.txt" distributed by TheSkyX for more details on this file format.
  3. Compile the X2Camera sample unmodified, and place the binary into the TheSkyX/Resources/Common/PlugIns/CameraPlugIns folder. Start TheSkyX, go to Telescope, Setup and in the Imaging System Setup tree select Cameras, select the X2Camera and choose Connect. The X2 plug in dll CCEstablishLink will be called.
  4. Implement the X2Camera with device dependent io calls. See the X2Camera source for more details on function calls. Use conditional compilation for OS specific io calls or branch in main.cpp with two entirely different X2Camera implementations depending upon OS.
X2 Examples
(C) Software Bisque, Inc. All rights reserved.