mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-22 22:40:02 +02:00
added gates for gotthard
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@47 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
parent
fa4fe558a5
commit
a8943b0746
@ -5345,7 +5345,7 @@ else if (var=="vref_ds") {
|
||||
return string(answer);
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
//timers
|
||||
|
||||
else if (var=="exptime") {
|
||||
@ -5370,13 +5370,19 @@ else if (var=="vref_ds") {
|
||||
sprintf(answer,"%f",(float)setTimer(DELAY_AFTER_TRIGGER)*1E-9);
|
||||
return string(answer);
|
||||
} else if (var=="gates") {
|
||||
if (action==PUT_ACTION) {
|
||||
sscanf(args[1],"%d",&ival);
|
||||
setTimer( GATES_NUMBER,ival);
|
||||
}
|
||||
|
||||
sprintf(answer,"%lld",setTimer(GATES_NUMBER));
|
||||
return string(answer);
|
||||
switch(thisDetector->myDetectorType) {
|
||||
case GOTTHARD:
|
||||
sprintf(answer,"Number of gates is always 1 for this detector",sval.c_str());
|
||||
return string(answer);
|
||||
break;
|
||||
default:
|
||||
if (action==PUT_ACTION) {
|
||||
sscanf(args[1],"%d",&ival);
|
||||
setTimer( GATES_NUMBER,ival);
|
||||
}
|
||||
sprintf(answer,"%lld",setTimer(GATES_NUMBER));
|
||||
return string(answer);
|
||||
}
|
||||
} else if (var=="frames") {
|
||||
if (action==PUT_ACTION) {
|
||||
sscanf(args[1],"%d",&ival);
|
||||
|
Loading…
x
Reference in New Issue
Block a user