Project

General

Profile

fix092910_setup.txt

Kyle Hazelwood, 01/15/2015 11:46 AM

 
1
(gdb) p gendnam
2
$1 = {"setup\000\000", "pltpar\000", "climit\000", "desob\000\000", "skip\000\000\000", "c453sf\000", "c453g\000\000", "c453h\000\000", "c453map", "c453clk", "c453gii", "c453hii", "miscpar", "c453mdt"}
3
(gdb) 
4

    
5
(gdb) p sqlcmd
6
$2 = "select * from wu.i50_gen_longs where name='setup' and tclk=0 and plane=0 and slot=0 and date=(select MAX(date) from wu.i50_gen_longs where name='setup' and tclk=0 and plane=0 and slot=0)\000
7
(gdb) 
8

    
9
(gdb) p setp
10
$6 = {cycle = 3, plane = 0, slot = 0, if_p_corr = 1, if_d_orbit = 1, if_3bump = 2, tolerance = 1999, stepcut = 50, if_save_g = 1, bpmsource = 0, stop_step = 3, corr_plt_opt = 0, curr_set_plt_opt = 1, new_set_plt_opt = 1, gtable_num = 1, lattice_fid = 8, if_reduce_net_bend = 1, bpm_cycle = 3}
11
(gdb)
12

    
13
1> select distinct name from i50_gen_shorts
14
2> go
15
 name
16
 --------
17

    
18

    
19
 c453clk
20
 c453g
21
 c453gii
22
 c453h
23
 c453hii
24
 c453map
25
 c453mdt
26
 c453sf
27

    
28
(10 rows affected)
29
1> select distinct name from i50_gen_longs
30
2> go
31
 name
32
 --------
33

    
34
 desob
35
 miscpar
36
 pltpar
37
 setup
38
 skip
39

    
40
(6 rows affected)
41
1> select distinct name from i50_gen_floats
42
2> go
43
 name
44
 --------
45
 climit
46
 desob
47
 fsetup
48

    
49
(3 rows affected)
50

    
51
typedef struct { 
52
  /* pars that define correction, stored in multi-records */
53
  int		cycle;
54
  int		plane;
55
  int		slot;
56
  int		if_p_corr;
57
  int		if_d_orbit;
58
  int		if_3bump;
59
  int		tolerance;
60
  int		stepcut;
61
  int		if_save_g;
62
  int		bpmsource;
63
  int		stop_step;
64
  int		corr_plt_opt;
65
  int		curr_set_plt_opt;
66
  int		new_set_plt_opt;
67
  int		gtable_num;
68
  int		lattice_fid;
69
  int		if_reduce_net_bend;
70
  int		bpm_cycle;
71
 }  __attribute__((packed)) /* Added by the PACKINATOR(tm) */ SETUP_STRUCT;
72

    
73

    
74
typedef struct {
75
  char			name[GEN_NAM_LEN];
76
  int			tclk;
77
  int			plane;
78
  int			slot;
79
  int			date;
80
  int			fid;
81
  int			my_lock;
82
  char			title[TIT_LEN];
83
 } __attribute__((packed)) /* Added by the PACKINATOR(tm) */ GEN_DB_HDR_STRUCT;
84

    
85
typedef struct {
86
  GEN_DB_HDR_STRUCT	hdr;
87
  union {
88
     int		longs[GEN_DB_DATA_SIZE];         /*dataType = 0 */
89
     short		shorts[GEN_DB_DATA_SIZE];        /*dataType = 1 */
90
     float		floats[GEN_DB_DATA_SIZE];        /*dataType = 2 */
91
   } x;
92
 } __attribute__((packed)) /* Added by the PACKINATOR(tm) */ GEN_DB_STRUCT;
93

    
94
typedef struct {
95
   GEN_DB_HDR_STRUCT    rec[GEN_MAX_RECS];
96
   int			num_recs;
97
 }  __attribute__((packed)) /* Added by the PACKINATOR(tm) */ GEN_DIR_STRUCT;
98