diff --git a/manual/docs/html/slsDetectorUsersDocs/annotated.html b/manual/docs/html/slsDetectorUsersDocs/annotated.html index bb9b13237..e6739409e 100644 --- a/manual/docs/html/slsDetectorUsersDocs/annotated.html +++ b/manual/docs/html/slsDetectorUsersDocs/annotated.html @@ -63,7 +63,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); -
Generated on 28 Aug 2017 by  +
Generated on 19 Sep 2017 by  doxygen 1.6.1
diff --git a/manual/docs/html/slsDetectorUsersDocs/classdetectorData-members.html b/manual/docs/html/slsDetectorUsersDocs/classdetectorData-members.html index 891afaa01..7a228fdf9 100644 --- a/manual/docs/html/slsDetectorUsersDocs/classdetectorData-members.html +++ b/manual/docs/html/slsDetectorUsersDocs/classdetectorData-members.html @@ -68,7 +68,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); -
Generated on 28 Aug 2017 by  +
Generated on 19 Sep 2017 by  doxygen 1.6.1
diff --git a/manual/docs/html/slsDetectorUsersDocs/classdetectorData.html b/manual/docs/html/slsDetectorUsersDocs/classdetectorData.html index aa0211602..f9b736122 100644 --- a/manual/docs/html/slsDetectorUsersDocs/classdetectorData.html +++ b/manual/docs/html/slsDetectorUsersDocs/classdetectorData.html @@ -309,7 +309,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); -
Generated on 28 Aug 2017 by  +
Generated on 19 Sep 2017 by  doxygen 1.6.1
diff --git a/manual/docs/html/slsDetectorUsersDocs/classes.html b/manual/docs/html/slsDetectorUsersDocs/classes.html index e1461294b..340612fb2 100644 --- a/manual/docs/html/slsDetectorUsersDocs/classes.html +++ b/manual/docs/html/slsDetectorUsersDocs/classes.html @@ -63,7 +63,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); -
Generated on 28 Aug 2017 by  +
Generated on 19 Sep 2017 by  doxygen 1.6.1
diff --git a/manual/docs/html/slsDetectorUsersDocs/classslsDetectorUsers-members.html b/manual/docs/html/slsDetectorUsersDocs/classslsDetectorUsers-members.html index 68fb0dac2..b4c7e053f 100644 --- a/manual/docs/html/slsDetectorUsersDocs/classslsDetectorUsers-members.html +++ b/manual/docs/html/slsDetectorUsersDocs/classslsDetectorUsers-members.html @@ -53,7 +53,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); enablePixelMaskCorrection(int i=-1)slsDetectorUsers enableWriteToFile(int i=-1)slsDetectorUsers finalizeDataset(double *a, double *v, double *e, int &np)slsDetectorUsers [virtual] + getADC(int id, int adcindex)slsDetectorUsers getCommand(int narg, char *args[], int pos=-1)slsDetectorUsers + getContinuousReadoutFlag()slsDetectorUsers getDetectorDeveloper()slsDetectorUsers getDetectorFirmwareVersion()slsDetectorUsers getDetectorSerialNumber()slsDetectorUsers @@ -71,7 +73,11 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); getMaximumDetectorSize(int &nx, int &ny)slsDetectorUsers getModuleFirmwareVersion()slsDetectorUsers getModuleSerialNumber(int imod=-1)slsDetectorUsers + getNonParallelReadoutFlag()slsDetectorUsers + getParallelReadoutFlag()slsDetectorUsers getPositions(double *pos=NULL)slsDetectorUsers + getSafeReadoutFlag()slsDetectorUsers + getStoreInRamReadoutFlag()slsDetectorUsers getThisSoftwareVersion()slsDetectorUsers getThresholdEnergy()slsDetectorUsers getTimingMode(int f)slsDetectorUsers [inline, static] @@ -90,7 +96,11 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); registerRawDataCallback(int(*userCallback)(double *p, int n, void *), void *pArg)slsDetectorUsers retrieveDetectorSetup(string const fname)slsDetectorUsers runStatusType(int s)slsDetectorUsers [inline, static] + setAllTrimbits(int val)slsDetectorUsers setBitDepth(int i=-1)slsDetectorUsers + setClockDivider(int value)slsDetectorUsers + setContinuousReadoutFlag()slsDetectorUsers + setDAC(int id, int dacindex, int val)slsDetectorUsers setDelayAfterTrigger(double t=-1, bool inseconds=false)slsDetectorUsers setDetectorSize(int x0=-1, int y0=-1, int nx=-1, int ny=-1)slsDetectorUsers setExposurePeriod(double t=-1, bool inseconds=false)slsDetectorUsers @@ -100,13 +110,17 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); setFilePath(string s)slsDetectorUsers setFlatFieldCorrectionDir(string dir)slsDetectorUsers setFlatFieldCorrectionFile(string fname="")slsDetectorUsers + setNonParallelReadoutFlag()slsDetectorUsers setNumberOfCycles(int64_t t=-1)slsDetectorUsers setNumberOfFrames(int64_t t=-1)slsDetectorUsers setNumberOfGates(int64_t t=-1)slsDetectorUsers setOnline(int const online=-1)slsDetectorUsers + setParallelReadoutFlag()slsDetectorUsers setPositions(int nPos, double *pos)slsDetectorUsers setReceiverMode(int n=-1)slsDetectorUsers + setSafeReadoutFlag()slsDetectorUsers setSettings(int isettings=-1)slsDetectorUsers + setStoreInRamReadoutFlag()slsDetectorUsers setThresholdEnergy(int e_eV)slsDetectorUsers setTimingMode(int pol=-1)slsDetectorUsers slsDetectorUsers(int id=0)slsDetectorUsers @@ -128,7 +142,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); -
Generated on 28 Aug 2017 by  +
Generated on 19 Sep 2017 by  doxygen 1.6.1
diff --git a/manual/docs/html/slsDetectorUsersDocs/classslsDetectorUsers.html b/manual/docs/html/slsDetectorUsersDocs/classslsDetectorUsers.html index 300baf6f6..90e513d40 100644 --- a/manual/docs/html/slsDetectorUsersDocs/classslsDetectorUsers.html +++ b/manual/docs/html/slsDetectorUsersDocs/classslsDetectorUsers.html @@ -170,6 +170,34 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');  sets parameters in command interface http://www.psi.ch/detectors/UsersSupportEN/slsDetectorClientHowTo.pdf
string getCommand (int narg, char *args[], int pos=-1)  gets parameters in command interface http://www.psi.ch/detectors/UsersSupportEN/slsDetectorClientHowTo.pdf
+int setClockDivider (int value) + sets clock divider of detector
+int getContinuousReadoutFlag () + gets continuous readout flag
+void setContinuousReadoutFlag () + sets continuous readout flag
+int getStoreInRamReadoutFlag () + gets store in ram readout flag
+void setStoreInRamReadoutFlag () + sets store in ram readout flag
+int getParallelReadoutFlag () + gets parallel readout flag
+void setParallelReadoutFlag () + sets parallel readout flag
+int getNonParallelReadoutFlag () + gets non parallel readout flag
+void setNonParallelReadoutFlag () + sets non parallel readout flag
+int getSafeReadoutFlag () + gets safe readout flag
+void setSafeReadoutFlag () + sets safe readout flag
+int setAllTrimbits (int val) + sets all trimbits to value (only available for eiger)
+int setDAC (int id, int dacindex, int val) + set dac value
+int getADC (int id, int adcindex) + get adc value

Static Public Member Functions

static string runStatusType (int s)  returns string from run status index
@@ -520,6 +548,44 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); + + + +
+
+ + + + + + + + + + + + + + + + + + +
int slsDetectorUsers::getADC (int  id,
int  adcindex 
)
+
+
+ +

get adc value

+
Parameters:
+ + + +
id module index (-1 for all)
adcindex adc index
+
+
+
See also:
dacIndex
+
Returns:
adc value
+
@@ -564,6 +630,26 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
Returns:
answer string
+ + + +
+
+ + + + + + + + +
int slsDetectorUsers::getContinuousReadoutFlag ( ) 
+
+
+ +

gets continuous readout flag

+
Returns:
gets continuous readout flag
+
@@ -649,7 +735,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
Returns:
standard, fast, highgain, dynamicgain, lowgain, mediumgain, veryhighgain, undefined when wrong index
-

Definition at line 586 of file slsDetectorUsers.h.

+

Definition at line 682 of file slsDetectorUsers.h.

@@ -678,7 +764,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
Returns:
setting index (-1 unknown string)
-

Definition at line 572 of file slsDetectorUsers.h.

+

Definition at line 668 of file slsDetectorUsers.h.

@@ -969,6 +1055,46 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
Returns:
id
+ + + +
+
+ + + + + + + + +
int slsDetectorUsers::getNonParallelReadoutFlag ( ) 
+
+
+ +

gets non parallel readout flag

+
Returns:
gets non parallel readout flag
+ +
+
+ +
+
+ + + + + + + + +
int slsDetectorUsers::getParallelReadoutFlag ( ) 
+
+
+ +

gets parallel readout flag

+
Returns:
gets parallel readout flag
+
@@ -996,6 +1122,46 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
Returns:
number of positions
+ + + +
+
+ + + + + + + + +
int slsDetectorUsers::getSafeReadoutFlag ( ) 
+
+
+ +

gets safe readout flag

+
Returns:
gets safe readout flag
+ +
+
+ +
+
+ + + + + + + + +
int slsDetectorUsers::getStoreInRamReadoutFlag ( ) 
+
+
+ +

gets store in ram readout flag

+
Returns:
gets store in ram readout flag
+
@@ -1062,7 +1228,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
Returns:
auto, trigger, ro_trigger, gating, triggered_gating, unknown when wrong mode
-

Definition at line 622 of file slsDetectorUsers.h.

+

Definition at line 718 of file slsDetectorUsers.h.

@@ -1091,7 +1257,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
Returns:
auto, trigger, ro_trigger, gating, triggered_gating, unknown when wrong mode
-

Definition at line 606 of file slsDetectorUsers.h.

+

Definition at line 702 of file slsDetectorUsers.h.

@@ -1559,7 +1725,34 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
Returns:
string error, waiting, running, data, finished or unknown when wrong index
-

Definition at line 554 of file slsDetectorUsers.h.

+

Definition at line 650 of file slsDetectorUsers.h.

+ + + + +
+
+ + + + + + + + + +
int slsDetectorUsers::setAllTrimbits (int  val ) 
+
+
+ +

sets all trimbits to value (only available for eiger)

+
Parameters:
+ + +
val value to be set (-1 gets)
+
+
+
Returns:
value set
@@ -1588,6 +1781,103 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
Returns:
current dynamic range
+ + + +
+
+ + + + + + + + + +
int slsDetectorUsers::setClockDivider (int  value ) 
+
+
+ +

sets clock divider of detector

+
Parameters:
+ + +
value value to be set (-1 gets)
+
+
+
Returns:
speed of detector
+ +
+
+ +
+
+ + + + + + + + +
void slsDetectorUsers::setContinuousReadoutFlag ( ) 
+
+
+ +

sets continuous readout flag

+
Returns:
OK if successful, else false
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
int slsDetectorUsers::setDAC (int  id,
int  dacindex,
int  val 
)
+
+
+ +

set dac value

+
Parameters:
+ + + +
id module index (-1 for all)
dacindex dac index
+
+
+
See also:
dacIndex
+
Parameters:
+ + +
val value to be set (-1 gets)
+
+
+
Returns:
dac value
+
@@ -1885,6 +2175,26 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
Returns:
0 if disable (or file could not be read), >0 otherwise
+ + + +
+
+ + + + + + + + +
void slsDetectorUsers::setNonParallelReadoutFlag ( ) 
+
+
+ +

sets non parallel readout flag

+
Returns:
OK if successful, else false
+
@@ -1993,6 +2303,26 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
Returns:
0 (offline) or 1 (online)
+ + + +
+
+ + + + + + + + +
void slsDetectorUsers::setParallelReadoutFlag ( ) 
+
+
+ +

sets parallel readout flag

+
Returns:
OK if successful, else false
+
@@ -2057,6 +2387,26 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
Returns:
the mode set in the receiver
+ + + +
+
+ + + + + + + + +
void slsDetectorUsers::setSafeReadoutFlag ( ) 
+
+
+ +

sets safe readout flag

+
Returns:
OK if successful, else false
+
@@ -2084,6 +2434,26 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
Returns:
current settings
+ + + +
+
+ + + + + + + + +
void slsDetectorUsers::setStoreInRamReadoutFlag ( ) 
+
+
+ +

sets store in ram readout flag

+
Returns:
OK if successful, else false
+
@@ -2199,7 +2569,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); -
Generated on 28 Aug 2017 by  +
Generated on 19 Sep 2017 by  doxygen 1.6.1
diff --git a/manual/docs/html/slsDetectorUsersDocs/classslsReceiverUsers-members.html b/manual/docs/html/slsDetectorUsersDocs/classslsReceiverUsers-members.html index 24dbb04de..0a8221709 100644 --- a/manual/docs/html/slsDetectorUsersDocs/classslsReceiverUsers-members.html +++ b/manual/docs/html/slsDetectorUsersDocs/classslsReceiverUsers-members.html @@ -68,7 +68,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); -
Generated on 28 Aug 2017 by  +
Generated on 19 Sep 2017 by  doxygen 1.6.1
diff --git a/manual/docs/html/slsDetectorUsersDocs/classslsReceiverUsers.html b/manual/docs/html/slsDetectorUsersDocs/classslsReceiverUsers.html index 8338c10c2..6bea0f030 100644 --- a/manual/docs/html/slsDetectorUsersDocs/classslsReceiverUsers.html +++ b/manual/docs/html/slsDetectorUsersDocs/classslsReceiverUsers.html @@ -325,7 +325,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); -
Generated on 28 Aug 2017 by  +
Generated on 19 Sep 2017 by  doxygen 1.6.1
diff --git a/manual/docs/html/slsDetectorUsersDocs/detectorData_8h.html b/manual/docs/html/slsDetectorUsersDocs/detectorData_8h.html index 1eba1a892..7d6424919 100644 --- a/manual/docs/html/slsDetectorUsersDocs/detectorData_8h.html +++ b/manual/docs/html/slsDetectorUsersDocs/detectorData_8h.html @@ -67,7 +67,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); -
Generated on 28 Aug 2017 by  +
Generated on 19 Sep 2017 by  doxygen 1.6.1
diff --git a/manual/docs/html/slsDetectorUsersDocs/detectorData_8h_source.html b/manual/docs/html/slsDetectorUsersDocs/detectorData_8h_source.html index ef62c2684..66a7bbf38 100644 --- a/manual/docs/html/slsDetectorUsersDocs/detectorData_8h_source.html +++ b/manual/docs/html/slsDetectorUsersDocs/detectorData_8h_source.html @@ -80,7 +80,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); -
Generated on 28 Aug 2017 by  +
Generated on 19 Sep 2017 by  doxygen 1.6.1
diff --git a/manual/docs/html/slsDetectorUsersDocs/files.html b/manual/docs/html/slsDetectorUsersDocs/files.html index 64e91a111..5c413db95 100644 --- a/manual/docs/html/slsDetectorUsersDocs/files.html +++ b/manual/docs/html/slsDetectorUsersDocs/files.html @@ -65,7 +65,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); -
Generated on 28 Aug 2017 by  +
Generated on 19 Sep 2017 by  doxygen 1.6.1
diff --git a/manual/docs/html/slsDetectorUsersDocs/functions.html b/manual/docs/html/slsDetectorUsersDocs/functions.html index 6509f06e6..926435e49 100644 --- a/manual/docs/html/slsDetectorUsersDocs/functions.html +++ b/manual/docs/html/slsDetectorUsersDocs/functions.html @@ -124,9 +124,15 @@ Here is a list of all class members with links to the classes they belong to:

- g -

    +
  • getADC() +: slsDetectorUsers +
  • getCommand() : slsDetectorUsers
  • +
  • getContinuousReadoutFlag() +: slsDetectorUsers +
  • getDetectorDeveloper() : slsDetectorUsers
  • @@ -137,7 +143,7 @@ Here is a list of all class members with links to the classes they belong to: : slsDetectorUsers
  • getDetectorSettings() -: slsDetectorUsers +: slsDetectorUsers
  • getDetectorSize() : slsDetectorUsers @@ -175,12 +181,24 @@ Here is a list of all class members with links to the classes they belong to:
  • getModuleSerialNumber() : slsDetectorUsers
  • +
  • getNonParallelReadoutFlag() +: slsDetectorUsers +
  • +
  • getParallelReadoutFlag() +: slsDetectorUsers +
  • getPositions() : slsDetectorUsers
  • getReceiverVersion() : slsReceiverUsers
  • +
  • getSafeReadoutFlag() +: slsDetectorUsers +
  • +
  • getStoreInRamReadoutFlag() +: slsDetectorUsers +
  • getThisSoftwareVersion() : slsDetectorUsers
  • @@ -273,9 +291,21 @@ Here is a list of all class members with links to the classes they belong to:

    - s -

      +
    • setAllTrimbits() +: slsDetectorUsers +
    • setBitDepth() : slsDetectorUsers
    • +
    • setClockDivider() +: slsDetectorUsers +
    • +
    • setContinuousReadoutFlag() +: slsDetectorUsers +
    • +
    • setDAC() +: slsDetectorUsers +
    • setDelayAfterTrigger() : slsDetectorUsers
    • @@ -303,6 +333,9 @@ Here is a list of all class members with links to the classes they belong to:
    • setFlatFieldCorrectionFile() : slsDetectorUsers
    • +
    • setNonParallelReadoutFlag() +: slsDetectorUsers +
    • setNumberOfCycles() : slsDetectorUsers
    • @@ -315,15 +348,24 @@ Here is a list of all class members with links to the classes they belong to:
    • setOnline() : slsDetectorUsers
    • +
    • setParallelReadoutFlag() +: slsDetectorUsers +
    • setPositions() : slsDetectorUsers
    • setReceiverMode() : slsDetectorUsers
    • +
    • setSafeReadoutFlag() +: slsDetectorUsers +
    • setSettings() : slsDetectorUsers
    • +
    • setStoreInRamReadoutFlag() +: slsDetectorUsers +
    • setThresholdEnergy() : slsDetectorUsers
    • @@ -384,7 +426,7 @@ Here is a list of all class members with links to the classes they belong to: -
      Generated on 28 Aug 2017 by  +
      Generated on 19 Sep 2017 by  doxygen 1.6.1
      diff --git a/manual/docs/html/slsDetectorUsersDocs/functions_func.html b/manual/docs/html/slsDetectorUsersDocs/functions_func.html index 785c35b0f..d5917d998 100644 --- a/manual/docs/html/slsDetectorUsersDocs/functions_func.html +++ b/manual/docs/html/slsDetectorUsersDocs/functions_func.html @@ -113,9 +113,15 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');

      - g -

        +
      • getADC() +: slsDetectorUsers +
      • getCommand() : slsDetectorUsers
      • +
      • getContinuousReadoutFlag() +: slsDetectorUsers +
      • getDetectorDeveloper() : slsDetectorUsers
      • @@ -126,7 +132,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); : slsDetectorUsers
      • getDetectorSettings() -: slsDetectorUsers +: slsDetectorUsers
      • getDetectorSize() : slsDetectorUsers @@ -164,12 +170,24 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
      • getModuleSerialNumber() : slsDetectorUsers
      • +
      • getNonParallelReadoutFlag() +: slsDetectorUsers +
      • +
      • getParallelReadoutFlag() +: slsDetectorUsers +
      • getPositions() : slsDetectorUsers
      • getReceiverVersion() : slsReceiverUsers
      • +
      • getSafeReadoutFlag() +: slsDetectorUsers +
      • +
      • getStoreInRamReadoutFlag() +: slsDetectorUsers +
      • getThisSoftwareVersion() : slsDetectorUsers
      • @@ -246,9 +264,21 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');

        - s -

          +
        • setAllTrimbits() +: slsDetectorUsers +
        • setBitDepth() : slsDetectorUsers
        • +
        • setClockDivider() +: slsDetectorUsers +
        • +
        • setContinuousReadoutFlag() +: slsDetectorUsers +
        • +
        • setDAC() +: slsDetectorUsers +
        • setDelayAfterTrigger() : slsDetectorUsers
        • @@ -276,6 +306,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
        • setFlatFieldCorrectionFile() : slsDetectorUsers
        • +
        • setNonParallelReadoutFlag() +: slsDetectorUsers +
        • setNumberOfCycles() : slsDetectorUsers
        • @@ -288,15 +321,24 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
        • setOnline() : slsDetectorUsers
        • +
        • setParallelReadoutFlag() +: slsDetectorUsers +
        • setPositions() : slsDetectorUsers
        • setReceiverMode() : slsDetectorUsers
        • +
        • setSafeReadoutFlag() +: slsDetectorUsers +
        • setSettings() : slsDetectorUsers
        • +
        • setStoreInRamReadoutFlag() +: slsDetectorUsers +
        • setThresholdEnergy() : slsDetectorUsers
        • @@ -350,7 +392,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); -
          Generated on 28 Aug 2017 by  +
          Generated on 19 Sep 2017 by  doxygen 1.6.1
          diff --git a/manual/docs/html/slsDetectorUsersDocs/functions_vars.html b/manual/docs/html/slsDetectorUsersDocs/functions_vars.html index f7413022a..12c391f98 100644 --- a/manual/docs/html/slsDetectorUsersDocs/functions_vars.html +++ b/manual/docs/html/slsDetectorUsersDocs/functions_vars.html @@ -91,7 +91,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); -
          Generated on 28 Aug 2017 by  +
          Generated on 19 Sep 2017 by  doxygen 1.6.1
          diff --git a/manual/docs/html/slsDetectorUsersDocs/globals.html b/manual/docs/html/slsDetectorUsersDocs/globals.html index 2154ae383..20f45a924 100644 --- a/manual/docs/html/slsDetectorUsersDocs/globals.html +++ b/manual/docs/html/slsDetectorUsersDocs/globals.html @@ -55,9 +55,6 @@ Here is a list of all file members with links to the files they belong to:
          • AcquisitionFinished() : mainReceiver.cpp
          • -
          • childPid -: mainReceiver.cpp -
          • dataCallback() : mainClient.cpp
          • @@ -71,24 +68,15 @@ Here is a list of all file members with links to the files they belong to:
              : mainClient.cpp , mainReceiver.cpp -
            • NUM_RECEIVERS -: mainReceiver.cpp -
            • -
            • numrunning -: mainReceiver.cpp -
            • PRINT_IN_COLOR : mainReceiver.cpp
            • -
            • sigChildExitedHandler() -: mainReceiver.cpp +
            • printHelp() +: mainReceiver.cpp
            • sigInterruptHandler() : mainReceiver.cpp
            • -
            • START_TCP_PORT -: mainReceiver.cpp -
            • StartAcq() : mainReceiver.cpp
            • @@ -108,7 +96,7 @@ Here is a list of all file members with links to the files they belong to:
                -
                Generated on 28 Aug 2017 by  +
                Generated on 19 Sep 2017 by  doxygen 1.6.1
                diff --git a/manual/docs/html/slsDetectorUsersDocs/globals_defs.html b/manual/docs/html/slsDetectorUsersDocs/globals_defs.html index bab9c187f..b0765feda 100644 --- a/manual/docs/html/slsDetectorUsersDocs/globals_defs.html +++ b/manual/docs/html/slsDetectorUsersDocs/globals_defs.html @@ -52,15 +52,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
                 
                @@ -77,7 +71,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); -
                Generated on 28 Aug 2017 by  +
                Generated on 19 Sep 2017 by  doxygen 1.6.1
                diff --git a/manual/docs/html/slsDetectorUsersDocs/globals_func.html b/manual/docs/html/slsDetectorUsersDocs/globals_func.html index 169002fcd..375048696 100644 --- a/manual/docs/html/slsDetectorUsersDocs/globals_func.html +++ b/manual/docs/html/slsDetectorUsersDocs/globals_func.html @@ -65,8 +65,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); : mainClient.cpp , mainReceiver.cpp -
              • sigChildExitedHandler() -: mainReceiver.cpp +
              • printHelp() +: mainReceiver.cpp
              • sigInterruptHandler() : mainReceiver.cpp @@ -90,7 +90,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); -
                Generated on 28 Aug 2017 by  +
                Generated on 19 Sep 2017 by  doxygen 1.6.1
                diff --git a/manual/docs/html/slsDetectorUsersDocs/globals_vars.html b/manual/docs/html/slsDetectorUsersDocs/globals_vars.html index 20d70fb71..8ab34ea09 100644 --- a/manual/docs/html/slsDetectorUsersDocs/globals_vars.html +++ b/manual/docs/html/slsDetectorUsersDocs/globals_vars.html @@ -52,15 +52,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
                 
                @@ -77,7 +71,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); -
                Generated on 28 Aug 2017 by  +
                Generated on 19 Sep 2017 by  doxygen 1.6.1
                diff --git a/manual/docs/html/slsDetectorUsersDocs/index.html b/manual/docs/html/slsDetectorUsersDocs/index.html index ba7868aa4..69032f7d5 100644 --- a/manual/docs/html/slsDetectorUsersDocs/index.html +++ b/manual/docs/html/slsDetectorUsersDocs/index.html @@ -77,7 +77,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); -
                Generated on 28 Aug 2017 by  +
                Generated on 19 Sep 2017 by  doxygen 1.6.1
                diff --git a/manual/docs/html/slsDetectorUsersDocs/mainClient_8cpp.html b/manual/docs/html/slsDetectorUsersDocs/mainClient_8cpp.html index 8c2eb6487..4d2ef5239 100644 --- a/manual/docs/html/slsDetectorUsersDocs/mainClient_8cpp.html +++ b/manual/docs/html/slsDetectorUsersDocs/mainClient_8cpp.html @@ -200,7 +200,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); -
                Generated on 28 Aug 2017 by  +
                Generated on 19 Sep 2017 by  doxygen 1.6.1
                diff --git a/manual/docs/html/slsDetectorUsersDocs/mainClient_8cpp_source.html b/manual/docs/html/slsDetectorUsersDocs/mainClient_8cpp_source.html index 267ce4129..89bda0fa0 100644 --- a/manual/docs/html/slsDetectorUsersDocs/mainClient_8cpp_source.html +++ b/manual/docs/html/slsDetectorUsersDocs/mainClient_8cpp_source.html @@ -107,7 +107,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); -
                Generated on 28 Aug 2017 by  +
                Generated on 19 Sep 2017 by  doxygen 1.6.1
                diff --git a/manual/docs/html/slsDetectorUsersDocs/mainReceiver_8cpp.html b/manual/docs/html/slsDetectorUsersDocs/mainReceiver_8cpp.html index 1c4d03118..d11b21360 100644 --- a/manual/docs/html/slsDetectorUsersDocs/mainReceiver_8cpp.html +++ b/manual/docs/html/slsDetectorUsersDocs/mainReceiver_8cpp.html @@ -52,24 +52,23 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); #include <sys/types.h>
                #include <sys/wait.h>
                #include <string>
                +#include <unistd.h>
                +#include <errno.h>
                +#include <syscall.h>

                Go to the source code of this file.

                - - - + - -

                Defines

                #define NUM_RECEIVERS   1
                #define START_TCP_PORT   1954
                #define PRINT_IN_COLOR(c, f,...)   printf ("\033[%dm" f RESET, 30 + c+1, ##__VA_ARGS__)

                Functions

                void sigChildExitedHandler (int sig)
                void sigInterruptHandler (int p)
                void printHelp ()
                int StartAcq (char *filepath, char *filename, uint64_t fileindex, uint32_t datasize, void *p)
                void AcquisitionFinished (uint64_t frames, void *p)
                void GetData (uint64_t frameNumber, uint32_t expLength, uint32_t packetNumber, uint64_t bunchId, uint64_t timestamp, uint16_t modId, uint16_t xCoord, uint16_t yCoord, uint16_t zCoord, uint32_t debug, uint16_t roundRNumber, uint8_t detType, uint8_t version, char *datapointer, uint32_t datasize, void *p)
                int main (int argc, char *argv[])

                Variables

                pid_t childPid [NUM_RECEIVERS]
                bool keeprunning
                int numrunning

                Detailed Description

                This file is an example of how to implement the slsReceiverUsers class You can compile it linking it to the slsReceiver library

                @@ -80,21 +79,6 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');

                Definition in file mainReceiver.cpp.


                Define Documentation

                - -
                -
                - - - - -
                #define NUM_RECEIVERS   1
                -
                -
                - -

                Definition at line 34 of file mainReceiver.cpp.

                - -
                -
                @@ -124,22 +108,6 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');

                Definition at line 38 of file mainReceiver.cpp.

                -
                -
                - -
                -
                - - - - -
                #define START_TCP_PORT   1954
                -
                -
                -

                Define TCP Port of First Receiver, others are incremented by 1

                - -

                Definition at line 36 of file mainReceiver.cpp.

                -

                Function Documentation

                @@ -176,7 +144,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); -

                Definition at line 93 of file mainReceiver.cpp.

                +

                Definition at line 86 of file mainReceiver.cpp.

                @@ -311,7 +279,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); -

                Definition at line 117 of file mainReceiver.cpp.

                +

                Definition at line 110 of file mainReceiver.cpp.

                @@ -349,13 +317,16 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');

                -
              • set default values: child process pid values to -1, keeprunning to true, numrunning to 0
              • +
              • set default values
              • +
              +
                +
              • get number of receivers and start tcp port from command line arguments
              • Catch signal SIGINT to close files and call destructors properly
                -
              • wait for all the SIGCHILD signals and decrease numrunningeach time a child process exits
              • +
              • Ignore SIG_PIPE, prevents global signal handler, handle locally, instead of a server crashing due to client crash when writing, it just gives error
              • loop over number of receivers
              • @@ -364,13 +335,13 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
              • fork process to create child process
                -
              • if fork failed, raise SIGINT and kill all receiver objects
              • +
              • if fork failed, raise SIGINT and properly destroy all child processes
              • if child process
              • register callbacks. remember to set file write enable to 0 (using the client) if we should not write files and you will write data using the callbacks
              • @@ -385,48 +356,41 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
              • start tcp server thread
                -
              • as long as keeprunning is true, usleep for a second
              • +
              • as long as keeprunning is true (changes with Ctrl+C)
                -
              • parent process, increment number of running processes
              • +
              • Parent process ignores SIGINT (exits only when all child process exits)
              • Print Ready and Instructions how to exit
                -
              • Parent process waits for all child processes to exit by sleeping till numrunning is 0
              • +
              • Parent process waits for all child processes to exit

              -

              Definition at line 140 of file mainReceiver.cpp.

              +

              Definition at line 133 of file mainReceiver.cpp.

              - +
              - + - - +
              void sigChildExitedHandler void printHelp (int  sig  ) 
              -

              Child Exit Signal Interrupt Handler When a child process exits, this function is called, blocks until all child processes exit & decreases the variable indicating number of running processes

              -
              Parameters:
              - - -
              sig signal enum
              -
              -
              +

              prints usage of this example program

              Definition at line 55 of file mainReceiver.cpp.

              @@ -449,7 +413,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');

              Control+C Interrupt Handler Sets the variable keeprunning to false, to let all the processes know to exit properly

              -

              Definition at line 65 of file mainReceiver.cpp.

              +

              Definition at line 48 of file mainReceiver.cpp.

              @@ -508,26 +472,11 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
              Returns:
              ignored
              -

              Definition at line 80 of file mainReceiver.cpp.

              +

              Definition at line 73 of file mainReceiver.cpp.


              Variable Documentation

              - -
              -
              - - - - -
              pid_t childPid[NUM_RECEIVERS]
              -
              -
              - -

              Definition at line 41 of file mainReceiver.cpp.

              - -
              -
              @@ -540,23 +489,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');

              Variable is true to continue running, set to false upon interrupt

              -

              Definition at line 43 of file mainReceiver.cpp.

              - -
              -
              - -
              -
              - - - - -
              int numrunning
              -
              -
              -

              Variable indicating number of child processes running

              - -

              Definition at line 45 of file mainReceiver.cpp.

              +

              Definition at line 42 of file mainReceiver.cpp.

              @@ -575,7 +508,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
              -
              Generated on 28 Aug 2017 by  +
              Generated on 19 Sep 2017 by  doxygen 1.6.1
              diff --git a/manual/docs/html/slsDetectorUsersDocs/mainReceiver_8cpp_source.html b/manual/docs/html/slsDetectorUsersDocs/mainReceiver_8cpp_source.html index d7c0bee48..86ac0927a 100644 --- a/manual/docs/html/slsDetectorUsersDocs/mainReceiver_8cpp_source.html +++ b/manual/docs/html/slsDetectorUsersDocs/mainReceiver_8cpp_source.html @@ -54,141 +54,168 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); 00028 #include <sys/types.h> //wait 00029 #include <sys/wait.h> //wait 00030 #include <string> -00031 using namespace std; -00032 -00033 /* Define Number of receivers */ -00034 #define NUM_RECEIVERS 1 -00035 -00036 #define START_TCP_PORT 1954 -00037 +00031 #include <unistd.h> //usleep +00032 #include <errno.h> +00033 #include <syscall.h> //tid +00034 using namespace std; +00035 +00036 00038 #define PRINT_IN_COLOR(c,f, ...) printf ("\033[%dm" f RESET, 30 + c+1, ##__VA_ARGS__) 00039 -00040 /* List of process IDs of all child receiver processes */ -00041 pid_t childPid[NUM_RECEIVERS]; -00043 bool keeprunning; -00045 int numrunning; -00046 -00047 -00055 void sigChildExitedHandler(int sig) { -00056 pid_t pid = wait(NULL); -00057 bprintf(GRAY, "\nChild Process Pid %d exited.\n", pid); -00058 numrunning--; -00059 } -00060 -00065 void sigInterruptHandler(int p){ -00066 keeprunning = false; -00067 } -00068 -00080 int StartAcq(char* filepath, char* filename, uint64_t fileindex, uint32_t datasize, void*p){ -00081 bprintf(BLUE, "#### StartAcq: filepath:%s filename:%s fileindex:%llu datasize:%u ####\n", -00082 filepath, filename, fileindex, datasize); -00083 -00084 bprintf(BLUE, "--StartAcq: returning 0\n"); -00085 return 0; -00086 } -00087 -00093 void AcquisitionFinished(uint64_t frames, void*p){ -00094 bprintf(BLUE, "#### AcquisitionFinished: frames:%llu ####\n",frames); -00095 } -00096 -00117 void GetData(uint64_t frameNumber, uint32_t expLength, uint32_t packetNumber, uint64_t bunchId, uint64_t timestamp, -00118 uint16_t modId, uint16_t xCoord, uint16_t yCoord, uint16_t zCoord, uint32_t debug, uint16_t roundRNumber, uint8_t detType, uint8_t version, -00119 char* datapointer, uint32_t datasize, void* p){ -00120 -00121 PRINT_IN_COLOR (xCoord, -00122 "#### %d GetData: ####\n" -00123 "frameNumber: %llu\t\texpLength: %u\t\tpacketNumber: %u\t\tbunchId: %llu\t\ttimestamp: %llu\t\tmodId: %u\t\t" -00124 "xCoord: %u\t\tyCoord: %u\t\tzCoord: %u\t\tdebug: %u\t\troundRNumber: %u\t\tdetType: %u\t\t" -00125 "version: %u\t\tfirstbytedata: 0x%x\t\tdatsize: %u\n\n", -00126 xCoord, frameNumber, expLength, packetNumber, bunchId, timestamp, modId, -00127 xCoord, yCoord, zCoord, debug, roundRNumber, detType, version, -00128 ((uint8_t)(*((uint8_t*)(datapointer)))), datasize); -00129 -00130 } -00131 -00132 -00140 int main(int argc, char *argv[]) { -00141 -00143 for (int i = 0; i < NUM_RECEIVERS; ++i) -00144 childPid[i] = -1; -00145 keeprunning = true; -00146 numrunning = 0; +00040 +00042 bool keeprunning; +00043 +00048 void sigInterruptHandler(int p){ +00049 keeprunning = false; +00050 } +00051 +00055 void printHelp() { +00056 bprintf(GRAY, "Usage:\n" +00057 "./detReceiver\n" +00058 "or ./detReceiver [num_receivers] [start_tcp_port]\n" +00059 "Default values: num_receivers - 1, start_tcp_port - 1954\n\n"); +00060 } +00061 +00073 int StartAcq(char* filepath, char* filename, uint64_t fileindex, uint32_t datasize, void*p){ +00074 bprintf(BLUE, "#### StartAcq: filepath:%s filename:%s fileindex:%llu datasize:%u ####\n", +00075 filepath, filename, fileindex, datasize); +00076 +00077 bprintf(BLUE, "--StartAcq: returning 0\n"); +00078 return 0; +00079 } +00080 +00086 void AcquisitionFinished(uint64_t frames, void*p){ +00087 bprintf(BLUE, "#### AcquisitionFinished: frames:%llu ####\n",frames); +00088 } +00089 +00110 void GetData(uint64_t frameNumber, uint32_t expLength, uint32_t packetNumber, uint64_t bunchId, uint64_t timestamp, +00111 uint16_t modId, uint16_t xCoord, uint16_t yCoord, uint16_t zCoord, uint32_t debug, uint16_t roundRNumber, uint8_t detType, uint8_t version, +00112 char* datapointer, uint32_t datasize, void* p){ +00113 +00114 PRINT_IN_COLOR (xCoord, +00115 "#### %d GetData: ####\n" +00116 "frameNumber: %llu\t\texpLength: %u\t\tpacketNumber: %u\t\tbunchId: %llu\t\ttimestamp: %llu\t\tmodId: %u\t\t" +00117 "xCoord: %u\t\tyCoord: %u\t\tzCoord: %u\t\tdebug: %u\t\troundRNumber: %u\t\tdetType: %u\t\t" +00118 "version: %u\t\tfirstbytedata: 0x%x\t\tdatsize: %u\n\n", +00119 xCoord, frameNumber, expLength, packetNumber, bunchId, timestamp, modId, +00120 xCoord, yCoord, zCoord, debug, roundRNumber, detType, version, +00121 ((uint8_t)(*((uint8_t*)(datapointer)))), datasize); +00122 } +00123 +00124 +00125 +00133 int main(int argc, char *argv[]) { +00134 +00136 int numReceivers = 1; +00137 int startTCPPort = 1954; +00138 keeprunning = true; +00139 +00141 if (argc > 1 && ((argc < 3) || (!sscanf(argv[1],"%d", &numReceivers)) || (!sscanf(argv[2],"%d", &startTCPPort)) )) +00142 printHelp(); +00143 bprintf(BLUE,"Parent Process Created [ Tid: %ld ]\n", (long)syscall(SYS_gettid)); +00144 bprintf(GRAY, "Number of Receivers: %d\n", numReceivers); +00145 bprintf(GRAY, "Start TCP Port: %d\n", startTCPPort); +00146 00147 -00149 struct sigaction sa; -00150 sa.sa_flags=0; // no flags -00151 sa.sa_handler=sigInterruptHandler; // handler function -00152 sigemptyset(&sa.sa_mask); // dont block additional signals during invocation of handler -00153 if (sigaction(SIGINT, &sa, NULL) == -1) { -00154 bprintf(RED, "Could not set handler function for SIGINT\n"); -00155 } -00156 -00158 struct sigaction asa; -00159 asa.sa_flags=0; // no flags -00160 asa.sa_handler=sigChildExitedHandler; // handler function -00161 sigemptyset(&asa.sa_mask); // dont block additional signals during invocation of handler -00162 if (sigaction(SIGCHLD, &asa, NULL) == -1) { -00163 bprintf(RED, "Could not set handler function for SICHILD\n"); -00164 } -00165 -00166 -00168 for (int i = 0; i < NUM_RECEIVERS; ++i) { -00169 -00171 childPid[i] = fork(); -00172 -00174 if (childPid[i] < 0) { -00175 bprintf(RED,"fork() failed. Killing all the receiver objects\n"); -00176 raise(SIGINT); -00177 } -00178 -00180 else if (childPid[i] == 0) { -00181 bprintf(BLUE,"Starting Receiver %d with pid %ld\n", i, (long)getpid()); -00182 -00183 char temp[10]; -00184 sprintf(temp,"%d",START_TCP_PORT + i); -00185 char* args[] = {(char*)"ignored", (char*)"--rx_tcpport", temp}; -00186 int ret = slsReceiverDefs::OK; -00189 slsReceiverUsers *receiver = new slsReceiverUsers(3, args, ret); -00190 if(ret==slsReceiverDefs::FAIL){ -00191 delete receiver; -00192 exit(EXIT_FAILURE); -00193 } -00194 -00199 bprintf(BLUE, "Registering StartAcq()\n"); -00200 receiver->registerCallBackStartAcquisition(StartAcq, NULL); -00201 -00203 bprintf(BLUE, "Registering AcquisitionFinished()\n"); -00204 receiver->registerCallBackAcquisitionFinished(AcquisitionFinished, NULL); -00205 -00206 /* - Call back for raw data */ -00207 bprintf(BLUE, "Registering GetData() \n"); -00208 receiver->registerCallBackRawDataReady(GetData,NULL); -00209 +00148 +00150 struct sigaction sa; +00151 sa.sa_flags=0; // no flags +00152 sa.sa_handler=sigInterruptHandler; // handler function +00153 sigemptyset(&sa.sa_mask); // dont block additional signals during invocation of handler +00154 if (sigaction(SIGINT, &sa, NULL) == -1) { +00155 bprintf(RED, "Could not set handler function for SIGINT\n"); +00156 } +00157 +00160 struct sigaction asa; +00161 asa.sa_flags=0; // no flags +00162 asa.sa_handler=SIG_IGN; // handler function +00163 sigemptyset(&asa.sa_mask); // dont block additional signals during invocation of handler +00164 if (sigaction(SIGPIPE, &asa, NULL) == -1) { +00165 bprintf(RED, "Could not set handler function for SIGCHILD\n"); +00166 } +00167 +00168 +00170 for (int i = 0; i < numReceivers; ++i) { +00171 +00173 pid_t pid = fork(); +00174 +00176 if (pid < 0) { +00177 bprintf(RED,"fork() failed. Killing all the receiver objects\n"); +00178 raise(SIGINT); +00179 } +00180 +00182 else if (pid == 0) { +00183 bprintf(BLUE,"Child process %d [ Tid: %ld ]\n", i, (long)syscall(SYS_gettid)); +00184 +00185 char temp[10]; +00186 sprintf(temp,"%d",startTCPPort + i); +00187 char* args[] = {(char*)"ignored", (char*)"--rx_tcpport", temp}; +00188 int ret = slsReceiverDefs::OK; +00190 slsReceiverUsers *receiver = new slsReceiverUsers(3, args, ret); +00191 if(ret==slsReceiverDefs::FAIL){ +00192 delete receiver; +00193 exit(EXIT_FAILURE); +00194 } +00195 +00200 bprintf(BLUE, "Registering StartAcq()\n"); +00201 receiver->registerCallBackStartAcquisition(StartAcq, NULL); +00202 +00204 bprintf(BLUE, "Registering AcquisitionFinished()\n"); +00205 receiver->registerCallBackAcquisitionFinished(AcquisitionFinished, NULL); +00206 +00207 /* - Call back for raw data */ +00208 bprintf(BLUE, "Registering GetData() \n"); +00209 receiver->registerCallBackRawDataReady(GetData,NULL); 00210 -00212 if (receiver->start() == slsReceiverDefs::FAIL){ -00213 delete receiver; -00214 exit(EXIT_FAILURE); -00215 } -00216 -00218 while(keeprunning) -00219 usleep(1 * 1000 * 1000); -00221 delete receiver; -00222 exit(EXIT_SUCCESS); -00223 } -00224 -00226 else -00227 numrunning++; -00228 -00229 } -00230 -00232 cout << "Ready ... " << endl; -00233 bprintf(GRAY, "\n[ Press \'Ctrl+c\' to exit ]\n"); -00234 -00236 while(numrunning) -00237 usleep(1 * 1000 * 1000); -00238 cout << "Goodbye!" << endl; -00239 return 0; -00240 } -00241 +00211 +00213 if (receiver->start() == slsReceiverDefs::FAIL){ +00214 delete receiver; +00215 bprintf(BLUE,"Exiting Child Process [ Tid: %ld ]\n", (long)syscall(SYS_gettid)); +00216 exit(EXIT_FAILURE); +00217 } +00218 +00220 while(keeprunning) +00221 pause(); +00223 delete receiver; +00224 bprintf(BLUE,"Exiting Child Process [ Tid: %ld ]\n", (long)syscall(SYS_gettid)); +00225 exit(EXIT_SUCCESS); +00226 break; +00227 } +00228 } +00229 +00231 sa.sa_flags=0; // no flags +00232 sa.sa_handler=SIG_IGN; // handler function +00233 sigemptyset(&sa.sa_mask); // dont block additional signals during invocation of handler +00234 if (sigaction(SIGINT, &sa, NULL) == -1) { +00235 bprintf(RED, "Could not set handler function for SIGINT\n"); +00236 } +00237 +00238 +00240 cout << "Ready ... " << endl; +00241 bprintf(GRAY, "\n[ Press \'Ctrl+c\' to exit ]\n"); +00242 +00244 for(;;) { +00245 pid_t childPid = waitpid (-1, NULL, 0); +00246 +00247 // no child closed +00248 if (childPid == -1) { +00249 if (errno == ECHILD) { +00250 bprintf(GREEN,"All Child Processes have been closed\n"); +00251 break; +00252 } else { +00253 bprintf(RED, "Unexpected error from waitpid(): (%s)\n",strerror(errno)); +00254 break; +00255 } +00256 } +00257 +00258 //child closed +00259 bprintf(BLUE,"Exiting Child Process [ Tid: %ld ]\n", (long int) childPid); +00260 } +00261 +00262 cout << "Goodbye!" << endl; +00263 return 0; +00264 } +00265
              -
              Generated on 28 Aug 2017 by  +
              Generated on 19 Sep 2017 by  doxygen 1.6.1
              diff --git a/manual/docs/html/slsDetectorUsersDocs/search/all_63.html b/manual/docs/html/slsDetectorUsersDocs/search/all_63.html deleted file mode 100644 index 7244d79a7..000000000 --- a/manual/docs/html/slsDetectorUsersDocs/search/all_63.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - -
              -
              Loading...
              -
              -
              - childPid - mainReceiver.cpp -
              -
              -
              Searching...
              -
              No Matches
              - -
              - - diff --git a/manual/docs/html/slsDetectorUsersDocs/search/all_67.html b/manual/docs/html/slsDetectorUsersDocs/search/all_67.html index 1c989e41a..7df020a37 100644 --- a/manual/docs/html/slsDetectorUsersDocs/search/all_67.html +++ b/manual/docs/html/slsDetectorUsersDocs/search/all_67.html @@ -7,147 +7,183 @@
              Loading...
              +
              +
              + getADC + slsDetectorUsers +
              +
              - getCommand + getCommand + slsDetectorUsers +
              +
              +
              +
              + getContinuousReadoutFlag slsDetectorUsers
              - GetData + GetData mainReceiver.cpp
              - getDetectorSize + getDetectorSize slsDetectorUsers
              - getDetectorStatus + getDetectorStatus slsDetectorUsers
              - getDetectorType + getDetectorType slsDetectorUsers
              - getFileIndex + getFileIndex slsDetectorUsers
              - getFileName + getFileName slsDetectorUsers
              - getFilePath + getFilePath slsDetectorUsers
              - getModuleSerialNumber + getModuleSerialNumber + slsDetectorUsers +
              +
              +
              +
              + getNonParallelReadoutFlag + slsDetectorUsers +
              +
              +
              +
              + getParallelReadoutFlag slsDetectorUsers
              - getPositions + getPositions slsDetectorUsers
              - getReceiverVersion + getReceiverVersion slsReceiverUsers
              +
              +
              + getSafeReadoutFlag + slsDetectorUsers +
              +
              +
              +
              + getStoreInRamReadoutFlag + slsDetectorUsers +
              +
              - getThresholdEnergy + getThresholdEnergy slsDetectorUsers
              diff --git a/manual/docs/html/slsDetectorUsersDocs/search/all_6e.html b/manual/docs/html/slsDetectorUsersDocs/search/all_6e.html index 6ee200907..0fefdc2d9 100644 --- a/manual/docs/html/slsDetectorUsersDocs/search/all_6e.html +++ b/manual/docs/html/slsDetectorUsersDocs/search/all_6e.html @@ -19,18 +19,6 @@ detectorData
              -
              -
              - NUM_RECEIVERS - mainReceiver.cpp -
              -
              -
              -
              - numrunning - mainReceiver.cpp -
              -
              Searching...
              No Matches
              - - - diff --git a/manual/docs/html/slsDetectorUsersDocs/search/defines_73.html b/manual/docs/html/slsDetectorUsersDocs/search/defines_73.html deleted file mode 100644 index 044f7b10f..000000000 --- a/manual/docs/html/slsDetectorUsersDocs/search/defines_73.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - -
              -
              Loading...
              -
              -
              - START_TCP_PORT - mainReceiver.cpp -
              -
              -
              Searching...
              -
              No Matches
              - -
              - - diff --git a/manual/docs/html/slsDetectorUsersDocs/search/functions_67.html b/manual/docs/html/slsDetectorUsersDocs/search/functions_67.html index 1c989e41a..7df020a37 100644 --- a/manual/docs/html/slsDetectorUsersDocs/search/functions_67.html +++ b/manual/docs/html/slsDetectorUsersDocs/search/functions_67.html @@ -7,147 +7,183 @@
              Loading...
              +
              +
              + getADC + slsDetectorUsers +
              +
              - getCommand + getCommand + slsDetectorUsers +
              +
              +
              +
              + getContinuousReadoutFlag slsDetectorUsers
              - GetData + GetData mainReceiver.cpp
              - getDetectorSize + getDetectorSize slsDetectorUsers
              - getDetectorStatus + getDetectorStatus slsDetectorUsers
              - getDetectorType + getDetectorType slsDetectorUsers
              - getFileIndex + getFileIndex slsDetectorUsers
              - getFileName + getFileName slsDetectorUsers
              - getFilePath + getFilePath slsDetectorUsers
              - getModuleSerialNumber + getModuleSerialNumber + slsDetectorUsers +
              +
              +
              +
              + getNonParallelReadoutFlag + slsDetectorUsers +
              +
              +
              +
              + getParallelReadoutFlag slsDetectorUsers
              - getPositions + getPositions slsDetectorUsers
              - getReceiverVersion + getReceiverVersion slsReceiverUsers
              +
              +
              + getSafeReadoutFlag + slsDetectorUsers +
              +
              +
              +
              + getStoreInRamReadoutFlag + slsDetectorUsers +
              +
              - getThresholdEnergy + getThresholdEnergy slsDetectorUsers
              diff --git a/manual/docs/html/slsDetectorUsersDocs/search/functions_70.html b/manual/docs/html/slsDetectorUsersDocs/search/functions_70.html index fab3fdc4d..19f95ccf9 100644 --- a/manual/docs/html/slsDetectorUsersDocs/search/functions_70.html +++ b/manual/docs/html/slsDetectorUsersDocs/search/functions_70.html @@ -7,9 +7,15 @@
              Loading...
              +
              +
              + printHelp + mainReceiver.cpp +
              +
              - putCommand + putCommand slsDetectorUsers
              diff --git a/manual/docs/html/slsDetectorUsersDocs/search/functions_73.html b/manual/docs/html/slsDetectorUsersDocs/search/functions_73.html index 50394de4c..597d81f2d 100644 --- a/manual/docs/html/slsDetectorUsersDocs/search/functions_73.html +++ b/manual/docs/html/slsDetectorUsersDocs/search/functions_73.html @@ -7,171 +7,213 @@
              Loading...
              +
              +
              + setAllTrimbits + slsDetectorUsers +
              +
              - setBitDepth + setBitDepth + slsDetectorUsers +
              +
              +
              +
              + setClockDivider + slsDetectorUsers +
              +
              +
              +
              + setContinuousReadoutFlag + slsDetectorUsers +
              +
              +
              +
              + setDAC slsDetectorUsers
              - setDetectorSize + setDetectorSize slsDetectorUsers
              - setExposurePeriod + setExposurePeriod slsDetectorUsers
              - setExposureTime + setExposureTime slsDetectorUsers
              - setFileIndex + setFileIndex slsDetectorUsers
              - setFileName + setFileName slsDetectorUsers
              - setFilePath + setFilePath slsDetectorUsers
              +
              +
              + setNonParallelReadoutFlag slsDetectorUsers
              - setNumberOfCycles + setNumberOfCycles slsDetectorUsers
              - setNumberOfFrames + setNumberOfFrames slsDetectorUsers
              - setNumberOfGates + setNumberOfGates slsDetectorUsers
              - setOnline + setOnline + slsDetectorUsers +
              +
              +
              +
              + setParallelReadoutFlag slsDetectorUsers
              - setPositions + setPositions slsDetectorUsers
              - setReceiverMode + setReceiverMode + slsDetectorUsers +
              +
              +
              +
              + setSafeReadoutFlag slsDetectorUsers
              - setSettings + setSettings + slsDetectorUsers +
              +
              +
              +
              + setStoreInRamReadoutFlag slsDetectorUsers
              - setThresholdEnergy + setThresholdEnergy slsDetectorUsers
              - setTimingMode + setTimingMode slsDetectorUsers
              -
              -
              - sigChildExitedHandler - mainReceiver.cpp -
              -
              - slsDetectorUsers + slsDetectorUsers slsDetectorUsers
              - slsReceiverUsers + slsReceiverUsers slsReceiverUsers
              - start + start slsReceiverUsers
              - StartAcq + StartAcq mainReceiver.cpp
              - startMeasurement + startMeasurement slsDetectorUsers
              - stop + stop slsReceiverUsers
              - stopMeasurement + stopMeasurement slsDetectorUsers
              diff --git a/manual/docs/html/slsDetectorUsersDocs/search/search.js b/manual/docs/html/slsDetectorUsersDocs/search/search.js index 9f8c1240f..ceeb586fe 100644 --- a/manual/docs/html/slsDetectorUsersDocs/search/search.js +++ b/manual/docs/html/slsDetectorUsersDocs/search/search.js @@ -7,12 +7,12 @@ var indexSectionsWithContent = { - 0: "000000000000000000000000000000000000000000000000000000000000000001011111010101101011001000000010", + 0: "000000000000000000000000000000000000000000000000000000000000000001001111010101101011001000000010", 1: "000000000000000000000000000000000000000000000000000000000000000000001000000000000001000000000000", 2: "000000000000000000000000000000000000000000000000000000000000000000001000000001000001000000000000", 3: "000000000000000000000000000000000000000000000000000000000000000001001111010001001011000000000010", - 4: "000000000000000000000000000000000000000000000000000000000000000001010110000100101010001000000000", - 5: "000000000000000000000000000000000000000000000000000000000000000000000000000000101001000000000000" + 4: "000000000000000000000000000000000000000000000000000000000000000001000110000100101010001000000000", + 5: "000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000" }; var indexSectionNames = diff --git a/manual/docs/html/slsDetectorUsersDocs/search/variables_63.html b/manual/docs/html/slsDetectorUsersDocs/search/variables_63.html deleted file mode 100644 index 7244d79a7..000000000 --- a/manual/docs/html/slsDetectorUsersDocs/search/variables_63.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - -
              -
              Loading...
              -
              -
              - childPid - mainReceiver.cpp -
              -
              -
              Searching...
              -
              No Matches
              - -
              - - diff --git a/manual/docs/html/slsDetectorUsersDocs/search/variables_6e.html b/manual/docs/html/slsDetectorUsersDocs/search/variables_6e.html index cd02b4b42..0fefdc2d9 100644 --- a/manual/docs/html/slsDetectorUsersDocs/search/variables_6e.html +++ b/manual/docs/html/slsDetectorUsersDocs/search/variables_6e.html @@ -19,12 +19,6 @@ detectorData
              -
              -
              - numrunning - mainReceiver.cpp -
              -
              Searching...
              No Matches