- Enhanced and debugged histogram memory for AMOR

* added PROJECT both in HM and driver code
  * added single detector support.
- Removed several bugs in the AMOR data bit.
- Updated documentation
This commit is contained in:
cvs
2001-08-17 14:33:05 +00:00
parent a538361516
commit db6c355f44
56 changed files with 4060 additions and 426 deletions

View File

@@ -272,6 +272,8 @@ cleared by default.
long SINQHMSize(pSINQHM self, int iNum, int iStart, int iEnd);
int SINQHMRead(pSINQHM self, int iNum, int iStart, int iEnd,
void *pData, int iDataLen);
int SINQHMProject(pSINQHM self, int code, int xStart, int nx,
int yStart, int ny, void *pData, int iDataLen);
int SINQHMZero(pSINQHM self, int iNum, int iStart, int iEnd);
@}
@@ -302,6 +304,21 @@ SINQHMRead reads histograms. The parameters iNum, iStart and iEnd have the
same meaning as with SINQHMWrite. Maximum iDataLen bytes of data are copied
to the memory area pointed to by pData.
SINQHMProject requests a projection of the data from the histogram memory. This
is currently only implemented for AMOR because histograms can get so large
at this instrument that a transfer for processing would take to long. The
parameters are:
\begin{description}
\item[code] The operation code for project. Can be PROJECT__COLL for
collapsing all time channels onto a 2D array and PROJECT__SAMPLE for
summing a rectangular region of the histogram memory in time.
\item[xStart, nx] start value in x and number of detectors to sum in x direction
\item[yStart,ny]start value in y and number of detectors to sum in y direction
\item[pData] a pointer to a data array large enough for holding the projected
data.
\item[iDataLen] The length of pData.
\end{description}
SINQHMZero clears the histogram iNum from iStart to iEnd to 0.
A recommended call prior
to any serious data aquisition.