15 #define DASREVDATE "18/09/2017" 370 short DB_BG_lblUP[3];
371 short DB_FG_lblUP[3];
372 short DB_BG_RButt[3];
373 short DB_FG_RButt[3];
389 short DB_BG_lblUP[3];
390 short DB_FG_lblUP[3];
391 short DB_BG_RButt[3];
392 short DB_FG_RButt[3];
401 int dr[256],dg[256],db[256];
686 char news_name[20][4];
687 double newlatitude[20];
688 double newlongitude[20];
689 double newalititude[20];
761 float Temperature[16];
810 #define SPATRAMPLUS 3 827 #define MAX_PELTPOW 1000 828 #define LIM_PELTPOW 1000 837 #define LISTEMP_TASK_TIME 30000l 838 #define LOG_TASK_TIME 60000l 839 #define TIMER_TASK_TIME 200l 840 #define CCDTEMP_TASK_TIME 500l 841 #define REFRESHTEMP_TASK_TIME 900l 842 #define AMSH_TASK_TIME 5l 843 #define AUTOEX_TASK_TIME 50l 844 #define GRAT_TASK_TIME 250 845 #define WDT_TASK_TIME 5000 895 #define SETCCDTEMP 41 896 #define SETCCDVBIN 42 901 #define SETCCDOFFS 47 903 #define H_GRAT_CAL 49 905 #define ALMUCANTAR 51 952 #define CHECKDGR 10000 953 #define SCHEDHGRAT 500 978 #define OFFLINEPLOT 3 986 #define SZAMASTERM 11 988 #define TESTSZAMODE 13 1014 #define NOVA6612G2 1 1015 #define NOVA945GSE 2
MOBJECT tbrb
Table Object for rbuttons.
stepm StepM
Stepper motors parameters structure.
MOBJECT edtDSZA
edit box for delta SZA
gui Gui
Graphic User Interface Structure.
struct controlpanel controlpanel
DAS control panel main structure.
float minsza
Minimum SZA of measurements.
int AUTOEX
Automatic Execution ID.
int Pos
Filter Wheel current Position.
shells Shells
Shells structure.
MOBJECT edmaxlvlar
edit object maximum level for autoranging
adtester ADTester
AD converter tester.
unsigned long * PLColor[]
struct dftp dftp
structure for FTP setting
optionini DOption
Options for DAS execution.
int extlamp
0 = external lamp OFF; 1 = external lamp ON
Status of the ND Filter wheel .
int savingmode
Flag to set saving mode: 0=ASCII, 1=Binary.
double alititude
Station altitude.
double target
Azimuth Targrt position.
Structure for Horizontal Measurements .
int plblf
PASSIVE labels fonts.
int NAMS
Number of AMSs Devices.
MOBJECT Albl_sunr
Active Control Panel Labels for Sunrise.
int llblf
Lamps Labels fonts.
MOBJECT Sh_Wl
Wavelength Shell.
int Dir
Grating Direction.
double Dailymaxsza
Daily maximum SZA.
int TRType
Type of thermo regulation (0=TRTCOOL, 1 = TRTHEAT, 2= TRTBOTH)
MOBJECT LedQJ
Control Panel Led for QJ Lamp.
double LastMSZA
SZA of the previous measurement.
struct GratingSt GratingSt
Status of the Grating .
Stepper motors parameters structure .
int PCPower
Power to the Peltier for Cooling.
int gratposmode
Grating position mode flag: = 0 step mode; = 1 Wl mode.
int Wl
Flag for the units on the X scale plot.
int SM_A
Motor A (su Y11) respectively: ID=0->InputMirror,ID=1->FilterWheel,ID=2->Zenith.
MOBJECT TbFrmSM
Tab form for Stepper Motors.
MOBJECT lblStatus
label for STATUS
int plotW
Flag for the plot display.
int sza
= 1 -> perform measurements; = 0 -> waiting mode
Push buttons . Push buttons for keyboard, Wavelength, mirror, filters.
das structure (contain all the previous structures) .
int VMRsf
ViewModifyReloadsystemfile: 0 = ViewModify, 1 = Reload.
struct mige mige
structure for MIGE Dwvice .
MOBJECT Sh_Mir
Mirror Shell.
MOBJECT lbl_mvgratmode
Active Control Panel Labels for Sunset.
Control Panel and push buttons colors .
double latitude
Station latitude.
int REINITCCD
Flag for CCD re-Initialization: =0 - wait for countdown, =1 - Ready for re-init camera.
struct shells shells
DAS shells structure The structures for building the main shells defined in the program.
short OMU_TempReached
OMU presetted temperature reached -> = 1.
Options for DAS execution (in option.ini file) .
int Pos
Mirror Current Position.
flag Flag
Structure for different flags.
MOBJECT Sh_Main
Main shell for control panel.
MOBJECT tbavg
table for avg section
int darkremove
Flag to set Dark Removal from measurements; motors0 = No Dark Removal, 1 = Dark Removal.
structure for FTP setting
int filtertype
type of installed filter module: 0=Simple-SM3, 1=Double-SM3+SM4, 2=simpleplus-SM3+TM) ...
MOBJECT Sh_Home
Home Shell.
MOBJECT WDT_edt
edit Mobject for Watch-Dog elapsed time
unsigned short DigOut
Digital Output.
int SimShell
= 1 Simultaneous positioning Shell opened
DAS gui (DAS graphical user interface) structure .
LOG file and time structure.
struct master master
master structure .
MOBJECT Sh_mg
Password Shell.
MOBJECT Sh_KeyB
Keyboard Shell.
double target
Zenith target position.
geographical coordinate structure .
int PrgNumInM
Actual number of PRG File in current MASTER or MASTERSZA File.
int avgautor
autoranging for averaged measurement, 0 = NO AutoR before average; 1 = AutoR before average; ...
structure for deltaSZA Measurements .
int target
Mirror Target position.
struct FilterWheelSt FilterWheelSt
Status of the Filter wheel .
palette * ppalette
Control Panel and push buttons colors.
struct das das
das structure (contain all the previous structures) .
int klbdf
Capital Labels DW fonts.
Structure containing the previous defined structures defined for the spectrometers devices ...
float CoolPT
Previous Temperature (DTA -> DC_CoolPT)
struct ZenithSt ZenithSt
Status of the Zenith .
MOBJECT Albl_suns
Active Control Panel Labels for Sunset.
int Pos
Filter Wheel current Position.
int GRATHOME
Home for Grating ID.
d_geo DGeo
struct for Station location
MOBJECT Albl_Azim
Active Control Panel Labels for Sun Azimuth.
MOBJECT edid
edit for FTP server user
undopal * pundopal
UNDO Control Panel and push buttons colors.
int slblf
status Label fonts
dpwd Dpwd
password structure
float CoolTT
Target Temperature (DTA -> DC_CoolTT)
int exec
= 0 -> PRG Execution Paused; = 1 -> PRG Execution Resumed
int Wl
Grating Wavelength.
horizmeas HorizMeas
Structure for Horizontal Measurements.
int hlinebefore
Number of HiddenLines before the central line in Plot.
tools Tools
Push buttons for various tools.
MOBJECT lbl_Time
Control Panel Labels for Time.
int timezone
Station timezone.
int dtlbf
date/time Label fonts
long dp
Grating backslash recovery steps.
MOBJECT shell
Horizontal measurements shell.
float CCDTemp
Actual CCD Temperature.
int ADTempTest
= 0 -> AD Converter results on the Control Panel; = 1 -> AD Converter Testing Phase(results on the co...
int Dir
Filter Wheel Direction.
int CCDTEMP
CCD Temperature ID.
struct undopal undopal
UNDO Control Panel and push buttons colors .
int avgmode
Flag to set Averaging mode: 0 = Repeat measurements for fixed number, 1 = Repeat measurements for fix...
mtcl * mtcl
MGUI true color structure.
Control Panel and push buttons fonts .
double Dailyminsza
Daily minimum SZA.
int PHPower
Power to the Peltier for Heating.
MOBJECT edServerFTP
edit for FTP server address
int REFRTEMP
REFRESH Temperature ID.
MOBJECT Albl_Script
Active Control Panel Labels for Script in execution.
MOBJECT Sh_Fil
Filter Shell.
int ReachTemp
CCD Temperature Reached.
int VBin
CCD Vertical Binning.
int PID_On
PID activation.
paramini structure . It contains some of the parameters defined in the file PARAM.INI .
int CoolPw
CCD Init Power.
MirrorSt MiSt
Status Input Mirror.
DAS shells structure The structures for building the main shells defined in the program.
float * Temptemp
Buffer for lis temperature.
int UPS_Battery
flag for UPS Battery: = 0 Normal Operation, 1 = working on UPS battery
id's for different tasks .
structure for MIGE Dwvice .
struct omuthr omuthr
OMU Thermoregulation structure .
double MaxSZA
Maximum SZA.
#define AMSMAX
Max AMSs number.
undopal Undopal
UNDO Control Panel and push buttons colors.
int emshutter
Presence of the CCD Shutter, emshutter = 1 –> Shutter IS Installed, = 0 –> Shutter NOT Installed...
int DeltaSZA
= 1 Delta SZA measurements activated, = 0 Continous measurements
float CoolTmp
Temporary temperature.
mtcl MtCl
MGUI true color structure.
sd_status SD_Status
Spectrometer Devices Status (FW, Grating, Mirror Zenith Azimuth.
int plotYRange
0 –> full range; 1 –> min/max
int resetFreq
frequency of DAS/Windows Reset
MOBJECT edtDASReset
edit box for DAS Reset
struct dfont dfont
Control Panel and push buttons fonts .
MOBJECT Sh_NDFil
ND Filter Shell.
int ADPC104
0 –> Device PC104 exist, 1 –> PC104 DOESN'T exist
pushbutt PushButt
Push buttons.
dftp Dftp
Structure for FTP setting.
struct pushbutt pushbutt
Push buttons . Push buttons for keyboard, Wavelength, mirror, filters.
int backlashrec
flag for backlash recovery: =0 perform backlash rec.; = 1 DO NOT perform backlash rec...
struct dpwd dpwd
System password structure .
struct sd_status sd_status
Structure containing the previous defined structures defined for the spectrometers devices ...
struct AzimuthSt AzimuthSt
Status of the Azimuth .
int amsprogbar
display/hide prograssion bar, 0 = Hide, 1 = display
int WindowsReboot
Flag that became 1 when Windows reboot is setted (SetWinowsReset)
ZenithSt ZeSt
Status Zenith.
AzimuthSt AzSt
Status Azimuth.
struct dlog dlog
LOG file and time structure.
int hlineafter
Number of HiddenLines after the central line in Plot.
int nitem
Number of items of the GeoDB.ini.
struct MirrorSt MirrorSt
Status of the Mirror .
int alblf
ACTIVE Label fonts.
struct NDFilterWheelSt NDFilterWheelSt
Status of the ND Filter wheel .
MOBJECT listReset
list for reset frequency
struct stepm stepm
Stepper motors parameters structure .
int ftpstatus
0 = FTP Back-UP Not executed; 1 = FTP Back-UP executed;
configpanel ConfigPanel
Configuration panel structure.
MOBJECT Albl_Status
Active Control Panel Labels for Status.
MOBJECT Sh_SimPos
Simultaneous Positioning Shell.
int Dir
Filter Wheel Direction.
int SM_B
Motor B (su Y12) respectively: ID=0->Grating,ID=1->Not Connected,ID=2->Azimuth.
int LISTEMP
Lis Temperature ID.
GratingSt GrSt
Status Grating.
MOBJECT lblReset
label for reset frequency
FilterWheelSt FWSt
Status Filter Wheel.
int pixcorr
Flag to set defective pixel correction: 0=NOT Corrected, 1=Corrected.
int fileprg
Flag indicating the execution of a PRG file: = 0 –> No PRG File; = 1 –> PRG file in execution...
MOBJECT ShellConfig
Shell configuration panel.
controlpanel ContrPanel
Control Panel Structure.
int ftpbackup
Flag to set back up: 0 = NO FTP Back-UP; 1 = Perform FTP Back-UP.
DAS control panel main structure.
int target
Filter target Position.
float CoolAT
Actual Temperature (DTA -> DC_Temp)
int imgtype
Flag to set Image type: 0=MONOINT, 1=RGB.
int PrgNumExe
number of PRG file in execution
int flagnewstation
New Station Flag.
long * AVGmat
buffer for averaging measurements
struct optionini optionini
Options for DAS execution (in option.ini file) .
double longitude
Station longitude.
dsza SZADelta
delta SZA structure (for measurements at fixed SZA)
int target
Filter target Position.
int measmode
measuring mode: 0 = Single; 1 = Averaged
struct adtester adtester
structure for AD Tester
Configuration panel structure .
struct color color
colors structure .
float maxsza
Maximun SZA of Measurements.
int manhormeas
1 = horizontal measurements in manual mode
struct ids ids
id's for different tasks .
struct dsza dsza
structure for deltaSZA Measurements .
double NextSZA
SZA of the Next measurement.
int ioadd
NOVA I/O Port Address (220h,240h,260h) For NOVA7892.
int ExeDSZA
= 1 the measurements are performed, = 0 waiting for the next deltasza.
double maxtexp
Maximum exposure time (used in Autorange())
int aaopmode
operation mode for the Alt Az Platform, 0 = solar Traxker; 1 = Anti-Solar Tracker; 2 = Free Positioni...
struct paramini paramini
paramini structure . It contains some of the parameters defined in the file PARAM.INI .
MOBJECT Sh_PWD
Password Shell.
int smposmode
positioning mode for stepper , 0 = sequential mode; 1 = simoultaneous mode
struct configpanel configpanel
Configuration panel structure .
int filename
Flag to set file name mode 0=Free choice, 1 = Automatic.
MOBJECT Albl_Elev
Active Control Panel Labels for Sun Elevation.
long Pos
Grating Position.
palette Palette
Control Panel and push buttons colors.
MOBJECT edpwd
edit for FTP server pwd
struct nova nova
NOVA7892 structure .
int EqType
Spectrometer Type.
int Dir
Azimuth Direction.
struct palette palette
Control Panel and push buttons colors .
unsigned char DigIn
Digital Input.
struct d_geo d_geo
geographical coordinate structure .
struct gui gui
DAS gui (DAS graphical user interface) structure .
double Pos
Azimuth Current Position.
struct horizmeas horizmeas
Structure for Horizontal Measurements .
int darksource
Flag to set Dark source: 0 = Blind Pixels, 1 = Full Frame.
int resetEnabled
DAS/Windows reset option (1 = Enabled; 0 = disabled)
int refertemp
Flag to set the reference temp for thermo-regulation: 0 = AVGPINT; 1 = OPTIC; 2 = GRATING...
int type
type of NOVA monoboard used (7892 or 945GSE)
int resetType
type of period for DAS Reset: 0=Hours, 1=Days
int stepgratenc
step to the grating mode: = 0 typed steps sent to the stepper; = 1 typed step are parametrized ...
MOBJECT lblCorrPixF
label for name file used for defec pix correction
int DispBlindPix
Display Blind Pix: 0 = NO, 1 = Yes.
struct marconi marconi
Marconi CCD sensor.
double Pos
Zenith Current Position.
MOBJECT LedHG
Control Panel Led for HG Lamp.
Status of the Filter wheel .
MOBJECT pbBrowseCorrPixF
Push button for file selection.
int shuttertype
type of installed shutter: 0 = VS25, 1 = Rotating Shutter, 2 = TorqueMotor
int extshutter
0 = external shutter open; 1 = external shutter closed
System password structure .
MOBJECT Pagedfrm_SM
Pged form for Stepper Motors.
double ITemp
CCD Target Temperature.
unsigned int maxlvlar
maximum level of autoranging (max 65000)
UNDO Control Panel and push buttons colors .
unsigned short WDT_TOUT
WDT timeout.
int AMSPres
AMS Presence: 0 = AMS FOUND; 1 = AMS NOT FOUND.
int exemode
Set the Execution MODE (Execution modes)
double TPelt
OMU Target Temperature.
long target
Grating target Wl.
OMU Thermoregulation structure .
double MinSZA
Minimum SZA.
ids Ids
id's for different tasks
MOBJECT lbltelap
label elapsed time (for WDT)
int klbuf
Capital Labels UP fonts.
int ReachTemp
Target Temperature status.
struct flag flag
Control Flags.
master MasterMode
Structure for master execution mode.
marconi Marconi
CCD Sensor struct.
paramini Paramini
structure for the parameters defined in param.ini configuration file