improved tecs driver M.Z.

SKIPPED:
	psi/makefile
	psi/psi.c
	psi/tecsdriv.c
	psi/tecsdriv.h
	psi/hardsup/makefile
	psi/tecs/coc_client.c
	psi/tecs/coc_util.c
	psi/tecs/coc_util.h
	psi/tecs/didi
	psi/tecs/instr_hosts.c
	psi/tecs/make_gen
	psi/tecs/makefile
	psi/tecs/makefile_linux
	psi/tecs/myc_time.h
	psi/tecs/six.c
	psi/tecs/tecs.c
	psi/tecs/tecs_cli.c
	psi/tecs/tecs_client.f
	psi/tecs/tecs_data.c
	psi/tecs/tecs_plot.f
	psi/tecs/tecs_serial.c
	psi/tecs/term.c
	psi/utils/makefile
This commit is contained in:
cvs
2004-03-09 15:17:56 +00:00
parent f109d9a8c9
commit 137f5d2df1
11 changed files with 23 additions and 25 deletions

View File

@ -1,6 +1,6 @@
# this makefile delegates to a version specific makefile # this makefile delegates to a version specific makefile
# where this subdirectory is (relative to the sics root) # where root is
S_DOWN=dummy S_UP=..
include ../make_forward include ../make_forward

View File

@ -244,7 +244,7 @@
} }
now = time(NULL); now = time(NULL);
tmo = (int)(ObVal(self->pParam, MAXWAIT) * 60); tmo = (int)(ObVal(self->pParam, MAXWAIT));
/* based on this: logic ! */ /* based on this: logic ! */
if (tmo>0 && now > self->start+tmo ) /* time out */ if (tmo>0 && now > self->start+tmo ) /* time out */
{ {
@ -261,14 +261,14 @@
iCount++; iCount++;
return HWBusy; return HWBusy;
} }
tmo = (int)(ObVal(self->pParam, SETTLE) * 60); tmo = (int)(ObVal(self->pParam, SETTLE));
if (self->lastt <= 0) /* lastt negative: -seconds already waited */ if (self->lastt <= 0) /* lastt negative: -seconds already waited */
{ {
self->lastt += now; self->lastt += now;
if (tmo>0) if (tmo>0)
{ {
sprintf(pBueffel,"%s inside tolerance, wait %.2f min. to settle", sprintf(pBueffel,"%s inside tolerance, wait %.2f sec. to settle",
self->pName, (self->lastt + tmo - now)/60.0); self->pName, (self->lastt + tmo - now)*1.0);
SCWrite(pCon,pBueffel,eStatus); SCWrite(pCon,pBueffel,eStatus);
} }
return HWBusy; return HWBusy;
@ -973,10 +973,10 @@ static void ErrReport(pEVControl self)
snprintf(pBueffel,255,"%s.%s = %g",self->pName, "SafeValue", snprintf(pBueffel,255,"%s.%s = %g",self->pName, "SafeValue",
ObVal(self->pParam,SAFEVALUE)); ObVal(self->pParam,SAFEVALUE));
SCWrite(pCon,pBueffel, eValue); SCWrite(pCon,pBueffel, eValue);
snprintf(pBueffel,255,"%s.%s = %g",self->pName, "MaxWait", snprintf(pBueffel,255,"%s.%s = %g (sec)",self->pName, "MaxWait",
ObVal(self->pParam,MAXWAIT)); ObVal(self->pParam,MAXWAIT));
SCWrite(pCon,pBueffel, eValue); SCWrite(pCon,pBueffel, eValue);
snprintf(pBueffel,255,"%s.%s = %g",self->pName, "Settle", snprintf(pBueffel,255,"%s.%s = %g (sec)",self->pName, "Settle",
ObVal(self->pParam,SETTLE)); ObVal(self->pParam,SETTLE));
SCWrite(pCon,pBueffel, eValue); SCWrite(pCon,pBueffel, eValue);
EVCGetPos(self,pCon,&fPos); EVCGetPos(self,pCon,&fPos);

View File

@ -9,4 +9,4 @@
MFLAGS=-f $(SRC)makefile_linux$(DUMMY) SRC=$(SRC) MFLAGS=-f $(SRC)makefile_linux$(DUMMY) SRC=$(SRC)
HDFROOT=$(HOME) HDFROOT=/afs/psi.ch/project/sinq/linux

View File

@ -1,18 +1,17 @@
# This file is included by the makefile. # This file is included by the makefile.
# It forwards the execution to a version specific makefile. # It forwards the execution to a version specific makefile.
# S_DOWN, S_UP and SICS_VERSION must be defined # S_UP and SICS_VERSION must be defined
# M. Zolliker 08.2003 # M. Zolliker 08.2003
VERS_UNDEFINED= VERS_UNDEFINED=
VERS_UNDEFINED$(SICS_VERSION)=version_undefined VERS_UNDEFINED$(SICS_VERSION)=version_undefined
SICS_ROOT=$(PWD)/$(S_UP) SICS_ROOT=$(PWD)/$(S_UP)
OBJROOT=$(SICS_ROOT)/obj/$(SICS_VERSION) MD=cd $(SICS_VERSION); \
MD=cd $(OBJROOT)/$(S_DOWN); \
make -f $(SRC)makefile_$(SICS_VERSION) SRC=$(SRC) make -f $(SRC)makefile_$(SICS_VERSION) SRC=$(SRC)
#define TREE only when version defined #define TREE only when version defined
TREE$(VERS_UNDEFINED)=$(OBJROOT)/tree TREE$(VERS_UNDEFINED)=$(SICS_ROOT)/obj/$(SICS_VERSION)/tree
# overwrite MD when SICS_VERSION undefined # overwrite MD when SICS_VERSION undefined
MD$(SICS_VERSION)=@ true MD$(SICS_VERSION)=@ true
@ -53,8 +52,7 @@ $(TREE):
@ echo --- End object tree --- @ echo --- End object tree ---
cleanall: cleanall:
$(MD:makfil=makefile_alpha) clean $(MD) clean
$(MD:makfil=makefile_alpha_dummy) clean
version_undefined: version_undefined:
@ echo "" @ echo ""

View File

@ -42,8 +42,8 @@ VELOOBJ = velo.o velosim.o
all: SICServer all: SICServer
full: matrix/libmatrix.a psi/hardsup/libhlib.a psi/tecs/libtecsl.a \ # use this target when some of the libraries SUBLIBS might be incomplete
psi/libpsi.a SICServer full: purge SICServer
SICServer: $(SOBJ) $(MOTOROBJ) $(COUNTEROBJ) \ SICServer: $(SOBJ) $(MOTOROBJ) $(COUNTEROBJ) \
$(VELOOBJ) $(DIFIL) $(EXTRA) \ $(VELOOBJ) $(DIFIL) $(EXTRA) \
@ -64,6 +64,9 @@ psi/tecs/libtecsl.a:
psi/libpsi.a: psi/libpsi.a:
cd psi; make $(MFLAGS) libpsi.a cd psi; make $(MFLAGS) libpsi.a
purge:
rm -f SICServer $(SUBLIBS)
clean: clean:
rm -f *.o SICServer rm -f *.o SICServer
cd psi/hardsup; make $(MFLAGS) clean cd psi/hardsup; make $(MFLAGS) clean

View File

@ -31,8 +31,8 @@ SOBJ = network.o ifile.o conman.o SCinter.o splitter.o passwd.o \
hmcontrol.o userscan.o rs232controller.o lomax.o \ hmcontrol.o userscan.o rs232controller.o lomax.o \
fourlib.o motreg.o motreglist.o anticollider.o \ fourlib.o motreg.o motreglist.o anticollider.o \
s_rnge.o sig_die.o gpibcontroller.o $(NIOBJ) \ s_rnge.o sig_die.o gpibcontroller.o $(NIOBJ) \
hmdata.o nxscript.o \ hmdata.o nxscript.o nxupdate.o wwildcard.o \
tclintimpl.o sicsdata.o tclintimpl.o sicsdata.o help.o tcldrivable.o
MOTOROBJ = motor.o simdriv.o MOTOROBJ = motor.o simdriv.o
COUNTEROBJ = countdriv.o simcter.o counter.o COUNTEROBJ = countdriv.o simcter.o counter.o

View File

@ -1,7 +1,5 @@
# this makefile delegates to a version specific makefile # this makefile delegates to a version specific makefile
# where this subdirectory is (relative to root)
S_DOWN=.
# where root is # where root is
S_UP=. S_UP=.

View File

@ -27,7 +27,7 @@ EXTRA=nintf.o
SUBLIBS = psi/libpsi.a psi/hardsup/libhlib.a matrix/libmatrix.a \ SUBLIBS = psi/libpsi.a psi/hardsup/libhlib.a matrix/libmatrix.a \
psi/tecs/libtecsl.a psi/tecs/libtecsl.a
LIBS = -static -L$(HDFROOT)/lib $(SUBLIBS) $(NILIB)\ LIBS = -static -L$(HDFROOT)/lib $(SUBLIBS) $(NILIB)\
-ltcl8.4 $(HDFROOT)/lib/libhdf5.a \ -ltcl8.3 $(HDFROOT)/lib/libhdf5.a \
$(HDFROOT)/lib/libmfhdf.a $(HDFROOT)/lib/libdf.a \ $(HDFROOT)/lib/libmfhdf.a $(HDFROOT)/lib/libdf.a \
$(HDFROOT)/lib/libjpeg.a -ldl -lz -lm -lc $(HDFROOT)/lib/libjpeg.a -ldl -lz -lm -lc

View File

@ -30,6 +30,7 @@ else
rm -f $o/src rm -f $o/src
echo ln -s $SICS_ROOT/$1 $o/src echo ln -s $SICS_ROOT/$1 $o/src
ln -s $SICS_ROOT/$1 $o/src ln -s $SICS_ROOT/$1 $o/src
ln -s $o $SICS_ROOT/$1/$SICS_VERSION
rm -f $o/cd_obj rm -f $o/cd_obj
echo "cd $SICS_ROOT/$1" > $o/cd_obj echo "cd $SICS_ROOT/$1" > $o/cd_obj
endif endif

View File

@ -1,7 +1,5 @@
# this makefile delegates to a version specific makefile # this makefile delegates to a version specific makefile
# where this subdirectory is (relative to the sics root)
S_DOWN=matrix
# where root is (from here) # where root is (from here)
S_UP=.. S_UP=..

View File

@ -6,7 +6,7 @@
# Markus Zolliker, March 2003 # Markus Zolliker, March 2003
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
include ../linux_def include ../$(SRC)linux_def
CC = gcc CC = gcc
CFLAGS = -g $(DFORTIFY) CFLAGS = -g $(DFORTIFY)