- New batch file management module
- New oscillator module - Bug fixes
This commit is contained in:
8
nxamor.c
8
nxamor.c
@@ -42,8 +42,9 @@
|
||||
The rough size of each detector chunk to write in TOF mode
|
||||
(currently 16MB)
|
||||
#define TOFBLOCK 8192000
|
||||
*/
|
||||
#define TOFBLOCK 16384000
|
||||
*/
|
||||
#define TOFBLOCK 65536000
|
||||
|
||||
/*
|
||||
a pointer to amor2t which we need for a couple of parameters
|
||||
@@ -354,10 +355,12 @@ static int WriteTOFDetector(char *name, pHistMem pHM, int *iDim,
|
||||
NXhandle hfil, NXdict hdict,
|
||||
SConnection *pCon)
|
||||
{
|
||||
int iLength, nChunk, chunkSize, iChunk[3], i, iStart[3], nTime, iRet;
|
||||
int nChunk, chunkSize, iChunk[3], i, iStart[3], nTime, iRet;
|
||||
long iLength;
|
||||
HistInt *lData = NULL;
|
||||
char pBueffel[132];
|
||||
const float *fTime;
|
||||
int start;
|
||||
|
||||
fTime = GetHistTimeBin(pHM,&nTime);
|
||||
iDim[2] = nTime;
|
||||
@@ -384,6 +387,7 @@ static int WriteTOFDetector(char *name, pHistMem pHM, int *iDim,
|
||||
free(lData);
|
||||
return 0;
|
||||
}
|
||||
SicsWait(2);
|
||||
NXDputalias(hfil,hdict,name,lData);
|
||||
NXDputalias(hfil,hdict,"detchunk",iDim);
|
||||
NXDaliaslink(hfil,hdict,"dana",name);
|
||||
|
||||
Reference in New Issue
Block a user