- Fixes to make SL6 work
- New NeXus libraries - Added new raw binary transfer mode for mass data - Added a check script option to configurable virtual motor SKIPPED: psi/dumprot.c psi/make_gen psi/psi.c psi/rebin.c psi/sanslirebin.c
This commit is contained in:
29
stdscan.c
29
stdscan.c
@ -558,16 +558,27 @@ int prepareDataFile(pScanData self)
|
||||
{
|
||||
char *pPtr = NULL;
|
||||
char pBueffel[512];
|
||||
Tcl_Interp *pTcl;
|
||||
const char *val = NULL;
|
||||
|
||||
/* allocate a new data file */
|
||||
pPtr = ScanMakeFileName(pServ->pSics, self->pCon);
|
||||
if (!pPtr) {
|
||||
SCWrite(self->pCon,
|
||||
"ERROR: cannot allocate new data filename, Scan aborted",
|
||||
eLogError);
|
||||
self->pCon = NULL;
|
||||
self->pSics = NULL;
|
||||
return 0;
|
||||
pTcl = InterpGetTcl(pServ->pSics);
|
||||
val = Tcl_GetVar(pTcl,"simMode",TCL_GLOBAL_ONLY);
|
||||
if(val != NULL){
|
||||
if(strstr(val,"2") != NULL){
|
||||
pPtr = strdup("sicssim.scn");
|
||||
}
|
||||
} else {
|
||||
|
||||
/* allocate a new data file */
|
||||
pPtr = ScanMakeFileName(pServ->pSics, self->pCon);
|
||||
if (!pPtr) {
|
||||
SCWrite(self->pCon,
|
||||
"ERROR: cannot allocate new data filename, Scan aborted",
|
||||
eLogError);
|
||||
self->pCon = NULL;
|
||||
self->pSics = NULL;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
snprintf(pBueffel, 511, "Writing data file: %s ...", pPtr);
|
||||
SCWrite(self->pCon, pBueffel, eLog);
|
||||
|
Reference in New Issue
Block a user