105 int c = (int) a_data;
158 const char *channel[] ={{
"Optic "},
176 sprintf(buf,
"Page 1");
217 sprintf(buf,
"Page 2");
270 sprintf(buf,
"SM%d",snum+1);
285 sprintf(buf,
"Stepper Motor 1 - MIRROR ");
288 sprintf(buf,
"Stepper Motor 2 - GRATING");
291 sprintf(buf,
"Stepper Motor 3 - FILTER ");
294 sprintf(buf,
"Stepper Motor 4 - NOT Con.");
297 sprintf(buf,
"Stepper Motor 5 - ZENITH ");
300 sprintf(buf,
"Stepper Motor 6 - AZIMUTH");
515 memset (&fbp, 0,
sizeof (fbp));
582 sprintf(buf,
"%.3lf",
TExp);
583 er =
DB_Ask(
"DOWNLOAD IMAGE",
"",
"Time Exposure: ", buf, 6,
"Get Light");
596 er =
DB_Ask(
"DOWNLOAD DARK",
"",
"Time Exposure: ", buf, 6,
"Get Dark");
620 if( strcmp(fext,
"") == 0 )
629 if( (strcmp(fext,
".dat") == 0) | (strcmp(fext,
".Dat") == 0) )
634 else if( (strcmp(fext,
".bif") == 0) | (strcmp(fext,
".Bif") == 0) )
641 sprintf(buf,
"The extension is not recognaized! Please re-type",fext);
686 MOBJECT rowfrm,rowfrm1,rowfrm2, tb;
699 const char *KeyCom_Code[] = {{
"Mirror "},
740 for (i=0; i < 3; i++)
777 for (i=3; i < 5; i++)
794 sprintf (buff,
"Open ");
801 sprintf (buff,
"Close ");
815 sprintf (buff,
"On ");
821 sprintf (buff,
"OFF ");
859 for (i=5; i < 14; i++)
891 for (i=0; i<count; i++)
907 for (i=0; i<count; i++)
919 for (i=0; i<count; i++)
935 for (i=0; i<count; i++)
954 int c = (int) a_data, i, count;
960 for (i=0; i<count; i++)
981 for (i=0; i<count; i++)
996 for (i=0; i<count; i++)
1017 for (i=0; i<count; i++)
1033 for (i=0; i<count; i++)
1054 for (i=0; i<count; i++)
1070 for (i=0; i<count; i++)
1091 for (i=0; i<count; i++)
1115 MMessageDialog(
"DAS Inf",
"Procedure not implemented yet!!!",
"OK", NULL);
1158 const char *KeyCom_Code[] = {{
"&Mirror"},
1192 const char *KeyCom_CodePopUpHelp[]= {{
"Set Input Mirror position"},
1193 {
"Set Grating Position"},
1194 {
"Set Filter wheel Position"},
1195 {
"Set Zenith and Azimuth Position"},
1196 {
"Set zimuth Position"},
1197 {
"Look for Input Mirror Ref. Pos."},
1198 {
"Look for Grating Ref. Pos."},
1199 {
"Look for Filter Wheel Ref. Pos."},
1200 {
"Look for Zenith Ref. Pos. "},
1201 {
"Look for Azimuth Ref. Pos."},
1202 {
"Create shell for Simultaneous Positioning"},
1203 {
"Create Shell for Horizontal Measurements"},
1204 {
"Create Shell for free Grating movements"},
1205 {
"Open DAS Configuration tool"},
1207 {
"Automatic Calibration "},
1208 {
"Computation Optimum Exposure time "},
1209 {
"Carry out Light Measurement"},
1210 {
"Perform Averaged Measurement"},
1211 {
"Carry out Dark Measurement "},
1212 {
"Save current measurements "},
1213 {
"2D Plot of image"},
1215 {
"X Profile On/Off"},
1216 {
"Y Profile On/Off"},
1218 {
"Pause/Resume Script Execution "},
1219 {
"Open tools Shell "},
1252 for (i=0; i < 14; i++)
1783 sprintf(buff,
"SM%d", (2*i+k+1));
2175 for (i=14; i < 28; i++)
2602 char DefPwdSys[10]=
"nefertari";
2606 sprintf(ttest,
"%s",
"DAS Config");
2676 int c = (int) a_data;
2694 long npt, x, dp = 500;
2711 x = (long) atoi(text);
2717 npt = (long) atoi(text);
2724 npt = (long) atoi(text);
2742 sprintf(buf,
"%s",
"Done");
2752 sprintf(buf,
"%s",
"Done");
2763 sprintf(buf,
"%s",
"Done");
2773 sprintf(text,
"",
"");
2869 MOBJECT rowfrm, rowfrm1, colfrm;
2897 sprintf(buff,
"FREE GRATING POSITIONING");
2907 sprintf(buff,
" NOTE:\nThe Grating is moving, so if you want to shift\n \ 2908 a spectral line towards the visible,\nyou have to move the grating in the UV direction.");
2930 sprintf(buff,
"_ Steps:");
2932 sprintf(buff,
"Amstrongs:");
2948 lbl =
MCreateLabel(rowfrm1,
"The typed steps have to be directly sent to the Grating stepper? ",
HELV_SMALL);
3080 x = (long) atoi(text);
3092 sprintf(buf,
"%s",
"Done");
3111 sprintf(text,
"",
"");
3132 x = (long) atoi(text);
3146 sprintf(buf,
"%s",
"Done");
3166 sprintf(text,
"",
"");
3182 x = (float) atof(text);
3187 sprintf(text,
"",
"");
3212 sprintf(buff,
"This tool allows for the positioning of the Zenith\n \ 3213 Axis at the typed angle. \n ");
3221 sprintf(buff,
" NOTE: Allowed values: -90 < angle < 90.\n");
3281 sprintf(buff,
"This tool allows for the positioning of the Zenith\n \ 3282 Axis of a free number of steps\n ");
3289 sprintf(buff,
" NOTE:\n");
3360 sprintf(buff,
"This tool allows for the positioning of the Azimuth\n \ 3361 Axis of a free number of steps\n ");
3368 sprintf(buff,
" NOTE:\n");
3452 SAA = (float)atof(str);
3455 if (SAA >= 0 && SAA <= MAZMax)
3459 if (SAA > MAZMax && SAA <= (MAZMax + 180))
3464 if (SAA > (MAZMax + 180) && SAA < 360)
3509 sprintf(str,
"%.01lf",
S_azim);
3513 if (SAA >= 0 && SAA <= MAZMax)
3517 if (SAA > MAZMax && SAA <= (MAZMax + 180))
3521 if (SAA > (MAZMax+180) && SAA < 360)
3540 x = (float) atof(text);
3548 sprintf(text,
"",
"");
3563 z = (float) atof(buf);
3565 az = (float) atof(buf);
3592 sprintf(buff,
"This tool allows for the positioning of the Zenith and Azimuth\n \ 3593 Axes at the typed angles.");
3618 sprintf(buff,
" Allowed values: 0 <= x <= 180.");
3640 sprintf(buff,
" Allowed values: 0 <= x <= 360.");
3693 sprintf(buff,
"This tool allows for the positioning of the Azimuth\n \ 3694 Axis at the typed angle. \n ");
3709 sprintf(buff,
" Allowed Azimuth angles: [0, 360]");
3716 sprintf(buff,
" NOTE: If Azimuth is [0, 120] or [300, 360] --> Zenith [-90, 0]");
3722 sprintf(buff,
" NOTE 1: If Azimuth is [120, 300] --> Zenith [0, 90]");
3772 Status(
"Waiting for the end of current instruction");
3786 else if(FLAG.
exec == 0)
3789 Status(
"Execution Resumed");
3848 if(i==3 || i==4 || i==8 || i==9 || i==10 || i== 11)
3917 for (i=14; i < 22; i++)
3934 for (i=14; i < 22; i++)
3979 char fname[128], dirname[128];
3986 memset (&fbp, 0,
sizeof (fbp));
4036 sprintf(buf,
"Steps Grating: %ld", ns);
4044 Message(
"No Zero Coord Grating", er);
4053 er =
MFileBrowseExt (
"Select PRG File",
"*.PRG", fname, dirname, &fbp);
4054 sprintf(buf,
"%s%s", dirname, fname);
4058 sprintf(buf,
"The PRG File: %s was correctly compiled.", fname);
4068 er =
MFileBrowseExt (
"Select PRG File",
"*.PRG", fname, dirname, &fbp);
4070 sprintf(
PrgFile,
"%s%s", dirname, fname);
4075 sprintf(buf,
"The PRG File: %s was correctly compiled.", fname);
4096 er =
MFileBrowseExt (
"Select PRG File",
"*.PRG", fname, dirname, &fbp);
4098 sprintf(
PrgFile,
"%s%s", dirname, fname);
4103 sprintf(buf,
"The PRG File: %s was correctly compiled.", fname);
4126 er =
MFileBrowseExt (
"Replace PRG File in Execution with:",
"*.PRG", fname, dirname, &fbp);
4128 sprintf(
PrgFile,
"%s%s", dirname, fname);
4137 MMessageDialog(
"DAS Inf.",
"In this Execution Mode the requested oparation can not be executed." ,
"OK", NULL);
4170 const char *KeyCom_Code[] = {{
"Shutter Closed"},
4175 {
"Reload timer task "},
4176 {
"Clear timer task "},
4177 {
"READ Grat. Steps"},
4178 {
"ZERO Grat. Steps"},
4263 for (i=1; i < (
sizeof TOOLS.
KeyB /
sizeof TOOLS.
KeyB[0]); i++)
4273 if ((i==0) || (i==2) || (i==3) || (i==4) || (i==5) || (i==6))
4303 pdest = strrchr(
string, ch );
4304 result = pdest -
string + 1;
4309 pdest = strchr(
string, ch );
4310 result = pdest -
string + 1;
4392 sprintf(buf,
"%s", la->
item);
4397 sprintf(buf,
"%s", la->
item);
4413 int i, er = 0, nfilt;
4467 sprintf(buf,
"%s",pla->
item);
4489 itoa(
wl[i], buf,10);
4496 sprintf(buf,
"%s",pla->
item);
4523 for (i=0; i < nfilt; i++)
4549 sprintf(buf,
"%s",pla->
item);
4581 for (i=-90; i < 91; i++)
4583 sprintf(buf,
"%d",i);
4601 sprintf(buf,
"%s",pla->
item);
4627 for (i = 0; i < 361; i++)
4629 sprintf(buf,
"%d",i);
4649 sprintf(buf,
"%s",pla->
item);
4702 memset (&fbp, 0,
sizeof (fbp));
4775 sprintf(buf,
"%s",
"SET HOME POSITION");
4884 sprintf(buf,
"%s",
"MOVE GRATING");
4903 sprintf(buf,
"%.3lf",
TExp);
4904 er =
DB_Ask(
"DOWNLOAD IMAGE",
"",
"Time Exposure: ", buf, 6,
"Get Light");
4920 sprintf(buf,
"%.3lf",
TExp);
4921 er =
DB_Ask(
"DOWNLOAD DARK",
"",
"Time Exposure: ", buf, 6,
"Get Dark");
4945 if( strcmp(fext,
"") == 0 )
4954 if( (strcmp(fext,
".dat") == 0) | (strcmp(fext,
".Dat") == 0) )
4959 else if( (strcmp(fext,
".bif") == 0) | (strcmp(fext,
".Bif") == 0) )
4966 sprintf(buf,
"The extension is not recognaized! Please re-type",fext);
4975 sprintf(buf,
"%05d",
SaveCnt);
5011 sprintf(buf,
"%s",
"DAS TOOLS");
5043 int c = (int) a_data, i;
5075 int c = (int) a_data, i;
5155 int c = (int) a_data, i;
5373 int DB_Ask(
char *tit,
char *bmp,
char *label,
char *pre,
int len,
char *pbtype)
5465 char buff[32], tb[32];
5477 sscanf(buff,
"%lf", &
TExp);
5478 if(strcmp(tb,
"Get Light") == 0)
5480 else if(strcmp(tb,
"Get Dark") == 0)
5489 sscanf(buff,
"%lf", &
TExp);
5571 int c = (int) a_data;
5711 int c = (int) a_data, i;
5751 int c = (int) a_data;
5844 itoa(
wl[i],buff,10);
5908 int c = (int) a_data, i;
5930 int c = (int) a_data;
6027 for (i=0; i<bas; i++)
6049 for (i=0; i<bas; i++)
6147 int c = (int) a_data, i;
6169 int c = (int) a_data;
6266 for (i=0; i<bas; i++)
6288 for (i=0; i<bas; i++)
6385 int c = (int) a_data, i;
6407 int c = (int) a_data;
6471 int c = (int) a_data, i;
6493 int c = (int) a_data;
6677 itoa(
wl[i],buff,10);
6726 fs = fopen(
"LOG\\Paramini.LOG",
"w");
6728 fprintf(fs,
"%d %s", mod,
"0 = reinizializza CCD, 1 = mantiene lo stato " );
6745 int PowerOn, PowerOff;
6772 Status(
"CCD Shuting Down - Cooler On ");
6779 Status(
"CCD Shuting Down - Cooler Off");
6878 Status (
"Waiting 50ms.");
6883 Status (
"Waiting 50ms.");
6909 const char *ShDwn_Code[] = {{
"F1 - CCD ShutDown, Cooler On"},
6910 {
"F2 - CCD ShutDown, Cooler Off"},
6911 {
"F3 - No CCD ShutDown, Cooler On"},
6912 {
"F4- No CCD ShutDown, Cooler Off"},
6989 if(i==0 || i==1 || i==3 )
void MEditDisableEditing(MOBJECT edit)
short DB_BG_lblUP[3]
Background Capital Letters Labels Color UP.
stepm StepM
Stepper motors parameters structure.
#define SPATRAM
SPectrometer for Atmospheric TRAcers Measurements - CGE-UE Portugal.
NDFilterWheelSt NDFWS
ND Filter Wheel.
void FANPeltier(int mod)
FAN ON/OFF .
void MObjectSetBackgroundRGB(MOBJECT obj, int r, int g, int b)
gui Gui
Graphic User Interface Structure.
MOBJECT LedSM[AMSMAX][2]
Leds for stepper motors status.
void MRefreshTimeout(TIMEOUT_ID *pid, CARD32 msec, TIMEOUT_CB cb, void *ud)
int SD_Grating(int ang)
Positioning Grating. The Grating move to the position specified by ang (Wavelength) ...
int Pos
Filter Wheel current Position.
int SD_Mirror(int where)
Positioning Input Mirror. The Input Mirror reaches the position specified by where.
int ExtLamp(int mod)
change the status of the external lamp change the status of the external lamp (ON or OFF) through a r...
shells Shells
Shells structure.
MOBJECT Albl_LS[8]
Active Control Panel Labels for LIS status.
MOBJECT MCreatePixmapFromFile(MOBJECT parent, const char *fname)
unsigned int keycode
Code for the pressed key.
void HgLamp(int mod)
HG Lamp ON/OFF .
MOBJECT rbStepGratEnc[2]
radio buttons for steps encoding (move Grating free positioning)
MOBJECT speed[AMSMAX][2]
Active Control Panel Labels for Stepper Motors "speed".
void MSetInputPromptRGB(int r, int g, int b)
short DB_FG_Plbl[3]
Foreground PASSIVE Label Colors.
MOBJECT MOptionEditGetList(MOBJECT ce)
optionini DOption
Options for DAS execution.
int extlamp
0 = external lamp OFF; 1 = external lamp ON
CTYPE void DLL DC_SetMode(int TaskSettings, int SetRes, int camera)
int savingmode
Flag to set saving mode: 0=ASCII, 1=Binary.
#define AMS2
AMS2 address.
void MObjectSetShadow(MOBJECT obj, int type, int in, int out)
const char * Mir_Code[]
const char array for the realisation of the Mirrors buttons in the Mirror shell
#define TESTCCD
execution for testing CCD Camera
void SD_FNTorqueM(int mod)
Positioning NDFilter. .
double target
Azimuth Targrt position.
void MSelectObject(MOBJECT f)
void MShellRealize(MOBJECT obj)
MOBJECT KeyB[28]
Keyboard Buttons.
int DB_InitAMS(int nid, int mod, int powera, int stepa, int slopea, int speeda, int powerb, int stepb, int slopeb, int speedb)
Init selected AMS.
int NAMS
Number of AMSs Devices.
MOBJECT Albl_sunr
Active Control Panel Labels for Sunrise.
MOBJECT Sh_Wl
Wavelength Shell.
MOBJECT MCreateEdit(MOBJECT parent, const char *text, int len, MTFont font)
MOBJECT LedQJ
Control Panel Led for QJ Lamp.
double LastMSZA
SZA of the previous measurement.
void MObjectSetUnsensitive(MOBJECT obj)
void MEditSetTextExt(MOBJECT edit, const char *text, int validated, int notify)
void MBottomAttach(MOBJECT child, int att_type, int off, MOBJECT obj)
double S_azim
O: Solar azimuth angle: N=0, E=90, S=180, W=270.
int gratposmode
Grating position mode flag: = 0 step mode; = 1 Wl mode.
int SM_A
Motor A (su Y11) respectively: ID=0->InputMirror,ID=1->FilterWheel,ID=2->Zenith.
char * HomePosition[]
const char array for the realisation of the Filters buttons in the ND Filter shell ...
DXL structure. Structure for the serial communication with the AMS adapter.
void MOptionEditSetListCallback(MOBJECT obj, LIST_ACT_CB cb, void *data)
void MPixmapSetImageFile(MOBJECT pixmap, const char *fname)
das structure (contain all the previous structures) .
MOBJECT MDCreateDASConfig(void)
DAS Config shell. Procedure that build the shell for the DAS Config panels. The DAS Config allow for ...
MOBJECT Sh_Mir
Mirror Shell.
MOBJECT lbl_mvgratmode
Active Control Panel Labels for Sunset.
MOBJECT MCreateLabel(MOBJECT parent, const char *text, MTFont font)
Control Panel and push buttons colors .
void MSetMessageDialogFonts(MTFont text_font, MTFont buttons_font)
void MObjectSetResize(MOBJECT obj, int resize_w, int resize_h)
int Pos
Mirror Current Position.
flag Flag
Structure for different flags.
char HOMEDIRECTORY[_MAX_PATH]
int filtertype
type of installed filter module: 0=Simple-SM3, 1=Double-SM3+SM4, 2=simpleplus-SM3+TM) ...
MOBJECT Sh_Home
Home Shell.
short DB_BG_Albl[3]
Background ACTIVE Label Colors.
#define DBDEMO
execution in demo mode
MOBJECT pblamps[2]
Control Panel Push buttons for HG and QJ Lamps.
void MSetInputPromptFonts(MTFont text, MTFont edit, MTFont btn)
void MObjectAlign(MOBJECT obj, int h_align, int v_align)
void MSetInputPromptFgRGB(int r, int g, int b)
void D_Average(int mod)
Performs averaged measurements .
int PRG_Check(int mod, char *prgname)
int SD_Zenith(float ang)
Positioning Zenith. The Zenith reaches the position specified by ang.
int SimShell
= 1 Simultaneous positioning Shell opened
#define NOVA945GSE
NOVA945GSE (SPATRAM2, GASCODNG1, GASCODNG4)
int slope[AMSMAX][2]
Stepper Motors Slope.
int SD_FilterW(int filter)
Positioning Filter wheel. The filter wheel move on the filter number specified by filter...
U32 CamAdd
(R/W) Intrinsic camera address
MOBJECT Sh_mg
Password Shell.
void MTableFormSetColAlign(MOBJECT form, int col, int al)
char DATADIRECTORY[_MAX_PATH]
MOBJECT step[AMSMAX][2]
Active Control Panel Labels for Stepper Motors "step".
MOBJECT lbl_Par[11]
Parametric Labels of the Control Panel.
short DB_Sel[3]
Selected Buttons Colors.
void MSetMessageDialogFgRGB(int r, int g, int b)
double target
Zenith target position.
void MSListSelectElement(MOBJECT p, long n)
void AMS_PWM(int id, int on, int off)
set the on/off time on the PWM set the on/off time on the PWM.
char * MObjectGetText(MOBJECT obj, char *text)
geographical coordinate structure .
void AMS_Default(int id)
Set default values to AMS parameters Procedure for setting the default values of power.speed, stepping and slope to the selected AMS adapter.
MOBJECT MCreateClippedEdit(MOBJECT parent, const char *text, int len, int clip_len, MTFont font)
int WlSet
Wavelength position definition - for SD_Grating.
int target
Mirror Target position.
char * Fil_Code8H[]
const char array for the realisation of the Filters buttons in the Filter shell
#define TEMPORIZED
execution driven by MASTER file
void MSetMessageDialogRGB(int r, int g, int b)
void PeltierPS(int mod)
Peltier Power Supply ON/OFF .
float multiplier[AMSMAX][2]
multiplier, > 0 multiplier, < 0 demultiplier
MOBJECT MCreateOptionEdit(MOBJECT parent, const char *text, int len, int clip_len, int nrow, MTFont font)
MOBJECT Albl_CS[4]
Active Control Panel Labels for Camera Status 4.
void MShellUnrealize(MOBJECT obj)
void DB_Save(char *tit, int mod)
Save the acquired spectrum. Procedure that Save the acquired spectrum.
void Peltier(int mod)
Peltier ON/OFF .
NoMangle int DLL_IMPORT_EXPORT SioDone(int)
void MObjectSetText(MOBJECT obj, const char *text)
void QjLamp(int mod)
QJ Lamp ON/OFF .
void MButtonSetAccelerator(MOBJECT button, int key)
CTYPE const char *PROC_CALL DC_ErrorMessage(int ErrorCode)
Convert an error code into an error message (string). DC_Status returns an error code of the previous...
void(* OBJ_STRING_CB)(MOBJECT obj, char *str, void *ad)
int ChkDigIO(unsigned char word, int bitn)
check for digital I/O Status
MOBJECT Albl_suns
Active Control Panel Labels for Sunset.
int Pos
Filter Wheel current Position.
MENU_ITEM MMenuAddItemObsolete(MOBJECT pd, const char *item, MGUI_CB cb, void *ad)
MOBJECT Fil[6]
Filter Buttons.
MOBJECT Albl_Azim
Active Control Panel Labels for Sun Azimuth.
void MRemoveTimeout(TIMEOUT_ID id)
void Task_Timer(TIMEOUT_ID id, void *data)
Timer Task. Very useful procedure that: 1) Provide to refresh the clock display 2) Check if daylight ...
void MShellDestroy(MOBJECT obj)
MOBJECT slope[AMSMAX][2]
Active Control Panel Labels for Stepper Motors "Slope".
int MRButtonGetActivationStatus(MOBJECT o)
#define LIS_
Lampedusa Island Spectrometer - ENEA.
MOBJECT MCreateTableForm(MOBJECT parent, int n_cols)
unsigned int button
button pressed/released (Button1, Button2 or Button3), 0 if no button involved
int exec
= 0 -> PRG Execution Paused; = 1 -> PRG Execution Resumed
int Wl
Grating Wavelength.
#define TROPOGAS
TROPOspheric Gas Analyzer Spectrometer.
File Browser Preferences. Used by the Utility functions MFileBowserExt() and MDirBowserExt().
horizmeas HorizMeas
Structure for Horizontal Measurements.
void D_Saving(void)
Saving image. Procedure for saving the CCD Image Used since version 2.1.0. The coiche between binary ...
char * Fil_CodeNG[]
const char array for the realisation of the Filters buttons in the Filter shell for GASCODNG2 and NG3...
tools Tools
Push buttons for various tools.
MOBJECT lbl_Time
Control Panel Labels for Time.
long dp
Grating backslash recovery steps.
MOBJECT shell
Horizontal measurements shell.
unsigned int data[576]
Conversion data buffer 64 samples * 8 channels * 2 bytes.
MOBJECT MCreatePButton(MOBJECT parent, const char *text, MTFont font)
#define FDOUBLE
double filter wheel
#define FPLUS
Filter Wheel Torque Motor.
CTYPE void DLL DC_SetTemp(double TargetTemperature, int Scale, int Camera)
Procedure that turns the camera cooler on and allows you to set an operative temperature of the CCD...
CTYPE void DLL DC_Close(int Camera)
Shuts down the control operations of the camera. Procedure that shuts down the control operations of ...
C_DEF void DI_SplitName(char *fullname, char *fpath, char *fname)
int SD_Azimuth(float ang, float raz)
Positioning Azimuth. The Zenith reaches the position specified by ang.
#define OFFLINEPLOT
execution for archived data visualisation
#define GASCODNG2
GASCODNG 2 (with ATX power supply & HiresIV)
MOBJECT ledpelt[2]
Control Panel Leds for Peltier Activity.
void MPopupMenu(MOBJECT pm, int x, int y)
void MObjectSetWidth(MOBJECT obj, int w)
int D_Calibra(void)
Spectral Calibration Procedure for the spectral calibration with HG lamp. Shift of HG spectral line a...
unsigned char OOP[AMSMAX]
2 byte Word for AMS Opto insulated Output Port Status
MOBJECT Albl_Script
Active Control Panel Labels for Script in execution.
MOBJECT Sh_Fil
Filter Shell.
void AboutCB(MOBJECT o, void *s, void *v)
Create the About information shell. .
paramini structure . It contains some of the parameters defined in the file PARAM.INI .
#define SPATRAM2
SPATRAM2 (with ATX power supply & HiresV)
void MEditSetActCallback(MOBJECT edit, OBJ_STRING_CB cb, void *data)
MOBJECT HomePos[7]
Reference Position Buttons.
int Addr[AMSMAX]
address of AMs
int ViewPlot(int mod)
Create the plot shell. Procedure that build the plot shell for the data visualization.
#define SPATRAMPLUS
As SPATRAM plus AltAzimuth platform.
const char * MGetCurrentDirectory(void)
MOBJECT Wl[18]
Wavelength Buttons.
void Status(char *tit)
Writes information's on the Status label .
int ExtShutt(int mod)
change the status of the external shutter change the status of the external shutter (OPEN or CLOSED) ...
int NOVA_Out(int novatype, unsigned int out)
Write the NOVA Output port.
void delay(unsigned long d)
Pauses for a specified number of milliseconds. .
MOBJECT pbutt[15]
Horizontal Measurements Buttons.
int ChkWinInstance(char *buff, MOBJECT obj)
int DeltaSZA
= 1 Delta SZA measurements activated, = 0 Continous measurements
void MLabelSetMargin(MOBJECT p, int wm, int hm)
short DB_FG_Albl[3]
Foreground ACTIVE Label Colors.
void(* OBJ_EVENT_CB)(MOBJECT obj, MEvent *e, void *ad)
void MRButtonActivate(MOBJECT o)
char DBFILENAME[_MAX_PATH]
#define LISTEMP_TASK_TIME
spectrometer termoregulation
#define GASCODNG3
GASCODNG 3 (with ATX power supply & HiresIV)
#define PRGFILE
execution driven by *.prg file
MOBJECT MCreateColForm(MOBJECT parent)
int MFileBrowseExt(const char *t, const char *ext, char *fname, char *dname, FB_PREFS *prefs)
void HiresPS(int mod)
Hires Power Supply ON/OFF .
void MObjectAddEventNotifyCallback(MOBJECT obj, OBJ_EVENT_CB cb, CARD32 event_mask, void *a_data)
double AutoRange(int mod)
Calculate the exposure time The optimum exposure time (TExp) is calculated with an initial TExpAR=0...
short DB_BG_Plbl[3]
Background PASSIVE Label Colors.
MOBJECT Sh_NDFil
ND Filter Shell.
pushbutt PushButt
Push buttons.
#define GASCODNG1
GASCODNG 1 (with ATX power supply & HiresIV)
MOBJECT led[2]
led[0] = Lamp, led[1] = Shutter
void MShellRealizeXY(MOBJECT obj, int x, int y)
#define GASCODNG4
GASCODNG 4.
unsigned long AMS_ReadStep(int id, int motor)
read performed steps Procedure for the determination of the number of steps executed.
int backlashrec
flag for backlash recovery: =0 perform backlash rec.; = 1 DO NOT perform backlash rec...
char * Fil_CodeNG1[]
const char array for the realisation of the Filters buttons in the Filter shell for GASCODNG1 instrum...
const char * bg_image_file
#define FSIMPLE
simple filter wheel
MOBJECT MCreateShell(const char *title, int flags)
int MMessageDialog(const char *t, const char *msg, const char *btn1, const char *btn2,...)
int BuildLogRatio(void)
first attempt to apply the DOAS algorithm (..on going!!!)
void Message(char *str, int er)
Create a message shell for the AMS errors (Debug Use). .
#define SPATRAM3
SPATRAM3.
CTYPE int DLL DC_Status(int Camera)
Return the status of the last operations performed on the camera. This procedure allows you to check ...
short DB_BG[3]
Default Background Color.
double TExp
CCD Exposure time.
MOBJECT MCreateRButton(MOBJECT parent, const char *text, MTFont font)
int DB_HelpCB(MOBJECT o, void *od, void *ad)
Help Callback Create the help in the predefined WEB Browser.
configpanel ConfigPanel
Configuration panel structure.
MOBJECT Albl_Status
Active Control Panel Labels for Status.
MOBJECT Sh_SimPos
Simultaneous Positioning Shell.
MOBJECT Albl_LT[16]
Active Control Panel Labels for LIS Temperature 16.
int SM_B
Motor B (su Y12) respectively: ID=0->Grating,ID=1->Not Connected,ID=2->Azimuth.
#define CELSIUS
Return CCD temperature in Celsius.
int SetWorkDirMGUIenv(char *buff)
set DAS and MGUI enviroment when the program is launched undirectly (for offlineplot or log or auto o...
char * Fil_Code[]
const char array for the realisation of the Filters buttons in the Filter shell
BYTE DSCUDAPICALL dscFreeBoard(DSCB board)
#define TIMER_TASK_TIME
timer
void MLabelSetAlignment(MOBJECT p, int align)
int DT_LinkSpectra(void)
For the linked spectra (..on going!!!)
int wl[]
WaveLength definition - for SD_Grating.
MOBJECT ShellConfig
Shell configuration panel.
#define CLEARCCD
Clear CCD before acquire.
controlpanel ContrPanel
Control Panel Structure.
Bortul Image Library Structure .
void FANECU(int mod)
FAN ON/OFF .
CTYPE void DLL DC_ShutterControl(int mode, int camera)
int AMS_AzzeraCoord(int id, int mtr)
Set to zero the number of steps on the selected motor Set to zero the number of steps on the selecte...
void MPagedFormSetActivePage(MOBJECT form, int page)
void MFormSetSpacing(MOBJECT p, int offset)
void MPButtonSetCallback(MOBJECT button, MGUI_CB cb, void *data)
int target
Filter target Position.
#define AMS1
AMS1 address.
void MObjectSetCompositeWidth(MOBJECT obj, int w)
int LoadExec(char *fname)
Load file for automatic execution. Procedure that load the file for automatic execution.
MOBJECT frm_tbSM[AMSMAX][2]
tab for Stepper Motors
short DB_UnSelFG[3]
Unselected Buttons Colors.
int SD_Position(int m, int w, int f, double z, double a)
perform the simoultaneous positioning of the Spectrometer Devices m = mirror w = wavelength (Grating)...
int speed[AMSMAX][2]
Stepper Motors Speed.
MOBJECT Albl_IE[1]
Active Control Panel Labels for In Execution status.
int manhormeas
1 = horizontal measurements in manual mode
int step[AMSMAX][2]
Stepper Motors Step.
short DB_UnSel[3]
Unselected Buttons Colors.
int ExeDSZA
= 1 the measurements are performed, = 0 waiting for the next deltasza.
int aaopmode
operation mode for the Alt Az Platform, 0 = solar Traxker; 1 = Anti-Solar Tracker; 2 = Free Positioni...
int AMS_dirfin(int id, int dira, int dirb)
Set Final Directions .
int type
Event type (E_BUTTON_PRESS, E_BUTTON_RELEASE, E_MOTION, E_MOUSE_WHEEL)
int MSListAddItem(MOBJECT p, const char *item, void *data)
C_DEF void DI_FindExtName(char *fullname, char *fext)
MOBJECT NDFil[6]
ND Filter Buttons.
int DT_FluxIndex(void)
Callback for Flux Index Calculation.
char * Fil_CodeTropo[]
const char array for the realisation of the Filters buttons in the Filter shell for TROPOGAS instrume...
void MButtonSetOnMouseOverForegroundRGB(MOBJECT button, int r, int g, int b)
void MLoopWhileFlag(int *pflag, int value)
CTYPE void DLL DC_Cooler(int Mode, int Camera)
Procedure that allows you to control the cooler manually. Procedure that allows you to control the co...
#define NOSHUTTER
Do not control shutter.
void CCD_Error(char *str)
Alerts for CCD errors Creates a message window reporting the number of the error. ...
int DB_InfCB(MOBJECT o, void *od, void *ad)
Inf Callback Create the Inf shell.
char * NDFil_Code[]
const char array for the realisation of the Filters buttons in the ND Filter shell ...
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.
int EqType
Spectrometer Type.
#define TESTAD
execution for testing PC 104 AD converter
#define NOVA7892
NOVA7892 monoboard (old)
int com
Comunication port.
void MObjectSetTransparency(MOBJECT obj, CARD8 level)
void MObjectSetForegroundRGB(MOBJECT obj, int r, int g, int b)
double Pos
Azimuth Current Position.
void MShellSetWMCloseCallback(MOBJECT p, WM_CLOSE_CB cb, void *a_data)
void MObjectSetSensitive(MOBJECT obj)
int type
type of NOVA monoboard used (7892 or 945GSE)
int stepgratenc
step to the grating mode: = 0 typed steps sent to the stepper; = 1 typed step are parametrized ...
int on
PRG execution control variabile.
double Pos
Zenith Current Position.
int SD_NDFilterW(int filter)
Positioning Filter wheel. The filter wheel move on the filter number specified by filter...
MOBJECT LedHG
Control Panel Led for HG Lamp.
MOBJECT MCreateRowForm(MOBJECT parent)
float SMfraz(int t)
denominator value of the stepping ratio
MOBJECT lbl[15]
generic labels for hor meas shell
int extshutter
0 = external shutter open; 1 = external shutter closed
System password structure .
BYTE DSCUDAPICALL dscFree(void)
void ShutterOpening(int mod)
MOBJECT Pagedfrm_SM
Pged form for Stepper Motors.
MOBJECT MCreatePopupMenu(MTFont font)
MOBJECT power[AMSMAX][2]
active Control Panel Labels for Stepper Motors "power"
MOBJECT MCreateTabbedRowForm(MOBJECT parent, int npage, MTFont f)
int SM_stepr(int t)
AMS 'steps/round' value return the AMS 'steps/round' value (microstepping) depending on the setted st...
int exemode
Set the Execution MODE (Execution modes)
FilterWheelSt FWS
Filter Wheel.
long target
Grating target Wl.
#define AMS3
AMS3 address.
MOBJECT lblK[10]
Capital Labels Up.
int DB_GetCCD(int mod)
Get CCD Image. .
int x_root
coordinates relative to root
void MObjectSetBGColorFromParent(MOBJECT obj, int true_false, int percentage)
#define TESTAMS
execution for testing AMS's devices
int DB_StepMotor(int id, int motor, long step, int dir)
Send steps to the selected stepper motor. .
short DB_FG_lblUP[3]
Foreground Capital Letters Labels Color UP.
#define MANUAL
execution in manual mode (for lab use)
MOBJECT Mir[4]
Mirror Buttons.
int power[AMSMAX][2]
Stepper Motors Power.
const char * Mir_CodeTropo[]
const char array for the realisation of the Mirrors buttons in the Mirror shell for TROPOGAS ...
paramini Paramini
structure for the parameters defined in param.ini configuration file
LIST_ACT * MSListGetSelected(MOBJECT p)