DAS  3.1.6 - 18/09/2017
DAS Data Acquisition System

Introduction

The DAS application was developed for the complete management of the SPATRAM Spectrometer.
Nevertheless DAS can control some similar DOAS Spectrometer, namely:

Moreover DAS can handle the MIGE (Multiple Input Geometry Equipment) : the optical device allowing for the measurements of scattered radiation along directions different from the zenith one.

The DAS MAIN Graphic User Interface allows for the monitoring and the control of the status of the equipment (OMU, ECU, CCD Sensor, temperatures, stepper motors activity, data back-up, MIGE device (optional) etc). DAS lets the operator to perform measurements and it is also possible make measurements in Automatic and Unattended Mode by means of ASCII files (with extension .PRG) containing keywords recognized by DAS (PRG Commands).

DAS can also be used in a PC not connected to the instrument in order to:

More detail can be found in the Execution modes section
The software is implemented in ANSI C standard with the support of the multi-platform MGUI (Morello Graphic User Interface) library.
The multiplatform features allows the program to run on computers equipped with Win9x, Win2000, WinXp. The compatibility with Vista/Windows7 (32 & 64) and Linux OSs has to be tested

The code is compiled with the Microsoft Visual C++ 6.0.

The CCD sensor is managed with the dclrefman

The stepper motors, providing for the positioning of the mechanical and optics devices, are handled by the AMS2 (Advanced Micro Stepping) Controller. These lasts interact with the PC trough one serial port by means of the WSC32 Libraries.

The program can be installed with the Automatic Setup or configured by the user. In this last case the Manual Setup has to be applied.

The main fatures of this program are:

DAS User Guide

Introduction
This manual presents and explain the operation modes and use of the DAS program utilized in order to perform the spectral measurements with the different instruments DAS can manage.

"############################################################################"

Before DAS Execution

PC Configuration
In order to have the DAS program full operational, some drivers has to be installed on the PC contained in the ECU of the equipment, namely:

Starting from DAS version 3.1.6, for the instruments equipped with FDL-PCI interface (LIS, TROPOGAS, spatramptechman, GASCODNG1, GASCODNG2, GASCODNG3), the drivers of the CCD Camera nedd to be updated even if already present in the PC.
The more trustfull way to do that need some mechanical operations:

  1. switch off the instrument
  2. remove the FDL-PCI from the PCI slot of the PC
  3. swith on the instrument (let the complete booting of the Operating System)
  4. switch off the instrument
  5. re-install the FDL-PCI
  6. swith on the instrument

Now the OS will ask for the driver of the FDL-PCI and operate as reported in the FDL-PCI section

"############################################################################"

Execution modes

It is possible to execute the program in different modes depending on the arguments furnished to the executable:

  1. Manual –> The user can manage the instrument.
  2. Automatic –> The spectrometer performs a chart of pre-defined measurements.
  3. Automatic timed –> The Spectrometer performs different charts of measurements during the periods specified in the MASTER file.
  4. SZA Driven –> The Spectrometer performs different charts of measurements during the day depending on the range of Solar Zenith Angle Specified in the SZAPRG file
  5. AM PM SZA Driven –> as SZA Driven, but different PRG for AM and PM period can be used.
  6. Demo –> Simulation of almost all the functionality of the equipment in a PC external to the instrument. It is also very usefull for the configuration of the program connected to different version of the hardware.
  7. CCD Testing –> Test only the CCD sensor.
  8. AD Testing –> Test only the AD converter used for the temperature monitoring.
  9. AMS Testing –> In order to test only the adapter devices for the stepper motors.
  10. Off Line Plot –> Allows for the post-visualization of the measured spectral data.
  11. DOAS Mode –> Allows for the off-line processing of the spectral data, for Off Line Plot Visualisation and more (still on going!!!!)
  12. LOG Mode –> Allows for the post-visualization of the log files.

The program can be launched:

First Execution

After the installation the program has to be executed the first time in the Demo mode in order to set the correct parameters for the utilized equipment. If the program is installed with automatic setup you can choose the link DAS Demo in the Program Bar; otherwise a shortcut to the DAS program has to be created with the 'DEMO' argument.
At the first execution (even in demo mode) DAS can encounter some problems, mainly due to the absence of some drivers for the installed device (Before DAS Execution), or for the configuration files not present in the appropriate folders or with wrong format. Please refer to page DAS System Files for a detailed explanation of the file format, possible problems and how to solve them.

"############################################################################"

DAS Graphic User Interfaces

The main features of the DAS gui are presented and explained in detail. The procedures and actions under each widget are shown.
DAS loads GUIs depending on the argument given to the executable DAS.exe leading to different execution modes.
Arguments:

DAS Output Files

the output files created by DAS are:

DAS Programmers Guide

Introduction
The software is implemented in ANSI C standard with the support of the multi-platform MGUI (Morello Graphic User Interface) library. The multiplatform features allows the program to run on computers equipped with Win9x, Win2000, WinXp and in the future also on Linux OS.
The code is compiled with the Microsoft Visual C++ 6.0.
This section will try to present and to explain the programming philosophy and the main functions implemented in the DAS program.

"############################################################################"

Programming Philosopy

At the beginning of this project one of the main problem was the choice of the programming language to be utilized to manage all the devices in the instrument.
After some doubts the ANSI C Standard was chosen mainly because it is an 'open' language, that allows for the complete and clear control of the Operating System used (Windows :-( ), of the devices (as parallel, serial port and PC104 bus).Moreover any kind of function or procedure can be developed and it can be linked with other modules (executables programs) written in other languages.
Another powerful tool of the C language is the use of 'pointers' that allows for the fastest execution of the instructions and the possibility to use 'structures' as collection of variables of different types.

The Graphical User Interface (GUI) library that should be used was the other point of discussion: in fact the GUI of the Visual C/C++ (the windows API - Application Programming Interfaces) are developed only for the windows environment. Since some of the instruments managed by the DAS will be installed in remote sites (Arctic and/or Antarctica), and since Microsoft Windows doesn't ensure a complete stability of working for long periods, it is foreseen that DAS should be translate also for Linux OS. Mainly for this last reason, for the simplicity (even if only apparent) of usage and for the multiplatform feature, the choice fell on the MGUI (Morello Graphic User Interface) library.

The first BETA release of the DAS was a Control Panel displaying the activity of the CCD Camera and the movements of the stepper motors of the instrument. The code implemented code was limited to the basic functions of management of the devices (positioning of the input mirror, of the grating, of the filter wheel and the capabilty of obtaining spectral measurements. The Visual C/C++ IDE (allowing for the identification of the resources of the project) was composed of 10 files (including sources, headers and library files).

After the identification of a possible PHD work to be carried on with this activity, the possibility , thanks to national and international founded project and the perspective to build a "Network" of this equipments, the devloping of the DAS became more important and more functions and tools were implemented.
Some numbers for DAS current release (3.1.6):

DAS Structure

DAS starts with the MGUIMain procedure, performing sequentially several actions as loading and setting of operational parameters namely:

Then the argument is checked in order to set the execution mode (ChkExeMode) and build the appropriate GUI (BuildShell)

Argument Execution Mode GUI Code
MASTER TEMPORIZED DAS MAIN Graphic User Interface RunFULL
SZAPRG SZAMODE DAS MAIN Graphic User Interface RunFULL
'filename'.PRG PRGGFILE DAS MAIN Graphic User Interface RunFULL
'filename'.LOG LOGMODE LOG Mode RunLogMode
OFFLINEPLOT OFFLINEPLOT Off Line Plot RunOLP
HELP HELP
MANUAL DAS MAIN Graphic User Interface RunFULL
DOAS DOASMODE DOAS Mode MDCreateDOAS_MainSh
TESTAMS TESTAMS DAS MAIN Graphic User Interface RunFULL
TESTAD TESTAD DAS MAIN Graphic User Interface RunFULL
TESTCCD TESTCCD DAS MAIN Graphic User Interface RunFULL
DEMO DBDEMO DAS MAIN Graphic User Interface RunFULL

As can be seen from the previous table the RunFULL procedure is the most used one.
In particular for Execution Modes = TEMPORIZED, PRGGFILE, MANUAL, SZAPRG The main actions of RunFULL are:

The LaunchBackTask procedure init the main tasks in background allowing for:

Depending on the executions mode and the presence of the AD Converter the task for

In addition other very important tasks are initiated:

This last task (Task_AutoEx) calls the D_AutoExecution function that depending on the execution modes perform the automatic measurements.
DAS boot correctly if the system files are all present in the specified folders. If the archive are not there or if they contains errors the user is adviced. for a full explanation of what happen when one or more of the system file are missing, please see the DAS System Files page.
In addition, depending on the type of instrument, as well as on the execution modes different windows are shown at the DAS Boot

"############################################################################"

DAS Main Functions

______________________________________________________________________________________
Generated on Mon Sep 18 2017 11:47:26 for DAS - Rel. 3.1.6 - 18/09/2017.