Skip to content

The SPARC4 Camera Control System (S4CCS) is a software develped using the graphical programming language LabVIEW to control the scientific cameras of the SPARC4 instrument

License

Notifications You must be signed in to change notification settings

DBernardes/S4CCS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LabVIEW Windows GitHub license DOI Maintenance

SPARC4 Camera Control System

The Simultaneous Polarimeter and Rapid Camera in Four Bands (SPARC4) is a new astronomical instrument developed by Instituto Nacional de Pesquisas Espaciais (INPE), in collaboration with Laboratório Nacional de Astrofísica (LNA), that is currently installed on the Perkin-Elmer 1.6 m telescope of Picos dos Dias Observatory (in Portuguese, OPD). SPARC4 was developed to allow simultaneous photometric and polarimetric acquisitions in the g, r, i and, z bands of the Sloan Digital Sky Survey (SDSS). The data acquisition is done using four Electron Multplying CCD cameras, one for each optical band of the instrument, produced by Oxford Instruments. The control of SPARC4 is done by a set of dedicated softwares. These softwares are the Camera Control System (S4CCS), the Instrument Control System, and the Graphical User Interface (S4GUI). S4CCs is responsible for controlling the scientific cameras of the instrument. S4ICS controls its moving mechanisms. S4GUI is an user interface the coordinates all the sub-systems of SPARC4.

For the development of S4CCS, the graphical programming language Laboratory Virtual Instrument Engineering Workbench (LabVIEW) 2018 was used together with the Software Development Kit (SDK) made available by the Oxford Instruments for the communication with the cameras. The data acquired by the cameras are saved in Flexible Image Transport System (FITS) files, created using python scripts. These scripts are run using an integrated library of LabVIEW for running Python interpreters. With the current version of S4CCS, it is possible to acquire a series of 1400 images of 1024 x 1024 pixels, with an overhead of 1.7 ms between images. Besides, it is possible to acquire several series of 1400 images, with an overhead of 120 ms between series.

Getting Started

These instructions will get you a copy of the .exe of S4CCS on your local machine for testing purposes.

Prerequisites

S4CCS uses a Python 3.6 (32-bits) interpreter to run the scripts responsible for saving the FITS files. This is the most recent version of Python supported by LabVIEW 2018. It should be downloaded and installed on your local machine. After that, some python dependencies mustbe installed too. For that, run the following command:

pip install dataclasses astropy numpy pandas

Installing S4CCS

  1. Download and extract the S4CCS .zip file found in this link.
  2. Inside the extracted folder, there is a file name acs_config_TEMPLARE. This file has the configuration that S4CCS needs to run and it must be placed in the path C:\Users\<user_name>\SPARC4\CCS\acs_config.cfg (without the _TEMPLATE string).
  3. Running the executable S4CCS.exe, an interface will show up. It should be similar to the image presented below. In this interface, set the use config file buttom in the most top panel to NO. This will set S4CCS to use the information presented in the Init configuration panel to initialize.
  4. Configure the Init configuration panel according to your local environment. Table presented in this link presents a description of the parameters cotained in this panel.
  5. After this configuration, you should be able to run the software by pressing the white arrow at the top of the window.

S4CCS front panel

Description of the inital configuration parameters

Parameter Description
Remote IP IP from where S4CCS will receive a query
Channel The current channel of the instrument
CCS mode The mode of S4CCS (real or simulated)
Communication The type of communication that should be used (TCP-IP or ZeroMQ)
Image path The path where the acquired images should be saved

Usage

The control of S4CCS can be done by using ethernet request...

Contributing

  • Do this
  • Do that

Authors and acknowledgment

  • Denis Bernardes (main developer)

    • GitHub LinkedIn Gmail
    • Affiliation: Instituto Nacional de Pesquisas Espaciais (INPE).
    • Address: 1758 Astronautas Avenue, Jardim da Granja, São José dos Campos, São Paulo, Brazil.
  • Claudia Vilega Rodrigues (supervisor)

    • Affiliation: Instituto Nacional de Pesquisas Espaciais (INPE).
    • Address: 1758 Astronautas Avenue, Jardim da Granja, São José dos Campos, São Paulo, Brazil.
  • Eder Martioli (supervisor)

    • Affiliation: Laboratório Nacional de Astrofísica (LNA).
    • Address: 154 Estados Unidos Street, Nações, Itajubá, Minas Gerais, Brazil.
  • Luciano Fraga (supervisor)

    • Affiliation: Laboratório Nacional de Astrofísica (LNA).
    • Address: 154 Estados Unidos Street, Nações, Itajubá, Minas Gerais, Brazil.
  • Orlando Verducci Júnior (contributor)

    • Affiliation: Laboratório Nacional de Astrofísica (LNA).
    • Address: 154 Estados Unidos Street, Nações, Itajubá, Minas Gerais, Brazil.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

The SPARC4 Camera Control System (S4CCS) is a software develped using the graphical programming language LabVIEW to control the scientific cameras of the SPARC4 instrument

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published