mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-23 23:10:02 +02:00
updating cmd line help; other detectors other than eiger will complain cannot set timer 14 (subexptime) when setting receiver
This commit is contained in:
parent
2935722b98
commit
57537a350f
@ -6089,7 +6089,8 @@ string slsDetector::setReceiver(string receiverIP){
|
||||
setTimer(FRAME_PERIOD,thisDetector->timerValue[FRAME_PERIOD]);
|
||||
setTimer(FRAME_NUMBER,thisDetector->timerValue[FRAME_NUMBER]);
|
||||
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);
|
||||
if(thisDetector->myDetectorType == EIGER){
|
||||
setFlippedData(X,-1);
|
||||
|
@ -72,6 +72,31 @@ slsDetectorCommand::slsDetectorCommand(slsDetectorUtils *det) {
|
||||
descrToFuncMap[i].m_pFuncName="test"; //
|
||||
descrToFuncMap[i].m_pFuncPtr=&slsDetectorCommand::cmdUnderDevelopment;
|
||||
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 */
|
||||
/*! \page acquisition Acquition commands
|
||||
Commands to control the acquisition
|
||||
@ -111,6 +136,27 @@ slsDetectorCommand::slsDetectorCommand(slsDetectorUtils *det) {
|
||||
descrToFuncMap[i].m_pFuncPtr=&slsDetectorCommand::cmdStatus;
|
||||
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;
|
||||
i++;
|
||||
|
||||
/*! \page test
|
||||
- <b>help</b> Returns a list of possible commands.
|
||||
/*! \page config
|
||||
\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++;
|
||||
|
||||
/*! \page test
|
||||
- <b>exitserver</b> Shuts down all the detector servers. Don't use it!!!!
|
||||
/*! \page config
|
||||
- <b>checkonline</b> returns the hostnames of all detectors without connecting to them
|
||||
*/
|
||||
descrToFuncMap[i].m_pFuncName="exitserver";//OK
|
||||
descrToFuncMap[i].m_pFuncPtr=&slsDetectorCommand::cmdExitServer;
|
||||
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 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 */
|
||||
@ -346,26 +399,10 @@ slsDetectorCommand::slsDetectorCommand(slsDetectorUtils *det) {
|
||||
descrToFuncMap[i].m_pFuncPtr=&slsDetectorCommand::cmdImage;
|
||||
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 */
|
||||
|
||||
@ -431,31 +468,6 @@ slsDetectorCommand::slsDetectorCommand(slsDetectorUtils *det) {
|
||||
descrToFuncMap[i].m_pFuncPtr=&slsDetectorCommand::cmdFileIndex;
|
||||
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
|
||||
- <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;
|
||||
i++;
|
||||
|
||||
|
||||
|
||||
/* Acquisition actions */
|
||||
|
||||
/*! \page actions Actions
|
||||
@ -595,10 +609,6 @@ slsDetectorCommand::slsDetectorCommand(slsDetectorUtils *det) {
|
||||
descrToFuncMap[i].m_pFuncPtr=&slsDetectorCommand::cmdScripts;
|
||||
i++;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*! \page actions
|
||||
- <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++;
|
||||
|
||||
|
||||
|
||||
|
||||
/* communication configuration */
|
||||
|
||||
/*! \page network Network
|
||||
|
Loading…
x
Reference in New Issue
Block a user