11-13-2020 08:56 AM - edited 11-13-2020 09:25 AM
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!
11-25-2020 12:59 PM
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)
11-25-2020 01:02 PM
.
11-26-2020 07:16 AM
interesting, I can run this with LabView 64 Bit, Python 3.7x 64 bit (C:\Program Files\Python37)
11-28-2020 11:27 PM - edited 11-28-2020 11:30 PM
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.