Skip to content

Commit

Permalink
Update daq_move_Template.py
Browse files Browse the repository at this point in the history
  • Loading branch information
seb5g committed Sep 29, 2024
1 parent 3df013f commit b2b7b6e
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b2b7b6e

Please sign in to comment.