mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-13 13:27:14 +02:00
included datastream command earlier but not working yet
This commit is contained in:
@ -5639,6 +5639,7 @@ int multiSlsDetector::enableDataStreamingFromReceiver(int enable){
|
|||||||
}
|
}
|
||||||
|
|
||||||
}else enable = threadStarted;
|
}else enable = threadStarted;
|
||||||
|
|
||||||
int ret=-100, ret1;
|
int ret=-100, ret1;
|
||||||
for (int idet=0; idet<thisMultiDetector->numberOfDetectors; idet++) {
|
for (int idet=0; idet<thisMultiDetector->numberOfDetectors; idet++) {
|
||||||
if (detectors[idet]) {
|
if (detectors[idet]) {
|
||||||
|
@ -1382,7 +1382,6 @@ string slsDetectorCommand::cmdDataStream(int narg, char *args[], int action) {
|
|||||||
if (action==PUT_ACTION) {
|
if (action==PUT_ACTION) {
|
||||||
if (!sscanf(args[1],"%d",&ival))
|
if (!sscanf(args[1],"%d",&ival))
|
||||||
return string ("cannot scan datastream mode");
|
return string ("cannot scan datastream mode");
|
||||||
|
|
||||||
myDet->enableDataStreamingFromReceiver(ival);
|
myDet->enableDataStreamingFromReceiver(ival);
|
||||||
}
|
}
|
||||||
sprintf(ans,"%d",myDet->enableDataStreamingFromReceiver());
|
sprintf(ans,"%d",myDet->enableDataStreamingFromReceiver());
|
||||||
|
Reference in New Issue
Block a user