LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

python in labview

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

Download All
0 Kudos
Message 1 of 3
(281 Views)

There is no function named "test" in your py file.

0 Kudos
Message 2 of 3
(242 Views)

@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)

 

pytest-embedded-python.png

 

when running th .py frpm the cmd:

alexderjuengere_0-1718914058126.png

 

 

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

 

alexderjuengere_0-1718913479221.png

 

 

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

 

 

 

 

0 Kudos
Message 3 of 3
(225 Views)