PixelxCamera
PixelX Camera SDK

Model supported

  • CSTAR CCD
  • CMOS4040

Configuration

(For runtime)

ENV:

  • PIXELX_IMG_HEAD_NOCNT: If set, SDK assumes that image data from hardware does not send image counter info

For Maintain

  1. install git subrepo, call git subrepo status, you will see how third party libraries being included. Also check CMakeLists.txt
  2. For Windows, there is typedef unsigned char TBYTE in winnt.h (libusb includes it), which conflicts with define TBYTE in fitsio.h. We cannot typedef after define. You SHOULD a. include libusb then include cfitsio, b. avoid includes cfitsio in header (just cast pointer), c. undef TBYTE after include fitsio. (check cmos4040/ for details)

Installation under Debian10

1. Ready to work

#### 1.1 Installation dependency

sudo apt install libusb-1.0-0-dev libccfits-dev

### 2. Acquisition of CCDSDK2

cd ~
git clone http://210.45.78.50:8888/lab/CCDSDK2.git

### 3. Installation and compilation

cd ~/CCDSDK2
mkdir build
cd build
cmake ..
make
sudo make install

Fits header keys standard format(PX4040)

keyword = value / comment

  • EXPOTIME = 0.1 / [s] Exposure time
  • TDCTIME = 43991938 / [10ns] Tdc time
  • GPS-OBS = 2019-11-18 09:44:46.439919 / GPS UTC time of observation starup
  • CMOSTEMP = -1.9 / Celsius of cmos
  • DATE-OBS = 2019-11-18 09:44:46.391367 / Start UTC time of exposure
  • DEC = value(etc: 38.0484) / [deg] J2000 DEC
  • DEC-TAR = value(etc: 37.96226) / [deg] Target J2000 DEC
  • EXPTIME = value(etc: 0.1) / [s] Expose time
  • HOTTEMP = -5.187 / Celsius of TEC
  • PICMODE = 0 / Dynamic Range Mode(0:LDR_LOW_GAIN 1:LDR_HIGH_GAIN 2:HDR 3:LDR_HIGH_LOW)
  • RA = 318.69537 / [deg] J2000 RA
  • RA-TAR = 318.50249 / [deg] Target J2000 RA