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'])