Cleaned up ANSTO code to merge with sinqdev.sics
This is our new RELEASE-4_0 branch which was taken from ansto/93d9a7c Conflicts: .gitignore SICSmain.c asynnet.c confvirtualmot.c counter.c devexec.c drive.c event.h exebuf.c exeman.c histmem.c interface.h motor.c motorlist.c motorsec.c multicounter.c napi.c napi.h napi4.c network.c nwatch.c nxscript.c nxxml.c nxxml.h ofac.c reflist.c scan.c sicshipadaba.c sicsobj.c site_ansto/docs/Copyright.txt site_ansto/instrument/lyrebird/config/tasmad/sicscommon/nxsupport.tcl site_ansto/instrument/lyrebird/config/tasmad/taspub_sics/tasscript.tcl statusfile.c tasdrive.c tasub.c tasub.h tasublib.c tasublib.h
This commit is contained in:
@ -903,7 +903,6 @@ int ScanCount(pScanData self, int iPoint)
|
||||
SCWrite(self->pCon, "ERROR: Cannot Count, Scan aborted", eLogError);
|
||||
return 0;
|
||||
}
|
||||
SetStatus(eCounting);
|
||||
/* wait for finish */
|
||||
while(DevExecLevelRunning(pServ->pExecutor, RUNDRIVE)){
|
||||
TaskYield(pServ->pTasker);
|
||||
@ -950,7 +949,11 @@ static int StandardScriptInvoke(pScanData self, char *function)
|
||||
if (command == NULL) {
|
||||
return 0;
|
||||
}
|
||||
status = InterpExecute(self->pSics, self->pCon, GetCharArray(command));
|
||||
if(self->pCon != NULL){
|
||||
status = InterpExecute(pServ->pSics, self->pCon, GetCharArray(command));
|
||||
} else {
|
||||
status = InterpExecute(pServ->pSics, pServ->dummyCon, GetCharArray(command));
|
||||
}
|
||||
DeleteDynString(command);
|
||||
if (status != 1) {
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user