a connection during an active run. - Added an additional output mode for the connection in order to support the batch run editor. - Made clientput send everything with eWarning mode in order to support the batch run editor. - Added a better NetReadTillTerm - Fixed a problem in synchronize.c - Fixed an issue with reading empty line on normal connection sockets. - Added a psi scan mode to mesure.c for TRICS - Made motor print warnings when trying to reposition. - Fixed abug in hkl.c which cause wrong signs. SKIPPED: psi/el734driv.c psi/el734hp.c psi/el737driv.c psi/el737hpdriv.c psi/nextrics.c psi/nxamor.c psi/psi.c psi/slsmagnet.c psi/swmotor2.c psi/tasscan.c psi/tasutil.c
61 lines
1.8 KiB
C
61 lines
1.8 KiB
C
/*--------------------------------------------------------------------------
|
|
|
|
The Status object. Holds the current status of the SICS server.
|
|
|
|
Mark Koennecke, November 1996
|
|
copyright: see implementation file
|
|
----------------------------------------------------------------------------*/
|
|
#ifndef SICSSTATUS
|
|
#define SICSSTATUS
|
|
|
|
typedef enum {
|
|
eEager,
|
|
eUserWait,
|
|
eCounting,
|
|
eOutOfBeam,
|
|
ePaused,
|
|
eDriving,
|
|
eRunning,
|
|
eScanning,
|
|
eWriting,
|
|
eBatch,
|
|
eHalted,
|
|
eDead,
|
|
eInput,
|
|
eCountDrive,
|
|
eWorking
|
|
} Status;
|
|
|
|
/* for status display */
|
|
void SetStatus(Status eNew);
|
|
int SetStatusFromText(char *text);
|
|
void KillStatus(void *pData);
|
|
/**
|
|
* set a status and disallow any further changes to the status. This serves
|
|
* in order to prevent massive message flows to the client from status
|
|
* changes while processing synchronisation files
|
|
*/
|
|
void SetStatusFixed(Status eNew);
|
|
/**
|
|
* clear a fixed status again, status will be updated again.
|
|
*/
|
|
void ClearFixedStatus(Status eNew);
|
|
|
|
Status GetStatus(void);
|
|
void GetStatusText(char *buf, int iBufLen);
|
|
|
|
|
|
int UserStatus(SConnection *pCon, SicsInterp *pSics, void *pData,
|
|
int argc, char *argv[]);
|
|
int ResetStatus(SConnection *pCon, SicsInterp *pSics, void *pData,
|
|
int argc, char *argv[]);
|
|
|
|
int BackupStatus(SConnection *pCon, SicsInterp *pSics, void *pData,
|
|
int argc, char *argv[]);
|
|
int RestoreStatus(SConnection *pCon, SicsInterp *pSics, void *pData,
|
|
int argc, char *argv[]);
|
|
|
|
|
|
|
|
#endif
|