06-20-2024 07:31 AM
Hi
I want to test the possibility of executing a python code in labview, but I have an error code 1668;
I haven't found too many references to this error so that I can correct it, could you help me?
THANKS
06-20-2024 09:44 AM
There is no function named "test" in your py file.
06-20-2024 03:00 PM - edited 06-20-2024 03:11 PM
@altenbach wrote:
There is no function named "test" in your py file.
yes, your function is named "test_function" in the pythonscript, and "test" in the .vi (py.PNG 26 KB)
when running th .py frpm the cmd:
moreover, the python.exe and labview IDE must be of the same bitness.
here it is 32, as I am using the community edition of labview, and the latest 32bit python-embedded
I am glad, python-embedded can be used in LabView 2024,
which you probably dont want to use, as it does not come with pip per default.
and moreover, it appears you are using an older version of labview, where you can't define a python.exe path for vthe python node