mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-11 04:17:15 +02:00
changed a few parameters & nvar for writeConfigurationFile function
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@84 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
@ -10,7 +10,7 @@ SRC_CLNT= slsDetector/slsDetector.cpp MySocketTCP/MySocketTCP.cxx usersFunctions
|
||||
SRC_MYTHEN_SVC = mythenDetectorServer/server.c mythenDetectorServer/server_funcs.c mythenDetectorServer/communication_funcs.c mythenDetectorServer/firmware_funcs.c mythenDetectorServer/mcb_funcs.c mythenDetectorServer/trimming_funcs.c
|
||||
#mythenDetectorServer/sharedmemory.c
|
||||
|
||||
all: package mythenServer doc picassoServer
|
||||
all: package doc #picassoServer #mythenServer
|
||||
|
||||
doc: $(SRC_H) $(SRC_CLNT)
|
||||
doxygen doxy.config
|
||||
|
@ -478,9 +478,10 @@ enum {
|
||||
|
||||
F_SET_PORT, /**< Changes communication port of the server */
|
||||
|
||||
F_UPDATE_CLIENT /**< Returns all the important parameters to update the shared memory of the client */
|
||||
|
||||
F_UPDATE_CLIENT, /**< Returns all the important parameters to update the shared memory of the client */
|
||||
|
||||
F_CONFIGURE_MAC /**< Configures MAC for Gotthard readout */
|
||||
|
||||
/* Always append functions hereafter!!! */
|
||||
|
||||
|
||||
|
@ -151,6 +151,8 @@ int function_table() {
|
||||
flist[F_SET_SPEED]=&set_speed;
|
||||
flist[F_SET_READOUT_FLAGS]=&set_readout_flags;
|
||||
flist[F_EXECUTE_TRIMMING]=&execute_trimming;
|
||||
flist[F_CONFIGURE_MAC]=&configure_mac;
|
||||
|
||||
#ifdef VERBOSE
|
||||
/* for (i=0;i<256;i++){
|
||||
printf("function %d located at %x\n",i,flist[i]);
|
||||
|
@ -6348,6 +6348,10 @@ string slsDetector::executeLine(int narg, char *args[], int action) {
|
||||
}
|
||||
sprintf(answer,"%d", setSpeed(TOT_DUTY_CYCLE));
|
||||
return string(answer);
|
||||
//gotthard
|
||||
}else if (var=="configuremac") {
|
||||
configureMAC();
|
||||
return string("mac configuration completed");
|
||||
}
|
||||
return ("Unknown command");
|
||||
|
||||
@ -7813,7 +7817,7 @@ int slsDetector::readConfigurationFile(string const fname){
|
||||
|
||||
int slsDetector::writeConfigurationFile(string const fname){
|
||||
|
||||
|
||||
int nvar;
|
||||
string names[]={ \
|
||||
"hostname", \
|
||||
"caldir", \
|
||||
@ -7839,12 +7843,16 @@ int slsDetector::writeConfigurationFile(string const fname){
|
||||
case MYTHEN:
|
||||
names[2]="trimdir";
|
||||
break;
|
||||
case GOTTHARD:
|
||||
names[3]="outdir";
|
||||
names[4]="clientip";
|
||||
names[5]="clientmac";
|
||||
nvar=6;
|
||||
break;
|
||||
default:
|
||||
;
|
||||
nvar=19;
|
||||
}
|
||||
|
||||
|
||||
int nvar=19;
|
||||
ofstream outfile;
|
||||
int iv=0;
|
||||
char *args[100];
|
||||
|
@ -374,6 +374,10 @@ typedef struct sharedSlsDetector {
|
||||
*/
|
||||
virtual int writeConfigurationFile(string const fname);
|
||||
|
||||
/**
|
||||
configures mac for gotthard readout
|
||||
*/
|
||||
int configureMAC();
|
||||
|
||||
/*
|
||||
It should be possible to dump all the settings of the detector (including trimbits, threshold energy, gating/triggering, acquisition time etc.
|
||||
|
Reference in New Issue
Block a user