def reloadPyTango(modmanager): import taurus from taurus.core.taurusmanager import TaurusManager tm = TaurusManager() print '\n-*-*-*-*-*- Reload PyTango' modmanager.reloadModule('PyTango') taurus.check_dependencies() print '\n -- Taurus plugins' print tm.buildPlugins()
def Manager(): """Returns the one and only TaurusManager It is a shortcut to:: import taurus.core manager = taurus.core.taurusmanager.TaurusManager() :return: the TaurusManager :rtype: :class:`taurus.core.taurusmanager.TaurusManager` .. seealso:: :class:`taurus.core.taurusmanager.TaurusManager`""" from taurus.core.taurusmanager import TaurusManager return TaurusManager()
on a pure pyqtgraph plot""" if __name__ == "__main__": import sys from taurus.qt.qtgui.application import TaurusApplication from taurus.qt.qtgui.tpg import ( TaurusTrendSet, DateAxisItem, XAutoPanTool, ForcedReadTool, ) import pyqtgraph as pg from taurus.core.taurusmanager import TaurusManager taurusM = TaurusManager() taurusM.changeDefaultPollingPeriod(1000) # ms app = TaurusApplication() # Add a date-time X axis axis = DateAxisItem(orientation="bottom") w = pg.PlotWidget() axis.attachToPlotItem(w.getPlotItem()) # Add the auto-pan ("oscilloscope mode") tool autopan = XAutoPanTool() autopan.attachToPlotItem(w.getPlotItem()) # Add Forced-read tool fr = ForcedReadTool(w, period=1000)
def processInput(self, input_data): TaurusManager().addJob(self._processInput, None, input_data)