From d425d6f2b16287efe63776a628f758c5876a4437 Mon Sep 17 00:00:00 2001 From: "stephan.roschinski" <stephan.roschinski@tuwien.ac.at> Date: Thu, 23 Feb 2023 10:40:36 +0100 Subject: [PATCH] added MCS8A box v1 --- FastComtecMCS8A/blacs_workers.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/FastComtecMCS8A/blacs_workers.py b/FastComtecMCS8A/blacs_workers.py index 8eadbc6..d0a43f3 100644 --- a/FastComtecMCS8A/blacs_workers.py +++ b/FastComtecMCS8A/blacs_workers.py @@ -15,14 +15,17 @@ from blacs.tab_base_classes import Worker class MCS8AWorker(Worker): - def init(self): + def init(self, h5_file): self.config = spcm_config_start.setup self.batch_file = self.config.get_config_key('Settings', 'batch_file') - self.process = subprocess.Popen(self.batch_file) # run batch file - # Do the rest + self.process = subprocess.Popen(self.batch_file) + self.h5file = h5_file # run batch file + # Do the rest self.dll_path = self.config.get_config_key('Settings', 'dll_path') self.dll=WinDLL(self.dll_path) #put DLL path into the conf file print('init completed') + self.h5file = h5_file + pass def transition_to_buffered(self, device_name, h5_file, initial_values, fresh): self.h5file = h5_file -- GitLab