Matze hace 4 años
padre
commit
01d2957448
Se han modificado 3 ficheros con 17 adiciones y 6 borrados
  1. BIN
      Docu/Kapture2 Docu.pdf
  2. 1 3
      Docu/chapters/part01-use.tex
  3. 16 3
      Docu/chapters/part02-develope.tex

BIN
Docu/Kapture2 Docu.pdf


+ 1 - 3
Docu/chapters/part01-use.tex

@@ -70,9 +70,7 @@ This is a small Settings window to set at runtime the Save Location and the Sub-
 In addition the second KAPTURE Module can be delayed with the 25ps in the \textit{T/H FMC2} column. The Default is 4! So for example value of 3 means that the second board will sample 25\,ps earlier.
 
 The advanced settings for ADC Delay and FPGA Delay are usually not to use. They are mainly for development. In normal user-operation the GUI handles them automatically.
-\TextGrafik[h]{Timing distribution of a KAPTURE-2 Module. The Cascade Clock output of the first Module is used as input for the second modul}{pl:T:bahn}{0.7}{timeplan4.png}
-
-
+\TextGrafik[h]{Timing distribution of a KAPTURE-2 Module. The Cascade Clock output of the first Module is used as input for the second modul. One Important information: The PLL is running with internal loopback to achieve a global Delay. This means that one output of the PLL is looped back to the input and by changeing the delay of this output, the complete System is shifted. But it is shifted in the oposite direction: increasing the delay means sampling earlyer. BUT the GUI takes care of this so that for the user it feels like it is shown in the graphic.}{pl:T:bahn}{0.7}{timeplan4.png}
 
 
 

+ 16 - 3
Docu/chapters/part02-develope.tex

@@ -95,7 +95,7 @@ One Sequence is represented like this
         "sequence": [
             [
                 "value", "reg", 
-                "dialog text",  #If not an empty string a popup is shown before sending the command
+                "dialog text",  #If not an empty string a popup is shown before sending
                 "comment",      #Printed in Logfile
                 "key", "value", #Optional: used to update the board_config 
                 "key", "value"  #          It calls config.update(key, value, write=False)
@@ -130,9 +130,9 @@ This Class is also used outside the KCG.
 \subsubsection*{base/backend/CalibrationHandel} 
 This Class handels the Calibration Files and is used by the \code{DataSet} and \code{TimeScan}. 
 It contains also an instance of itself which should be used. So don't create a new one.
-\begin{ lstlisting}
+\begin{lstlisting}
 		theCalibration = CalibrationHandel()
-\end{ lstlisting}
+\end{lstlisting}
 
 When ever one cals \code{theCalibration.openFile(...)} it returns a identifier. 
 
@@ -168,6 +168,19 @@ there are by now:
 \end{itemize}
 To activate a widget put the module name in widgets/\_\_init\_\_.py
 
+If a widget should be updated everytime a new Data is acquired. register a observer onto \code{"lastDataSet"}. Like it is done in the \code{PlotWidget} 
+\begin{lstlisting}
+	def initUI(self):
+		self.board_config.observe(self, self.observeDataSet, 'lastDataSet')
+
+	def observeDataSet(self, data):
+		self.plot_live(data=data)
+
+	def closeEvent(self, event):
+		self.board_config.unobserve(self, 'lastDataSet')
+\end{lstlisting}
+Do not forget to unobserve!
+
 \subsubsection*{config.py}
 Module to handle the config file. It also provides some helperfunctions for accessing the current working path as well as the installation path. Also is it the place where the colors for the Plotwidget are defined.