mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-05 17:40:40 +02:00
removed unused scripts
This commit is contained in:
parent
10f89599e0
commit
43dc9df6db
@ -1,24 +0,0 @@
|
|||||||
module 0 center 6.395E+02 +- 0.00E+00 conversion 6.5660E-05 +- 7.10E-09 offset 0.00000 +- 0.00015
|
|
||||||
module 1 center 6.395E+02 +- 0.00E+00 conversion 6.5650E-05 +- 7.09E-09 offset 5.00211 +- 0.00015
|
|
||||||
module 2 center 6.395E+02 +- 0.00E+00 conversion 6.5625E-05 +- 7.09E-09 offset 10.00733 +- 0.00015
|
|
||||||
module 3 center 6.395E+02 +- 0.00E+00 conversion 6.5618E-05 +- 7.09E-09 offset 15.00742 +- 0.00015
|
|
||||||
module 4 center 6.395E+02 +- 0.00E+00 conversion 6.5642E-05 +- 7.15E-09 offset 20.00620 +- 0.00015
|
|
||||||
module 5 center 6.395E+02 +- 0.00E+00 conversion 6.5612E-05 +- 7.09E-09 offset 25.00281 +- 0.00015
|
|
||||||
module 6 center 6.395E+02 +- 0.00E+00 conversion 6.5623E-05 +- 6.93E-09 offset 30.00704 +- 0.00015
|
|
||||||
module 7 center 6.395E+02 +- 0.00E+00 conversion 6.5605E-05 +- 7.10E-09 offset 34.99715 +- 0.00015
|
|
||||||
module 8 center 6.395E+02 +- 0.00E+00 conversion 6.5643E-05 +- 7.21E-09 offset 39.99533 +- 0.00015
|
|
||||||
module 9 center 6.395E+02 +- 0.00E+00 conversion 6.5638E-05 +- 7.09E-09 offset 44.99969 +- 0.00015
|
|
||||||
module 10 center 6.395E+02 +- 0.00E+00 conversion 6.5638E-05 +- 6.94E-09 offset 49.99859 +- 0.00015
|
|
||||||
module 11 center 6.395E+02 +- 0.00E+00 conversion 6.5644E-05 +- 7.10E-09 offset 54.99499 +- 0.00015
|
|
||||||
module 12 center 6.395E+02 +- 0.00E+00 conversion 6.5618E-05 +- 7.09E-09 offset 59.99120 +- 0.00015
|
|
||||||
module 13 center 6.395E+02 +- 0.00E+00 conversion 6.5607E-05 +- 7.11E-09 offset 64.98880 +- 0.00015
|
|
||||||
module 14 center 6.395E+02 +- 0.00E+00 conversion 6.5609E-05 +- 7.09E-09 offset 69.98205 +- 0.00015
|
|
||||||
module 15 center 6.395E+02 +- 0.00E+00 conversion 6.5611E-05 +- 7.09E-09 offset 74.98379 +- 0.00015
|
|
||||||
module 16 center 6.395E+02 +- 0.00E+00 conversion 6.5619E-05 +- 4.72E-09 offset 79.98559 +- 0.00015
|
|
||||||
module 17 center 6.395E+02 +- 0.00E+00 conversion 6.5604E-05 +- 7.09E-09 offset 84.98376 +- 0.00015
|
|
||||||
module 18 center 6.395E+02 +- 0.00E+00 conversion 6.5605E-05 +- 7.09E-09 offset 89.98307 +- 0.00015
|
|
||||||
module 19 center 6.395E+02 +- 0.00E+00 conversion 6.5616E-05 +- 7.09E-09 offset 94.98907 +- 0.00015
|
|
||||||
module 20 center 6.395E+02 +- 0.00E+00 conversion 6.5634E-05 +- 7.08E-09 offset 99.97965 +- 0.00015
|
|
||||||
module 21 center 6.395E+02 +- 0.00E+00 conversion 6.5608E-05 +- 4.16E-09 offset 104.99732 +- 0.00016
|
|
||||||
module 22 center 6.395E+02 +- 0.00E+00 conversion 6.5608E-05 +- 7.09E-09 offset 109.98646 +- 0.00015
|
|
||||||
module 23 center 6.395E+02 +- 0.00E+00 conversion 6.5649E-05 +- 7.09E-09 offset 114.98765 +- 0.00015
|
|
@ -1,5 +0,0 @@
|
|||||||
15
|
|
||||||
1528
|
|
||||||
5000
|
|
||||||
6513
|
|
||||||
|
|
39
examples/config_gen_script/generic_example.config
Normal file
39
examples/config_gen_script/generic_example.config
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
hostname hostname1+hostname2+hostname3+hostname55+
|
||||||
|
header_var1 wow
|
||||||
|
header_var2 great
|
||||||
|
header_var3 very nice
|
||||||
|
|
||||||
|
0:counter1 100
|
||||||
|
0:counter2 1024
|
||||||
|
0:counter3 1500
|
||||||
|
0:forallmodules val_mod1
|
||||||
|
0:constant1 const1
|
||||||
|
0:constant2 const2
|
||||||
|
0:constant3 const3 /path/to/something
|
||||||
|
|
||||||
|
1:counter1 101
|
||||||
|
1:counter2 1036
|
||||||
|
1:counter3 1503
|
||||||
|
1:forallmodules val_mod2
|
||||||
|
1:constant1 const1
|
||||||
|
1:constant2 const2
|
||||||
|
1:constant3 const3 /path/to/something
|
||||||
|
|
||||||
|
2:counter1 102
|
||||||
|
2:counter2 1048
|
||||||
|
2:counter3 1506
|
||||||
|
2:forallmodules val_mod3
|
||||||
|
2:constant1 const1
|
||||||
|
2:constant2 const2
|
||||||
|
2:constant3 const3 /path/to/something
|
||||||
|
|
||||||
|
3:counter1 103
|
||||||
|
3:counter2 1060
|
||||||
|
3:counter3 1509
|
||||||
|
3:forallmodules val_mod4
|
||||||
|
3:constant1 const1
|
||||||
|
3:constant2 const2
|
||||||
|
3:constant3 const3 /path/to/something
|
||||||
|
|
||||||
|
footer1 foot1
|
||||||
|
footer2 somethingelseathebottom
|
47
examples/config_gen_script/generic_example.config_gen
Executable file
47
examples/config_gen_script/generic_example.config_gen
Executable file
@ -0,0 +1,47 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# local variables
|
||||||
|
a_variable=/path/to/something
|
||||||
|
|
||||||
|
# HOSTNAMES is special
|
||||||
|
# Beside of the hostname line it also defines the amount of modules
|
||||||
|
# for the body part
|
||||||
|
# take care for the last space
|
||||||
|
HOSTNAMES="hostname1 hostname2 hostname3 hostname55 "
|
||||||
|
|
||||||
|
## header contains constant values at the beginning of the file
|
||||||
|
header=(
|
||||||
|
header_var1="wow"
|
||||||
|
header_var2="great"
|
||||||
|
header_var3="very nice"
|
||||||
|
)
|
||||||
|
|
||||||
|
## the body part is for each half module
|
||||||
|
# counters will count automatically
|
||||||
|
# the number behind ':' indicates the incrementation value
|
||||||
|
|
||||||
|
counters=(
|
||||||
|
counter1="100:1"
|
||||||
|
counter2="1024:12"
|
||||||
|
counter3="1500:3"
|
||||||
|
)
|
||||||
|
|
||||||
|
# constant values
|
||||||
|
constants=(
|
||||||
|
constant1="const1"
|
||||||
|
constant2="const2"
|
||||||
|
constant3="const3 ${a_variable}"
|
||||||
|
)
|
||||||
|
|
||||||
|
# lists contains space separated lists each value for each half module
|
||||||
|
lists=(
|
||||||
|
forallmodules="val_mod1 val_mod2 val_mod3 val_mod4"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
## footer contains constant values for the end of the file
|
||||||
|
footer=(
|
||||||
|
footer1=foot1
|
||||||
|
footer2=somethingelseathebottom
|
||||||
|
)
|
||||||
|
|
@ -1,32 +0,0 @@
|
|||||||
type Mythen+
|
|
||||||
0:hostname mcs1x21
|
|
||||||
0:port 1952
|
|
||||||
0:stopport 1953
|
|
||||||
0:settingsdir /afs/psi.ch/user/b/bergamaschi
|
|
||||||
0:outdir /afs/psi.ch/user/b/bergamaschi
|
|
||||||
0:angdir 1.000000
|
|
||||||
0:moveflag 1.000000
|
|
||||||
0:lock 0
|
|
||||||
0:caldir /afs/psi.ch/user/b/bergamaschi
|
|
||||||
0:ffdir /afs/psi.ch/user/b/bergamaschi
|
|
||||||
0:nmod 1
|
|
||||||
0:waitstates 13
|
|
||||||
0:setlength 3
|
|
||||||
0:clkdivider 6
|
|
||||||
0:extsig:0 gate_in_active_high
|
|
||||||
0:extsig:1 trigger_in_rising_edge
|
|
||||||
0:extsig:2 off
|
|
||||||
0:extsig:3 off
|
|
||||||
master -1
|
|
||||||
sync none
|
|
||||||
outdir /afs/psi.ch/user/b/bergamaschi
|
|
||||||
ffdir /afs/psi.ch/user/b/bergamaschi
|
|
||||||
headerbefore none
|
|
||||||
headerafter none
|
|
||||||
headerbeforepar none
|
|
||||||
headerafterpar none
|
|
||||||
badchannels none
|
|
||||||
angconv none
|
|
||||||
globaloff 0.000000
|
|
||||||
binsize 0.001000
|
|
||||||
threaded 1
|
|
@ -1 +0,0 @@
|
|||||||
dataport 1955
|
|
@ -1,10 +0,0 @@
|
|||||||
#!/bin/csh -f
|
|
||||||
#set l = `ipcs -m | grep "$USER"| cut -c12-19`
|
|
||||||
set l = `ipcs -m | cut -c0-10`
|
|
||||||
foreach s ( $l )
|
|
||||||
echo $s
|
|
||||||
ipcrm -M $s
|
|
||||||
end
|
|
||||||
#if ($#l != 0 )
|
|
||||||
echo $#l shared memory\(s\) for $user removed
|
|
||||||
|
|
@ -1,142 +0,0 @@
|
|||||||
#! /bin/awk -f
|
|
||||||
|
|
||||||
# this is an awk script to start a run
|
|
||||||
# you first need to run inimodule.awk to initialize
|
|
||||||
# the pattern, set Vc and set the trimbits
|
|
||||||
#
|
|
||||||
|
|
||||||
#####################################################################
|
|
||||||
# revision history #
|
|
||||||
#####################################################################
|
|
||||||
# 31.10.2001 first version #
|
|
||||||
#####################################################################
|
|
||||||
# #
|
|
||||||
# Bernd Schmitt #
|
|
||||||
# #
|
|
||||||
# bernd.schmitt@psi.ch #
|
|
||||||
# #
|
|
||||||
#####################################################################
|
|
||||||
# #
|
|
||||||
# modifications: #
|
|
||||||
# #
|
|
||||||
# 1.3.2002 BS adapted for use with DCB #
|
|
||||||
# #
|
|
||||||
# 25.5.2002 BS adapted to new convert program #
|
|
||||||
# #
|
|
||||||
# 29.5.2002 sleep -> usleep for meas. time , TS #
|
|
||||||
# #
|
|
||||||
#####################################################################
|
|
||||||
|
|
||||||
BEGIN {
|
|
||||||
|
|
||||||
# initialize variables
|
|
||||||
NPAR=3
|
|
||||||
|
|
||||||
PAR[1]="nrun"
|
|
||||||
PAR[2]="fn"
|
|
||||||
PAR[3]="par"
|
|
||||||
|
|
||||||
# initialize default values
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
PARVAL[1] = 100
|
|
||||||
PARVAL[2] = "microstrip_july2007"
|
|
||||||
PARVAL[3]=0
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
printf("\n\nnumber of command line arguments: %i (incl. command)\n\n", ARGC);
|
|
||||||
|
|
||||||
# read command line defined variables
|
|
||||||
if (ARGC>1) {
|
|
||||||
printf("\n\nnumber of command line arguments: %i (incl. command)\n\n", ARGC);
|
|
||||||
for (i=1; i<=ARGC; i++) {
|
|
||||||
printf("%s \n", ARGV[i]);
|
|
||||||
nsplit=split(ARGV[i],array,"=")
|
|
||||||
VAR = array[1];
|
|
||||||
VAL = array[2];
|
|
||||||
|
|
||||||
for (j=1; j<=NPAR; j++) {
|
|
||||||
if ( VAR==PAR[j] ) {
|
|
||||||
PARVAL[j] = VAL
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
run=PARVAL[1]
|
|
||||||
fn=PARVAL[2]
|
|
||||||
par=PARVAL[3]
|
|
||||||
|
|
||||||
|
|
||||||
# print command line arguments
|
|
||||||
for (i=1; i<=NPAR; i++){
|
|
||||||
printf("\t... %2i.\t%7s = %s\n", i, PAR[i], PARVAL[i] );
|
|
||||||
}
|
|
||||||
printf("\n\n");
|
|
||||||
|
|
||||||
# generate parameter file
|
|
||||||
|
|
||||||
fnamep=fn".parab"
|
|
||||||
printf("header before\n")>> fnamep
|
|
||||||
system("date >>"fnamep)
|
|
||||||
printf("run=%i \n", run ) >> fnamep
|
|
||||||
|
|
||||||
#print detector parameters to file
|
|
||||||
if (par==1) {
|
|
||||||
|
|
||||||
command="sls_detector_get exptime| awk -F \" \" '{print $2}'"
|
|
||||||
command | getline var
|
|
||||||
printf("acquisition time = %11.6f second(s)\n", var) >> fnamep
|
|
||||||
|
|
||||||
command="sls_detector_get settings| awk -F \" \" '{print $2}'"
|
|
||||||
command | getline var
|
|
||||||
printf("settings = %s\n", var) >> fnamep;
|
|
||||||
|
|
||||||
command="sls_detector_get threshold| awk -F \" \" '{print $2}'"
|
|
||||||
command | getline var
|
|
||||||
printf("threshold energy = %d eV\n", var) >> fnamep;
|
|
||||||
|
|
||||||
command="sls_detector_get badchannels| awk -F \" \" '{print $2}'"
|
|
||||||
command | getline var
|
|
||||||
printf("bad channel list = %s\n",var) >> fnamep;
|
|
||||||
|
|
||||||
|
|
||||||
command="sls_detector_get angconv| awk -F \" \" '{print $2}'"
|
|
||||||
command | getline var
|
|
||||||
printf("angle calibration conversion = %s\n",var) >> fnamep;
|
|
||||||
|
|
||||||
|
|
||||||
command="sls_detector_get globaloff| awk -F \" \" '{print $2}'"
|
|
||||||
command | getline var
|
|
||||||
printf("beamline offset = %f deg\n", var) >> fnamep;
|
|
||||||
|
|
||||||
command="sls_detector_get fineoff| awk -F \" \" '{print $2}'"
|
|
||||||
command | getline var
|
|
||||||
printf("fine offset = %f deg\n", var) >> fnamep;
|
|
||||||
|
|
||||||
command="sls_detector_get flatfield| awk -F \" \" '{print $2}'"
|
|
||||||
command | getline var
|
|
||||||
printf("Flat field corrections = %s\n",var) >> fnamep;
|
|
||||||
|
|
||||||
command="sls_detector_get ratecorr| awk -F \" \" '{print $2}'"
|
|
||||||
command | getline var
|
|
||||||
printf("Dead time corrections tau = %d ns\n",var) >> fnamep;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#print beamline parameters to file
|
|
||||||
|
|
||||||
#read detector position
|
|
||||||
system("caget X04SA-ES2-TH2:RO.RBV >>"fnamep)
|
|
||||||
#read I0
|
|
||||||
system("caget X04SA-ES2-SC:CH6>>"fnamep)
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,87 +0,0 @@
|
|||||||
#! /bin/awk -f
|
|
||||||
|
|
||||||
# this is an awk script to start a run
|
|
||||||
# you first need to run inimodule.awk to initialize
|
|
||||||
# the pattern, set Vc and set the trimbits
|
|
||||||
#
|
|
||||||
|
|
||||||
#####################################################################
|
|
||||||
# revision history #
|
|
||||||
#####################################################################
|
|
||||||
# 31.10.2001 first version #
|
|
||||||
#####################################################################
|
|
||||||
# #
|
|
||||||
# Bernd Schmitt #
|
|
||||||
# #
|
|
||||||
# bernd.schmitt@psi.ch #
|
|
||||||
# #
|
|
||||||
#####################################################################
|
|
||||||
# #
|
|
||||||
# modifications: #
|
|
||||||
# #
|
|
||||||
# 1.3.2002 BS adapted for use with DCB #
|
|
||||||
# #
|
|
||||||
# 25.5.2002 BS adapted to new convert program #
|
|
||||||
# #
|
|
||||||
# 29.5.2002 sleep -> usleep for meas. time , TS #
|
|
||||||
# #
|
|
||||||
#####################################################################
|
|
||||||
|
|
||||||
BEGIN {
|
|
||||||
|
|
||||||
# initialize variables
|
|
||||||
NPAR=4
|
|
||||||
|
|
||||||
PAR[1]="nrun"
|
|
||||||
PAR[2]="fn"
|
|
||||||
PAR[3]="var"
|
|
||||||
PAR[4]="par"
|
|
||||||
|
|
||||||
|
|
||||||
# initialize default values
|
|
||||||
PARVAL[1] = 100
|
|
||||||
PARVAL[2] = "myfname"
|
|
||||||
PARVAL[3] = 0
|
|
||||||
PARVAL[2] = "none"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# read command line defined variables
|
|
||||||
if (ARGC>1) {
|
|
||||||
printf("\n\nnumber of command line arguments: %i (incl. command)\n\n", ARGC);
|
|
||||||
for (i=1; i<=ARGC; i++) {
|
|
||||||
|
|
||||||
nsplit=split(ARGV[i],array,"=")
|
|
||||||
VAR = array[1];
|
|
||||||
VAL = array[2];
|
|
||||||
|
|
||||||
for (j=1; j<=NPAR; j++) {
|
|
||||||
if ( VAR==PAR[j] ) {
|
|
||||||
PARVAL[j] = VAL
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
run=PARVAL[1]
|
|
||||||
fn=PARVAL[2]
|
|
||||||
var=PARVAL[3]
|
|
||||||
par=PARVAL[4]
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# print command line arguments
|
|
||||||
for (i=1; i<=NPAR; i++){
|
|
||||||
printf("\t... %2i.\t%7s = %s\n", i, PAR[i], PARVAL[i] );
|
|
||||||
}
|
|
||||||
|
|
||||||
#execute you command hereafter e.g. change temperature etc.
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,100 +0,0 @@
|
|||||||
#! /bin/awk -f
|
|
||||||
|
|
||||||
# this is an awk script to start a run
|
|
||||||
# you first need to run inimodule.awk to initialize
|
|
||||||
# the pattern, set Vc and set the trimbits
|
|
||||||
#
|
|
||||||
|
|
||||||
#####################################################################
|
|
||||||
# revision history #
|
|
||||||
#####################################################################
|
|
||||||
# 31.10.2001 first version #
|
|
||||||
#####################################################################
|
|
||||||
# #
|
|
||||||
# Bernd Schmitt #
|
|
||||||
# #
|
|
||||||
# bernd.schmitt@psi.ch #
|
|
||||||
# #
|
|
||||||
#####################################################################
|
|
||||||
# #
|
|
||||||
# modifications: #
|
|
||||||
# #
|
|
||||||
# 1.3.2002 BS adapted for use with DCB #
|
|
||||||
# #
|
|
||||||
# 25.5.2002 BS adapted to new convert program #
|
|
||||||
# #
|
|
||||||
# 29.5.2002 sleep -> usleep for meas. time , TS #
|
|
||||||
# #
|
|
||||||
#####################################################################
|
|
||||||
|
|
||||||
BEGIN {
|
|
||||||
|
|
||||||
# initialize variables
|
|
||||||
NPAR=7
|
|
||||||
|
|
||||||
PAR[1]="nrun"
|
|
||||||
PAR[2]="fn"
|
|
||||||
PAR[3]="par"
|
|
||||||
PAR[4]="sv0"
|
|
||||||
PAR[5]="sv1"
|
|
||||||
PAR[6]="p0"
|
|
||||||
PAR[7]="p1"
|
|
||||||
|
|
||||||
# initialize default values
|
|
||||||
PARVAL[1] = 100
|
|
||||||
PARVAL[2] = "myfname"
|
|
||||||
PARVAL[3] = 1
|
|
||||||
PARVAL[4] = 0
|
|
||||||
PARVAL[5] = 0
|
|
||||||
PARVAL[6] = "none"
|
|
||||||
PARVAL[7] = "none"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# read command line defined variables
|
|
||||||
if (ARGC>1) {
|
|
||||||
printf("\n\nnumber of command line arguments: %i (incl. command)\n\n", ARGC);
|
|
||||||
for (i=1; i<=ARGC; i++) {
|
|
||||||
|
|
||||||
nsplit=split(ARGV[i],array,"=")
|
|
||||||
VAR = array[1];
|
|
||||||
VAL = array[2];
|
|
||||||
|
|
||||||
for (j=1; j<=NPAR; j++) {
|
|
||||||
if ( VAR==PAR[j] ) {
|
|
||||||
PARVAL[j] = VAL
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
run=PARVAL[1]
|
|
||||||
fn=PARVAL[2]
|
|
||||||
"par"PAR[3]=
|
|
||||||
sv0=PAR[4]
|
|
||||||
sv1=PAR[5]
|
|
||||||
p0=PAR[6]
|
|
||||||
p1=PAR[7]
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# print command line arguments
|
|
||||||
for (i=1; i<=NPAR; i++){
|
|
||||||
printf("\t... %2i.\t%7s = %s\n", i, PAR[i], PARVAL[i] );
|
|
||||||
}
|
|
||||||
# printf("\n\n");
|
|
||||||
# system("close_shutter_g95")
|
|
||||||
|
|
||||||
# execute your actions hereafter
|
|
||||||
if (par==1) {
|
|
||||||
#open shutter
|
|
||||||
} else {
|
|
||||||
#close shutter
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,79 +0,0 @@
|
|||||||
#! /bin/awk -f
|
|
||||||
|
|
||||||
# this is an awk script to start a run
|
|
||||||
# you first need to run inimodule.awk to initialize
|
|
||||||
# the pattern, set Vc and set the trimbits
|
|
||||||
#
|
|
||||||
|
|
||||||
#####################################################################
|
|
||||||
# revision history #
|
|
||||||
#####################################################################
|
|
||||||
# 31.10.2001 first version #
|
|
||||||
#####################################################################
|
|
||||||
# #
|
|
||||||
# Bernd Schmitt #
|
|
||||||
# #
|
|
||||||
# bernd.schmitt@psi.ch #
|
|
||||||
# #
|
|
||||||
#####################################################################
|
|
||||||
# #
|
|
||||||
# modifications: #
|
|
||||||
# #
|
|
||||||
# 1.3.2002 BS adapted for use with DCB #
|
|
||||||
# #
|
|
||||||
# 25.5.2002 BS adapted to new convert program #
|
|
||||||
# #
|
|
||||||
# 29.5.2002 sleep -> usleep for meas. time , TS #
|
|
||||||
# #
|
|
||||||
#####################################################################
|
|
||||||
|
|
||||||
BEGIN {
|
|
||||||
|
|
||||||
# initialize variables
|
|
||||||
NPAR=2
|
|
||||||
|
|
||||||
PAR[1]="nrun"
|
|
||||||
PAR[2]="par"
|
|
||||||
|
|
||||||
|
|
||||||
# initialize default values
|
|
||||||
PARVAL[1] = 100
|
|
||||||
PARVAL[2] = "none"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# read command line defined variables
|
|
||||||
if (ARGC>1) {
|
|
||||||
printf("\n\nnumber of command line arguments: %i (incl. command)\n\n", ARGC);
|
|
||||||
for (i=1; i<=ARGC; i++) {
|
|
||||||
|
|
||||||
nsplit=split(ARGV[i],array,"=")
|
|
||||||
VAR = array[1];
|
|
||||||
VAL = array[2];
|
|
||||||
|
|
||||||
for (j=1; j<=NPAR; j++) {
|
|
||||||
if ( VAR==PAR[j] ) {
|
|
||||||
PARVAL[j] = VAL
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
run=PARVAL[1]
|
|
||||||
par=PARVAL[2]
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# print command line arguments
|
|
||||||
for (i=1; i<=NPAR; i++){
|
|
||||||
printf("\t... %2i.\t%7s = %s\n", i, PAR[i], PARVAL[i] );
|
|
||||||
}
|
|
||||||
#execute action hereafter
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,64 +0,0 @@
|
|||||||
#####Any line with a # is not read######
|
|
||||||
|
|
||||||
#type Gotthard+
|
|
||||||
hostname bchip007+bchip009+
|
|
||||||
|
|
||||||
#0:hostname bchip007
|
|
||||||
#0:port 1952
|
|
||||||
#0:stopport 1953
|
|
||||||
#0:rx_tcpport 1956
|
|
||||||
0:settingsdir /home/l_msdetect/dhanya/slsDetectorsPackage/settingsdir/gotthard
|
|
||||||
0:angdir 1.000000
|
|
||||||
0:moveflag 0.000000
|
|
||||||
0:lock 0
|
|
||||||
0:caldir /home/l_msdetect/dhanya/slsDetectorsPackage/settingsdir/gotthard
|
|
||||||
0:ffdir /home/l_msdetect
|
|
||||||
0:extsig:0 off
|
|
||||||
0:extsig:1 off
|
|
||||||
0:extsig:2 off
|
|
||||||
0:extsig:3 off
|
|
||||||
#0:detectorip 10.1.1.2
|
|
||||||
#0:detectormac 00:aa:bb:cc:dd:ee
|
|
||||||
#0:rx_udpport 50001
|
|
||||||
#0:rx_udpip 10.1.1.1
|
|
||||||
#0:rx_hostname 129.129.202.134
|
|
||||||
0:outdir /data/speedt
|
|
||||||
0:vhighvoltage 120
|
|
||||||
|
|
||||||
|
|
||||||
#1:hostname bchip009
|
|
||||||
#1:port 1952
|
|
||||||
#1:stopport 1953
|
|
||||||
1:rx_tcpport 1957
|
|
||||||
1:settingsdir /home/l_msdetect/dhanya/slsDetectorsPackage/settingsdir/gotthard
|
|
||||||
1:angdir 1.000000
|
|
||||||
1:moveflag 0.000000
|
|
||||||
1:lock 0
|
|
||||||
1:caldir /home/l_msdetect/dhanya/slsDetectorsPackage/settingsdir/gotthard
|
|
||||||
1:ffdir /home/l_msdetect
|
|
||||||
1:extsig:0 off
|
|
||||||
1:extsig:1 off
|
|
||||||
1:extsig:2 off
|
|
||||||
1:extsig:3 off
|
|
||||||
#1:detectorip 10.1.2.2
|
|
||||||
#1:detectormac 00:aa:bb:cc:dd:ee
|
|
||||||
#1:rx_udpport 50004
|
|
||||||
#1:rx_udpip 10.1.2.1
|
|
||||||
#1:rx_hostname 129.129.202.134
|
|
||||||
1:outdir /data/speedt
|
|
||||||
1:vhighvoltage 120
|
|
||||||
|
|
||||||
|
|
||||||
master -1
|
|
||||||
sync none
|
|
||||||
outdir /data/speedt
|
|
||||||
ffdir /home/l_msdetect
|
|
||||||
headerbefore none
|
|
||||||
headerafter none
|
|
||||||
headerbeforepar none
|
|
||||||
headerafterpar none
|
|
||||||
badchannels none
|
|
||||||
angconv none
|
|
||||||
globaloff 0.000000
|
|
||||||
binsize 0.001000
|
|
||||||
threaded 1
|
|
Loading…
x
Reference in New Issue
Block a user