Coder Social home page Coder Social logo

andor-scmos-examples's Introduction

Andor sCMOS examples

Andor sCMOS (Neo and Zyla) SDK3 examples focused on simplicity and speed. Uses C++14 features, which any modern compiler can handle.

A bonus Python script is included that polls the C++ image.exe for an image, an inefficient yet simple method of checking out what the skys are doing with my auroral-aimed Neo. Yes that could be done with ctypes, pyAndorNeo, etc. but my goal is always simplicity and expediency.

Prereqs

Windows

step 4 is necessary because not all compilers understand how to link the .dll files directly; the .lib act as a shim to the .dll.

  1. Install Cmake (the .msi file) and MinGW compilers

  2. clone this repository

  3. install Andor SDK3 for Windows

  4. copy from c:/Program Files/Andor SDK3/ directory into andor-scmos-examples/lib/ the files

     atcorem.lib
     atcore.dll
     atutilitym.lib
     atutility.dll
    
  5. in andor-scmos-examples/lib

    rename atcorem.lib atcore.lib
    rename atutilitym.lib atutility.lib

Linux

I use Andor cameras with Ubuntu 16.04. Other Linux versions would likely work as well. I do NOT expect that Windows Subsystem for Linux would work, but have not tried it.

  1. prereqs
    apt install cmake make g++
  2. clone this repository
  3. install Andor SDK3 for Linux

Compile Andor sCMOS example programs

from the andor-cmos-examples directory

cd bin

cmake ..   # mac, linux
cmake -G "MinGW Makefiles" ..   # windows

cmake --build .

If you don't have a camera, the SimCam will be used.

Example programs

List all connected Andor Neo

./listdevices

It will always show two Simcams in addition to any physical cameras you have. Keep this number to use in the "image' program or else you could default to the wrong device or sim-device

Acquire a single image

./image -?

with Simcam it saves image.bmp with a test pattern of bar gradients. With the real camera it stores a dynamic-range compression 8-bit bitmap .bmp image.

I have hard-coded 4x4 binning for my work--feel free to make it a command-line option. I have also hard-coded on the Spurious Noise Filter and Static Blemish Correction.

More useful examples are in the Andor sCMOS SDK 3 user manual.

andor-scmos-examples's People

Contributors

abolger avatar rcengineering avatar scivision avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

andor-scmos-examples's Issues

Error on building

error: cast from 'unsigned char*' to 'long unsigned int' loses precision [-fpermissive]
long>(AcqBuffers[i% NumberOfBuffers]) + 7) & ~7);
^
mingw32-make.exe[2]: *** [CMakeFiles\imgcam.dir\build.make:82: CMakeFiles/imgcam.dir/image/main.cpp.obj] Error 1
mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:187: CMakeFiles/imgcam.dir/all] Error 2
mingw32-make.exe: *** [Makefile:102: all] Error 2

HI get the above error while building i was hoping if you had any insight as how to fix my programing skills are still juvenile thus

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.