From 0fac95ea9b0f36839fb4e542622e135b1fe2c287 Mon Sep 17 00:00:00 2001
From: cvs
Date: Fri, 20 Jul 2001 08:05:25 +0000
Subject: [PATCH] - Updated the managers documentation a little - The crystal
settings calculation in hkl now tried to put omega into the limts by
calculating a delta omega. - TRICS data files now include HKL and the UB -
The scan module has been expanded to support user defined scans which run a
script at any scan point. - A small fix to the PSD code in SinqHM_srv_filler
---
Makefile | 2 +-
danu.dat | 2 +-
doc/manager/hwini.htm | 41 ++++++-
doc/manager/ini.htm | 20 +++-
doc/manager/manager.htm | 1 -
doc/manager/option.htm | 7 +-
doc/manager/setup.htm | 110 +++++++++++++++++-
doc/user/trics.htm | 21 ++--
doc/user/tricsman | 2 +-
faverage.c | 231 +++++++++++++++++++++++++------------
histmem.c | 8 ++
hkl.c | 170 ++++-----------------------
nextrics.c | 62 +++++++---
scan.c | 97 +++++++++++++++-
scan.h | 11 ++
scan.i | 2 +
scan.tex | 28 ++++-
scan.w | 28 ++++-
sicsstatus.tcl | 16 +--
sinqhm/SinqHM_srv_filler.c | 10 +-
test.tcl | 225 +-----------------------------------
trics.dic | 24 ++--
userscan.c | 75 ++++++++++++
userscan.h | 19 +++
userscan.w | 51 ++++++++
25 files changed, 741 insertions(+), 522 deletions(-)
create mode 100644 userscan.c
create mode 100644 userscan.h
create mode 100644 userscan.w
diff --git a/Makefile b/Makefile
index 59de78ee..ce97a512 100644
--- a/Makefile
+++ b/Makefile
@@ -48,7 +48,7 @@ SOBJ = network.o ifile.o conman.o SCinter.o splitter.o passwd.o \
circular.o el755driv.o maximize.o sicscron.o tecsdriv.o sanscook.o \
tasinit.o tasutil.o t_rlp.o t_conv.o d_sign.o d_mod.o \
tasdrive.o tasscan.o synchronize.o definealias.o swmotor.o t_update.o \
- hmcontrol.o
+ hmcontrol.o userscan.o
MOTOROBJ = motor.o el734driv.o simdriv.o el734dc.o pipiezo.o pimotor.o
COUNTEROBJ = countdriv.o simcter.o counter.o
diff --git a/danu.dat b/danu.dat
index 134b8581..2142b97b 100644
--- a/danu.dat
+++ b/danu.dat
@@ -1,3 +1,3 @@
- 7746
+ 2
NEVER, EVER modify or delete this file
You'll risk eternal damnation and a reincarnation as a cockroach!|n
\ No newline at end of file
diff --git a/doc/manager/hwini.htm b/doc/manager/hwini.htm
index c385da7b..00a67819 100644
--- a/doc/manager/hwini.htm
+++ b/doc/manager/hwini.htm
@@ -34,7 +34,8 @@ The following commands are available to install motors into the system:
This command creates a simulated
motor with the lower limits lowlim, the upper limit uplim, an ratio of
randomly generated errors err and a driving speed of speed. Use this for
-testing and instrument simulation.
+testing and instrument simulation. If err is less then 0, the motor will
+not create failures and thus can be used in a instrument simulation server.
Motor name EL734 host port chan no
This command creates a stepper motor named name which is controlled through a
El734 motor controller. The
@@ -46,20 +47,54 @@ El734DC motor controller. The
parameters host, port, chan have the meanings defined above. no is the
number of the motor in the EL734DC motor controller.
+MakePIMotor name c804 pararray
+Creates a motr name connected to a C804 motor controller from the
+ manufacturer Physik Instrumente. Pararray is a Tcl array holding the
+ initialization information. The follwoing elements are required in this
+ array:
+
+ - Computer, port, channel
+
- The standard connection parameters.
+
- upperlimit, lowerlimit
+
- The limits for this motor.
+
- motor
+
- The number of the motor in the motor controller.
+
+Motor name pipiezo pararray
+Creates a piezo electric positioning device. Again the controller is a
+ Physik Instrumente controller. pararray has the same meaning as for the
+ C804 controller given above.
Counting Devices
-- MakeCounter name SIM
+
- MakeCounter name SIM failrate
- This command creates a simulated single counter
-accessible as object name.
+accessible as object name. Failrate is the per centage of invocations
+at which the counter will generate a random failure for testing error
+treatment code. If failrate is less then 0, there are no
+failures. This can be used in a instrument simulation server.
- MakeCounter name EL737 host port chan
- This command creates a single
counter name, using an EL737 driver. The counter is at host host, listening
at port port and sits at serial port chan.
+MakeHMControl name counter hm1 hm2 hm3
+At some instruments (for instance TRICS) multiple counters or
+histogram memories are controlled by a master counter which watches
+over presets and the like. This command installs a virtual counter
+which does exactly that. The parameters are:
+
+- name
+
- The name of the virtual counter in SICS
+
- counter The name of the master counter
+
- hm1, hm2, hm3
+
- Up to three slave counting devices.
+
+
+
Histogram Memory
Due to the large amount of parameters, histogram memories are configured
diff --git a/doc/manager/ini.htm b/doc/manager/ini.htm
index 89f2d181..c8ec5fae 100644
--- a/doc/manager/ini.htm
+++ b/doc/manager/ini.htm
@@ -34,6 +34,24 @@ file) may use special commands for the installation of:
Hardware
-
+
+Actually the SICS servers configuration is rarely stored in one file
+but in several files which are included by the main configuration
+file. In general the following files are present:
+
+- inst.tcl
+
- Replace inst with the name of the instrument in lowercase. This is
+the main initialization file. It should contain all the hardware
+initialization.
+
- instcom.tcl
+
- Again replace inst with name of the instrument in
+lowercase. This file holds instrument specific commands defined in the
+Tcl macro language. This file is automatically included by inst.tcl.
+
- scancommand.tcl, tecs.tcl, log.tcl
+
- Some macro definitions which are used by so many instruments that
+it was deemed appropraite to hold them in separate files. Such files
+are included from instcom.tcl.
+
+