DAS
3.1.6 - 18/09/2017
|
DAS main file. More...
#include <windows.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <winioctl.h>
#include <direct.h>
#include <io.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "mgui.h"
#include "DAS_Spatram.h"
#include "dcl.h"
#include "dil.h"
#include "dscud.h"
#include "wsc.h"
#include "dxl.h"
#include "solpos.h"
#include "bil.h"
#include "DOAS.h"
#include "nrutil.h"
#include "Marq.h"
#include "portio32.h"
#include "ISMMDLL.h"
#include "wdt.h"
Go to the source code of this file.
Functions | |
void | AMSINI_Err (int c) |
void | BuildMainShell (void) |
void | BuildShell (int emode, char **argum) |
int | ChkConfigInstance (void) |
void | ChkDASInstance (int etype) |
void | ChkExeMode (int mod, char **p) |
int | ChkMaster (int mod) |
int | ChkWinInstance (char *buff, MOBJECT obj) |
int | D_Timing (int id, long tout) |
int | DB_HelpCB (MOBJECT o, void *od, void *ad) |
Help Callback Create the help in the predefined WEB Browser. More... | |
int | DB_InfCB (MOBJECT o, void *od, void *ad) |
Inf Callback Create the Inf shell. More... | |
void | DB_SelButt_CB (MOBJECT obj, MKeyEvent *pe, void *a_data) |
void | DemoInitMotor (void) |
int | ExMaster (int m, int mode) |
int | Fetch () |
Reads the key-word in PRG Files . More... | |
int | InitCCD_AMS (int mod, int emode) |
void | InitColors (void) |
void | InitDefaultOptions (void) |
void | InitFlags (void) |
int | InitTempAD (int mod) |
void | LaunchBackTask (void) |
Launch the DAS Background tasks Common Tasks launched when the DAS MAIN Graphic User Interface is loaded: More... | |
int | LoadAMS (void) |
void | LoadSetDirs (void) |
int | LoadWlstep (void) |
load the file of the wavelength vs steps More... | |
void | ManualModeCB (MOBJECT p, void *od, void *ad) |
void | MDCreateSplashExe () |
void | MDCreateWaitShell (void) |
Create a waiting window . More... | |
void | MGUIMain (int argc, char **argv) |
MAIN PROGRAM starting point Actions: . More... | |
void | MGUIQuitCB (MOBJECT shell, void *od, void *ad) |
Exit MGUI Library. Procedure that close MGUI . More... | |
int | NOVA_In (int novatype, unsigned int DigIn) |
Read the NOVA Input port. More... | |
int | NOVA_Out (int novatype, unsigned int out) |
Write the NOVA Output port. More... | |
void | NoWaitCB (MOBJECT p, void *od, void *ad) |
void | NoWaitSplashCB (MOBJECT p, void *od, void *ad) |
int | PRG_Check (int mod, char *prgname) |
int | PRG_ChKBegin (int line, char *fname) |
int | PRG_ChkGrating (int mod, char *filename, int record, int par) |
int | PRG_ChkKeyW (int line, char *fname) |
int | PRG_ChkMeasAvg (int line, char *fname) |
int | PRG_ChkMirror (int mod, char *filename, int record, int par) |
void | RunFULL (void) |
DAS Main LOOP for Equipment management This Procedure is called by the MGUIMain function when the execution mode is: . More... | |
void | RunLogMode (int mod, char *p) |
void | RunOLP (char *fname) |
void | SetScriptUseLabel (int master, char *prgf, int emode, MOBJECT lbl) |
int | SetWorkDirMGUIenv (char *buff) |
set DAS and MGUI enviroment when the program is launched undirectly (for offlineplot or log or auto or autotimed modes) More... | |
void | SZA_FindMin () |
computation of daily minimum SZA More... | |
void | SZA_FirstCalc (void) |
void | TaskWDT (TIMEOUT_ID id, void *data) |
void | WDT_CB (MOBJECT p, void *od, void *ad) |
void | WDT_func (int mod) |
void | WDT_Task_CB (MOBJECT o, void *od, void *ad) |
void | WDTRefresh (void) |
void | WriteShellTitle (MOBJECT o, int eqt) |
Variables | |
long | AbsFilePos |
Absolute File position. More... | |
AzimuthSt | AST |
bil | BIL |
int | BlindPix = 0 |
Number of blind pixels (usefull for Dark Current) More... | |
int | CCD_SetupFlg = 0 |
config | Cfg |
Camera controls & Options. More... | |
int | ContFP = 0 |
Counter for File position. More... | |
unsigned long | countsopsh |
counting the number of opening shutter More... | |
das | DAS |
int | DAS_StartDOY |
int | DAS_StartHour |
ccd | DC_CCD |
CCD settings. More... | |
ptf | DC_HP |
Platform settings. More... | |
int | DeltaTPrec |
const char * | DeviceTypeInput [] = {{"Direct"}, {"TelesExtLamp"}, {"Calib Lamps"}, {"Alt-Az Platf"}, {"Radiometer"}, {"TelesIntLamp"}, {"TelescopeV"}, {""}} |
const char array for the Device type <-> Input association More... | |
d_geo | DGEO |
geographical coordinates structure More... | |
dil | DIL |
dlog | DLOG |
doas | DOAS |
palette | DPAL |
dpwd | DPWD |
Danbo Passw. More... | |
DSCB | dscb |
DSCCB | dsccb |
int | ExeREM = 1 |
master | ExMast [PRGMAXNUM] |
char * | Fil_Code [] = {{"NULL"}, {"UG11"}, {"UG1 "}, {"BG12"}, {"BG25"}, {"H475"}} |
const char array for the realisation of the Filters buttons in the Filter shell More... | |
char * | Fil_Code8H [] = {{"NULL"}, {"UG5"}, {"UG11"}, {"BG23"}, {"NULL"}, {"NULL"}, {"LPAS"}, {"NULL"}} |
const char array for the realisation of the Filters buttons in the Filter shell More... | |
char * | Fil_CodeNG [] = {{"NULL"}, {"B12 "}, {"B12F"}, {"B39 "}, {"B39F"}, {"UG5 "}} |
const char array for the realisation of the Filters buttons in the Filter shell for GASCODNG2 and NG3 instruments More... | |
char * | Fil_CodeNG1 [] = {{"NULL"}, {"B12 "}, {"S400"}, {"B39 "}, {"S500"}, {"UG5 "}} |
const char array for the realisation of the Filters buttons in the Filter shell for GASCODNG1 instrument More... | |
char * | Fil_CodeTropo [] = {{"NULL"}, {"BG28"}, {"UG11"}, {"BG12"}, {"BG23"}, {"HPas"}} |
const char array for the realisation of the Filters buttons in the Filter shell for TROPOGAS instrument More... | |
int | FirstTime = 1 |
int | FlgSM_Stop = 1 |
Steppers Motor Activity: 0 = Motors moving; 1 = Motors stopped. More... | |
FilterWheelSt | FWS |
Filter Wheel. More... | |
GratingSt | GRS |
Grating. More... | |
char * | HomePosition [] = {{"H_Mir"}, {"H_Grat"}, {"H_Filt"}, {"H_NDFilt"}, {"H_Zen"}, {"H_Azi"}, {"Close"}} |
const char array for the realisation of the Filters buttons in the ND Filter shell More... | |
ids | IDS |
ID tasks. More... | |
int | IDX |
Number of sensible horizontal pixels. More... | |
int | IDY |
Number of sensible vertical pixels. More... | |
int | Incr_Read_Temp =0 |
const char * | KeyCode [] |
unsigned int | LevelDefPix = 100 |
int | MainCommand =0 |
Command switch in main loop. More... | |
int | Master = 0 |
unsigned int * | mattempbuff |
const char * | Mir_Code [] = {{"Zenith "}, {"HorizDX"}, {"Calibra"}, {"HorizSX"}, {""}, {""}, {""}, {""}} |
const char array for the realisation of the Mirrors buttons in the Mirror shell More... | |
const char * | Mir_CodeTropo [] = {{"Calibra "}, {"HorizDX"}, {"NULL "}, {"HorizSX"}, {""}, {""}, {""}, {""}} |
const char array for the realisation of the Mirrors buttons in the Mirror shell for TROPOGAS More... | |
MirrorSt | MIS |
Mirror. More... | |
int | Mode |
mtcl | MTCL |
MTColor. More... | |
int | N_AVG = 25 |
Number of measurements for Averaging mode in fixed number of meas. mode. More... | |
int | N_RM = 0 |
Number of measurements for Averaging mode in fixed exposure time mode. More... | |
char * | NDFil_Code [] = {{"NULL"}, {"ND1"}, {"ND2"}, {"ND3"}, {"ND4"}, {"H645"}} |
const char array for the realisation of the Filters buttons in the ND Filter shell More... | |
NDFilterWheelSt | NDFWS |
ND Filter Wheel. More... | |
nova | NOVA |
int | nowait = 1 |
int | nowaitsplash = 1 |
omutemp | OMUTEMP |
structure for OMU temperatures More... | |
omuthr | OMUTHR |
int | on = 0 |
PRG execution control variabile. More... | |
int | ON_OFFLINEPLOT = 0 |
int | PaletteMode |
unsigned long * | PLColor [] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} |
long | PrgCnt |
Counter for the position in the PRG file. More... | |
char | PrgFile [_MAX_PATH] |
Name of the PRG file. More... | |
int | PrgNum = 0 |
int | PrgNumExe = 0 |
number of PRG file in execution More... | |
int | PrgNumInM = 0 |
Actual number of PRG File in current MASTER or MASTERSZA File. More... | |
long | PrgSiz |
Size of the PRG file. More... | |
char * | Program |
buffer for the PRG file More... | |
long | REL_FILE_POS [51] |
relative File position More... | |
int | Server = 0 |
stepm | STEPM |
Stepper Motors. More... | |
dsza | SZADelta |
int | SZAMax = 100 |
Maximum SZA for performing measurements. More... | |
double | TExp |
CCD Exposure time. More... | |
tools | TOOLS |
tools structure More... | |
long | Total_Spec |
int | TOTTEXP = 5 |
Total Exposure time in Averaging mode. More... | |
long | wav [] |
Step Number definition - for SD_Grating. More... | |
int | WDT_flagstop |
unsigned char | WDT_Timeout = 100 |
int | wl [] |
WaveLength definition - for SD_Grating. More... | |
int | WlSet |
Wavelength position definition - for SD_Grating. More... | |
ZenithSt | ZST |
DAS main file.
Definition in file DAS_Spat.c.
void AMSINI_Err | ( | int | c | ) |
Definition at line 2573 of file DAS_Spat.c.
References _MAX_PATH, d_fileman::CONFIGDIREQUIPMENT, D_WriteInitLog(), bil::DFILEM, and MMessageDialog().
Referenced by SZA_FirstCalc().
void BuildMainShell | ( | void | ) |
Definition at line 2597 of file DAS_Spat.c.
References DB_SelButt_CB(), EM_KEY_PRESS, das::Gui, MDCreate_CP(), MGetScreenHeight(), MGetScreenWidth(), MObjectAddEventNotifyCallback(), MObjectGetHeight(), MObjectGetWidth(), MShellRealizeXY(), shells::Sh_Main, and gui::Shells.
Referenced by SZA_FirstCalc().
void BuildShell | ( | int | emode, |
char ** | argum | ||
) |
Definition at line 3516 of file DAS_Spat.c.
References DB_HelpCB(), DOASMODE, HELP, LOGMODE, MDCreateDOAS_MainSh(), OFFLINEPLOT, RunFULL(), RunLogMode(), and RunOLP().
Referenced by MGUIMain().
int ChkConfigInstance | ( | void | ) |
Definition at line 2128 of file DAS_Spat.c.
References MMessageDialog().
void ChkDASInstance | ( | int | etype | ) |
Definition at line 2048 of file DAS_Spat.c.
References DASREL, DASREV, DASREVDATE, GASCODNG1, GASCODNG2, GASCODNG3, GASCODNG4, LIS_, MGUITerm(), MMessageDialog(), SPATRAM, SPATRAM2, SPATRAM3, SPATRAMPLUS, and TROPOGAS.
Referenced by SZA_FirstCalc().
void ChkExeMode | ( | int | mod, |
char ** | p | ||
) |
Definition at line 3177 of file DAS_Spat.c.
References _MAX_PATH, DBDEMO, DI_FileExist(), DI_FindDirName(), DI_FindDrive(), DOASMODE, env, flag::exemode, das::Flag, HELP, LOGMODE, MANUAL, Master, MDCreateSplashExe(), MGetCurrentDirectory(), MGUITerm(), MMessageDialog(), OFFLINEPLOT, PRG_Check(), PrgFile, PRGFILE, SetWorkDirMGUIenv(), SZAMASTERM, SZAMODE, TEMPORIZED, TESTAD, TESTAMS, TESTCCD, and TESTSZAMODE.
Referenced by MGUIMain().
int ChkMaster | ( | int | mod | ) |
Definition at line 2730 of file DAS_Spat.c.
References master::eora, GetDateTime(), PrgNumExe, PrgNumInM, S_zenetr, master::sora, time::ti_hour, time::ti_min, and time::ti_sec.
Referenced by D_AutoExecution(), and SZA_FirstCalc().
int ChkWinInstance | ( | char * | buff, |
MOBJECT | obj | ||
) |
Definition at line 2153 of file DAS_Spat.c.
References MShellRaise().
Referenced by DB_KeyB_CB(), and DB_PasWd().
int D_Timing | ( | int | id, |
long | tout | ||
) |
Definition at line 1477 of file DAS_Spat.c.
References gui::ConfigPanel, das::Gui, configpanel::lbltelap, MLoopWhileEvents(), MObjectSetText(), st, WDT_flagstop, and WDT_func().
Referenced by WDT_CB().
int DB_HelpCB | ( | MOBJECT | o, |
void * | od, | ||
void * | ad | ||
) |
Help Callback
Create the help in the predefined WEB Browser.
Definition at line 881 of file DAS_Spat.c.
References _MAX_PATH, bil::DFILEM, DI_FileExist(), and d_fileman::HOMEDIRECTORY.
Referenced by AboutCB(), BuildShell(), HlpTopCB(), and MDCreate_CP().
int DB_InfCB | ( | MOBJECT | o, |
void * | od, | ||
void * | ad | ||
) |
Inf Callback
Create the Inf shell.
Definition at line 915 of file DAS_Spat.c.
References _MAX_PATH, bil::DFILEM, DI_FileExist(), and d_fileman::HOMEDIRECTORY.
Referenced by MDCreate_CP().
Definition at line 858 of file DAS_Spat.c.
References ESC, MKeyEvent::keycode, on, SPACEBAR, and Status().
Referenced by BuildMainShell().
void DemoInitMotor | ( | void | ) |
Definition at line 1047 of file DAS_Spat.c.
References controlpanel::Albl_LS, optionini::amsprogbar, gui::ContrPanel, D_Positioning(), D_VRange(), das::DOption, paramini::EqType, GASCODNG1, GASCODNG2, GASCODNG3, GASCODNG4, das::Gui, controlpanel::LedSM, mige::linked, LookforWl_X(), das::MIGE, Mir_Code, Mir_CodeTropo, MObjectSetText(), MPixmapSetImageFile(), das::Paramini, FilterWheelSt::Pos, MirrorSt::Pos, ZenithSt::Pos, AzimuthSt::Pos, SPATRAM2, SPATRAM3, SPATRAMPLUS, st, Status(), TROPOGAS, and GratingSt::Wl.
Referenced by InitCCD_AMS().
int ExMaster | ( | int | m, |
int | mode | ||
) |
Definition at line 739 of file DAS_Spat.c.
References delay(), bil::DFILEM, d_fileman::HOMEDIRECTORY, MMessageDialog(), master::prg, PRG_Check(), PRGMAXNUM, PrgNumInM, ReadLine(), SaveCnt, Status(), SZAMASTERM, SZAMODE, TEMPORIZED, and TESTSZAMODE.
Referenced by SZA_FirstCalc().
int Fetch | ( | void | ) |
Reads the key-word in PRG Files
.
Definition at line 298 of file DAS_Spat.c.
References KeyCode, PrgCnt, and Program.
Referenced by D_AutoExecution(), and PRG_Check().
int InitCCD_AMS | ( | int | mod, |
int | emode | ||
) |
Definition at line 1793 of file DAS_Spat.c.
References flag::AMSPres, CCD_Error(), D_WriteInitLog(), DB_InitCamera(), DB_InitMotor(), DB_KB_ButtonActive(), DBDEMO, DC_ErrorMessage(), delay(), DemoInitMotor(), FLAG, GASCODNG1, GASCODNG2, GASCODNG3, GASCODNG4, das::Gui, HiresPS(), LIS_, LoadDB_DispCoeff(), MANUAL, MDCreateWaitShell(), MShellRaise(), das::Nova, NOVA7892, NOVA945GSE, NOVA_Out(), PeltierPS(), PRGFILE, shells::Sh_Main, gui::Shells, ShutterOpening(), SPATRAM, SPATRAM2, SPATRAM3, SPATRAMPLUS, Status(), SZAMASTERM, SZAMODE, TEMPORIZED, TESTAMS, TESTSZAMODE, TROPOGAS, and nova::type.
Referenced by SZA_FirstCalc().
void InitColors | ( | void | ) |
Definition at line 3371 of file DAS_Spat.c.
References mtcl::black, dil::Cfg, bil::DPLOT, d_view::DrawBG, MAllocColor(), MGetNColors(), MPaletteMode(), cfg::NColors, PaletteMode, mtcl::PLColor, and mtcl::white.
Referenced by MGUIMain().
void InitDefaultOptions | ( | void | ) |
Definition at line 3448 of file DAS_Spat.c.
References optionini::avgmode, optionini::darkremove, optionini::darksource, flag::DeltaSZA, das::DOption, flag::ExeDSZA, optionini::filename, FLAG, das::Flag, optionini::ftpbackup, optionini::hlineafter, optionini::hlinebefore, optionini::imgtype, optionini::pixcorr, flag::plotW, flag::plotYRange, optionini::resetFreq, optionini::resetType, optionini::savingmode, flag::settempvar, flag::WindowsReboot, and flag::Wl.
void InitFlags | ( | void | ) |
Definition at line 952 of file DAS_Spat.c.
References stepm::Addr, flag::ADPC104, flag::ADTempTest, ADTESTER, AMS1, AMS2, AMS3, flag::AMS_H, optionini::amsprogbar, bil::BLENS, omuthr::CoolCnt, nova::DigIn, nova::DigOut, MirrorSt::Dir, das::DOption, GratingSt::dp, flag::exec, flag::extlamp, flag::extshutter, doas::FFTFilter, flag::fileprg, FLAG, das::Flag, tools::FlagDisplay, tools::FlagFilter, tools::FlagShutter, tools::FlagSpikes, dpwd::FlgSh_PWD, flag::manhormeas, das::Marconi, das::Nova, MirrorSt::Off, marconi::Offset, flag::OMU_TempReached, adtester::OutputMode, omuthr::PID_kd, omuthr::PID_ki, omuthr::PID_kp, omuthr::PID_On, blens::Pix, MirrorSt::Pos, ZenithSt::Pos, PrgFile, marconi::ReachTemp, optionini::resetEnabled, optionini::resetFreq, optionini::resetType, flag::settemp070, flag::settemp7080, flag::settemp8095, stepm::SM_A, stepm::SM_B, das::StepM, flag::sza, das::Tools, flag::UPS_Battery, flag::VMRsf, nova::WDT_TOUT, and flag::WindowsReboot.
Referenced by MGUIMain().
int InitTempAD | ( | int | mod | ) |
Definition at line 2681 of file DAS_Spat.c.
References AllocFloatMat(), omuthr::CoolPT, D_InitPC104(), D_WriteInitLog(), DB_Pause(), MANUAL, das::Paramini, PRGFILE, SZAMASTERM, SZAMODE, TEMPORIZED, omuthr::Temptemp, TESTAD, paramini::TPelt, and WinRes().
Referenced by SZA_FirstCalc().
void LaunchBackTask | ( | void | ) |
Launch the DAS Background tasks Common Tasks launched when the DAS MAIN Graphic User Interface is loaded:
Tasks depending on the Execution Modes:
Definition at line 2624 of file DAS_Spat.c.
References flag::ADPC104, flag::ADTempTest, ids::AUTOEX, AUTOEX_TASK_TIME, ids::CCDTEMP, CCDTEMP_TASK_TIME, flag::exemode, FLAG, das::Flag, GRAT_TASK_TIME, ids::GRATHOME, ids::LISTEMP, LISTEMP_TASK_TIME, ids::LOG, LOG_TASK_TIME, MANUAL, MRefreshTimeout(), PRGFILE, REFRESHTEMP_TASK_TIME, ids::REFRTEMP, SZAMASTERM, SZAMODE, Task_AutoEx(), Task_CCD_Temp(), Task_HomeGrat(), Task_LIS_Temp(), Task_LOG(), Task_REFRESH_Temp(), Task_Timer(), TEMPORIZED, TESTAD, TESTCCD, TESTSZAMODE, ids::TIMER, and TIMER_TASK_TIME.
Referenced by SZA_FirstCalc().
int LoadAMS | ( | void | ) |
Definition at line 1201 of file DAS_Spat.c.
References _MAX_PATH, d_fileman::CONFIGDIREQUIPMENT, bil::DFILEM, FlushLine(), stepm::hometype, stepm::multiplier, stepm::NAMS, paramini::Offset, das::Paramini, stepm::power, ReadLine(), stepm::slope, stepm::speed, stepm::step, and das::StepM.
Referenced by SZA_FirstCalc().
void LoadSetDirs | ( | void | ) |
Definition at line 3384 of file DAS_Spat.c.
References _MAX_PATH, d_fileman::CONFIGDIRCOMMON, DAS_Message(), d_fileman::DATADIRECTORY, bil::DFILEM, DI_PathExist(), d_fileman::DIRDCL, d_fileman::HOMEDIRECTORY, and d_fileman::LOGDIR.
Referenced by MGUIMain().
int LoadWlstep | ( | void | ) |
load the file of the wavelength vs steps
Definition at line 258 of file DAS_Spat.c.
References _MAX_PATH, d_fileman::CONFIGDIREQUIPMENT, bil::DFILEM, FlushLine(), ReadLine(), wav, and wl.
Referenced by MGUIMain().
void ManualModeCB | ( | MOBJECT | p, |
void * | od, | ||
void * | ad | ||
) |
Definition at line 2224 of file DAS_Spat.c.
References flag::exemode, das::Flag, MANUAL, Master, MGUITerm(), MObjectSetBackgroundRGB(), and PrgFile.
Referenced by MDCreateSplashExe().
void MDCreateSplashExe | ( | ) |
Definition at line 2267 of file DAS_Spat.c.
References BOTTOM_ALIGN, CENTER_ALIGN, palette::DB_BG, palette::DB_BG_Albl, palette::DB_FG_Plbl, paramini::EqType, flag::exemode, False, das::Flag, GASCODNG1, HELV_LARGE, HELV_MEDIUM, lbl, MANUAL, ManualModeCB(), MCreateColForm(), MCreateLabel(), MCreatePButton(), MCreatePixmapFromFile(), MCreateRowForm(), MCreateShell(), MLoopWhileEvents(), MObjectAlign(), MObjectSetBackgroundRGB(), MObjectSetCompositeHeight(), MObjectSetCompositeWidth(), MObjectSetForegroundRGB(), MObjectSetResize(), MObjectSetShadow(), MObjectSetText(), MObjectSetTransparency(), MPButtonSetCallback(), MShellDestroy(), MShellRealize(), MShellUnrealize(), das::Nova, NOVA_Out(), nowaitsplash, NoWaitSplashCB(), das::Paramini, SF_MODAL, st, TOP_ALIGN, True, nova::type, WS_ETCHED_IN, WS_NONE, and WS_SHADOW_OUT.
Referenced by ChkExeMode().
void MDCreateWaitShell | ( | void | ) |
Create a waiting window .
Definition at line 2408 of file DAS_Spat.c.
References BOTTOM_ALIGN, CENTER_ALIGN, palette::DB_BG, palette::DB_BG_Albl, palette::DB_FG_Plbl, False, HELV_LARGE, HELV_MEDIUM, lbl, MCreateColForm(), MCreateLabel(), MCreatePButton(), MCreatePixmapFromFile(), MCreateRowForm(), MCreateShell(), MLoopWhileEvents(), MObjectAlign(), MObjectSetBackgroundRGB(), MObjectSetCompositeHeight(), MObjectSetCompositeWidth(), MObjectSetForegroundRGB(), MObjectSetResize(), MObjectSetShadow(), MObjectSetText(), MObjectSetTransparency(), MPButtonSetCallback(), MShellDestroy(), MShellRealize(), MShellUnrealize(), nowait, NoWaitCB(), SF_MODAL, st, TOP_ALIGN, True, WS_ETCHED_IN, WS_NONE, and WS_SHADOW_OUT.
Referenced by InitCCD_AMS().
void MGUIMain | ( | int | argc, |
char ** | argv | ||
) |
MAIN PROGRAM starting point
Actions:
.
Definition at line 3546 of file DAS_Spat.c.
References _MAX_PATH, BuildShell(), ChkExeMode(), d_fileman::CONFIGDIRCOMMON, d_fileman::CONFIGDIREQUIPMENT, D_WriteInitLog(), DAS_StartDOY, DAS_StartHour, bil::DFILEM, das::DGeo, DI_PathExist(), das::DOption, ERR_Option(), flag::exemode, das::Flag, optionini::ftpbackup, GetDateTime(), d_fileman::HOMEDIRECTORY, InitColors(), InitFlags(), LoadDasSysCol(), LoadDB_DispCoeff(), LoadDB_Options(), LoadDefaultDPAL(), LoadEquipment(), LoadFTPSetting(), LoadGeoCoord(), LoadGeoDB(), LoadHardware(), LoadSetDirs(), LoadTruePalette(), LoadWlstep(), MEnableCustomizing(), MMessageDialog(), dlog::odate, spectrumheader::olddate, dlog::otime, d_geo::s_name, SetWorkDirMGUIenv(), bil::SPH, and WriteInit().
int MGUIQuitCB | ( | MOBJECT | shell, |
void * | od, | ||
void * | ad | ||
) |
Exit MGUI Library. Procedure that close MGUI .
Definition at line 728 of file DAS_Spat.c.
References MGUITerm(), MMessageDialog(), MShellDestroy(), and MShellUnrealize().
Referenced by MDCreateDOAS_MainSh(), RunLogMode(), and RunOLP().
int NOVA_In | ( | int | novatype, |
unsigned int | DigIn | ||
) |
Read the NOVA Input port.
novatype | = type of NOVA monoboard |
DigIn | = value read on the input port |
Definition at line 1306 of file DAS_Spat.c.
References DBDEMO, DIO_GetInput(), flag::exemode, das::Flag, InByte(), ISMM_Close(), ISMM_Open(), MMessageDialog(), NOVA7892, and NOVA945GSE.
Referenced by CONFP_AMS_NOVA(), and NOVAIn_CB().
int NOVA_Out | ( | int | novatype, |
unsigned int | DigOut | ||
) |
Write the NOVA Output port.
novatype | = type of NOVA monoboard |
DigOut | = value to be written on the output port |
Definition at line 1375 of file DAS_Spat.c.
References DBDEMO, DIO_GetConfig(), DIO_GetOutput(), DIO_SetOutput(), DWORD, flag::exemode, das::Flag, ISMM_Close(), ISMM_Open(), MMessageDialog(), NOVA6612G2, NOVA7892, NOVA945GSE, OutByte(), and WORD.
Referenced by InitCCD_AMS(), MDCreateSplashExe(), NOVAOut_CB(), ShutCB(), and WinRes().
void NoWaitCB | ( | MOBJECT | p, |
void * | od, | ||
void * | ad | ||
) |
Definition at line 2393 of file DAS_Spat.c.
References nowait.
Referenced by MDCreateWaitShell().
void NoWaitSplashCB | ( | MOBJECT | p, |
void * | od, | ||
void * | ad | ||
) |
Definition at line 2251 of file DAS_Spat.c.
References nowaitsplash.
Referenced by MDCreateSplashExe().
int PRG_Check | ( | int | mod, |
char * | prgname | ||
) |
Definition at line 531 of file DAS_Spat.c.
References _MAX_PATH, AAMEASURE, AAPOSIT, ALMUCANTAR, AUTORNG, AVGCCD, AVGCCDHOR, AZIMUTH, BEGIN, CALIBRA, CHKEXLAMP, DARKC, delay(), bil::DFILEM, DFMEASURE, DI_FileExist(), DI_SplitName(), DIRECTSUN, ELAMPOFF, ELAMPON, ESHUTCL, ESHUTOP, EXPO, Fetch(), FILTER, GETCCD, H_AZI, H_FILTER, H_GRAT, H_GRAT_CAL, H_MIRROR, H_NDFW, H_ZEN, HG_OFF, HG_ON, HGSCAN, d_fileman::HOMEDIRECTORY, IREFSUN, LABEL, LoadExec(), MEASHOR, MEASHOR2, MEASURE, MGUITerm(), MIRROR, MMessageDialog(), NDFILTER, PLOT, PRG_ChKBegin(), PRG_ChkGrating(), PRG_ChkMeasAvg(), PRG_ChkMirror(), PrgCnt, PrgSiz, Program, QJ_OFF, QJ_ON, QJSCAN, RADIO, REM, SAVE, SETCCDOFFS, SETCCDPOW, SETCCDTEMP, SETCCDVBIN, WAIT, WAVELEN, XEND, and ZENITH.
Referenced by ChkExeMode(), DB_ToolsKeyB_CB(), and ExMaster().
int PRG_ChKBegin | ( | int | line, |
char * | fname | ||
) |
Definition at line 515 of file DAS_Spat.c.
Referenced by PRG_Check().
int PRG_ChkGrating | ( | int | mod, |
char * | filename, | ||
int | record, | ||
int | par | ||
) |
Definition at line 376 of file DAS_Spat.c.
References _MAX_PATH, and LookforWl_X().
Referenced by PRG_Check(), and PRG_ChkMeasAvg().
int PRG_ChkKeyW | ( | int | line, |
char * | fname | ||
) |
Definition at line 348 of file DAS_Spat.c.
int PRG_ChkMeasAvg | ( | int | line, |
char * | fname | ||
) |
Definition at line 414 of file DAS_Spat.c.
References _MAX_PATH, PRG_ChkGrating(), PRG_ChkMirror(), PrgCnt, Program, and wl.
Referenced by PRG_Check().
int PRG_ChkMirror | ( | int | mod, |
char * | filename, | ||
int | record, | ||
int | par | ||
) |
Definition at line 355 of file DAS_Spat.c.
References _MAX_PATH.
Referenced by PRG_Check(), and PRG_ChkMeasAvg().
void RunFULL | ( | void | ) |
DAS Main LOOP for Equipment management
This Procedure is called by the MGUIMain function when the execution mode is:
.
Actions:
Definition at line 2994 of file DAS_Spat.c.
Referenced by BuildShell(), and SZA_FirstCalc().
void RunLogMode | ( | int | mod, |
char * | p | ||
) |
Definition at line 3478 of file DAS_Spat.c.
References _MAX_PATH, AllocFloatMat(), omutemp::CCDPwr, omutemp::CCDTemp, DB_2DPlot(), DI_SplitName(), omutemp::dimx, omutemp::dimy, MGUIQuitCB(), MGUITerm(), MMainLoop(), MMessageDialog(), MShellSetWMCloseCallback(), omutemp::PltPwr, omutemp::pTempMat, omutemp::ptimeMat, ReadLogFile(), SET2D_GRID, and omutemp::sh.
Referenced by BuildShell().
void RunOLP | ( | char * | fname | ) |
Definition at line 3114 of file DAS_Spat.c.
References d_fileman::DBFILENAME, bil::DFILEM, FBIF, FDAT, d_fileman::FKIND, LoadDB_DispCoeff(), LoadParam(), MGUIQuitCB(), MMainLoop(), MMessageDialog(), MShellSetWMCloseCallback(), bil::VFO, viewformobj::View_Sh, ViewPlot(), and Visualizza().
Referenced by BuildShell().
void SetScriptUseLabel | ( | int | master, |
char * | prgf, | ||
int | emode, | ||
MOBJECT | lbl | ||
) |
Definition at line 2509 of file DAS_Spat.c.
References AboutCB(), DBDEMO, DI_SplitName(), MObjectSetText(), PRGFILE, SZAMASTERM, SZAMODE, TEMPORIZED, TESTAD, TESTAMS, TESTCCD, and TESTSZAMODE.
Referenced by SZA_FirstCalc().
int SetWorkDirMGUIenv | ( | char * | buff | ) |
set DAS and MGUI enviroment when the program is launched undirectly (for offlineplot or log or auto or autotimed modes)
Definition at line 3353 of file DAS_Spat.c.
Referenced by ChkExeMode(), CloseShTempCB(), DB_ToolsKeyB_CB(), MDCreate2DPlot(), and MGUIMain().
void SZA_FindMin | ( | void | ) |
computation of daily minimum SZA
Definition at line 2808 of file DAS_Spat.c.
References dsza::Dailymaxsza, dsza::Dailyminsza, das::DGeo, d_geo::latitude, d_geo::longitude, S_zenetr, SZACalc(), and d_geo::timezone.
Referenced by SZA_FirstCalc(), and Task_LOG().
void SZA_FirstCalc | ( | void | ) |
Definition at line 2858 of file DAS_Spat.c.
References _MAX_PATH, flag::ADPC104, controlpanel::Albl_Azim, controlpanel::Albl_Elev, controlpanel::Albl_Script, controlpanel::Albl_sunr, controlpanel::Albl_suns, AMSINI_Err(), AssignParam(), BuildMainShell(), ChkDASInstance(), ChkMaster(), d_fileman::CONFIGDIREQUIPMENT, gui::ContrPanel, DAS_Error(), DB_ChooseButtons(), DB_KB_ButtonActive(), bil::DFILEM, das::DGeo, paramini::EqType, flag::ExeDSZA, flag::exemode, ExMaster(), flag::fileprg, FLAG, das::Flag, flag::ftpstatus, GetDateTime(), das::Gui, InitCCD_AMS(), InitTempAD(), pushbutt::KeyB, d_geo::latitude, LaunchBackTask(), controlpanel::lbl_Time, LoadAMS(), LoadExec(), LoadParam(), d_geo::longitude, Master, Master_Error(), MMainLoop(), MMessageDialog(), MObjectSetSensitive(), MObjectSetText(), OMU_HC(), on, das::Paramini, PrgFile, PRGFILE, PrgNum, gui::PushButt, RunFULL(), S_azim, d_geo::s_name, S_sunrise, S_sunset, S_zenetr, SetScriptUseLabel(), shells::Sh_Main, gui::Shells, flag::sza, SZA_FindMin(), SZACalc(), SZAMASTERM, SZAMax, SZAMODE, TEMPORIZED, TESTSZAMODE, d_geo::timezone, and WriteShellTitle().
void TaskWDT | ( | TIMEOUT_ID | id, |
void * | data | ||
) |
Definition at line 1767 of file DAS_Spat.c.
References MRefreshTimeout(), TaskWDT(), ids::WDT, WDT_TASK_TIME, and WDTRefresh().
Referenced by TaskWDT(), and WDT_Task_CB().
void WDT_CB | ( | MOBJECT | p, |
void * | od, | ||
void * | ad | ||
) |
Definition at line 1507 of file DAS_Spat.c.
References gui::ConfigPanel, D_Timing(), das::Gui, configpanel::lbltelap, MObjectGetText(), MObjectSetText(), das::Nova, configpanel::WDT_edt, WDT_flagstop, WDT_func(), and nova::WDT_TOUT.
Referenced by CONFP_AMS_NOVA().
void WDT_func | ( | int | mod | ) |
Definition at line 1572 of file DAS_Spat.c.
References DWORD, InByteR(), ISMM_Close(), ISMM_Open(), das::Nova, NOVA6612G2, NOVA7892, NOVA945GSE, OutByte(), nova::type, WDT_SetTimeout(), WDT_Start(), WDT_TASK_TIME, WDT_TIMEOPT_SECOND, and nova::WDT_TOUT.
Referenced by D_Timing(), ShutCB(), WDT_CB(), WDT_Task_CB(), and WinRes().
void WDT_Task_CB | ( | MOBJECT | o, |
void * | od, | ||
void * | ad | ||
) |
Definition at line 1547 of file DAS_Spat.c.
References MObjectGetText(), MObjectSetText(), MRefreshTimeout(), TaskWDT(), ids::WDT, WDT_func(), and WDT_TASK_TIME.
Referenced by CONFP_AMS_NOVA().
void WDTRefresh | ( | void | ) |
Definition at line 1701 of file DAS_Spat.c.
References DWORD, InByteR(), ISMM_Close(), ISMM_Open(), das::Nova, NOVA6612G2, NOVA7892, NOVA945GSE, nova::type, WDT_SetTimeout(), WDT_Start(), WDT_TASK_TIME, WDT_TIMEOPT_SECOND, and nova::WDT_TOUT.
Referenced by TaskWDT().
void WriteShellTitle | ( | MOBJECT | o, |
int | eqt | ||
) |
Definition at line 2176 of file DAS_Spat.c.
References DASREL, DASREV, DASREVDATE, GASCODNG1, GASCODNG2, GASCODNG3, GASCODNG4, LIS_, MShellSetTitle(), SPATRAM, SPATRAM2, SPATRAM3, SPATRAMPLUS, and TROPOGAS.
Referenced by SZA_FirstCalc().
long AbsFilePos |
Absolute File position.
Definition at line 122 of file DAS_Spat.c.
Referenced by ViewNext(), and ViewNext_BIN().
AzimuthSt AST |
Definition at line 71 of file DAS_Spat.c.
bil BIL |
Definition at line 74 of file DAS_Spat.c.
int BlindPix = 0 |
Number of blind pixels (usefull for Dark Current)
Definition at line 120 of file DAS_Spat.c.
Referenced by AutoR_No_Shutt(), AutoR_TestMeas(), AutoR_With_Shutt(), D_AssignLabelPlot(), D_Average(), D_Calibra(), D_pbr_CB(), DB_GetCCD(), DrawAreaPlotCB(), ReadHeader_ASCII(), ReadHeader_BIN(), and RemoveBlindPixels().
int CCD_SetupFlg = 0 |
Definition at line 138 of file DAS_Spat.c.
Referenced by ApplyChCB(), CCDSetupCB(), and WriteParaminiCB().
config Cfg |
Camera controls & Options.
Definition at line 46 of file DAS_Spat.c.
int ContFP = 0 |
Counter for File position.
Definition at line 123 of file DAS_Spat.c.
Referenced by CloseFile(), CloseFile_BIN(), ClosePlotCB(), D_PButt_CB(), MenuFileOLP_CB(), ViewNext(), ViewNext_BIN(), ViewPre(), and ViewPre_BIN().
unsigned long countsopsh |
counting the number of opening shutter
Definition at line 133 of file DAS_Spat.c.
Referenced by DB_GetCCD(), and ShutterOpening().
das DAS |
Definition at line 85 of file DAS_Spat.c.
int DAS_StartDOY |
Definition at line 107 of file DAS_Spat.c.
Referenced by MGUIMain(), and SetWindowsReset().
int DAS_StartHour |
Definition at line 106 of file DAS_Spat.c.
Referenced by MGUIMain(), and SetWindowsReset().
ccd DC_CCD |
CCD settings.
Definition at line 44 of file DAS_Spat.c.
ptf DC_HP |
Platform settings.
Definition at line 45 of file DAS_Spat.c.
int DeltaTPrec |
Definition at line 111 of file DAS_Spat.c.
Referenced by Task_LIS_Temp().
const char* DeviceTypeInput[] = {{"Direct"}, {"TelesExtLamp"}, {"Calib Lamps"}, {"Alt-Az Platf"}, {"Radiometer"}, {"TelesIntLamp"}, {"TelescopeV"}, {""}} |
const char array for the Device type <-> Input association
Definition at line 247 of file DAS_Spat.c.
Referenced by CONFP_opt_page6().
d_geo DGEO |
geographical coordinates structure
Definition at line 53 of file DAS_Spat.c.
dil DIL |
Definition at line 72 of file DAS_Spat.c.
dlog DLOG |
Definition at line 52 of file DAS_Spat.c.
Referenced by WriteLogAMS(), and writelogmotor().
doas DOAS |
Definition at line 63 of file DAS_Spat.c.
palette DPAL |
Definition at line 73 of file DAS_Spat.c.
dpwd DPWD |
Danbo Passw.
Definition at line 49 of file DAS_Spat.c.
DSCB dscb |
Definition at line 67 of file DAS_Spat.c.
DSCCB dsccb |
Definition at line 68 of file DAS_Spat.c.
int ExeREM = 1 |
Definition at line 143 of file DAS_Spat.c.
Referenced by D_Calibra(), E_AAMeasure(), E_Almucantar(), E_AutoRange(), E_Average(), E_AvgCCDHor(), E_Azimuth(), E_Calibra(), E_ChkExLamp(), E_Dark(), E_DFMeasure(), E_DirectSun(), E_ExtLampOFF(), E_ExtLampON(), E_ExtShutClose(), E_ExtShutOpen(), E_Filter(), E_GetCCD(), E_Hg_Off(), E_Hg_On(), E_HGratCal(), E_HgScan(), E_Home_SM1(), E_Home_SM2(), E_Home_SM3(), E_Home_SM4(), E_Home_SM5(), E_Home_SM6(), E_IRefSun(), E_Lambda(), E_Meashor(), E_Meashor2(), E_Measure(), E_Mirror(), E_NDFilter(), E_Plot(), E_Qj_Off(), E_Qj_On(), E_QjScan(), E_Radio(), E_REM(), E_Save(), E_Zenith(), and FTP_Back_UP().
Definition at line 55 of file DAS_Spat.c.
Referenced by D_AutoExecution().
char* Fil_Code[] = {{"NULL"}, {"UG11"}, {"UG1 "}, {"BG12"}, {"BG25"}, {"H475"}} |
const char array for the realisation of the Filters buttons in the Filter shell
Definition at line 207 of file DAS_Spat.c.
Referenced by D_BuildH(), DB_Fil_CB(), HeaderInPlot(), MDCreateSh_Fil(), MDCreateSh_SimPos(), SD_FilterW(), SD_Position(), and SD_PosOMUDev().
char* Fil_Code8H[] = {{"NULL"}, {"UG5"}, {"UG11"}, {"BG23"}, {"NULL"}, {"NULL"}, {"LPAS"}, {"NULL"}} |
const char array for the realisation of the Filters buttons in the Filter shell
Definition at line 204 of file DAS_Spat.c.
Referenced by D_BuildH(), DB_Fil_CB(), DB_NDFil_CB(), HeaderInPlot(), MDCreateSh_Fil(), MDCreateSh_NDFil(), MDCreateSh_SimPos(), SD_FilterW(), SD_NDFilterW(), SD_Position(), and SD_PosOMUDev().
char* Fil_CodeNG[] = {{"NULL"}, {"B12 "}, {"B12F"}, {"B39 "}, {"B39F"}, {"UG5 "}} |
const char array for the realisation of the Filters buttons in the Filter shell for GASCODNG2 and NG3 instruments
Definition at line 216 of file DAS_Spat.c.
Referenced by D_BuildH(), DB_Fil_CB(), DB_NDFil_CB(), HeaderInPlot(), MDCreateSh_Fil(), MDCreateSh_NDFil(), MDCreateSh_SimPos(), SD_FilterW(), SD_NDFilterW(), SD_Position(), and SD_PosOMUDev().
char* Fil_CodeNG1[] = {{"NULL"}, {"B12 "}, {"S400"}, {"B39 "}, {"S500"}, {"UG5 "}} |
const char array for the realisation of the Filters buttons in the Filter shell for GASCODNG1 instrument
Definition at line 213 of file DAS_Spat.c.
Referenced by D_BuildH(), DB_Fil_CB(), HeaderInPlot(), MDCreateSh_Fil(), MDCreateSh_SimPos(), SD_FilterW(), SD_Position(), and SD_PosOMUDev().
char* Fil_CodeTropo[] = {{"NULL"}, {"BG28"}, {"UG11"}, {"BG12"}, {"BG23"}, {"HPas"}} |
const char array for the realisation of the Filters buttons in the Filter shell for TROPOGAS instrument
Definition at line 210 of file DAS_Spat.c.
Referenced by D_BuildH(), DB_Fil_CB(), DB_NDFil_CB(), HeaderInPlot(), MDCreateSh_Fil(), MDCreateSh_NDFil(), MDCreateSh_SimPos(), SD_FilterW(), SD_NDFilterW(), SD_Position(), and SD_PosOMUDev().
int FirstTime = 1 |
Definition at line 110 of file DAS_Spat.c.
Referenced by Task_LIS_Temp().
int FlgSM_Stop = 1 |
Steppers Motor Activity: 0 = Motors moving; 1 = Motors stopped.
Definition at line 140 of file DAS_Spat.c.
Referenced by AMS_DoPos(), Task_CCD_Temp(), and Task_LIS_Temp().
FilterWheelSt FWS |
Filter Wheel.
Definition at line 57 of file DAS_Spat.c.
Referenced by DB_PushButtonMouse_CB(), DB_save_img(), ExecSimPosCB(), HeaderInPlot(), HomeFiltersFast(), HomeNDFiltersFast(), ListTargetCB(), MDCreateSh_Fil(), MDCreateSh_NDFil(), MDCreateSh_SimPos(), SD_FilterW(), SD_Position(), and SD_PosOMUDev().
GratingSt GRS |
Grating.
Definition at line 60 of file DAS_Spat.c.
char* HomePosition[] = {{"H_Mir"}, {"H_Grat"}, {"H_Filt"}, {"H_NDFilt"}, {"H_Zen"}, {"H_Azi"}, {"Close"}} |
const char array for the realisation of the Filters buttons in the ND Filter shell
Definition at line 227 of file DAS_Spat.c.
Referenced by MDCreateSh_Home().
ids IDS |
ID tasks.
Definition at line 54 of file DAS_Spat.c.
Referenced by DB_ToolsKeyB_CB(), E_Home_SM1(), HomeTrack(), and Task_HomeGrat().
int IDX |
Number of sensible horizontal pixels.
Definition at line 118 of file DAS_Spat.c.
Referenced by AllocMat(), ApplyImgCB(), BuildLogRatio(), D_AssignLabelPlot(), D_Average(), D_AverageTFix(), D_Calibra(), D_pbr_CB(), D_PButt_CB(), D_PrintSpectrum(), DatOrBinFormat(), DB_CalcFluxI(), DB_Column(), DB_GetCCD(), DB_InitCamera(), DB_InitDil(), DB_save_img(), DrawAreaPlotCB(), DT_CorrFileEvora(), DT_CorrHeader(), FilterData(), GetDefPix(), ImatGrafInImat(), ImatInImatGraf(), LoadIo(), MaskCol(), MaskPix(), MaskRow(), MenuFileOLP_CB(), ReadHeader_ASCII(), ReadHeader_BIN(), RemoveBlindPixels(), RemoveSpikes(), SaveDataOffLine(), SaveIo(), ShiftImg(), SmoothData(), SmoothFloatData(), ViewNext(), ViewNext_BIN(), Visualizza(), WriteColumn(), WriteDataFile(), and WriteSelColandSmoothed().
int IDY |
Number of sensible vertical pixels.
Definition at line 119 of file DAS_Spat.c.
Referenced by AllocMat(), ApplyImgCB(), BuildLogRatio(), D_AssignLabelPlot(), D_Average(), D_AverageTFix(), D_Calibra(), D_pbr_CB(), D_PButt_CB(), D_PrintSpectrum(), DatOrBinFormat(), DB_CalcFluxI(), DB_Column(), DB_GetCCD(), DB_InitCamera(), DB_InitDil(), DB_save_img(), DrawAreaPlotCB(), DT_CorrFileEvora(), DT_CorrHeader(), GetDefPix(), ImatGrafInImat(), ImatInImatGraf(), LoadIo(), LoadTestPalette(), MenuFileOLP_CB(), PButtSelAll_CB(), ReadHeader_ASCII(), ReadHeader_BIN(), RemoveBlindPixels(), SaveDataOffLine(), SaveIo(), SaveSpectrum(), ViewNext(), ViewNext_BIN(), ViewPlot(), Visualizza(), WriteColumn(), WriteDataFile(), and WriteSelColandSmoothed().
int Incr_Read_Temp =0 |
Definition at line 101 of file DAS_Spat.c.
Referenced by D_readtemp(), and Task_LIS_Temp().
const char* KeyCode[] |
Definition at line 164 of file DAS_Spat.c.
Referenced by Fetch(), and MDCreatesh_vitesa().
unsigned int LevelDefPix = 100 |
Definition at line 126 of file DAS_Spat.c.
Referenced by ActEditCB(), and GetDefPix().
int MainCommand =0 |
Command switch in main loop.
Definition at line 105 of file DAS_Spat.c.
Referenced by D_AutoExecution().
int Master = 0 |
Definition at line 100 of file DAS_Spat.c.
Referenced by ChkExeMode(), D_AutoExecution(), ManualModeCB(), SZA_FirstCalc(), Task_LIS_Temp(), and ViewPlot().
unsigned int* mattempbuff |
Definition at line 128 of file DAS_Spat.c.
const char* Mir_Code[] = {{"Zenith "}, {"HorizDX"}, {"Calibra"}, {"HorizSX"}, {""}, {""}, {""}, {""}} |
const char array for the realisation of the Mirrors buttons in the Mirror shell
Definition at line 231 of file DAS_Spat.c.
Referenced by CONFP_AMS_SM_OFFSET(), CONFP_opt_page6(), D_BuildH(), DB_Mir_CB(), DemoInitMotor(), HeaderInPlot(), HomeMirror(), MDCreateSh_Mir(), MDCreateSh_SimPos(), SD_Mirror(), SD_Position(), and SD_PosOMUDev().
const char* Mir_CodeTropo[] = {{"Calibra "}, {"HorizDX"}, {"NULL "}, {"HorizSX"}, {""}, {""}, {""}, {""}} |
const char array for the realisation of the Mirrors buttons in the Mirror shell for TROPOGAS
Definition at line 234 of file DAS_Spat.c.
Referenced by CONFP_AMS_SM_OFFSET(), CONFP_opt_page6(), D_BuildH(), DB_Mir_CB(), DemoInitMotor(), HeaderInPlot(), HomeMirror(), MDCreateSh_Mir(), MDCreateSh_SimPos(), SD_Mirror(), SD_Position(), and SD_PosOMUDev().
MirrorSt MIS |
Mirror.
Definition at line 61 of file DAS_Spat.c.
Referenced by DB_PushButtonMouse(), DB_PushButtonMouse_CB(), DB_save_img(), ExecSimPosCB(), HeaderInPlot(), HomeMirror(), ListTargetCB(), MDCreateSh_Mir(), MDCreateSh_SimPos(), SD_Mirror(), SD_Position(), and SD_PosOMUDev().
int Mode |
Definition at line 108 of file DAS_Spat.c.
mtcl MTCL |
MTColor.
Definition at line 62 of file DAS_Spat.c.
int N_AVG = 25 |
Number of measurements for Averaging mode in fixed number of meas. mode.
Definition at line 113 of file DAS_Spat.c.
Referenced by ActEditCB(), CONFP_opt_page1(), D_Average(), D_BuildH(), DB_RadioAvgModeCB(), HeaderInPlot(), LoadDB_Options(), and WriteOptioniniCB().
int N_RM = 0 |
Number of measurements for Averaging mode in fixed exposure time mode.
Definition at line 114 of file DAS_Spat.c.
Referenced by D_Average(), D_BuildH(), and HeaderInPlot().
char* NDFil_Code[] = {{"NULL"}, {"ND1"}, {"ND2"}, {"ND3"}, {"ND4"}, {"H645"}} |
const char array for the realisation of the Filters buttons in the ND Filter shell
Definition at line 219 of file DAS_Spat.c.
Referenced by D_AssignLabelPlot(), DB_NDFil_CB(), HeaderInPlot(), MDCreateSh_NDFil(), and SD_NDFilterW().
NDFilterWheelSt NDFWS |
ND Filter Wheel.
Definition at line 58 of file DAS_Spat.c.
Referenced by DB_PushButtonMouse_CB(), MDCreateSh_NDFil(), and SD_NDFilterW().
nova NOVA |
Definition at line 77 of file DAS_Spat.c.
int nowait = 1 |
Definition at line 2389 of file DAS_Spat.c.
Referenced by MDCreateWaitShell(), and NoWaitCB().
int nowaitsplash = 1 |
Definition at line 2249 of file DAS_Spat.c.
Referenced by MDCreateSplashExe(), and NoWaitSplashCB().
omutemp OMUTEMP |
structure for OMU temperatures
Definition at line 65 of file DAS_Spat.c.
omuthr OMUTHR |
Definition at line 75 of file DAS_Spat.c.
int on = 0 |
PRG execution control variabile.
Definition at line 109 of file DAS_Spat.c.
Referenced by D_AutoExecution(), DB_SelButt_CB(), DB_ToolsKeyB_CB(), and SZA_FirstCalc().
int ON_OFFLINEPLOT = 0 |
Definition at line 117 of file DAS_Spat.c.
Referenced by ActEditCB(), BuildLogRatio(), DB_DisplayCB(), DB_EqTypePlotCB(), DB_FilterCB(), DB_SpikesCB(), DB_XUnitsCB(), DrawAreaPlotCB(), PBYScale_CB(), ViewNext(), ViewNext_BIN(), ViewPlot(), and Visualizza().
int PaletteMode |
Definition at line 158 of file DAS_Spat.c.
Referenced by ColorSaveCB(), DB_CellExposeCB(), DB_ChangeColorCellCB(), and InitColors().
unsigned long* PLColor[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} |
Definition at line 251 of file DAS_Spat.c.
long PrgCnt |
Counter for the position in the PRG file.
For PRG File.
Definition at line 93 of file DAS_Spat.c.
Referenced by D_Measure(), E_AAMeasure(), E_AAPos(), E_Almucantar(), E_Average(), E_AvgCCDHor(), E_Azimuth(), E_DFMeasure(), E_DirectSun(), E_Expo(), E_Filter(), E_IRefSun(), E_Label(), E_Lambda(), E_Meashor(), E_Meashor2(), E_Measure(), E_Mirror(), E_NDFilter(), E_Radio(), E_REM(), E_SetCCDOffSet(), E_SetCCDPow(), E_SetCCDTemp(), E_SetCCDVBin(), E_WAIT(), E_Zenith(), Fetch(), FTP_Back_UP(), LoadExec(), PRG_Check(), and PRG_ChkMeasAvg().
char PrgFile[_MAX_PATH] |
Name of the PRG file.
Definition at line 91 of file DAS_Spat.c.
Referenced by ChkExeMode(), DB_ToolsKeyB_CB(), InitFlags(), ManualModeCB(), SZA_FirstCalc(), Task_LIS_Temp(), and ViewPlot().
int PrgNum = 0 |
Definition at line 96 of file DAS_Spat.c.
Referenced by SZA_FirstCalc().
int PrgNumExe = 0 |
number of PRG file in execution
Definition at line 98 of file DAS_Spat.c.
Referenced by ChkMaster(), and D_AutoExecution().
int PrgNumInM = 0 |
Actual number of PRG File in current MASTER or MASTERSZA File.
Definition at line 97 of file DAS_Spat.c.
Referenced by ChkMaster(), D_AutoExecution(), and ExMaster().
long PrgSiz |
Size of the PRG file.
Length of PRG file (bytes)
Definition at line 94 of file DAS_Spat.c.
Referenced by LoadExec(), and PRG_Check().
char* Program |
buffer for the PRG file
pointer to PRG file
Definition at line 90 of file DAS_Spat.c.
Referenced by D_Measure(), E_AAMeasure(), E_AAPos(), E_Almucantar(), E_Average(), E_AvgCCDHor(), E_Azimuth(), E_DFMeasure(), E_DirectSun(), E_Expo(), E_Filter(), E_IRefSun(), E_Label(), E_Lambda(), E_Meashor(), E_Meashor2(), E_Measure(), E_Mirror(), E_NDFilter(), E_Radio(), E_REM(), E_SetCCDOffSet(), E_SetCCDPow(), E_SetCCDTemp(), E_SetCCDVBin(), E_WAIT(), E_Zenith(), Fetch(), LoadExec(), PRG_Check(), and PRG_ChkMeasAvg().
long REL_FILE_POS[51] |
relative File position
Definition at line 124 of file DAS_Spat.c.
Referenced by D_PButt_CB(), MenuFileOLP_CB(), ViewNext(), ViewNext_BIN(), and Visualizza().
int Server = 0 |
Definition at line 253 of file DAS_Spat.c.
Referenced by ApplyImgCB(), AutoR_No_Shutt(), AutoR_TestMeas(), AutoR_With_Shutt(), CloseFile(), CloseFile_BIN(), D_Average(), D_AverageTFix(), D_BuildH(), D_Calibra(), D_XProfile(), D_YProfile(), DB_GetCCD(), DB_InitCamera(), DB_InitDil(), DB_Save(), DrawAreaPlotCB(), E_Dark(), GetDefPix(), HeaderInPlot(), ImatGrafInImat(), ImatInImatGraf(), MaskCol(), MaskPix(), MaskRow(), RemoveBlindPixels(), ViewNext(), ViewNext_BIN(), and Visualizza().
stepm STEPM |
Stepper Motors.
Definition at line 50 of file DAS_Spat.c.
dsza SZADelta |
Definition at line 76 of file DAS_Spat.c.
Referenced by CONFP_param_page4(), DB_Pause(), edtDSZA_CB(), edtSZA_CB(), LoadDB_Options(), Task_CCD_Temp(), and WriteOptioniniCB().
int SZAMax = 100 |
Maximum SZA for performing measurements.
Definition at line 116 of file DAS_Spat.c.
Referenced by ActEditCB(), CONFP_opt_page3(), LoadDB_Options(), SZA_FirstCalc(), Task_Timer(), and WriteOptioniniCB().
double TExp |
CCD Exposure time.
CCD Exposure time [sec].
Definition at line 130 of file DAS_Spat.c.
Referenced by AutoR_No_Shutt(), AutoR_TestMeas(), AutoR_With_Shutt(), AutoRange(), D_Average(), D_AverageTFix(), D_BuildH(), D_Measure(), DB_AskCB(), DB_CloseAsk(), DB_GetCCD(), DB_HorComm_CB(), DB_KeyB_CB(), DB_save_img(), E_ChkExLamp(), E_Dark(), GetDefPix(), HeaderInPlot(), and PerformMeas().
tools TOOLS |
tools structure
Definition at line 51 of file DAS_Spat.c.
long Total_Spec |
Definition at line 95 of file DAS_Spat.c.
int TOTTEXP = 5 |
Total Exposure time in Averaging mode.
Definition at line 115 of file DAS_Spat.c.
Referenced by ActEditCB(), CONFP_opt_page1(), D_Average(), DB_RadioAvgModeCB(), LoadDB_Options(), and WriteOptioniniCB().
long wav[] |
Step Number definition - for SD_Grating.
Definition at line 195 of file DAS_Spat.c.
Referenced by CONFP_param_page2(), LoadWlstep(), SD_Grating(), SD_Position(), SD_PosOMUDev(), valstedt(), and WritewlstepiniCB().
int WDT_flagstop |
Definition at line 146 of file DAS_Spat.c.
Referenced by D_Timing(), and WDT_CB().
unsigned char WDT_Timeout = 100 |
Definition at line 145 of file DAS_Spat.c.
int wl[] |
WaveLength definition - for SD_Grating.
Definition at line 182 of file DAS_Spat.c.
Referenced by AutoR_SetND_Filter(), CalcSpectrumLimits(), CONFP_param_page2(), D_BuildH(), D_Calibra(), DB_save_img(), E_AAMeasure(), E_Almucantar(), E_Average(), E_AvgCCDHor(), E_DFMeasure(), E_DirectSun(), E_IRefSun(), E_Lambda(), E_Meashor(), E_Meashor2(), E_Measure(), HeaderInPlot(), LoadWlstep(), Lookfor4358(), LookforWl_X(), MDCreateDOAS_SetupSh(), MDCreateSh_Home(), MDCreateSh_SimPos(), MDCreateSh_Wl(), PRG_ChkMeasAvg(), SD_Grating(), SD_Position(), SD_PosOMUDev(), valwledt(), wledtCB(), and WritewlstepiniCB().
int WlSet |
Wavelength position definition - for SD_Grating.
Definition at line 135 of file DAS_Spat.c.
Referenced by DB_KeyB_CB(), DB_SheelESC(), and DB_Wl_CB().
ZenithSt ZST |
Definition at line 70 of file DAS_Spat.c.