From 44a394aeb792f6befd48ec3ea9b9df6ad4296905 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9ouven=20Assouly?= Date: Fri, 20 Mar 2020 18:23:37 +0100 Subject: [PATCH] labbrick: Fix initialization bug --- exopy_hqc_legacy/instruments/drivers/dll/labbrick.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/exopy_hqc_legacy/instruments/drivers/dll/labbrick.py b/exopy_hqc_legacy/instruments/drivers/dll/labbrick.py index b37389b..a43884e 100644 --- a/exopy_hqc_legacy/instruments/drivers/dll/labbrick.py +++ b/exopy_hqc_legacy/instruments/drivers/dll/labbrick.py @@ -13,7 +13,7 @@ LabBrickLMS103 -To read well the Dll of the LabBrick, Visual C++ Studio 2013 is needed. +In order to use the LabBrick's DLL, Visual C++ Studio 2013 is needed. """ from ..driver_tools import (InstrIOError, secure_communication, @@ -21,6 +21,7 @@ from ..dll_tools import DllLibrary, DllInstrument from inspect import cleandoc import ctypes +import os class LabBrickDll(DllLibrary): @@ -172,7 +173,8 @@ def __init__(self, connection_info, caching_allowed=True, super(LabBrickLMS103, self).__init__(connection_info, caching_allowed, caching_permissions, auto_open) - self._dll = LabBrickDll(connection_info['lib_path']) + self._dll = LabBrickDll(os.path.join(connection_info['lib_dir'], + library)) # load the ID of the device from the serial number serial = int(connection_info['instr_id'])