Closed FurkanToprak closed 4 years ago
Hello FurkanToprak.
What are you using for your development environment? Did you install the latest version of MCC's InstaCal, on your Windows 10 system, and then run InstaCal to detect your MCC device? Readme: https://github.com/mccdaq/mcculw/blob/master/README.rst InstaCal: https://www.mccdaq.com/daq-software/instacal.aspx
Also, the online Universal Library Help has useful information for Python users. https://www.mccdaq.com/PDFs/Manuals/Mcculw_WebHelp/ULStart.htm
Regards.
Hi Furkan, I had the same issue. It is because the path variable does not link the location of the file cbw64.dll. I modified the ul.py file to include the full path to this file, it worked for me. I had a few more issues like that to solve before everything was working fine. Cheers,
Credit to @LudovicRicard for the very helpful tip. Include the full file path before cbw32.dll
or cbw64.dll
Specifically, here is the required code, found under ul.py
:
# Load the correct library based on the Python architecture in use
if struct.calcsize("P") == 4:
_cbw = WinDLL('C:\\Program Files (x86)\\Measurement Computing\\DAQ\\cbw32.dll')
else:
_cbw = WinDLL('C:\\Program Files (x86)\\Measurement Computing\\DAQ\\cbw64.dll')
I've installed the test code:
From the documentation after installing the
mcculw
library. I have gotten this error in two different Windows computers. What am I missing?