01-24-2024 10:32 AM
Dear Community,
We generate DLLs from Labview. Unfortunately, these are currently only functional under Python 2.x and do not run under Python 3.x. Unfortunately, we cannot explain the behavior at the moment. We have tested Labview 2020 and 2021, see table.
What could be the reason?
dll LabView |
Python |
Works |
Dll_2020 (original) |
V 2.7.14 |
yes |
Dll_2020 (original) |
V 3.6.8 |
no |
Dll_2020 (original) |
V 3.7.7 |
no |
Dll_2020 (original) |
V 3.9.9 |
no |
Dll_2020 (original) |
V 3.11. |
no |
Dll_2021 |
V 2.7.14 |
yes |
Dll_2021 |
V 3.6.8 |
no |
Dll_2021 |
V 3.9.9 |
no |
Dll_2021 V2 |
V 3.9.9 |
no |
01-26-2024 10:39 AM
Unfortunately, these are currently only functional under Python 2.x and do not run under Python 3.x. is quite a generic formulation, which does not give much of a hint, what the problem is.
As you changed from python 2.x to 3.x, the starting point should be to check the python documentation for differences, how python calls DLLs.
then you find information like this here: https://stackoverflow.com/questions/7256283/differences-in-ctypes-between-python-2-and-3