|
@@ -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.
|
|
|
|