Showing posts with label design. Show all posts
Showing posts with label design. Show all posts

Wednesday, December 30, 2009

Software for two Xenics cameras!

Yep, you've read right: we now have two of the Xenics IR cameras. The first we purchased will be dedicated to the low-order wavefront sensor, the second will have the privilege of being our "science" detector for the commissioning of SCExAO, before we try and add HiCIAO, and might even be able to do some science itself!

Today, we finally managed to control both cameras from the same computer... hurray! This server/client architecture we've developed is actually proving very handy: one server per camera, each one awaiting for connections (via the local network or directly from the SCExAO control computer) listening to their special port number.

The client can now ask either of the cameras (or both) to take images, query for or update the camera configuration (exposure time, subarray mode, gain), or tell it to shutdown. Now that these detectors are both working, we can turn off the visible laser diode: this new year will be bright in the infrared for SCExAO!

Thursday, December 17, 2009

Optical design schematic

Kaito Yokochi just made this nice schematic of the lab configuration of the SCExAO coronagraph. It'd be a pity not to post it here... thanks Kaito!

Wednesday, December 9, 2009

Software for the Xenics IR camera


A couple of weeks ago, I blogged about the Xenics camera, which we finally were able to take images with. Since then, I have kept playing with the SDK to build an application that is better suited to our needs for SCExAO.

While it may not be the best file format in the world, all the astronomical instruments I have encountered so far produce FITS files as their final data product. The first thing to do was therefore to change the program the camera came with to make saving the data in the FITS format possible, which is fairly easy thanks to the cfitsio library.

Incidentally, that also improves the image quality. Indeed, the original program would produce what looked like 24-bit color bitmaps... but were in fact 8-bit greyscale only. That is very unfortunate since the camera uses 14-bit ADC... 6 bits of dynamic were simply lost in an elegant bitwise data shift. The image (also bias-substracted) looks somewhat better now that we make use of the entire dynamic range!


That also helped to neaten the code that originally had to be compiled with the wxWidget library, just because of the need to save bitmaps and read configuration files. While there is nothing wrong with wxWidget which is an attempt at providing a cross-platform widget library, it is just a little overkill to link it just to save bitmaps.

So what's next? We're still trying to figure out what is the best way to interface the camera with our already complex programming environment. At this point, I think it would be best to make it as standalone as possible, and one approach is to create a server program that would keep the camera up and running, and have other client programs connect to it via sockets to tell it to take pictures when needed. I just want to make sure that this socket communication system will not slow down the data acquisition... for one should not forget that one important use of this camera will be in the low-order wavefront sensor, which will be running at over 100 Hz for extended periods of time.

Tuesday, November 17, 2009

3D model of the protection cage



A couple of weeks ago already, Frederic designed a protection cage for the SCExAO bench, made of square section aluminum tube and brackets purchased online. The project website already features some pictures of the cage, but the drawings were old-school (i.e. pen and paper). Don't get me wrong: I am perfectly happy with "old-school" and actually enjoy very much drawing myself (my notebooks are covered with sketches and drawings), but unlike electronic files, these are not easy to share or modify...

I have been fiddling with Google SketchUp for a little while now. It's a pretty fun piece of software that even if not OpenSource (yet?) is free, does wonders and works great on my Mac. The lack of an electronic file describing the cage was therefore just the perfect excuse to play with it. The file is available for download right here.