diff --git a/slsDetectorGui/include/qDrawPlot.h b/slsDetectorGui/include/qDrawPlot.h index 798883912..8341d6a01 100644 --- a/slsDetectorGui/include/qDrawPlot.h +++ b/slsDetectorGui/include/qDrawPlot.h @@ -94,8 +94,8 @@ public: double GetMinimumPlotTimer(){return PLOT_TIMER_MS;}; /** Set Plot timer - between plots in ms*/ void SetPlotTimer(double time){timerValue = time;}; - /** Set Plot frame factor - between plots */ - void SetFrameFactor(int frame){frameFactor = frame;}; + /** Set Plot frame factor - between plots, also for receiver if exists */ + void SetFrameFactor(int frame); /** Starts or stop acquisition * Calls startDaq() function diff --git a/slsDetectorGui/src/qDrawPlot.cpp b/slsDetectorGui/src/qDrawPlot.cpp index 95171cca3..a2f211813 100644 --- a/slsDetectorGui/src/qDrawPlot.cpp +++ b/slsDetectorGui/src/qDrawPlot.cpp @@ -1593,3 +1593,16 @@ void qDrawPlot::CalculatePedestal(){ //------------------------------------------------------------------------------------------------------------------------------------------------- + + +void qDrawPlot::SetFrameFactor(int frame){ + frameFactor = frame; + if(myDet->setReceiverOnline()==slsDetectorDefs::ONLINE_FLAG){ + frame = myDet->setReadReceiverFrequency(1,frame); +#ifdef VERBOSE + cout << "Receiver read frequency set to : " << frame << endl; +#endif + } +} + +//------------------------------------------------------------------------------------------------------------------------------------------------- diff --git a/slsDetectorGui/src/qTabPlot.cpp b/slsDetectorGui/src/qTabPlot.cpp index 507fd9f5a..55cd5900e 100644 --- a/slsDetectorGui/src/qTabPlot.cpp +++ b/slsDetectorGui/src/qTabPlot.cpp @@ -600,6 +600,7 @@ void qTabPlot::SetFrequency(){ // Setting the timer value (nth frames) between plots myPlot->SetFrameFactor(spinNthFrame->value()); + #ifdef VERBOSE cout << "Plotting Frequency: Nth Frame - " << spinNthFrame->value() << endl; #endif