-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdls.tex
More file actions
224 lines (159 loc) · 5.36 KB
/
dls.tex
File metadata and controls
224 lines (159 loc) · 5.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
\chapter{DLS}
\label{chap:dls}
The Data Logging Service (DLS) is a data logging system for EtherLab. It
connects to PdServ and stores time series on disk.
The official documentation is available in \cite{dls_user_manual}.
\section{Install prerequisites}
The following prerequisites must be installed to compile DLS.
\subsubsection{Binary packages}
\begin{shellcmd}
sudo apt install autoconf libtool libexpat1-dev \
libxml2-dev libfltk1.3-dev \
libfftw3-dev liburiparser-dev \
protobuf-compiler libprotobuf-dev \
libpcre3-dev
\end{shellcmd}
\subsubsection{PdCom library}
PdCom is the library used to communicate with PdServ. It must be downloaded
and compiled from source.
\noindent Download and compile the PdCom library
\begin{shellcmd}
cd /tmp
git clone https://gitlab.com/etherlab.org/pdcom.git
cd pdcom
git checkout 3.0.9
./bootstrap.sh
./configure --prefix=/opt/etherlab
make
\end{shellcmd}
\noindent Install the PdCom library
\begin{shellcmd}
sudo make install
\end{shellcmd}
\section{Get the DLS source code}
Download the source code with git, then switch to the revision
that has been tested in this tutorial (commit 370553789444).
\begin{shellcmd}
cd /tmp
git clone https://gitlab.com/etherlab.org/dls.git
cd dls
git checkout 370553789444fc6c19ae22091db00067791370ef
\end{shellcmd}
\section{Compile the DLS source code}
DLS uses a classic autoconf script to generate the Makefile.
\begin{shellcmd}
cd /tmp/dls
./bootstrap.sh
./configure --prefix=/opt/etherlab
make
\end{shellcmd}
\section{Install the DLS programs}
The programs are installed in \texttt{/opt/etherlab}. \\
\begin{shellcmd}
sudo make -C /tmp/dls install
sudo ldconfig
\end{shellcmd}
\subsubsection{Create a system account}
Create a system account \texttt{dls}.
\begin{shellcmd}
sudo useradd -s /usr/sbin/nologin -r dls
\end{shellcmd}
\subsubsection{Create data directories}
Create a directory (\texttt{/home/dls/data}) to store recorded data.
\begin{shellcmd}
sudo install -d -o dls -g dls /home/dls/data
\end{shellcmd}
\section{Manage acquisitions with dls\_ctl}
Acquisitions are managed with \texttt{dls\_ctl}.
\begin{shellcmd}
sudo -i
export PATH=/opt/etherlab/bin:$PATH
dls_ctl -d /home/dls/data
\end{shellcmd}
\subsubsection{Initialize the data directory}
The main window appears. The program asks whether the data directory
should be initialized. Answer YES.
\begin{center}
\includegraphics[width=\textwidth]{genpicts/dls_ctl-00.eps}
\end{center}
\subsubsection{Start the acquisition daemon}
The program asks whether the acquisition daemon
should be started. Answer YES.
\begin{center}
\includegraphics[width=\textwidth]{genpicts/dls_ctl-01.eps}
\end{center}
\noindent In the console, a message indicates that the DLS daemon is now running.
\begin{shellout}
dls_ctl 1.4.0-rc2 revision 51dc3443178a
DLS data directory "/home/dls/data"
dlsd 1.4.0-rc2 revision 51dc3443178a
Using dls directory "/home/dls/data"
DLS running with PID 26307 [daemon]
\end{shellout}
\subsubsection{Configure acquisition}
\noindent Click \textit{New job} to create a new acquisition job
\begin{center}
\includegraphics[width=\textwidth]{genpicts/dls_ctl-02.eps}
\end{center}
\begin{warning}
Fill in the form with the job properties. The \textit{Source} field cannot be
modified later; therefore it must be entered correctly the first time.
\end{warning}
\begin{center}
\includegraphics[width=0.35\textwidth]{genpicts/dls_ctl-03.eps}
\end{center}
\noindent The new job appears in the list. Double-click it
to edit the channels.
\begin{center}
\includegraphics[width=\textwidth]{genpicts/dls_ctl-04.eps}
\end{center}
\noindent Click on \textit{Add channels...}
\begin{center}
\includegraphics[width=0.75\textwidth]{genpicts/dls_ctl-05.eps}
\end{center}
\noindent Select the channel \textit{/s1/c}
\begin{center}
\includegraphics[width=0.75\textwidth]{genpicts/dls_ctl-06.eps}
\end{center}
\noindent Close the job window.
\begin{center}
\includegraphics[width=0.75\textwidth]{genpicts/dls_ctl-07.eps}
\end{center}
\noindent Click the \textit{Start} button
\begin{center}
\includegraphics[width=\textwidth]{genpicts/dls_ctl-08.eps}
\end{center}
\noindent The acquisition is running.
\begin{center}
\includegraphics[width=\textwidth]{genpicts/dls_ctl-09.eps}
\end{center}
\section{Plot channels with dls\_view }
\texttt{dls\_view} is the legacy viewer for DLS.
The newer viewer (\texttt{dlsgui}) is explained in section \ref{chap:dlsgui}.
\subsubsection{Run dls\_view}
Unlike \texttt{dlsgui}, \texttt{dls\_view} needs file system access to the
recorded data.
\begin{shellcmd}
sudo -i
export PATH=/opt/etherlab/bin:$PATH
dls_view -d /home/dls/data
\end{shellcmd}
\noindent Select the acquisition job to display.
\begin{center}
\includegraphics[width=0.9\textwidth]{genpicts/dls_view-00.eps}
\end{center}
\noindent Select the channel to display
\begin{center}
\includegraphics[width=0.9\textwidth]{genpicts/dls_view-01.eps}
\end{center}
\noindent The plot appears as a green rectangle because the lines
are too densely compressed.
\begin{center}
\includegraphics[width=0.9\textwidth]{genpicts/dls_view-02.eps}
\end{center}
\noindent Draw a rectangle in the viewing area to zoom in; click on
the viewing area to zoom out. See \cite{dls_user_manual} for the
complete description of the user interface.
\begin{center}
\includegraphics[width=0.9\textwidth]{genpicts/dls_view-03.eps}
\end{center}