receiver read frequency from gui can be set now

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorGui@188 af1100a4-978c-4157-bff7-07162d2ba061
This commit is contained in:
l_maliakal_d 2013-05-21 13:43:30 +00:00
parent b0d8739439
commit 014dfd7eed
3 changed files with 16 additions and 2 deletions

View File

@ -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

View File

@ -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
}
}
//-------------------------------------------------------------------------------------------------------------------------------------------------

View File

@ -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