mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-24 23:30:03 +02:00
Merge branch '3.0-rc' into developer
This commit is contained in:
commit
0be51b69fb
@ -6089,7 +6089,8 @@ string slsDetector::setReceiver(string receiverIP){
|
|||||||
setTimer(FRAME_PERIOD,thisDetector->timerValue[FRAME_PERIOD]);
|
setTimer(FRAME_PERIOD,thisDetector->timerValue[FRAME_PERIOD]);
|
||||||
setTimer(FRAME_NUMBER,thisDetector->timerValue[FRAME_NUMBER]);
|
setTimer(FRAME_NUMBER,thisDetector->timerValue[FRAME_NUMBER]);
|
||||||
setTimer(ACQUISITION_TIME,thisDetector->timerValue[ACQUISITION_TIME]);
|
setTimer(ACQUISITION_TIME,thisDetector->timerValue[ACQUISITION_TIME]);
|
||||||
setTimer(SUBFRAME_ACQUISITION_TIME,thisDetector->timerValue[SUBFRAME_ACQUISITION_TIME]);
|
if(thisDetector->myDetectorType == EIGER)
|
||||||
|
setTimer(SUBFRAME_ACQUISITION_TIME,thisDetector->timerValue[SUBFRAME_ACQUISITION_TIME]);
|
||||||
setDynamicRange(thisDetector->dynamicRange);
|
setDynamicRange(thisDetector->dynamicRange);
|
||||||
if(thisDetector->myDetectorType == EIGER){
|
if(thisDetector->myDetectorType == EIGER){
|
||||||
setFlippedData(X,-1);
|
setFlippedData(X,-1);
|
||||||
|
@ -72,6 +72,31 @@ slsDetectorCommand::slsDetectorCommand(slsDetectorUtils *det) {
|
|||||||
descrToFuncMap[i].m_pFuncName="test"; //
|
descrToFuncMap[i].m_pFuncName="test"; //
|
||||||
descrToFuncMap[i].m_pFuncPtr=&slsDetectorCommand::cmdUnderDevelopment;
|
descrToFuncMap[i].m_pFuncPtr=&slsDetectorCommand::cmdUnderDevelopment;
|
||||||
i++;
|
i++;
|
||||||
|
|
||||||
|
/*! \page test
|
||||||
|
- <b>help</b> Returns a list of possible commands.
|
||||||
|
*/
|
||||||
|
descrToFuncMap[i].m_pFuncName="help";//OK
|
||||||
|
descrToFuncMap[i].m_pFuncPtr=&slsDetectorCommand::cmdHelp;
|
||||||
|
i++;
|
||||||
|
|
||||||
|
/*! \page test
|
||||||
|
- <b>exitserver</b> Shuts down all the detector servers. Don't use it!!!!
|
||||||
|
*/
|
||||||
|
descrToFuncMap[i].m_pFuncName="exitserver";//OK
|
||||||
|
descrToFuncMap[i].m_pFuncPtr=&slsDetectorCommand::cmdExitServer;
|
||||||
|
i++;
|
||||||
|
|
||||||
|
/*! \page test
|
||||||
|
- <b>exitreceiver</b> Shuts down all the receivers. Don't use it!!!!
|
||||||
|
*/
|
||||||
|
descrToFuncMap[i].m_pFuncName="exitreceiver";//OK
|
||||||
|
descrToFuncMap[i].m_pFuncPtr=&slsDetectorCommand::cmdExitServer;
|
||||||
|
i++;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Acquisition and status commands */
|
/* Acquisition and status commands */
|
||||||
/*! \page acquisition Acquition commands
|
/*! \page acquisition Acquition commands
|
||||||
Commands to control the acquisition
|
Commands to control the acquisition
|
||||||
@ -111,6 +136,27 @@ slsDetectorCommand::slsDetectorCommand(slsDetectorUtils *det) {
|
|||||||
descrToFuncMap[i].m_pFuncPtr=&slsDetectorCommand::cmdStatus;
|
descrToFuncMap[i].m_pFuncPtr=&slsDetectorCommand::cmdStatus;
|
||||||
i++;
|
i++;
|
||||||
|
|
||||||
|
/*! \page acquisition
|
||||||
|
- <b>readctr </b> Reads the counters from the detector memory (analog detector returning values translated into number of photons - only GOTTHARD). Cannot put.
|
||||||
|
*/
|
||||||
|
descrToFuncMap[i].m_pFuncName="readctr"; //
|
||||||
|
descrToFuncMap[i].m_pFuncPtr=&slsDetectorCommand::cmdCounter;
|
||||||
|
i++;
|
||||||
|
|
||||||
|
/*! \page acquisition
|
||||||
|
- <b>resetctr i </b> Resets counter in detector, restarts acquisition if i=1(analog detector returning values translated into number of photons - only GOTTHARD). Cannot put.
|
||||||
|
*/
|
||||||
|
descrToFuncMap[i].m_pFuncName="resetctr"; //
|
||||||
|
descrToFuncMap[i].m_pFuncPtr=&slsDetectorCommand::cmdCounter;
|
||||||
|
i++;
|
||||||
|
|
||||||
|
/*! \page acquisition
|
||||||
|
- <b>resmat i </b> sets/resets counter bit in detector.gets the counter bit in detector ????
|
||||||
|
*/
|
||||||
|
descrToFuncMap[i].m_pFuncName="resmat"; //
|
||||||
|
descrToFuncMap[i].m_pFuncPtr=&slsDetectorCommand::cmdCounter;
|
||||||
|
i++;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -199,26 +245,33 @@ slsDetectorCommand::slsDetectorCommand(slsDetectorUtils *det) {
|
|||||||
descrToFuncMap[i].m_pFuncPtr=&slsDetectorCommand::cmdSync;
|
descrToFuncMap[i].m_pFuncPtr=&slsDetectorCommand::cmdSync;
|
||||||
i++;
|
i++;
|
||||||
|
|
||||||
/*! \page test
|
/*! \page config
|
||||||
- <b>help</b> Returns a list of possible commands.
|
\section detstatus Detector Status
|
||||||
|
commands to configure detector status
|
||||||
*/
|
*/
|
||||||
descrToFuncMap[i].m_pFuncName="help";//OK
|
|
||||||
descrToFuncMap[i].m_pFuncPtr=&slsDetectorCommand::cmdHelp;
|
/*! \page config
|
||||||
|
- <b>online [i]</b> sets the detector in online (1) or offline (0) mode
|
||||||
|
*/
|
||||||
|
descrToFuncMap[i].m_pFuncName="online"; //
|
||||||
|
descrToFuncMap[i].m_pFuncPtr=&slsDetectorCommand::cmdOnline;
|
||||||
i++;
|
i++;
|
||||||
|
|
||||||
/*! \page test
|
/*! \page config
|
||||||
- <b>exitserver</b> Shuts down all the detector servers. Don't use it!!!!
|
- <b>checkonline</b> returns the hostnames of all detectors without connecting to them
|
||||||
*/
|
*/
|
||||||
descrToFuncMap[i].m_pFuncName="exitserver";//OK
|
descrToFuncMap[i].m_pFuncName="checkonline"; //
|
||||||
descrToFuncMap[i].m_pFuncPtr=&slsDetectorCommand::cmdExitServer;
|
descrToFuncMap[i].m_pFuncPtr=&slsDetectorCommand::cmdOnline;
|
||||||
|
i++;
|
||||||
|
/*! \page config
|
||||||
|
- <b>activate</b> Activates/Deactivates the detector. Deactivated detector does not send data. Used for EIGER only.
|
||||||
|
*/
|
||||||
|
descrToFuncMap[i].m_pFuncName="activate"; //
|
||||||
|
descrToFuncMap[i].m_pFuncPtr=&slsDetectorCommand::cmdOnline;
|
||||||
i++;
|
i++;
|
||||||
|
|
||||||
/*! \page test
|
|
||||||
- <b>exitreceiver</b> Shuts down all the receivers. Don't use it!!!!
|
|
||||||
*/
|
|
||||||
descrToFuncMap[i].m_pFuncName="exitreceiver";//OK
|
|
||||||
descrToFuncMap[i].m_pFuncPtr=&slsDetectorCommand::cmdExitServer;
|
|
||||||
i++;
|
|
||||||
|
|
||||||
|
|
||||||
/* data processing commands */
|
/* data processing commands */
|
||||||
@ -346,26 +399,10 @@ slsDetectorCommand::slsDetectorCommand(slsDetectorUtils *det) {
|
|||||||
descrToFuncMap[i].m_pFuncPtr=&slsDetectorCommand::cmdImage;
|
descrToFuncMap[i].m_pFuncPtr=&slsDetectorCommand::cmdImage;
|
||||||
i++;
|
i++;
|
||||||
|
|
||||||
/*! \page acquisition
|
|
||||||
- <b>readctr </b> Reads the counters from the detector memory (analog detector returning values translated into number of photons - only GOTTHARD). Cannot put.
|
|
||||||
*/
|
|
||||||
descrToFuncMap[i].m_pFuncName="readctr"; //
|
|
||||||
descrToFuncMap[i].m_pFuncPtr=&slsDetectorCommand::cmdCounter;
|
|
||||||
i++;
|
|
||||||
|
|
||||||
/*! \page acquisition
|
|
||||||
- <b>resetctr i </b> Resets counter in detector, restarts acquisition if i=1(analog detector returning values translated into number of photons - only GOTTHARD). Cannot put.
|
|
||||||
*/
|
|
||||||
descrToFuncMap[i].m_pFuncName="resetctr"; //
|
|
||||||
descrToFuncMap[i].m_pFuncPtr=&slsDetectorCommand::cmdCounter;
|
|
||||||
i++;
|
|
||||||
|
|
||||||
/*! \page acquisition
|
|
||||||
- <b>resmat i </b> sets/resets counter bit in detector.gets the counter bit in detector ????
|
|
||||||
*/
|
|
||||||
descrToFuncMap[i].m_pFuncName="resmat"; //
|
|
||||||
descrToFuncMap[i].m_pFuncPtr=&slsDetectorCommand::cmdCounter;
|
|
||||||
i++;
|
|
||||||
|
|
||||||
/* trim/cal directories */
|
/* trim/cal directories */
|
||||||
|
|
||||||
@ -431,31 +468,6 @@ slsDetectorCommand::slsDetectorCommand(slsDetectorUtils *det) {
|
|||||||
descrToFuncMap[i].m_pFuncPtr=&slsDetectorCommand::cmdFileIndex;
|
descrToFuncMap[i].m_pFuncPtr=&slsDetectorCommand::cmdFileIndex;
|
||||||
i++;
|
i++;
|
||||||
|
|
||||||
/*! \page config
|
|
||||||
\section detstatus Detector Status
|
|
||||||
commands to configure detector status
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*! \page config
|
|
||||||
- <b>online [i]</b> sets the detector in online (1) or offline (0) mode
|
|
||||||
*/
|
|
||||||
descrToFuncMap[i].m_pFuncName="online"; //
|
|
||||||
descrToFuncMap[i].m_pFuncPtr=&slsDetectorCommand::cmdOnline;
|
|
||||||
i++;
|
|
||||||
|
|
||||||
/*! \page config
|
|
||||||
- <b>checkonline</b> returns the hostnames of all detectors without connecting to them
|
|
||||||
*/
|
|
||||||
descrToFuncMap[i].m_pFuncName="checkonline"; //
|
|
||||||
descrToFuncMap[i].m_pFuncPtr=&slsDetectorCommand::cmdOnline;
|
|
||||||
i++;
|
|
||||||
/*! \page config
|
|
||||||
- <b>activate</b> Activates/Deactivates the detector. Deactivated detector does not send data. Used for EIGER only.
|
|
||||||
*/
|
|
||||||
descrToFuncMap[i].m_pFuncName="activate"; //
|
|
||||||
descrToFuncMap[i].m_pFuncPtr=&slsDetectorCommand::cmdOnline;
|
|
||||||
i++;
|
|
||||||
|
|
||||||
/*! \page output
|
/*! \page output
|
||||||
- <b>enablefwrite [i]</b> Enables/disables file writing. 1 enables, 0 disables.
|
- <b>enablefwrite [i]</b> Enables/disables file writing. 1 enables, 0 disables.
|
||||||
*/
|
*/
|
||||||
@ -484,6 +496,8 @@ slsDetectorCommand::slsDetectorCommand(slsDetectorUtils *det) {
|
|||||||
descrToFuncMap[i].m_pFuncPtr=&slsDetectorCommand::cmdFileName;
|
descrToFuncMap[i].m_pFuncPtr=&slsDetectorCommand::cmdFileName;
|
||||||
i++;
|
i++;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Acquisition actions */
|
/* Acquisition actions */
|
||||||
|
|
||||||
/*! \page actions Actions
|
/*! \page actions Actions
|
||||||
@ -595,10 +609,6 @@ slsDetectorCommand::slsDetectorCommand(slsDetectorUtils *det) {
|
|||||||
descrToFuncMap[i].m_pFuncPtr=&slsDetectorCommand::cmdScripts;
|
descrToFuncMap[i].m_pFuncPtr=&slsDetectorCommand::cmdScripts;
|
||||||
i++;
|
i++;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*! \page actions
|
/*! \page actions
|
||||||
- <b>scan0script [s]</b> sets/gets the script to be executed for the scan 0 level. \c none unsets.
|
- <b>scan0script [s]</b> sets/gets the script to be executed for the scan 0 level. \c none unsets.
|
||||||
*/
|
*/
|
||||||
@ -671,6 +681,8 @@ slsDetectorCommand::slsDetectorCommand(slsDetectorUtils *det) {
|
|||||||
i++;
|
i++;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* communication configuration */
|
/* communication configuration */
|
||||||
|
|
||||||
/*! \page network Network
|
/*! \page network Network
|
||||||
|
Loading…
x
Reference in New Issue
Block a user