mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-07 02:20:42 +02:00
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:
parent
b0d8739439
commit
014dfd7eed
@ -94,8 +94,8 @@ public:
|
|||||||
double GetMinimumPlotTimer(){return PLOT_TIMER_MS;};
|
double GetMinimumPlotTimer(){return PLOT_TIMER_MS;};
|
||||||
/** Set Plot timer - between plots in ms*/
|
/** Set Plot timer - between plots in ms*/
|
||||||
void SetPlotTimer(double time){timerValue = time;};
|
void SetPlotTimer(double time){timerValue = time;};
|
||||||
/** Set Plot frame factor - between plots */
|
/** Set Plot frame factor - between plots, also for receiver if exists */
|
||||||
void SetFrameFactor(int frame){frameFactor = frame;};
|
void SetFrameFactor(int frame);
|
||||||
|
|
||||||
/** Starts or stop acquisition
|
/** Starts or stop acquisition
|
||||||
* Calls startDaq() function
|
* Calls startDaq() function
|
||||||
|
@ -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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//-------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
@ -600,6 +600,7 @@ void qTabPlot::SetFrequency(){
|
|||||||
// Setting the timer value (nth frames) between plots
|
// Setting the timer value (nth frames) between plots
|
||||||
myPlot->SetFrameFactor(spinNthFrame->value());
|
myPlot->SetFrameFactor(spinNthFrame->value());
|
||||||
|
|
||||||
|
|
||||||
#ifdef VERBOSE
|
#ifdef VERBOSE
|
||||||
cout << "Plotting Frequency: Nth Frame - " << spinNthFrame->value() << endl;
|
cout << "Plotting Frequency: Nth Frame - " << spinNthFrame->value() << endl;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user