diff --git a/HistDriv.i b/HistDriv.i index 1c1c66e3..bfdf4976 100644 --- a/HistDriv.i +++ b/HistDriv.i @@ -1,5 +1,5 @@ -#line 468 "histogram.w" +#line 469 "histogram.w" /*--------------------------------------------------------------------------- H I S T D R I V @@ -13,7 +13,7 @@ #define MAXCHAN 4096 -#line 81 "histogram.w" +#line 82 "histogram.w" typedef struct __HistDriver { /* configuration data */ @@ -77,17 +77,17 @@ void *pPriv; } HistDriver; -#line 480 "histogram.w" +#line 481 "histogram.w" -#line 238 "histogram.w" +#line 239 "histogram.w" pHistDriver CreateHistDriver(pStringDict pDict); void DeleteHistDriver(pHistDriver self); int HistDriverConfig(pHistDriver self, pStringDict pOpt, SConnection *pCon); -#line 481 "histogram.w" +#line 482 "histogram.w" #endif diff --git a/HistMem.h b/HistMem.h index f9405f8a..06a0ec5c 100644 --- a/HistMem.h +++ b/HistMem.h @@ -1,5 +1,5 @@ -#line 441 "histogram.w" +#line 442 "histogram.w" /*-------------------------------------------------------------------------- H I S T M E M @@ -28,10 +28,11 @@ eHNormal, eHTOF, eHStrobo, - eHRPT + eHRPT, + ePSD } HistMode; -#line 33 "histogram.w" +#line 34 "histogram.w" typedef enum { eOIgnore, @@ -40,22 +41,22 @@ eReflect } OverFlowMode; -#line 461 "histogram.w" +#line 462 "histogram.w" /*--------------------------------------------------------------------------*/ -#line 302 "histogram.w" +#line 303 "histogram.w" pHistMem CreateHistMemory(char *drivername); void DeleteHistMemory(void *self); -#line 318 "histogram.w" +#line 319 "histogram.w" int HistGetOption(pHistMem self, char *name, char *result, int iResultLen); int HistSetOption(pHistMem self, char *name, char *value); int HistConfigure(pHistMem self, SConnection *pCon, SicsInterp *pSics); -#line 346 "histogram.w" +#line 347 "histogram.w" float GetHistPreset(pHistMem self); int SetHistPreset(pHistMem self, float fVal); @@ -70,7 +71,7 @@ int HistBlockCount(pHistMem self, SConnection *pCon); -#line 375 "histogram.w" +#line 376 "histogram.w" int SetHistogram(pHistMem self, SConnection *pCon, int i,int iStart, int iEnd, HistInt *lData); @@ -79,7 +80,7 @@ HistInt *GetHistogramPointer(pHistMem self,SConnection *pCon); int PresetHistogram(pHistMem self, SConnection *pCon, HistInt lVal); -#line 410 "histogram.w" +#line 411 "histogram.w" int MakeHistMemory(SConnection *pCon, SicsInterp *pSics, void *pData, int argc, char *argv[]); @@ -88,7 +89,7 @@ int argc, char *argv[]); -#line 463 "histogram.w" +#line 464 "histogram.w" #endif diff --git a/HistMem.i b/HistMem.i index 1a982f79..a449b909 100644 --- a/HistMem.i +++ b/HistMem.i @@ -1,5 +1,5 @@ -#line 486 "histogram.w" +#line 487 "histogram.w" /*--------------------------------------------------------------------------- H I S T M E M -- Internal @@ -11,7 +11,7 @@ #ifndef SICSHISTMEMINT #define SICSHISTMEMINT -#line 260 "histogram.w" +#line 261 "histogram.w" typedef struct __HistMem { pObjectDescriptor pDes; @@ -29,7 +29,7 @@ int iUpdateIntervall; } HistMem; -#line 496 "histogram.w" +#line 497 "histogram.w" #endif diff --git a/danu.dat b/danu.dat index c3a656e7..3f540b0f 100644 --- a/danu.dat +++ b/danu.dat @@ -1,3 +1,3 @@ - 7647 + 7665 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/el734_test.tex b/doc/el734_test.tex new file mode 100644 index 00000000..d4c18ff9 --- /dev/null +++ b/doc/el734_test.tex @@ -0,0 +1,723 @@ +% [...DOC.SINQ]EL734_TEST.TEX - Ident 1D02 +% =========================== +%% +%%==================================================================== +%% +%% +--------------------------------------------------------------+ +%% | Paul Scherrer Institute | +%% | SINQ Division | +%% | | +%% | This software may be used freely by non-profit organizations.| +%% | It may be copied provided that the name of P.S.I. and of the | +%% | author is included. Neither P.S.I. nor the author assume any | +%% | responsibility for the use of this software outside of P.S.I.| +%% +--------------------------------------------------------------+ +%% +%% Project . . . . . . . . . . : SINQ +%% Brief Document Title . . . . : Description of EL734 Step Motor Test Prog +%% Author . . . . . . . . . . . : D.Maden +%% Date of creation . . . . . . : 29-Jan-1996 +%% +%% Updates: +%% 13-Nov-1996 DM. Vn 1D02 of program. +%%==================================================================== +%% +\documentclass[openbib,a4paper,twoside,11pt]{article} +\usepackage{array} +% +\addtolength{\textheight}{35mm} +\setlength{\textwidth}{160mm} +\setlength{\oddsidemargin}{8mm} +\setlength{\evensidemargin}{-10mm} +\setlength{\topmargin}{-20mm} +% +\setcounter{tocdepth}{2} +% +\newcommand{\pdp}{\protect\makebox[3.7em][l]{PDP-11}} +\newcommand{\uvax}{\protect\makebox[4.8em][l]{microVAX}} +% +\newcounter{two} \setcounter{two}{2} +\newcommand{\uvaxii}{\protect\makebox[5.8em][l]{microVAX~\Roman{two}}} +\newcounter{three} \setcounter{three}{3} +\newcommand{\uvaxiii}{\protect\makebox[6.2em][l]{microVAX~\Roman{three}}} +% +\newcommand{\PreserveBackslash}[1]{\let\temp=\\#1\let\\=\temp} +\let\PBS=\PreserveBackslash % shorthand +% +% Define "\usc" to get a proper underscore!! +\newcommand{\usc}{\protect\makebox[0.6em]{\protect\rule{0.5em}{0.1ex}}} +% +\newcommand{\camac}{\protect\makebox[4.1em][l]{CAMAC}} +% +% Define insertplot is insert a PostScript plot. +% Usage: +% \insertplot{}{}{} +% Example: +% \insertplot{dvipsdoc.pal}{70mm}{5.0mm} +% +\def\insertplot#1#2#3{\par + \hbox{% + \hskip #3 + \vbox to #2{ + \vfil + \special{ps: plotfile #1} + }% + } +} +% +\title{EL734 Stepping Motor Test Program} +\author{D. Maden} +\date{12th November, 1996} +% +\begin{document} +\maketitle + \section{Introduction} +% ====================== +% + This note describes the program {\bf el734{\usc}test}, which can be used to + test a stepping motor connected to an EL734 Stepping Motor Controller. + The current version of the program is {\em Ident 1D02}. + + The program runs under either the Unix\footnote{So far, the program has been + tested only under the DEC version of Unix, i.e. {\em Digital Unix}.} + operating system or + the OpenVMS operating system. The program is normally invoked via a + simple command line from the console prompt and then runs to completion. + + In the interests of simplicity, this note describes how to + run {\bf el734{\usc}test} on a Digital Unix workstation + when logged in as user ``lnsg''. It assumes that the shell being used + is {\em tcsh}. Once the correct environment has been defined, however, + the operation of the program is identical under both Unix and OpenVMS. + Notes specific to the OpenVMS implementation will be found in + Appendix~\ref{OpenVMS-Notes}. +% + \section{Hardware Configuration} +% ================================ +% + Although other configurations are possible, it is assumed in this + description that the EL734 is connected via an asynchronous serial + line to a Macintosh (or PC) running a LabVIEW ``terminal server'' program. + This program is referred to as {\em TS} in the following. See ??? for + details of {\em TS}. A Description of how to start {\em TS} is given in + Appendix~\ref{TS-Notes}. + + {\bf el734{\usc}test} accesses the EL734 via {\em TS} by + creating a TCP/IP network socket and opening a connection to it. + {\bf el734{\usc}test} is a so-called ``TCP/IP client'' and the LabVIEW + program + is a so-called ``TCP/IP server''. {\bf el734{\usc}test} buffers commands + for + the EL734 into packets which it sends to the terminal server via the socket. + The terminal server extracts the commands from each packet, executes them in + sequence and compiles the various responses from the EL734 into a response + packet which it then sends back to {\bf el734{\usc}test}. The details of + this + packet protocol are described elsewhere. + + In order for {\bf el734{\usc}test} to be able to establish a connection to + the + terminal server, it is necessary to know the Internet host name + of the Macintosh or PC on which the terminal server program is running, + the Internet port number on which this program accepts + connections from its clients and the channel number of the asynchronous + serial line which is connected to the EL734. + + The host name is usually indicated by a label on the Macintosh. The + following is the current list of LabVIEW host assignments: +% + \begin{center}\begin{tabular}{|c|c|c|c|} \hline + Host & Alias & Internet Address & Instrument \\ + \hline + pswm18.psi.ch & lnsw02 & 129.129.90.18 & ? \\ + ? & lnsp22 & 129.129.90.172 & TOPSI \\ + pswm60.psi.ch & lnsw15 & 129.129.90.60 & ? \\ + \hline + \end{tabular}\end{center} +% + The default port number is 4000. The channel number is a small integer. A + value of zero for the channel number usually refers to + to the Macintosh's ``modem port''. +% + \section{Running {\bf el734{\usc}test}} +% ======================================= +% + The startup files of the ``lnsg'' accounts are normally set up so that + {\bf el734{\usc}test} can be invoked merely by typing the command: \\[1.0ex] +% + \hspace*{20mm} \verb# el734_test [options ...]# \\[1.0ex] +% + A list of the options recognised by the program can be + obtained by issuing the command: \\[1.0ex] +% + \hspace*{20mm} \verb# el734_test -help# \\[1.0ex] +% + It generates the following information about the program:% +% + \begin{verbatim} + EL734 Motor Controller Test Program 1, Ident 1D02. + Started at Mon Nov 11 13:03:43 1996 + My name is "el734_test" + + Usage: el734_test [options ...] + + Valid options are: + -help Generates this help text. + -?