mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-28 01:00:02 +02:00
only call register call back which already enables streaming in client and receiveR
This commit is contained in:
parent
375b1c9485
commit
d5c310a2db
@ -324,7 +324,7 @@ void qDrawPlot::SetupWidgetWindow(){
|
||||
|
||||
// callbacks
|
||||
// Setting the callback function to get data from detector class
|
||||
myDet->registerDataCallback(&(GetDataCallBack),this); // also enables data streaming in client
|
||||
myDet->registerDataCallback(&(GetDataCallBack),this); // also enables data streaming in client and receiver (if receiver exists)
|
||||
//Setting the callback function to alert when acquisition finished from detector class
|
||||
myDet->registerAcquisitionFinishedCallback(&(GetAcquisitionFinishedCallBack),this);
|
||||
//Setting the callback function to alert when each measurement finished from detector class
|
||||
@ -332,12 +332,6 @@ void qDrawPlot::SetupWidgetWindow(){
|
||||
//Setting the callback function to get progress from detector class(using receivers)
|
||||
myDet->registerProgressCallback(&(GetProgressCallBack),this);
|
||||
|
||||
|
||||
// if receiver, enable data streaming from receiver and client
|
||||
if(myDet->setReceiverOnline() == slsDetectorDefs::ONLINE_FLAG) {
|
||||
myDet->enableDataStreamingFromReceiver(1);
|
||||
}
|
||||
|
||||
qDefs::checkErrorMessage(myDet,"qDrawPlot::SetupWidgetWindow");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user