LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview Python Node return list error

Hi all,

 

Below I tried to return a list from Python Node into LabView2018 with following Python code:

def return_list():
return [1,2,3]

But it returned error. How to solve this problem? Many thanks!

 

tomsze_0-1605278948782.png

 

Download All
0 Kudos
Message 1 of 5
(2,960 Views)

Hello

 

I run your code and worked good.

I used python 32 bits and do not forget to install numpy  (pip install numpy from command line)

 

0 Kudos
Message 2 of 5
(2,870 Views)

.

0 Kudos
Message 3 of 5
(2,867 Views)

interesting, I can run this with LabView 64 Bit, Python 3.7x 64 bit (C:\Program Files\Python37)

 

python37_64.png

 

0 Kudos
Message 4 of 5
(2,851 Views)

Thank you guys. I have installed numpy so It is still a strange error to me. One workaround for me is to return a string and extract data from it. By the way, I am using embeded python.

0 Kudos
Message 5 of 5
(2,814 Views)