% [...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. -?