Skip to content

Commit

Permalink
DACS Installation and Deinstallation updates
Browse files Browse the repository at this point in the history
  • Loading branch information
janmenti committed Dec 12, 2024
1 parent 5cd601c commit 396f83c
Show file tree
Hide file tree
Showing 8 changed files with 226 additions and 7 deletions.
92 changes: 92 additions & 0 deletions src/dacs/deinstallation-dacs/main.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
% filename: HEP_OP_DACS_Deinstallation

\documentclass{article}

\input{../../common/lib/header}

% Define a counter for the item numbers
\newcounter{rowCounter}
% Initialize counter
\setcounter{rowCounter}{0}

\newcounter{tableCounter}
\setcounter{tableCounter}{0}

% Command for row in checklist
% First argument is amount
% Second argument is description
\newcommand{\checklistItem}[2]{
\checkbox & #1 & #2 \\ \hline
}

% Command for row in procedure list
\newcommand{\procedureItem}[1]{
\stepcounter{rowCounter} % Increment counter
\arabic{tableCounter}.\arabic{rowCounter}
&
\checkbox
&
\begin{minipage}[t]{\linewidth}
#1
\vspace{1mm} % Just slightly add vspace to prevent clipping into table border
\end{minipage}
\\ \hline
}

% Command for row in note list
\newcommand{\noteItem}[1]{
\begin{minipage}[t]{\linewidth}
#1
\vspace{1mm} % Just slightly add vspace to prevent clipping into table border
\end{minipage}
\\ \hline
}


\title{DACS Control Station Deinstallation and Data Saving}
\author{Operating Procedure}
\date{Version: \isodate\today}

\begin{document}

\maketitle

% Set the page style for the title page
\thispagestyle{fancy}

%%%%%% Prefix section
% Change section numbering to A, B, C...
\renewcommand{\thesection}{\Alph{section}}

\section{Operation Description}
\input{sections/operation-description.tex}

\section{Required Documents}
\input{sections/required-documents.tex}

\section{Required Tools}
\input{sections/required-tools.tex}

\section{Required Materials}
\input{sections/required-materials.tex}

\newpage

%%%%%% Main section
% Change section numbering to 1, 2, 3...
\renewcommand{\thesection}{\arabic{section}}

% Reset section counter to start from 1 again
\setcounter{section}{0}

\section{Deinstallation}
\input{sections/deinstallation.tex}

\newpage

%%%%%% Notes
\setcounter{section}{0}
\section*{Notes}
\input{sections/notes.tex}

\end{document}
53 changes: 53 additions & 0 deletions src/dacs/deinstallation-dacs/sections/deinstallation.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
% Procedure for installation

\stepcounter{tableCounter} % Increment counter
\setcounter{rowCounter}{0} % Reset counter
\begin{tabularx}{\textwidth}{|>{\columncolor{tableColumnColor}}c|>{\columncolor{tableColumnColor}}c|X|}
\hline
\rowcolor{tableHeaderColor}
ID & CK 1 & Description \\ \hline

\procedureItem{
Close the UI by pressing Alt-F4
}

\procedureItem{
Unplug the power supply of the trailer in the MC
}

\procedureItem{
Unplug the 100m Ethernet cable from the Pro Ethernet Switch
}

\procedureItem{
Unplug the 100m Ethernet cable of the electrical cabine
}

\procedureItem{
Remove the 230 VAC power supply of the electrical cabine
}

\procedureItem{
Carefully roll up the 100m cable roll
}

\procedureItem{
Download the .csv file from \textbf{Localhost:8086}
}

\procedureItem{
Turn off mission control PC and Surveillance PC
}

\procedureItem{
Place the three monitors with foil to protect the displays in the two big DACS boxes
}

\procedureItem{
Put PC power cables, power strips, DP cables, HDMI cables, mouses, keyboards and manual override box in the big DACS boxes
}

\procedureItem{
Put the two PCs in the smaller DACS box together with the USB-C adapter, Pro Ethernet switch, Ethernet cables and Switch‘s power cable
}
\end{tabularx}
49 changes: 49 additions & 0 deletions src/dacs/deinstallation-dacs/sections/notes.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
% Notes

\rowcolors{1}{notesColor}{notesColor}
\begin{tabularx}{\textwidth}{X}
\hline

\noteItem{
To \textbf{stop a process} in the terminal: CTRL-C
\\
To \textbf{save a file}: CTRL-S
}

\noteItem{
Important files that might have to be changed:
\begin{itemize}
\item \textbf{/home/dacs/git/configuration-tests/PRO\_DACS-Configuration.xlsx}
\\
here you can change controllable actuators per phase and sensor abort thresholds, afterwards do \texttt{catkin build} again

\item \textbf{/home/dacs/git/user-interface/rosWebPage/ui/configure\_ui.py}
\\
here you can change anything related to the UI, in particular which config file is used (this is quite unreadable code so use CTRL-F to find things)
To apply changes run:
\\
\texttt{cd /home/dacs/git/user-interface/rosWebPage/ui/}
\\
\texttt{python3 configure\_ui.py}

\item \textbf{/home/dacs/git/software-rpi4/state\_machine/src/:}
\\
In this folder you find the state machine list (list of phases) and sequences (watch out for the syntax if you change anything here)
Check which file is used in state\_machine.cpp
afterwards do \texttt{catkin build} again

\item \textbf{/home/dacs/git/software-rpi4/data\_acquisition/src/core/T7\_streaming.py}
\\
here you can change the streaming rate in case you get a Labjack buffer error or anything of that kind

\item \textbf{/home/dacs/git/software-rpi4/data\_acquisition/launch/test.launch}
\\
here you can change which ROS modules are started at roslaunch, might be useful to delete the throttling module if it gives any errors for example

\item \textbf{/home/dacs/git/software-rpi4/throttling\_control/src}
\\
In the \texttt{setpoint.py}, \texttt{control.py} and the core folder you can change the setting for the setpoints and the controller parameters.

\end{itemize}
}
\end{tabularx}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
% Operation description
Uninstall the DACS mission control station and saving the data.
2 changes: 2 additions & 0 deletions src/dacs/deinstallation-dacs/sections/required-documents.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
% Required documents
\textit{none}
18 changes: 18 additions & 0 deletions src/dacs/deinstallation-dacs/sections/required-materials.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
% Required materials
\begin{tabularx}{0.9\textwidth}{|>{\columncolor{tableColumnColor}}c|c|X|}
\hline
\rowcolor{tableHeaderColor}
Check & Amount & Description \\ \hline
\checklistItem{1}{Mission Control PC}
\checklistItem{2}{Monitor}
\checklistItem{1}{Keyboard}
\checklistItem{1}{Mouse}
\checklistItem{1}{Wifi Adapter}
\checklistItem{1}{Power Adapter for PC}
\checklistItem{2}{Power Strip}
\checklistItem{2}{DP Cable}
\checklistItem{1}{Phone with Hotspot \& Charger}
\checklistItem{1}{Ethernet cable on cable roll (connected to test bench)}
\checklistItem{1}{HELIOS Ethernet Switch with power cable}
\checklistItem{1}{Short Ethernet cable}
\end{tabularx}
2 changes: 2 additions & 0 deletions src/dacs/deinstallation-dacs/sections/required-tools.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
% Table of required tools
\textit{none}
15 changes: 8 additions & 7 deletions src/dacs/installation-dacs/sections/installation.tex
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
\rowcolor{tableHeaderColor}
ID & CK 1 & Description \\ \hline

\procedureItem{
If you are working with DACS1 and DACS2, one can go ahead with the procedure. The other DACS member can jump to point 1.12,
continuing the procedure from there
}{}

\procedureItem{
Unpack material and place monitors on two tables in the following order (from left to right):
\\
Expand Down Expand Up @@ -48,11 +53,7 @@
Be attentive not to damage the cable.
}

\procedureItem{
If you are working with DACS1 and DACS2, one can go ahead with the procedure and do the checks
inside the DACS box. The other DACS member can head back to the MC and jump to point 1.29,
continuing the procedure from there
}{}
\procedureItem{If you are working with DACS1 and DACS2 you can jump to point 1.30 of the procedure}{}

\procedureItem{
Check that \underline{none} of the following cables are connected to the electrical cabinet (=P01+A01):
Expand Down Expand Up @@ -268,8 +269,8 @@
\procedureItem{
Start the UI on the MC Laptop:
\begin{itemize}
\item If you made any changes in the code use \texttt{./bild\_and\_run.sh} to start the UI
\item If you made no changes in the code use \texttt{./run.sh} to start the UI
\item If you made any changes in the code use \texttt{bash bild\_and\_run.sh} to start the UI
\item If you made no changes in the code use \texttt{bash run.sh} to start the UI
\end{itemize}
}{}

Expand Down

0 comments on commit 396f83c

Please sign in to comment.