Project

General

Profile

Wiki » History » Version 23

Alexandre Camsonne, 03/20/2019 10:42 AM

1 1 Alexandre Camsonne
h1. Wiki
2
3
h1. DAQ
4
5 4 Alexandre Camsonne
6
h2. Starting CODA
7 1 Alexandre Camsonne
DAQ is running on simonadaq computer in coda account in the vnc session number 1.
8
9
To open VNC, either start VNC from a computer at the counting house through ssh or make a ssh tunnel if you are offsite
10
11
Example :
12
13 9 Alexandre Camsonne
   ssh -L5901:locahost:portnumber username@hallgw.jlab.org     ( use a port number not in used on hallgw and there are some limitation on the port range I think between 10000 and 30000 should be ok)
14 1 Alexandre Camsonne
15
after from hallgw
16
17 9 Alexandre Camsonne
   ssh -Lportnumber:localhost:5901 cdaq@simonadaq 
18 1 Alexandre Camsonne
19
then open a vnc locally on your computer : vncviewer -shared localhost:1 ( ask Junqi or Sylvester for the vnc password )
20
21
To start CODA from scratch, login as coda
22
23
type startcoda
24
25
that will open the CODA windows
26
27 3 Alexandre Camsonne
If the ROC is not started alread, ssh root@hallcsc-1 and type ./startroc1
28
29 2 Alexandre Camsonne
in Run Control GUI, go to platform and connect.
30 1 Alexandre Camsonne
31 2 Alexandre Camsonne
Then choose the FADC configuration and just start a run.
32 1 Alexandre Camsonne
33 2 Alexandre Camsonne
To change the FADC parameters,
34
35
ssh to hallcsc-1 as root
36
37
go to /root/linuxvme/fadc/rol
38
39
and edit fadc_list.c
40
41
once done compile with :
42
43
 make fadc_list.so
44
45
and redownload in CODA to take the changes into account
46 4 Alexandre Camsonne
47
48 7 Alexandre Camsonne
I saw from time to time error in FADC ROC window about scanmask, usually stopping the run and redownloading fixes the issue.
49
50
h2. Powercycling the crate 
51
52
 telnet  129.57.168.242 2003
53
54
 type CAEN
55
56
and a menu should appear
57
58
     C.A.E.N.  A8160 VME8100 Crate Controller    V1.05     
59
60
     B O A R D   M E N U 
61
62
     Crate           PS & Fan Status   
63
     General         General Status    
64
     Update          PS Firmware Update
65
66
67
     Quit            Abandon program
68
69
Type C
70
71
and then you will see fan status and you can turn the crate on or off with O
72
73 23 Alexandre Camsonne
h2. Channel Map (update on Mar 20th for new MPC)
74 3 Alexandre Camsonne
75 22 Alexandre Camsonne
VME address 0x7000000
76 3 Alexandre Camsonne
77 21 Mark Jones
|_.FADC 1 (slot 6) (1V max range) |_.detector|
78 23 Alexandre Camsonne
| 0    |   Cer 1L      |
79
| 1    |   Cer 2L       |
80
| 2    |   Cer 3L       |
81
| 3    |   Not used       |
82
| 4    |   Cer 4L      |
83
| 5    |   Cer 5L       |
84
| 6    |   Cer 6L       |
85
| 7    |   Not used       |
86
| 8    |   Cer 1R       |
87
| 9    |   Cer 2R       |
88
| 10   |   Cer 3R       |
89
| 11   |  Not used        |
90
| 12   |   Cer 4R       |
91
| 13   |   Cer 5R      |
92
| 14   |   Cer 6R       |
93
| 15   |   Not used       |
94 22 Alexandre Camsonne
95
96
VME address 0x7800000
97
98 1 Alexandre Camsonne
99 21 Mark Jones
|_.FADC 2 (slot 7) 2V max range |_.detector|
100 23 Alexandre Camsonne
| 0    |   Calo 2       |
101
| 1    |   Calo 3    |
102
| 2    |   Calo 4       |
103
| 3    |   Calo 5       |
104
| 4    |   Calo sum       |
105
| 5    |   Not used       |
106
| 6    |   Not used      |
107
| 7    |   LED       |
108
| 8    |   Not used       |
109
| 9    |   Not used       |
110
| 10    |  Not used       |
111
| 11    |  Reference time       |
112
| 12   |   Scint bottom right       |
113
| 13   |   Scint bottom left       |
114
| 14   |   Scint top right       |
115
| 15   |   Scint top Left      |
116 2 Alexandre Camsonne
117 1 Alexandre Camsonne
h1. FADC data analysis
118
119 2 Alexandre Camsonne
120 1 Alexandre Camsonne
on cdaq account
121
122 2 Alexandre Camsonne
go to /home/cdaq/tlgc/FADC_decode
123
124
and run FADCcom program
125
126
you need to copy the CODA file from simonadaq to /net/cdaq/cdaql1data/cdaq/tlgc/data ( from simonadaq : scp fadc_runnumber.dat cdaq@cdaql2:tlgc/data/ )
127
128
129
if you open the rootfile you will see the different directories corresponding to the channels decoded.
130 6 Mark Jones
131
132
h1. HV
133
134
h2. Access HV crate.
135
*The HV crate can be remotely accessed through the port server port 2002 to access the port: telnet  129.57.168.242 2002
136
*To end a telnet session type:"CTRL-]" then quit
137
*If someone else is connected to the 2002 if you get :
138
<pre>
139
   Trying 129.57.168.242...
140
telnet: connect to address 129.57.168.242: Connection refused
141
</pre>
142
143
*To force a connect you must first kill the 2002 connection by the following steps:
144
> # telnet  129.57.168.242 ( login: root password:dbps)
145
> # at "#>" prompt type: kill tty=2
146
> #  at "#>" prompt type: "CTRL-]" then quit
147
   
148
*press the "U" ( for update) if  you see the following:
149
150
<pre>
151
16:40:40 104% telnet 129.57.168.242 2002
152
Trying 129.57.168.242...
153
Connected to 129.57.168.242.
154
Escape character is '^]'.
155
156
Digi International 
157
PortServer 8
158
</pre> 
159
160
 
161
*Press "D" if you see the main menu
162
<pre>
163
**************
164
      M A I N   M E N U
165
166
      Display             Display/Modify channels
167
      Protections         Set/Reset password
168
      Crate               Connect a new crate
169
      Map                 Crate map
170
      Kill                Kill all channels
171
      Alarms              Reset alarms
172
      Status              Select type of alarm
173
      Format              Reformat EEPROM
174
      Quit                Abandon program
175
***********
176
</pre>
177
178
*You should eventually see (hitting "P" moves to different pages:
179
<pre>
180
181
Channel       Vmon     Imon    HVmax   V0set     I0set     Hv   Status   Ch#
182
 CHANNEL48    0000.00  0000.00  2321   1700.00   2000.00   Off             48
183
 CHANNEL49    0000.00  0000.00  2321   1700.00   2000.00   Off             49
184
 CHANNEL50    0000.00  0000.00  2321   1850.00   2000.00   Off             50
185
 CHANNEL51    0000.00  0000.00  2321   1700.00   2000.00   Off             51
186
 CHANNEL52    0000.00  0000.00  2321   1900.00   2000.00   Off             52
187
 CHANNEL53    0000.00  0000.00  2321   1900.00   2000.00   Off             53
188
 cerA         0000.00  0000.00  2321   1000.00   2000.00   Off             54
189
 cerB         0000.00  0000.00  2321   1000.00   2000.00   Off             55
190
 cerC         0000.00  0000.00  2321   1000.00   2000.00   Off             56
191
 cerD         0000.00  0000.00  2321   1000.00   2000.00   Off             57
192
 CHANNEL58    0000.00  0000.00  2321   0000.00   2000.00   Off             58
193
 CHANNEL59    0000.00  0000.00  2321   1000.00   2000.00   Off             59
194
 calo2        1653.40  0880.00  2321   1650.00   2000.00    On             60
195
 calo3        1653.60  0913.00  2321   1650.00   2000.00    On             61
196
 calo4        1553.20  0849.00  2321   1550.00   2000.00    On             62
197
 calo5        1453.20  0790.00  2321   1450.00   2000.00    On             63
198
199
or
200
Channel       Vmon     Imon    HVmax   V0set     I0set     Hv   Status   Ch#
201
 chan16       0000.00  0000.00  1048   0200.00   1000.00   Off             16
202
 scinF        0847.80  0213.00  1048   0850.00   1000.00    On             17
203
 scinB        0847.40  0216.00  1048   0850.00   1000.00    On             18
204
 CHANNEL19    0000.00  0000.00  1048   0200.00   1000.00   Off             19
205
 CHANNEL20    0000.00  0000.00  1048   0200.00   1000.00   Off             20
206
 CHANNEL21    0000.00  0000.00  1048   0200.00   1000.00   Off             21
207
 CHANNEL22    0000.00  0000.00  1048   0200.00   1000.00   Off             22
208
 CHANNEL23    0000.00  0000.00  1048   0200.00   1000.00   Off             23
209
 CHANNEL24    0023.40  0000.00  1048   0200.00   0800.00   Off             24
210
 CHANNEL25    0000.00  0000.00  1048   0200.00   0800.00   Off             25
211
 CHANNEL26    0000.00  0000.00  1048   0200.00   0800.00   Off             26
212
 CHANNEL27    0000.00  0000.00  1048   0200.00   0800.00   Off             27
213
 CHANNEL28    0000.00  0000.00  1048   0200.00   0800.00   Off             28
214
 CHANNEL29    0000.00  0000.00  1048   0200.00   0800.00   Off             29
215
 CHANNEL30    0000.00  0000.00  1048   0200.00   0800.00   Off             30
216
 CHANNEL31    0000.00  0000.00  1048   0200.00   0800.00   Off             31
217
218
</pre>