|
#ifndef __PROTO_H__
|
|
#define __PROTO_H__
|
|
//INIT
|
|
void fatal_error (char msg[]);
|
|
int init_main (char uir[]);
|
|
int init_close (void);
|
|
int init_panel_Measure(int dimmed);
|
|
int init_instrument (void);
|
|
int init_panel (void);
|
|
int init_reset_panel (void);
|
|
int init_usine (void);
|
|
int init_phase(void);
|
|
|
|
|
|
//LOG
|
|
int save_LOG (char *texte);
|
|
int test_LOG(int test);
|
|
//UIR
|
|
int validationSETUP(int instrum);
|
|
//CMD_INST
|
|
int read_TEMP(float* temp_batt,float* temp_ext, float* rh) ;
|
|
int init_TEMP(int inst);
|
|
int cmd_SMU_curr (float volt,float curr);
|
|
int cmd_SMU_Read (double *volt,double *curr);
|
|
int init_type_inst(int inst);
|
|
int init_SMU(int inst);
|
|
int init_LOAD(int inst);
|
|
int init_POWER(int inst);
|
|
int init_SAS(int inst);
|
|
int init_PM(int inst);
|
|
int init_PM_CAL(void);
|
|
int init_PM_measure(void);
|
|
int cmd_load (float volt,float curr,int etat);
|
|
int cmd_power(float tension,float courant,int etat);
|
|
int cmd_display_text(int instrum,char* txt);
|
|
int read_PM_YOKOGAWA(double *Vin,double *Iin,double *Pin,
|
|
double *Vout,double *Iout,double *Pout,double *V3,double *V4,double *I3,double *I4,double *P3,double *P4);
|
|
int read_Cal_PM_YOKOGAWA(double *CalVin,double *CalIin,
|
|
double *CalVout,double *CalIout);
|
|
int read_PM_volt(double *volt);
|
|
int cmd_PM_CAL_V(int element,double setting);
|
|
|
|
|
|
//XML
|
|
int load_xml (void );
|
|
int save_xml (void);
|
|
int load_consigne_xml (char chemin_nom[]) ;
|
|
int save_consigne_xml (char chemin_nom[]);
|
|
//PANEL
|
|
int Set_panel_cycle_mode ();
|
|
int Set_panel_cycle (int cycle);
|
|
int Get_panel_cycle ();
|
|
char * fnct_ID_panel(int i,char* str);
|
|
//FNCT
|
|
char * fnct_ID_inst(int i,char* str);
|
|
void fnct_Ctrl_mode(int mode);
|
|
int CVICALLBACK CVI_timer (int reserved, int timerId, int event, void *callbackData, int eventData1, int eventData2);
|
|
int Set_panel_measure_time_total(void);
|
|
int Set_panel_measure_time_elapsed (void);
|
|
int Set_panel_measure_time_remaining(void);
|
|
int fnct_stop (void);
|
|
int fnct_start (void);
|
|
int fnct_measure (void);
|
|
int fnct_PID (void);
|
|
int fnct_plot (int color) ;
|
|
int fnct_cal_err(void);
|
|
int fnct_attente (int i,char* message);
|
|
//FILE
|
|
int save_dir_init (void );
|
|
int save_file_init (void );
|
|
#endif
|