From b2b7b6e3ff7f38f677120935e2ada9254ae795b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Weber?= Date: Sun, 29 Sep 2024 18:54:23 +0200 Subject: [PATCH] Update daq_move_Template.py --- .../daq_move_plugins/daq_move_Template.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/pymodaq_plugins_template/daq_move_plugins/daq_move_Template.py b/src/pymodaq_plugins_template/daq_move_plugins/daq_move_Template.py index 50440a4..26b4c84 100644 --- a/src/pymodaq_plugins_template/daq_move_plugins/daq_move_Template.py +++ b/src/pymodaq_plugins_template/daq_move_plugins/daq_move_Template.py @@ -128,10 +128,13 @@ def ini_stage(self, controller=None): initialized: bool False if initialization failed otherwise True """ + raise NotImplemented # TODO when writing your own plugin remove this line and modify the ones below + self.ini_stage_init(slave_controller=controller) # will be useful when controller is slave - raise NotImplemented # TODO when writing your own plugin remove this line and modify the one below - self.controller = self.ini_stage_init(old_controller=controller, - new_controller=PythonWrapperOfYourInstrument()) + if self.is_master: # is needed when controller is master + self.controller = PythonWrapperOfYourInstrument(arg1, arg2, ...) # arguments for instantiation!) + # todo: enter here whatever is needed for your controller initialization and eventual + # opening of the communication channel info = "Whatever info you want to log" initialized = self.controller.a_method_or_atttribute_to_check_if_init() # todo