1 | #define capa(uu) ((parametr.bolo[uu-1].bolo_bebo==10)?0.000868 * (double)parametr.bolo[uu-1].bolo_capa:0.001 * (double)parametr.bolo[uu-1].bolo_capa) // capa en pF
|
---|
2 | #define pt_micA(uu) ((4096. * 22. * 20.) / capa(uu) ) // pts / micro Amperes
|
---|
3 | #define calcI(uu) ( (double) litD(uu,b_tri,0L) / pt_micA(uu) ) // I en µA
|
---|
4 |
|
---|
5 |
|
---|
6 | #define pt_micV(uu) (((double)parametr.bolo[uu-1].bolo_diviseur) / 2441.) // pts / microvolt
|
---|
7 | #define calcV(uu) ( (double)litD(uu,b_carre,0L) / pt_micV(uu) ) // V en microVolts
|
---|
8 |
|
---|
9 |
|
---|
10 | void ecritgain(int fen);
|
---|
11 | void mesures_bolo(int fen,int carre,int triangle,int flag);
|
---|
12 |
|
---|
13 | //------------------------------ structure infos de la fenetre bolo ----------------------------------
|
---|
14 |
|
---|
15 | enum {pipo,MLPA,BEBO}; // types de bolometres
|
---|
16 |
|
---|
17 | enum {d_carre,d_tri,d_lin,d_trans}; // place dans le tableau des DAC
|
---|
18 |
|
---|
19 |
|
---|
20 | //debut_id=1001
|
---|
21 | //---------------------------------- fenetre : bolo -----------------------------------
|
---|
22 |
|
---|
23 | #define bolo_id 1001 // le id de la fenetre dans la ressource
|
---|
24 |
|
---|
25 | void exec_bolo(int fen,int item,double valeur,...); // prototype de la fonction
|
---|
26 |
|
---|
27 | // liste des items de la fenetre (22) items
|
---|
28 |
|
---|
29 | #define b_auto_trans 3 // static texte
|
---|
30 | #define b_auto_lin 4 // static texte
|
---|
31 | #define b_carre 5 // controle
|
---|
32 | #define b_tri 6 // controle
|
---|
33 | #define b_trans 7 // controle
|
---|
34 | #define b_lin 8 // controle
|
---|
35 | #define b_auto 10 // controle
|
---|
36 | #define b_phase 12 // controle
|
---|
37 | #define b_gain 13 // controle
|
---|
38 | #define b_res 15 // static texte
|
---|
39 | #define b_bloq 16 // controle
|
---|
40 | #define b_auto_R 18 // edit texte
|
---|
41 | #define b_voy 19 // controle
|
---|
42 | #define b_comm 20 // controle
|
---|
43 | #define b_voie 22 // controle
|
---|
44 |
|
---|
45 | //fin_id
|
---|
46 |
|
---|
47 |
|
---|